Backup & Restore: Prevent backup from proceeding if portieris is enabled

Bug #1891730 reported by Ghada Khalil
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Joseph Richard

Bug Description

Brief Description
-----------------
Currently, if a user does a backup & restore with the portieris application enabled, the restore fails as per LP: https://bugs.launchpad.net/starlingx/+bug/1890630 and the system is left in a bad state.

As a short term solution, the backup should return an error asking the user to remove the application before proceeding.

Severity
--------
Minor

Steps to Reproduce
------------------
See https://bugs.launchpad.net/starlingx/+bug/1890630 for steps

Expected Behavior
------------------
The backup should be rejected asking the user to remove the poertieris app

Actual Behavior
----------------
State what is the actual behavior

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

System Configuration
--------------------
any

Branch/Pull Time/Commit
-----------------------
stx master as of 2020-08-04_20-00-00

Last Pass
---------
Never - new test-case

Timestamp/Logs
--------------
N/A

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

Workaround
----------
Remove the portieris application before starting the backup:
system application-remove portieris
kubectl delete clusterroles.rbac.authorization.k8s.io portieris

kubectl delete clusterrolebindings.rbac.authorization.k8s.io admission-portieris-webhook

kubectl delete -n portieris secret/portieris-certs

kubectl delete -n portieris cm/image-policy-crds
kubectl delete -n portieris serviceaccounts/portieris

Ghada Khalil (gkhalil)
Changed in starlingx:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Joseph Richard (josephrichard)
Ghada Khalil (gkhalil)
tags: added: stx.5.0 stx.apps stx.update
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-playbooks (master)

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

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

Reviewed: https://review.opendev.org/747327
Committed: https://git.openstack.org/cgit/starlingx/ansible-playbooks/commit/?id=888fa40a23433198d7e882708c957af0eab37585
Submitter: Zuul
Branch: master

commit 888fa40a23433198d7e882708c957af0eab37585
Author: Joseph Richard <email address hidden>
Date: Thu Aug 20 23:46:03 2020 -0400

    Block system backup when portieris applied

    B&R is not currently supported with portieris installed, due to webhook
    blocking mutating pods, while portieris pods can't run because the
    local registry has not been populated yet.

    Block until a fix is implemented.

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

Changed in starlingx:
status: In Progress → Fix Released
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.