juju destroy model doesn't delete clusterrole in microk8s

Bug #1948344 reported by Andy Wu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Confirmed
Low
Unassigned

Bug Description

juju add-model will create a clusterrole : <modelname>-modeloperator in microk8s, however , when the model is destroyed, the clusterrole associated with the model is not deleted in microk8s

Steps to reproduce:

1. creat a new juju model
ubuntu@microk8s:~$ juju add-model test-model
Added 'test-model' model on microk8s/localhost with credential 'microk8s' for user 'admin'

2. check clusterrole
ubuntu@microk8s:~$ kubectl get clusterroles | grep test-model
test-model-modeloperator 2021-10-21T19:50:37Z

3. delete the juju model
ubuntu@microk8s:~$ juju destroy-model test-model
WARNING! This command will destroy the "test-model" model.
This includes all containers, applications, data and other resources.

Continue [y/N]? y
Destroying model
Waiting for model to be removed.......................
Model destroyed.

4. the previous clusterrole still remain
ubuntu@microk8s:~$ kubectl get clusterroles | grep test-model
test-model-modeloperator 2021-10-21T19:50:37Z

Changed in juju:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This Medium-priority bug has not been updated in 60 days, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.