Skip to content
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

Ensure names are unique for all stages #828

Merged
merged 1 commit into from
May 10, 2023

Conversation

davidcassany
Copy link
Contributor

@davidcassany davidcassany commented May 10, 2023

We are suffering from a small yip regression. Since v1.0.0 yip uses a DAG (Directed Acyclic Graph) to sort and relate all the required executions, allowing parallel executions (we have not played with it so far). However one of the side effects is that the dag structures items in a map internally using the step name if provided, hence having two steps with the same name causes the step overwrite.

Exactly this is what is happening in the layout setup, we have two steps for that (recovery and non recovery) with the same name, so one of the two gets ignored...

Fixes #829

Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany davidcassany added the kind/bug Something isn't working label May 10, 2023
@davidcassany davidcassany requested a review from a team as a code owner May 10, 2023 10:08
@kkaempf
Copy link
Contributor

kkaempf commented May 10, 2023

Shouldn't this be detected by yip (iow isn't this a yip bug) ?

Copy link
Contributor

@kkaempf kkaempf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@davidcassany
Copy link
Contributor Author

Shouldn't this be detected by yip (iow isn't this a yip bug) ?

Yes, this is a yip issue. So this is a simple, sane and fully functional workaround for now.

@davidcassany davidcassany merged commit 713b0e7 into rancher:main May 10, 2023
@davidcassany davidcassany deleted the fix_recovery_setup branch May 10, 2023 10:33
@davidcassany
Copy link
Contributor Author

Already opened the yip counter part mudler/yip#88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recovery system does not boot
2 participants