Brief Description
-----------------
With netapp storage backend configured, backup failed due to authenication issue when pulling netapp images from local registry.
Severity
--------
Medium
Steps to Reproduce
------------------
1. Install a lab with netapp stroage backend configured
2. Run backup playbook with "backup_user_local_registry"
ansible-playbook /usr/share/ansible/stx-ansible/playbooks/backup.yml -e "ansible_become_pass=Li69nux* admin_password=Li69nux*" -e "backup_user_local_registry=true"
Expected Behavior
------------------
System backup succeed
Actual Behavior
----------------
System backup failed
Reproducibility
---------------
100%
System Configuration
--------------------
All system types
Timestamp/Logs
--------------
TASK [backup/backup-system : Pull images from local registry to docker filesystem]
fatal: [localhost]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Traceback (most recent call last):\n File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1600394729.9-67720743565920/push_pull_local_registry.py\", line 142, in <module>\n raise Exception(\"Failed to download images %s\" % failed_downloads)\nException: Failed to download images ['registry.local:9001/quay.io/k8scsi/csi-node-driver-registrar:v1.3.0', 'registry.local:9001/quay.io/k8scsi/csi-snapshotter:v2.1.0', 'registry.local:9001/gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0', 'registry.local:9001/gcr.io/kubernetes-helm/tiller:v2.13.1', 'registry.local:9001/tis-lab-registry.cumulus.wrs.com/wind-river/cloud-platform-deployment-manager:WRCP_20.06', 'registry.local:9001/quay.io/k8scsi/csi-provisioner:v1.6.0', 'registry.local:9001/docker.io/starlingx/rvmc:stx.4.0-v1.0.0', 'registry.local:9001/docker.io/netapp/trident:20.04.0', 'registry.local:9001/quay.io/k8scsi/csi-attacher:v2.2.0', 'registry.local:9001/quay.io/k8scsi/csi-resizer:v0.5.0']\n", "stderr_lines": ["Traceback (most recent call last):", " File \"/tmp/.ansible-sysadmin/tmp/ansible-tmp-1600394729.9-67720743565920/push_pull_local_registry.py\", line 142, in <module>", " raise Exception(\"Failed to download images %s\" % failed_downloads)", "Exception: Failed to download images ['registry.local:9001/quay.io/k8scsi/csi-node-driver-registrar:v1.3.0', 'registry.local:9001/quay.io/k8scsi/csi-snapshotter:v2.1.0', 'registry.local:9001/gcr.io/kubebuilder/kube-rbac-proxy:v0.4.0', 'registry.local:9001/gcr.io/kubernetes-helm/tiller:v2.13.1', 'registry.local:9001/tis-lab-registry.cumulus.wrs.com/wind-river/cloud-platform-deployment-manager:WRCP_20.06', 'registry.local:9001/quay.io/k8scsi/csi-provisioner:v1.6.0', 'registry.local:9001/docker.io/starlingx/rvmc:stx.4.0-v1.0.0', 'registry.local:9001/docker.io/netapp/trident:20.04.0', 'registry.local:9001/quay.io/k8scsi/csi-attacher:v2.2.0', 'registry.local:9001/quay.io/k8scsi/csi-resizer:v0.5.0']"], "stdout": " Image download failed: registry.local:9001/quay.io/k8scsi/csi-node-driver-registrar:v1.3.0 500 Server Error: Internal Server Error (\"Get https://registry.local:9001/v2/quay.io/k8scsi/csi-node-driver-registrar/manifests/v1.3.0: unauthorized: authentication required\")\nSleep 10s before retry downloading image registry.local:9001/quay.io/k8scsi/csi-node-driver-registrar:v1.3.0 ...\n Image download failed: registry.local:9001/quay.io/k8scsi/csi-node-driver-registrar:v1.3.0 500 Server Error: Internal Server Error (\"Get https://registry.local:9001/v2/quay.io/k8scsi/csi-node-driver-registrar/manifests/v1.3.0: unauthorized: authentication required\")\nSleep 10s before retry downloading image registry.local:9001/quay.io/k8scsi/csi-node-driver-registrar:v1.3.0 ...\n Image download failed: registry.local:9001/quay.io/k8scsi/csi-node-driver-registrar:v1.3.0 500 Server Error: Internal Server Error (\"Get https://registry.local:9001/v2/quay.io/k8scsi/csi-node-driver-registrar/manifests/v1.3.0: unauthorized: authentication required\")\nSleep 10s before retry
TASK [backup/backup-system : Clear backup_in_progress alarm]
changed: [localhost]
TASK [backup/backup-system : Fail if alarm script throws an exception]
PLAY RECAP
localhost : ok=99 changed=45 unreachable=0 failed=1
Brief Description
-----------------
With netapp storage backend configured, backup failed due to authenication issue when pulling netapp images from local registry.
Severity
--------
Medium
Steps to Reproduce user_local_ registry" ansible/ stx-ansible/ playbooks/ backup. yml -e "ansible_ become_ pass=Li69nux* admin_password= Li69nux* " -e "backup_ user_local_ registry= true"
------------------
1. Install a lab with netapp stroage backend configured
2. Run backup playbook with "backup_
ansible-playbook /usr/share/
Expected Behavior
------------------
System backup succeed
Actual Behavior
----------------
System backup failed
Reproducibility
---------------
100%
System Configuration ------- ------
-------
All system types
Timestamp/Logs backup- system : Pull images from local registry to docker filesystem] .ansible- sysadmin/ tmp/ansible- tmp-1600394729. 9-6772074356592 0/push_ pull_local_ registry. py\", line 142, in <module>\n raise Exception(\"Failed to download images %s\" % failed_ downloads) \nException: Failed to download images ['registry. local:9001/ quay.io/ k8scsi/ csi-node- driver- registrar: v1.3.0' , 'registry. local:9001/ quay.io/ k8scsi/ csi-snapshotter :v2.1.0' , 'registry. local:9001/ gcr.io/ kubebuilder/ kube-rbac- proxy:v0. 4.0', 'registry. local:9001/ gcr.io/ kubernetes- helm/tiller: v2.13.1' , 'registry. local:9001/ tis-lab- registry. cumulus. wrs.com/ wind-river/ cloud-platform- deployment- manager: WRCP_20. 06', 'registry. local:9001/ quay.io/ k8scsi/ csi-provisioner :v1.6.0' , 'registry. local:9001/ docker. io/starlingx/ rvmc:stx. 4.0-v1. 0.0', 'registry. local:9001/ docker. io/netapp/ trident: 20.04.0' , 'registry. local:9001/ quay.io/ k8scsi/ csi-attacher: v2.2.0' , 'registry. local:9001/ quay.io/ k8scsi/ csi-resizer: v0.5.0' ]\n", "stderr_lines": ["Traceback (most recent call last):", " File \"/tmp/ .ansible- sysadmin/ tmp/ansible- tmp-1600394729. 9-6772074356592 0/push_ pull_local_ registry. py\", line 142, in <module>", " raise Exception(\"Failed to download images %s\" % failed_downloads)", "Exception: Failed to download images ['registry. local:9001/ quay.io/ k8scsi/ csi-node- driver- registrar: v1.3.0' , 'registry. local:9001/ quay.io/ k8scsi/ csi-snapshotter :v2.1.0' , 'registry. local:9001/ gcr.io/ kubebuilder/ kube-rbac- proxy:v0. 4.0', 'registry. local:9001/ gcr.io/ kubernetes- helm/tiller: v2.13.1' , 'registry. local:9001/ tis-lab- registry. cumulus. wrs.com/ wind-river/ cloud-platform- deployment- manager: WRCP_20. 06', 'registry. local:9001/ quay.io/ k8scsi/ csi-provisioner :v1.6.0' , 'registry. local:9001/ docker. io/starlingx/ rvmc:stx. 4.0-v1. 0.0', 'registry. local:9001/ docker. io/netapp/ trident: 20.04.0' , 'registry. local:9001/ quay.io/ k8scsi/ csi-attacher: v2.2.0' , 'registry. local:9001/ quay.io/ k8scsi/ csi-resizer: v0.5.0' ]"], "stdout": " Image download failed: registry. local:9001/ quay.io/ k8scsi/ csi-node- driver- registrar: v1.3.0 500 Server Error: Internal Server Error (\"Get https:/ /registry. local:9001/ v2/quay. io/k8scsi/ csi-node- driver- registrar/ manifests/ v1.3.0: unauthorized: authentication required\")\nSleep 10s before retry downloading image registry. local:9001/ quay.io/ k8scsi/ csi-node- driver- registrar: v1.3.0 ...\n Image download failed: registry. local:9001/ quay.io/ k8scsi/ csi-node- driver- registrar: v1.3.0 500 Server Error: Internal Server Error (\"Get https:/ /registry. local:9001/ v2/quay. io/k8scsi/ csi-node- driver- registrar/ manifests/ v1.3.0: unauthorized: authentication required\")\nSleep 10s before retry downloading image registry. local:9001/ quay.io/ k8scsi/ csi-node- driver- registrar: v1.3.0 ...\n Image download failed: registry. local:9001/ quay.io/ k8scsi/ csi-node- driver- registrar: v1.3.0 500 Server Error: Internal Server Error (\"Get https:/ /registry. local:9001/ v2/quay. io/k8scsi/ csi-node- driver- registrar/ manifests/ v1.3.0: unauthorized: authentication required\")\nSleep 10s before retry backup- system : Clear backup_in_progress alarm]
--------------
TASK [backup/
fatal: [localhost]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Traceback (most recent call last):\n File \"/tmp/
TASK [backup/
changed: [localhost]
TASK [backup/ backup- system : Fail if alarm script throws an exception]
PLAY RECAP
localhost : ok=99 changed=45 unreachable=0 failed=1
Test Activity
-------------
Testing