Juju 2.9.8 tries to use an empty UID when deleting Kubernetes objects, and cannot remove applications

Bug #1936253 reported by Ryan Barry
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju (Ubuntu)
In Progress
Undecided
Yang Kelvin Liu

Bug Description

I did a little digging on this, and it's definitely the UID on the RBAC role.

I'd blame this commit: https://github.com/juju/juju/commit/35e712ef6bf485aaeb8b718e6e6aa10683e381bc#diff-1bb294296419d47846f2432fb32f22cd9f42745a4c0aa8568f140bf499799b9fR85

Juju calls a factory with a name only:
https://github.com/juju/juju/blob/develop/caas/kubernetes/provider/application/application.go#L934

Then gets a bare struct where UID is definitely empty, and immediately try to delete it with an empty precondition:

https://github.com/juju/juju/blob/dcc82d771253673354f5cd96cc87b528bd81e7b2/caas/kubernetes/provider/resources/clusterrolebinding.go#L31

Ryan Barry (rbarry)
affects: v4l2loopback (Ubuntu) → juju (Ubuntu)
Changed in juju (Ubuntu):
status: New → In Progress
assignee: nobody → Yang Kelvin Liu (kelvin.liu)
Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

https://github.com/juju/juju/pull/13166 will be landed to 2.9 to fix this issue.

Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

sorry wrong link, should be this one https://github.com/juju/juju/pull/13168

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.