Brief Description
-----------------
metrics-server-1.1-40.tgz is failing to apply. When applying the fluxCD manifests it fails because the metrics-server namespace has not yet been created.
Severity
--------
Provide the severity of the defect.
Critical:
Steps to Reproduce
------------------
1 - system application-upload /usr/local/share/applications/helm/metrics-server-1.1-40.tgz
2 - system application-apply metrics-server
Expected Behavior
------------------
metrics-server applies
Actual Behavior
----------------
Apply operation aborted
Reproducibility
---------------
Reproducible
System Configuration
--------------------
AIO-SX, AIO-DX+, Std
Branch/Pull Time/Commit
-----------------------
SW_VERSION="23.09"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="2023-12-15_19-00-10"
SRC_BUILD_ID="1605"
Last Pass
---------
n/a
Timestamp/Logs
--------------
etrics-server-sample-app:stx.7.0-v1.0.0 after push to local registry.
sysinv 2023-12-20 18:07:56.252 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application platform-integ-apps (1.2-118) started {'mode': 'auto', 'lifecycle_type': 'check', 'relative_timing': 'pre', 'operation': 'update', 'extra': {'from_app': True}}.
sysinv 2023-12-20 18:07:56.458 20113 INFO sysinv.conductor.kube_app [-] Image registry.local:9001/docker.io/starlingx/stx-metrics-server-sample-app:stx.7.0-v1.0.0 download succeeded in 12 seconds
sysinv 2023-12-20 18:07:56.459 20113 INFO sysinv.conductor.kube_app [-] All docker images for application metrics-server were successfully downloaded in 12 seconds
sysinv 2023-12-20 18:07:56.459 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application metrics-server (1.1-40) started {'mode': 'manual', 'lifecycle_type': 'manifest', 'relative_timing': 'pre', 'operation': 'apply', 'extra': {}}.
sysinv 2023-12-20 18:07:56.464 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application metrics-server (1.1-40) started {'lifecycle_type': 'fluxcd-request', 'relative_timing': 'pre', 'operation': 'apply', 'extra': {}}.
sysinv 2023-12-20 18:07:56.527 20113 INFO sysinv.conductor.kube_app [-] Doing FluxCD operation apply with the following manifest: /opt/platform/fluxcd/23.09/metrics-server/1.1-40/metrics-server-fluxcd-manifests
sysinv 2023-12-20 18:07:56.559 20113 INFO sysinv.common.rest_api [-] GET cmd:http://192.168.204.1:5491/v1/query/ hdr:None payload:None
sysinv 2023-12-20 18:07:56.641 20113 INFO sysinv.common.rest_api [-] GET cmd:http://localhost:30001/nfvi-plugins/v1/sw-update hdr:{'Content-type': 'application/json', 'User-Agent': 'sysinv/1.0'} payload:None
sysinv 2023-12-20 18:07:57.551 20113 ERROR sysinv.conductor.kube_app [-] Command: kubectl --kubeconfig /etc/kubernetes/admin.conf apply -k /opt/platform/fluxcd/23.09/metrics-server/1.1-40/metrics-server-fluxcd-manifests; Error: Error from server (NotFound): error when creating "/opt/platform/fluxcd/23.09/metrics-server/1.1-40/metrics-server-fluxcd-manifests": namespaces "metrics-server" not found
Error from server (NotFound): error when creating "/opt/platform/fluxcd/23.09/metrics-server/1.1-40/metrics-server-fluxcd-manifests": namespaces "metrics-server" not found
Error from server (NotFound): error when creating "/opt/platform/fluxcd/23.09/metrics-server/1.1-40/metrics-server-fluxcd-manifests": namespaces "metrics-server" not found
Error from server (NotFound): error when creating "/opt/platform/fluxcd/23.09/metrics-server/1.1-40/metrics-server-fluxcd-manifests": namespaces "metrics-server" not found
sysinv 2023-12-20 18:07:57.551 20113 ERROR sysinv.conductor.kube_app [-] Applying /opt/platform/fluxcd/23.09/metrics-server/1.1-40/metrics-server-fluxcd-manifests failed. Skipping helm release cleanup...
sysinv 2023-12-20 18:07:57.552 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application metrics-server (1.1-40) started {'lifecycle_type': 'fluxcd-request', 'relative_timing': 'post', 'operation': 'apply', 'extra': {'rc': False}}.
sysinv 2023-12-20 18:07:57.552 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application metrics-server (1.1-40) started {'mode': 'manual', 'lifecycle_type': 'rbd', 'relative_timing': 'post', 'operation': 'apply', 'extra': {}}.
sysinv 2023-12-20 18:07:57.552 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application metrics-server (1.1-40) started {'mode': 'manual', 'lifecycle_type': 'resource', 'relative_timing': 'post', 'operation': 'apply', 'extra': {}}.
sysinv 2023-12-20 18:07:57.695 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application nginx-ingress-controller (1.0-50) started {'mode': 'auto', 'lifecycle_type': 'check', 'relative_timing': 'pre', 'operation': 'update', 'extra': {'from_app': True}}.
sysinv 2023-12-20 18:07:57.706 20113 ERROR sysinv.conductor.kube_app [-] Application apply aborted!.
sysinv 2023-12-20 18:07:57.706 20113 INFO sysinv.conductor.kube_app [-] Deregister the abort status of app metrics-server
sysinv 2023-12-20 18:07:57.706 20113 INFO sysinv.conductor.kube_app [-] lifecycle hook for application metrics-server (1.1-40) started {'mode': 'manual', 'lifecycle_type': 'operation', 'relative_timing': 'post', 'operation': 'apply', 'extra': {'app_applied': False}}.
Test Activity
-------------
Testing
Workaround
----------
https://review.opendev.org/c/starlingx/metrics-server-armada-app/+/904153