Brief Description
-----------------
Cannot deploy an application by helm chart upload which is pointing to an image on local registry
Severity
--------
Provide the severity of the defect.
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
1. Have a SXT deploymen up an running, with stx-openstack application correctly applied
2. Copy `hello-kitty.tgz` file (attached) to the active controller
3. Modify the `values.yaml` file adding the <REGISTRY IP> on:
- charts/hello-kitty/values.yaml
- charts/hello-kitty.tgz/hello-kitty/values.yaml
3. on active controller do
$ . /etc/platform/openrc
$ system application-upload -n hello-kitty -v 1.0 /home/sysadmin/hello-kitty.tgz
# wait until is uploaded correctly
$ system application-apply hello-kitty
Expected Behavior
------------------
Application should be applied correctly.
Actual Behavior
----------------
Application cannot be applied due cannot download images
NOTE: Note: If we do a `sudo docker pull : <REGISTRY_IP>/gwaines/hellokitty:v1.0` image is pulled correctly, also this works correctly when the image is downloaded from the public registry.
Brief Description
-----------------
Cannot deploy an application by helm chart upload which is pointing to an image on local registry
Severity
--------
Provide the severity of the defect.
Major: System/Feature is usable but degraded
Steps to Reproduce hello-kitty/ values. yaml hello-kitty. tgz/hello- kitty/values. yaml
------------------
1. Have a SXT deploymen up an running, with stx-openstack application correctly applied
2. Copy `hello-kitty.tgz` file (attached) to the active controller
3. Modify the `values.yaml` file adding the <REGISTRY IP> on:
- charts/
- charts/
as follows:
images: IP>/gwaines/ hellokitty: v1.0
pullPolicy: IfNotPresent
tags:
hellokitty: <REGISTRY_
3. on active controller do openrc hello-kitty. tgz
$ . /etc/platform/
$ system application-upload -n hello-kitty -v 1.0 /home/sysadmin/
# wait until is uploaded correctly
$ system application-apply hello-kitty
Expected Behavior
------------------
Application should be applied correctly.
Actual Behavior
----------------
Application cannot be applied due cannot download images
NOTE: Note: If we do a `sudo docker pull : <REGISTRY_ IP>/gwaines/ hellokitty: v1.0` image is pulled correctly, also this works correctly when the image is downloaded from the public registry.
======== Logs ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =
2019-09-12 13:26:40.036 328907 INFO sysinv. conductor. kube_app [-] Application hello-kitty (1.0) upload completed. api.controllers .v1.host [-] Provisioned storage node(s) [] api.controllers .v1.host [-] Provisioned storage node(s) [] openstack. common. rpc.common [-] Connected to AMQP server on 10.10.62.2:5672 conductor. kube_app [-] Register the initial abort status of app hello-kitty conductor. kube_app [-] Application hello-kitty (1.0) apply started. conductor. kube_app [-] Generating application overrides... helm.manifest_ base [req-202eb504- da89-4ce2- 848c-18a0ea84f1 54 admin admin] Delete manifest file /opt/platform/ armada/ 19.08/hello- kitty/1. 0/hello- kitty-manifest- del.yaml generated conductor. kube_app [-] Application overrides generated. conductor. kube_app [-] Image 192.168. 90.60/gwaines/ hellokitty: v1.0 download started from public/private registry conductor. kube_app [-] Image 192.168. 90.60/gwaines/ hellokitty: v1.0 download failed from public/private registry: 'module' object has no attribute 'SERVICE_ PARAM_NAME_ DOCKER_ DOCKER_ REGISTRY' conductor. kube_app [-] Deployment of application hello-kitty (1.0) failed: failed to download one or more image(s). conductor. kube_app Traceback (most recent call last): conductor. kube_app File "/usr/lib64/ python2. 7/site- packages/ sysinv/ conductor/ kube_app. py", line 1812, in perform_app_apply conductor. kube_app self._download_ images( app) conductor. kube_app File "/usr/lib64/ python2. 7/site- packages/ sysinv/ conductor/ kube_app. py", line 763, in _download_images conductor. kube_app reason=reason) conductor. kube_app KubeAppApplyFai lure: Deployment of application hello-kitty (1.0) failed: failed to download one or more image(s). conductor. kube_app conductor. kube_app [-] Application apply aborted!. conductor. kube_app [-] Deregister the abort status of app hello-kitty openstack. common. rpc.amqp [req-202eb504- da89-4ce2- 848c-18a0ea84f1 54 admin admin] Exception during message handling openstack. common. rpc.amqp Traceback (most recent call last): openstack. common. rpc.amqp File "/usr/lib64/ python2. 7/site- packages/ sysinv/ openstack/ common/ rpc/amqp. py", line 438, in _process_data openstack. common. rpc.amqp **args) openstack. common. rpc.amqp File "/usr/lib64/ python2. 7/site- packages/ sysinv/ openstack/ common/ rpc/dispatcher. py", line 172, in dispatch openstack. common. rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs) openstack. common. rpc.amqp File "/usr/lib64/ python2. 7/site- packages/ sysinv/ conductor/ manager. py", line 10172, in perform_app_apply openstack. common. rpc.amqp app_applied = self._app. perform_ app_apply( rpc_app, mode) openstack. common. rpc.amqp File "/usr/lib64/ python2. 7/site- packages/ sysinv/ conductor/ kube_app. py", line 1812, in perform_app_apply openstack. common. rpc.amqp self._download_ images( app) openstack. common. rpc.amqp File "/usr/lib64/ python2. 7/site- packages/ sysinv/ conductor/ kube_app. py", line 763, in _download_images openstack. common. rpc.amqp reason=reason) openstack. common. rpc.amqp KubeAppApplyFai lure: Deployment of application hello-kitty (1.0) failed: failed to download one or more image(s). openstack. common. rpc.amqp
2019-09-12 13:26:41.306 330854 INFO sysinv.
2019-09-12 13:26:41.381 330854 INFO sysinv.
2019-09-12 13:26:43.448 330855 INFO sysinv.
2019-09-12 13:26:43.457 328907 INFO sysinv.
2019-09-12 13:26:43.586 328907 INFO sysinv.
2019-09-12 13:26:43.618 328907 INFO sysinv.
2019-09-12 13:26:43.682 328907 INFO sysinv.
2019-09-12 13:26:43.683 328907 INFO sysinv.
2019-09-12 13:26:43.784 328907 INFO sysinv.
2019-09-12 13:26:43.785 328907 ERROR sysinv.
2019-09-12 13:26:43.786 328907 ERROR sysinv.
2019-09-12 13:26:43.786 328907 TRACE sysinv.
2019-09-12 13:26:43.786 328907 TRACE sysinv.
2019-09-12 13:26:43.786 328907 TRACE sysinv.
2019-09-12 13:26:43.786 328907 TRACE sysinv.
2019-09-12 13:26:43.786 328907 TRACE sysinv.
2019-09-12 13:26:43.786 328907 TRACE sysinv.
2019-09-12 13:26:43.786 328907 TRACE sysinv.
2019-09-12 13:26:44.020 328907 ERROR sysinv.
2019-09-12 13:26:44.020 328907 INFO sysinv.
2019-09-12 13:26:44.021 328907 ERROR sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
2019-09-12 13:26:44.021 328907 TRACE sysinv.
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =====
Reproducibility Intermittent/ Seen once>
---------------
<Reproducible/
100%
System Configuration ------- ------
-------
Multi-node system - Local Storage
Branch/Pull Time/Commit ------- ------- --
-------
Master
OS="centos" "20190913T01300 0Z"
SW_VERSION="19.09"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
JOB="STX_ build_master_ master" "starlingx_ mirror" "2019-09- 13 01:30:00 +0000"
<email address hidden>"
BUILD_NUMBER="247"
BUILD_HOST=
BUILD_DATE=
http:// mirror. starlingx. cengn.ca/ mirror/ starlingx/ master/ centos/ 20190913T013000 Z/
Last Pass
---------
First Time tested
Timestamp/Logs
--------------
File hello-kitty.tgz attached
Test Activity
-------------
Pytest automated suite enablement