From 190c96b0cf86b87ea9f0388d85985f58e4778d94 Mon Sep 17 00:00:00 2001 From: Suzana Fernandes Date: Thu, 27 Mar 2025 19:41:49 +0000 Subject: [PATCH] =?UTF-8?q?DOC:=20"Display=20Updated=20Registries=E2=80=99?= =?UTF-8?q?=20URLs"=20is=20not=20working=20(r10,=20dsr10,=20dsr10MR,=20dsr?= =?UTF-8?q?11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes-bug: 2104844 Change-Id: I6510e40e1a1baf4d8ecd4538f42c472208022ac0 Signed-off-by: Suzana Fernandes --- .../kubernetes/change-the-registry-url.rst | 2 +- .../kubernetes/create-the-registry-secrets.rst | 2 +- .../kubernetes/update-the-registry-secrets.rst | 2 +- .../kubernetes/validate-existing-registry-and-new-url.rst | 2 +- ...try-secret-changes-and-secret-key-in-system-database.rst | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/source/system_configuration/kubernetes/change-the-registry-url.rst b/doc/source/system_configuration/kubernetes/change-the-registry-url.rst index 625ff9962..f6df20f41 100644 --- a/doc/source/system_configuration/kubernetes/change-the-registry-url.rst +++ b/doc/source/system_configuration/kubernetes/change-the-registry-url.rst @@ -14,7 +14,7 @@ registries' URLs using the following command: NEW_URL_START=new-registry.domain.com:9001 for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry do - uuid=`system service-parameter-list |grep $registry | grep url | awk '{print $2}'` + uuid=`system service-parameter-list |grep -w $registry | grep url | awk '{print $2}'` url_path=`system service-parameter-show $uuid | grep value | awk '{print $4}' | cut -d '/' -f 2-` system service-parameter-modify docker $registry url=$NEW_URL_START/$url_path done diff --git a/doc/source/system_configuration/kubernetes/create-the-registry-secrets.rst b/doc/source/system_configuration/kubernetes/create-the-registry-secrets.rst index c89cf8bd8..96c56b940 100644 --- a/doc/source/system_configuration/kubernetes/create-the-registry-secrets.rst +++ b/doc/source/system_configuration/kubernetes/create-the-registry-secrets.rst @@ -20,7 +20,7 @@ To create the auth-secrets for the new registries, use the following command: for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry do openstack secret store -n ${registry}-secret -p "${NEW_USERNAME_PASSWORD}" - secret_uuid=`openstack secret list |grep ${registry}-secret | awk '{print $2}' | awk -F/ '{print $6}'` + secret_uuid=`openstack secret list |grep -w ${registry}-secret | awk '{print $2}' | awk -F/ '{print $6}'` system service-parameter-add docker ${registry} auth-secret=${secret_uuid} done diff --git a/doc/source/system_configuration/kubernetes/update-the-registry-secrets.rst b/doc/source/system_configuration/kubernetes/update-the-registry-secrets.rst index d4d3ae608..e41720ddf 100644 --- a/doc/source/system_configuration/kubernetes/update-the-registry-secrets.rst +++ b/doc/source/system_configuration/kubernetes/update-the-registry-secrets.rst @@ -23,7 +23,7 @@ To update the auth-secrets for the new registries, use the following command: secret=`openstack secret list | grep ${registry}-secret | awk '{print $2}'` openstack secret delete ${secret} openstack secret store -n ${registry}-secret -p "${NEW_USERNAME_PASSWORD}" - secret_uuid=`openstack secret list |grep ${registry}-secret | awk '{print $2}' | awk -F/ '{print $6}'` + secret_uuid=`openstack secret list |grep -w ${registry}-secret | awk '{print $2}' | awk -F/ '{print $6}'` system service-parameter-modify docker ${registry} auth-secret=${secret_uuid} done diff --git a/doc/source/system_configuration/kubernetes/validate-existing-registry-and-new-url.rst b/doc/source/system_configuration/kubernetes/validate-existing-registry-and-new-url.rst index ecd98d0f8..bf546aa99 100644 --- a/doc/source/system_configuration/kubernetes/validate-existing-registry-and-new-url.rst +++ b/doc/source/system_configuration/kubernetes/validate-existing-registry-and-new-url.rst @@ -12,7 +12,7 @@ To display the updated URLs, use the following command: for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry do - uuid=`system service-parameter-list |grep $registry | grep url | awk '{print $2}'` + uuid=`system service-parameter-list |grep -w $registry | grep url | awk '{print $2}'` url_path=`system service-parameter-show $uuid | grep value | awk '{print $4}'` echo $registry URL is $url_path done diff --git a/doc/source/system_configuration/kubernetes/verify-the-registry-secret-changes-and-secret-key-in-system-database.rst b/doc/source/system_configuration/kubernetes/verify-the-registry-secret-changes-and-secret-key-in-system-database.rst index ea1ede659..a667aac64 100644 --- a/doc/source/system_configuration/kubernetes/verify-the-registry-secret-changes-and-secret-key-in-system-database.rst +++ b/doc/source/system_configuration/kubernetes/verify-the-registry-secret-changes-and-secret-key-in-system-database.rst @@ -12,7 +12,7 @@ To verify the registries' secret configuration changes, use the following comman for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry do echo $registry - secret_uuid=`openstack secret list |grep ${registry}-secret | awk '{print $2}'` + secret_uuid=`openstack secret list |grep -w ${registry}-secret | awk '{print $2}'` openstack secret get -d $secret_uuid done @@ -103,9 +103,9 @@ registry entries in the service parameter table, use the following command: for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry do echo $registry - uuid=`system service-parameter-list |grep $registry | grep auth-secret | awk '{print $2}'` + uuid=`system service-parameter-list |grep -w $registry | grep auth-secret | awk '{print $2}'` url=`system service-parameter-show ${uuid} | grep value | awk '{print $4}'` - secret_uuid=`openstack secret list |grep ${registry}-secret | awk '{print $2}'| awk -F/ '{print $6}'` + secret_uuid=`openstack secret list |grep -w ${registry}-secret | awk '{print $2}'| awk -F/ '{print $6}'` echo $url $secret_uuid if [ "${url}" != "${secret_uuid}" ]; then echo "**** ${registry} not correct"