Merge "DOC: "Display Updated Registries’ URLs" is not working (r10, dsr10, dsr10MR)" into r/stx.10.0
This commit is contained in:
commit
4ed85f1694
@ -14,7 +14,7 @@ registries' URLs using the following command:
|
|||||||
NEW_URL_START=new-registry.domain.com:9001
|
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
|
for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry
|
||||||
do
|
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-`
|
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
|
system service-parameter-modify docker $registry url=$NEW_URL_START/$url_path
|
||||||
done
|
done
|
||||||
|
@ -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
|
for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry
|
||||||
do
|
do
|
||||||
openstack secret store -n ${registry}-secret -p "${NEW_USERNAME_PASSWORD}"
|
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}
|
system service-parameter-add docker ${registry} auth-secret=${secret_uuid}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -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}'`
|
secret=`openstack secret list | grep ${registry}-secret | awk '{print $2}'`
|
||||||
openstack secret delete ${secret}
|
openstack secret delete ${secret}
|
||||||
openstack secret store -n ${registry}-secret -p "${NEW_USERNAME_PASSWORD}"
|
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}
|
system service-parameter-modify docker ${registry} auth-secret=${secret_uuid}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -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
|
for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry
|
||||||
do
|
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}'`
|
url_path=`system service-parameter-show $uuid | grep value | awk '{print $4}'`
|
||||||
echo $registry URL is $url_path
|
echo $registry URL is $url_path
|
||||||
done
|
done
|
||||||
|
@ -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
|
for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry registryk8s-registry
|
||||||
do
|
do
|
||||||
echo $registry
|
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
|
openstack secret get -d $secret_uuid
|
||||||
done
|
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
|
for registry in docker-registry quay-registry elastic-registry gcr-registry k8s-registry icr-registry ghcr-registry
|
||||||
do
|
do
|
||||||
echo $registry
|
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}'`
|
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
|
echo $url $secret_uuid
|
||||||
if [ "${url}" != "${secret_uuid}" ]; then
|
if [ "${url}" != "${secret_uuid}" ]; then
|
||||||
echo "**** ${registry} not correct"
|
echo "**** ${registry} not correct"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user