-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] m2m completes successfully when publishing to incorrect namespace #468
Comments
In this instance a new workspace would be created if the sequence number is not 1, there would be an error. for the disk to mirror workflow. So this should only happen in the instance where a imageset was published for the first time as a new workspace in one namespace and then subsequently in another. For disk to mirror and mirror to mirror workflows, I would not like to add this constraint as publishing with different namespace is a tactic being used for image promotion. |
Discussed out of band. The solution would be to disallow the publishing of a differential imageset if there is no instance of metadata in the target namespace. |
Currently, mirror to mirror operations do not check the sequence number when publishing since there are no layer differential considerations. However, sequence checking still needs to be done to ensure the target namespace is not changed on a differentials run. Fixes openshift#468 Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Currently, mirror to mirror operations do not check the sequence number when publishing since there are no layer differential considerations. However, sequence checking still needs to be done to ensure the target namespace is not changed on a differentials run. Fixes openshift#468 Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
…perations (#473) * fix(mirror): adds sequence checks for mirror to mirror operations Currently, mirror to mirror operations do not check the sequence number when publishing since there are no layer differential considerations. However, sequence checking still needs to be done to ensure the target namespace is not changed on a differentials run. Fixes #468 Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * test: adds additional test cases to sequence check unit test Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
Version
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.2.0-alpha.1-36-g7d88d4e", GitCommit:"7d88d4e8", GitTreeState:"clean", BuildDate:"2022-05-16T20:28:02Z", GoVersion:"go1.18", Compiler:"gc", Platform:"linux/amd64"}
What happened?
when publishing m2m differential synchronizations, if an incorrect namespace is targeted for publishing, oc-mirror does not produce a sequence error as expected.
What did you expect to happen?
differential syncs should error if published to a different registry namespace than previous syncs.
How to reproduce it (as minimally and precisely as possible)?
publish a to a mirror registry namespace and then use m2m to publish a diff to a different namespace.
The text was updated successfully, but these errors were encountered: