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

wwsh is not concurrency safe #259

Open
jlowellwofford opened this issue Sep 16, 2020 · 0 comments
Open

wwsh is not concurrency safe #259

jlowellwofford opened this issue Sep 16, 2020 · 0 comments

Comments

@jlowellwofford
Copy link

This is mostly a note in case some one else runs into this kind of issue.

While writing some config management to wrap around warewulf, I learned that wwsh can have some strange behaviors when it's run concurrently. As a specific reproducer, make multiple wwsh "scripts" that define independent sets of nodes, e.g.

node new n01 ...
node set n01 --netdev eth0 ....
provision set n01 --vnfs=....
...

Cause them to run at the same time with: wwsh --nodhcp < script1 & wwsh --nodchp < script2. This will generally lead to nodes with parameters confused between them.

I have not investigated a root cause, but one hypothesis is that node id generation may not be atomic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants