You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some rolebindingrestrictions cannot be storage migrated because of a missing namespace #15006
From a prod dataset being tested in #14999. Migration being run on some role binding restrictions is failing.
error: -n AAA rolebindingrestrictions/match-project-admin-user: namespaces "AAA" not found
error: -n BBB rolebindingrestrictions/match-project-admin-user: namespaces "BBB" not found
First, this means that something in the update path is checking for namespace existence on these RBRs. However, if the namespace isn't being changed during an RBR, it shouldn't be checked. That's probably the minimal bug that needs to be fixed here.
However, if the namespace doesn't exist, why is the RBR blocking? RBR shouldn't require a namespace to exist in order to mutate it, unless permission checks are required, and if permission checks ARE required, then it needs to be cleaned up prior to deletion, which it apparently was not.
Would like an answer before we deploy 3.6 to a prod env on Wednesday
We cleaned up the rolebindingrestrictions that had been created before we fixed the problem, but maybe this cluster got left out of the cleanup. I'll dig up the script we gave to ops.
@smarterclayton, do we need to fix anything in migration if these are just rolebindingrestrictions that were created before we fixed the namespace controller to reap rolebindingrestrictions?
@Miciah sent these scripts to the CD team. We will be running them on our free & starter clusters to ensure there are no hiccups during their eventual migration. @smarterclayton ok to remove as delivery-blocker?
It's ok to remove as deliver blocker.
As far as having invalid data, no update should block on not existing
external references, so I'd like this fixed. Update is required to work on
Get, no exceptions
@smarterclayton the namespace lifecycle bits are fixed now and I helped @jupierce clean up the upgrade issues. Based on my discussions with @liggitt our customers are unlikely to hit this since online is the primary user of RBR. Thus I do not think we need to add complexity to our ansible flow to handle auto deleting these orphaned objects. WDYT?
So I still expect a fix in master (maybe not for 3.6.0) which prevents updates on role binding restrictions that are invalid from failing if the user hasn't changed something. Updates that don't change shouldn't fail, period.
So I still expect a fix in master (maybe not for 3.6.0) which prevents updates on role binding restrictions that are invalid from failing if the user hasn't changed something. Updates that don't change shouldn't fail, period.
I thought the point of the migration tool was that there might be changes server-side (in storage content-type or version) that wouldn't be observable from the client side.
@smarterclayton, so what is the best way to determine that user hasn't changed anything?
Also, how about @liggitt's point that user might not have changed anything but there might be changes forced by something on server's side?
In general, isn't this mostly about the architecture of the upgrades and user experience? How exactly is this related to component/auth or area/security?
Much of the validation code for Updates does that check.
Server side changes are usually done by someone with permissions.
It's component/auth because that's who owns the code that is not conformant (the rolebinding restriction code)
what is the best way to determine that user hasn't changed anything?
So migrate can always tell if something was changed when the resource version returned is different (but the change could be only on the server side and the client did not actually change anything).
But there is not a good way to guarantee that an update that changes nothing from the client's prescriptive never fails.
Activity
deads2k commentedon Jul 5, 2017
Namespace lifecycle admission plugin?
Miciah commentedon Jul 5, 2017
I don't see a reason that would affect rolebindingrestrictions specifically though.
deads2k commentedon Jul 5, 2017
You didn't get cleaned up when a namespace was deleted. I remember a bug about it.
Miciah commentedon Jul 5, 2017
That would be #13563.
We cleaned up the rolebindingrestrictions that had been created before we fixed the problem, but maybe this cluster got left out of the cleanup. I'll dig up the script we gave to ops.
@smarterclayton, do we need to fix anything in migration if these are just rolebindingrestrictions that were created before we fixed the namespace controller to reap rolebindingrestrictions?
jupierce commentedon Jul 5, 2017
@Miciah sent these scripts to the CD team. We will be running them on our free & starter clusters to ensure there are no hiccups during their eventual migration. @smarterclayton ok to remove as delivery-blocker?
smarterclayton commentedon Jul 6, 2017
smarterclayton commentedon Jul 7, 2017
Note that this failure breaks upgrades for users (now that storage migration is in the upgrade path). So will have to be fixed in 3.6.x.
1 remaining item
enj commentedon Jul 11, 2017
@smarterclayton the namespace lifecycle bits are fixed now and I helped @jupierce clean up the upgrade issues. Based on my discussions with @liggitt our customers are unlikely to hit this since online is the primary user of RBR. Thus I do not think we need to add complexity to our ansible flow to handle auto deleting these orphaned objects. WDYT?
smarterclayton commentedon Jul 12, 2017
enj commentedon Jul 12, 2017
I do not know what you mean by "full migration" - storage migration runs with
--include=*as of openshift/openshift-ansible/pull/4533smarterclayton commentedon Jul 12, 2017
Yes, that is full migration.
smarterclayton commentedon Jul 12, 2017
So I still expect a fix in master (maybe not for 3.6.0) which prevents updates on role binding restrictions that are invalid from failing if the user hasn't changed something. Updates that don't change shouldn't fail, period.
liggitt commentedon Jul 18, 2017
I thought the point of the migration tool was that there might be changes server-side (in storage content-type or version) that wouldn't be observable from the client side.
Merge pull request #15721 from enj/enj/u/request_info_err/49868
adelton commentedon Sep 8, 2017
@smarterclayton, so what is the best way to determine that user hasn't changed anything?
Also, how about @liggitt's point that user might not have changed anything but there might be changes forced by something on server's side?
In general, isn't this mostly about the architecture of the upgrades and user experience? How exactly is this related to component/auth or area/security?
smarterclayton commentedon Sep 8, 2017
enj commentedon Sep 8, 2017
So migrate can always tell if something was changed when the resource version returned is different (but the change could be only on the server side and the client did not actually change anything).
But there is not a good way to guarantee that an update that changes nothing from the client's prescriptive never fails.
Merge pull request #15213 from enj/enj/i/migrate_oprhaned_resources/1…