[Starlingx-discuss] Help on test Helm Chart deployment
Hi I’m executing on of the test cases of the `automated-pytest-suite` [1] (testcases/functional/z_containers/test_custom_containers.py::test_upload_charts_via_helm_upload) to test uploading helm charts and deploy an application. First time I executed failed due was not able to download images from Image gwaines/hellokitty:v1.0, that is normal due we don’t have access to the internet, so I modified the values on the chart to point to our local registry delete the application and re executed the test, but still failing, is still searching at Image gwaines/hellokitty:v1.0 and not taking the changes that I made to the chart. Someone can help on this, why are the changes not being applied? Note: If I do a `sudo docker pull : <REGISTRY_IP>/gwaines/hellokitty:v1.0` image is pulled correctly so I’m not sure why on the chart is not taking the changes that I made adding the REGISTRY_IP ---- Modification on the chart (on values.yaml) on both tgz files ----- images: pullPolicy: IfNotPresent tags: hellokitty: <REGISTRY_IP>/gwaines/hellokitty:v1.0 ---- original values.yaml file # Default values for hello-kitty. # This is a YAML-formatted file. # Declare variables to be passed into your templates. replicaCount: 1 images: pullPolicy: IfNotPresent tags: hellokitty: gwaines/hellokitty:v1.0 service: name: hellokitty type: NodePort externalPort: 55555 internalPort: 80 resources: limits: cpu: 100m memory: 128Mi requests: cpu: 100m memory: 128Mi ---- ERROR ----- 2019-09-11 12:04:15.518 1889368 INFO sysinv.helm.manifest_base [req-c06a3066-303f-42ea-91db-f8e989efbec4 admin admin] Delete manifest file /opt/platform/armada/19.08/hello-kitty/1.0/hello-kitty-manifest-del.yaml generated 2019-09-11 12:04:15.519 1889368 INFO sysinv.conductor.kube_app [-] Application overrides generated. 2019-09-11 12:04:15.631 1889368 INFO sysinv.conductor.kube_app [-] Image gwaines/hellokitty:v1.0 download started from public/private registry 2019-09-11 12:04:15.633 1889368 ERROR sysinv.conductor.kube_app [-] Image gwaines/hellokitty:v1.0 download failed from public/private registry: 'module' object has no attribute 'SERVICE_PARAM_NAME_DOCKER_DOCKER_REGISTRY' 2019-09-11 12:04:15.634 1889368 ERROR sysinv.conductor.kube_app [-] Deployment of application hello-kitty (1.0) failed: failed to download one or more image(s). 2019-09-11 12:04:15.634 1889368 TRACE sysinv.conductor.kube_app Traceback (most recent call last): 2019-09-11 12:04:15.634 1889368 TRACE sysinv.conductor.kube_app File "/usr/lib64/python2.7/site-packages/sysinv/conductor/kube_app.py", line 1812, in perform_app_apply 2019-09-11 12:04:15.634 1889368 TRACE sysinv.conductor.kube_app self._download_images(app) 2019-09-11 12:04:15.634 1889368 TRACE sysinv.conductor.kube_app File "/usr/lib64/python2.7/site-packages/sysinv/conductor/kube_app.py", line 763, in _download_images 2019-09-11 12:04:15.634 1889368 TRACE sysinv.conductor.kube_app reason=reason) 2019-09-11 12:04:15.634 1889368 TRACE sysinv.conductor.kube_app KubeAppApplyFailure: Deployment of application hello-kitty (1.0) failed: failed to download one or more image(s). 2019-09-11 12:04:15.634 1889368 TRACE sysinv.conductor.kube_app 2019-09-11 12:04:15.910 1889368 ERROR sysinv.conductor.kube_app [-] Application apply aborted!. 2019-09-11 12:04:15.911 1889368 INFO sysinv.conductor.kube_app [-] Deregister the abort status of app hello-kitty 2019-09-11 12:04:15.911 1889368 ERROR sysinv.openstack.common.rpc.amqp [req-c06a3066-303f-42ea-91db-f8e989efbec4 admin admin] Exception during message handling 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp Traceback (most recent call last): 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp File "/usr/lib64/python2.7/site-packages/sysinv/openstack/common/rpc/amqp.py", line 438, in _process_data 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp **args) 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp File "/usr/lib64/python2.7/site-packages/sysinv/openstack/common/rpc/dispatcher.py", line 172, in dispatch 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs) 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp File "/usr/lib64/python2.7/site-packages/sysinv/conductor/manager.py", line 10172, in perform_app_apply 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp app_applied = self._app.perform_app_apply(rpc_app, mode) 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp File "/usr/lib64/python2.7/site-packages/sysinv/conductor/kube_app.py", line 1812, in perform_app_apply 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp self._download_images(app) 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp File "/usr/lib64/python2.7/site-packages/sysinv/conductor/kube_app.py", line 763, in _download_images 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp reason=reason) 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp KubeAppApplyFailure: Deployment of application hello-kitty (1.0) failed: failed to download one or more image(s). 2019-09-11 12:04:15.911 1889368 TRACE sysinv.openstack.common.rpc.amqp 1. https://opendev.org/starlingx/test/src/branch/master/automated-pytest-suite Regards Jose --
participants (1)
-
Perez Carranza, Jose