Skip to content

Commit 2eeb3c0

Browse files
committed
cnf ran: two_sno added operator deployment step
1 parent 603cc2c commit 2eeb3c0

4 files changed

Lines changed: 22 additions & 15 deletions

File tree

ci-operator/config/openshift-kni/eco-ci-cd/openshift-kni-eco-ci-cd-main__cnf-ran-two-sno-4.20.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,19 @@ tests:
2424
steps:
2525
env:
2626
CLUSTER_NAME: fthub-01
27+
HUB_OPERATORS: |
28+
[
29+
{"name":"local-storage-operator","catalog":"redhat-operators","nsname":"openshift-local-storage","channel":"stable","og_name":"local-operator-group","subscription_name":"local-storage-operator","deploy_default_config":false,"ns_annotations":{"workload.openshift.io/allowed":"management"}},
30+
{"name":"openshift-gitops-operator","catalog":"redhat-operators","nsname":"openshift-gitops-operator","channel":"latest","og_name":"openshift-gitops-operator","subscription_name":"openshift-gitops-operator","deploy_default_config":false,"og_spec":{"targetNamespaces":[]}},
31+
{"name":"advanced-cluster-management","catalog":"redhat-operators","nsname":"open-cluster-management","channel":"release-2.15","og_name":"open-cluster-management","subscription_name":"acm-operator-subscription","deploy_default_config":false,"og_spec":{"targetNamespaces":["open-cluster-management"]}},
32+
{"name":"multicluster-engine","catalog":"redhat-operators","nsname":"multicluster-engine","channel":"stable-2.10","og_name":"multicluster-engine","subscription_name":"multicluster-engine","deploy_default_config":true,"og_spec":{}},
33+
{"name":"topology-aware-lifecycle-manager","catalog":"topology-aware-lifecycle-manager-fbc","og_name":"global-operators","nsname":"openshift-operators","fbc_iib_repo":"latest","channel":"stable","deploy_default_config":false,"ocp_operator_mirror_fbc_image_base":"quay.io/redhat-user-workloads/telco-5g-tenant/topology-aware-lifecycle-manager-fbc-${VERSION_TAG}"},
34+
{"name":"cluster-logging","catalog":"redhat-operators","nsname":"openshift-logging","channel":"stable-6.2","default_channel":"stable-6.4","og_name":"cluster-logging","subscription_name":"cluster-logging","og_spec":{"targetNamespaces":[]}}
35+
]
2736
VERSION: "4.20"
2837
pre:
2938
- ref: telcov10n-functional-cnf-ran-hub-deploy
39+
- ref: telcov10n-functional-cnf-ran-hub-config
3040
zz_generated_metadata:
3141
branch: main
3242
org: openshift-kni

ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-config/telcov10n-functional-cnf-ran-hub-config-commands.sh

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ if [[ -f "${SHARED_DIR}/cluster_name" ]]; then
6464
CLUSTER_NAME=$(cat "${SHARED_DIR}/cluster_name")
6565
fi
6666

67-
export CLUSTER_NAME="kni-qe-99"
6867
echo CLUSTER_NAME=${CLUSTER_NAME}
6968

7069
# Set kubeconfig path
71-
KUBECONFIG_PATH="/home/telcov10n/project/generated/kni-qe-99/auth/kubeconfig"
70+
KUBECONFIG_PATH="/home/telcov10n/project/generated/${CLUSTER_NAME}/auth/kubeconfig"
7271

7372
# Extract and configure SSH key for Ansible to connect to masters
74-
echo "Set up SSH key configuration for Ansible"
75-
PROJECT_DIR="/tmp"
76-
cat /var/group_variables/common/all/ansible_ssh_private_key > "${PROJECT_DIR}/ansible_ssh_key"
77-
chmod 600 "${PROJECT_DIR}/ansible_ssh_key"
78-
export ANSIBLE_PRIVATE_KEY_FILE="${PROJECT_DIR}/ansible_ssh_key"
79-
echo "SSH key configured at: ${ANSIBLE_PRIVATE_KEY_FILE}"
73+
74+
# echo "Set up SSH key configuration for Ansible"
75+
# PROJECT_DIR="/tmp"
76+
# cat /var/group_variables/common/all/ansible_ssh_private_key > "${PROJECT_DIR}/ansible_ssh_key"
77+
# chmod 600 "${PROJECT_DIR}/ansible_ssh_key"
78+
# export ANSIBLE_PRIVATE_KEY_FILE="${PROJECT_DIR}/ansible_ssh_key"
79+
# echo "SSH key configured at: ${ANSIBLE_PRIVATE_KEY_FILE}"
8080

8181
# Configure Ansible SSH settings for connection resilience
8282
export ANSIBLE_SSH_RETRIES=3
@@ -111,12 +111,11 @@ if [[ "$VERSION" == "4.14" ]]; then
111111
SKIP_REGISTRY_CLEANUP="ocp_operator_mirror_skip_internal_registry_cleanup=true"
112112
fi
113113

114-
ansible-playbook ./playbooks/deploy-ocp-operators.yml -i ./inventories/ocp-deployment/build-inventory.py \
115-
--extra-vars "kubeconfig=${KUBECONFIG_PATH} version=$VERSION disconnected=$DISCONNECTED operators='$HUB_OPERATORS' $SKIP_REGISTRY_CLEANUP"
114+
# ansible-playbook ./playbooks/deploy-ocp-operators.yml -i ./inventories/ocp-deployment/build-inventory.py \
115+
# --extra-vars "kubeconfig=${KUBECONFIG_PATH} version=$VERSION disconnected=$DISCONNECTED operators='$HUB_OPERATORS' $SKIP_REGISTRY_CLEANUP"
116116

117117
# configure lso
118118
ansible-playbook playbooks/ran/hub-sno-configure-lvm-storage.yml -i ./inventories/ocp-deployment/build-inventory.py \
119-
--private-key="${PROJECT_DIR}/ansible_ssh_key" \
120119
--extra-vars "kubeconfig=${KUBECONFIG_PATH}" -vv
121120

122121
# configure acm

ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-config/telcov10n-functional-cnf-ran-hub-config-ref.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ref:
1414
default: "4.19"
1515
documentation: OCP version; must match ztp-site-configs-ci folder (siteconfigs/<VERSION>/, policygentemplates/<VERSION>/)
1616
- name: CLUSTER_NAME
17-
default: ""
17+
default: "kni-qe-99"
1818
documentation: BM Cluster name
1919
- name: HUB_OPERATORS
2020
default: |
@@ -33,9 +33,6 @@ ref:
3333
- name: GITLAB_REPO_URL
3434
default: "https://gitlab.cee.redhat.com/telcov10n/ztp-site-configs-ci.git"
3535
documentation: ztp-site-configs-ci repo URL
36-
- name: GITLAB_REPO_BRANCH
37-
default: "standard"
38-
documentation: Branch to use in ztp-site-configs-ci
3936
credentials:
4037
- namespace: test-credentials
4138
name: telcov10n-ansible-group-all

ci-operator/step-registry/telcov10n/functional/cnf-ran/hub-deploy/telcov10n-functional-cnf-ran-hub-deploy-commands.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -e
33
set -o pipefail
44

5+
exit 0
56
echo "Checking if the job should be skipped..."
67
if [ -f "${SHARED_DIR}/skip.txt" ]; then
78
echo "Detected skip.txt file — skipping the job"

0 commit comments

Comments
 (0)