Portieris: Applying platform-integ-apps removes portieris helm charts

Bug #1889935 reported by Senthil Mukundakumar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Joseph Richard

Bug Description

Brief Description
-----------------

Portieris: Applying platform-apps removes portieris helm charts.

[sysadmin@controller-0 ~(keystone_admin)]$ system application-list
+--------------------------+----------+-----------------------------------+----------------------------------------+----------+-----------+
| application | version | manifest name | manifest file | status | progress |
+--------------------------+----------+-----------------------------------+----------------------------------------+----------+-----------+
| cert-manager | 20.06-5 | cert-manager-manifest | certmanager-manifest.yaml | applied | completed |
| nginx-ingress-controller | 20.06-0 | nginx-ingress-controller-manifest | nginx_ingress_controller_manifest.yaml | applied | completed |
| oidc-auth-apps | 20.06-27 | oidc-auth-manifest | manifest.yaml | uploaded | completed |
| platform-integ-apps | 20.06-10 | platform-integration-manifest | manifest.yaml | applied | completed |
| portieris | 20.06-14 | portieris-manifest | manifest.yaml | applied | completed |
| vault | 20.06-12 | vault-manifest | vault_manifest.yaml | applied | completed |
+--------------------------+----------+-----------------------------------+----------------------------------------+----------+-----------+

[sysadmin@controller-0 ~(keystone_admin)]$ kubectl apply -f image-policy.yaml
error: unable to recognize "image-policy.yaml": no matches for kind "ImagePolicy" in version "securityenforcement.admission.cloud.ibm.com/v1beta1"

Severity
--------
Minor

Steps to Reproduce
------------------

1. Apply portieris app
source /etc/platform/openrc
system application-upload /usr/local/share/applications/helm/portieris-20.06-0.tgz

echo 'caCert: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURYVENDQWtXZ0F3SUJBZ0lKQUpjVHBXcTk4SWNSTUEwR0NTcUdTSWIzRFFFQkN3VUFNRVV4Q3pBSkJnTlYKQkFZVEFrRlZNUk13RVFZRFZRUUlEQXBUYjIxbExWTjBZWFJsTVNFd0h3WURWUVFLREJoSmJuUmxjbTVsZENCWAphV1JuYVhSeklGQjBlU0JNZEdRd0hoY05NVGd3T0RFMk1qQXlPREl3V2hjTk1qR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BCnpUblpCSy9DVTlRcnhVdzhIeDV6SEFVcHdVcGxONUE4MVROUmlMYVFVTXB5dzQ4Y08wNFcyOWY1aFA2aGMwVDMKSDJpU212OWY2K3Q5TjBvTTFuWVh1blgwWnNJZll1aERmQy83c3N3eDhWcW5uTlNMN0lkQkhodGxhRHJGRXBzdQpGZzZOODBCbGlDclJiN2FPcUk4TWNjdzlCZW9UUk9uVGxVUU5RQkEzTjAyajJvTlhYL2loVHQvZkhNYlZGUFRQCi9nPT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=' > caCert.yaml ; system helm-override-update portieris portieris-certs portieris --values caCert.yaml ;

kubectl create secret docker-registry cumulus2 --docker-server="https://admin-2.cumulus.wrs.com:30093" --docker-username=smukunda --docker-password="Li69nux*" --<email address hidden>"
system application-apply portieris
sleep 90
kubectl apply -f /home/sysadmin/image-policy.yaml

2. Reapply platform-integ-apps
3. Try applying image policy again

Expected Behavior
------------------
Reapplying apps should not affect portieris application

Actual Behavior
----------------
Applying platform-apps removes portieris helm charts

Reproducibility
---------------
Reproducible

System Configuration
--------------------
IPV6 DX

Branch/Pull Time/Commit
-----------------------
2020-07-30_20-00-00

Last Pass
---------
New test case

Timestamp/Logs
--------------

Test Activity
-------------
Feature Testing

Workaround
----------
Remove portieris app and reapply

summary: - Portieris: Applying platform-apps removes portieris helm charts
+ Portieris: Applying platform-integ-apps removes portieris helm charts
Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.5.0 / medium priority - issue with new stx.5.0 feature.

tags: added: stx.5.0 stx.apps stx.retestneeded
Changed in starlingx:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Joseph Richard (josephrichard)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to portieris-armada-app (master)

Fix proposed to branch: master
Review: https://review.opendev.org/744259

Changed in starlingx:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to portieris-armada-app (master)

Reviewed: https://review.opendev.org/744259
Committed: https://git.openstack.org/cgit/starlingx/portieris-armada-app/commit/?id=fa9574c146801e180822a664d43665c90f68aaf8
Submitter: Zuul
Branch: master

commit fa9574c146801e180822a664d43665c90f68aaf8
Author: Joseph Richard <email address hidden>
Date: Fri Jul 31 16:26:03 2020 -0400

    Change prefix from stx to portieris.

    Applying platform-integ-apps was causing portieris to be removed,
    because its prefix was stx. Change prefix to portieris to prevent
    this.

    Also move portieris helm charts to stx-platform repo, for consistency
    with other charts.

    Closes-bug: 1889935
    Change-Id: I72c517c2e9ca8561f0e7e120aefed2936282bd82
    Signed-off-by: Joseph Richard <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Revision history for this message
Senthil Mukundakumar (smukunda) wrote :

Verified in r430_3_4 using load 2020-08-03_20-00-00

tags: removed: stx.retestneeded
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.