Same node handed out in response to two parallel 'acquire' requests
Bug #1382575 reported by
Jason Hobbs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jason Hobbs |
Bug Description
I have a script that uses the cli to acquire nodes in quick succession in parallel, in two separate processes. I do 30 acquire node requests, and all return successfully. However, less than 30 unique system-ids are returned, so sometimes MAAS is handing out the same system ID in response to multiple node acquire requests.
This was initially reported by a user and I have confirmed it on my own setup, on MAAS 1.7.0~beta6+
Related branches
lp:~jason-hobbs/maas/lock-around-node-acquire
- Gavin Panella (community): Approve
- Blake Rouse (community): Approve
- Raphaël Badin: Pending requested
-
Diff: 126 lines (+38/-3)5 files modifiedsrc/maasserver/api/nodes.py (+8/-2)
src/maasserver/api/tests/test_nodes.py (+11/-0)
src/maasserver/locks.py (+3/-0)
src/maasserver/node_action.py (+4/-1)
src/maasserver/tests/test_node_action.py (+12/-0)
lp:~jason-hobbs/maas/run-single-process-single-thread
Rejected
for merging
into
lp:~maas-committers/maas/trunk
- Andres Rodriguez (community): Disapprove
- Christian Reis (community): Needs Information
-
Diff: 12 lines (+4/-1)1 file modifiedcontrib/maas-http.conf (+4/-1)
lp:~andreserl/maas/fix_lp1382575
Rejected
for merging
into
lp:~maas-committers/maas/trunk
- Gavin Panella (community): Disapprove
- MAAS Maintainers: Pending requested
-
Diff: 66 lines (+4/-10)3 files modifiedcontrib/maas_local_settings.py (+0/-6)
src/maas/development.py (+2/-2)
src/maas/settings.py (+2/-2)
lp:~andreserl/maas/pkg_beta8_release
- Julian Edwards (community): Approve
- Christian Reis (community): Approve
-
Diff: 36 lines (+13/-3)2 files modifieddebian/changelog (+12/-2)
debian/rules (+1/-1)
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've attached a script that reproduces the issue.
You can work around this issue by editing the first line of "/etc/maas/ maas-http. conf" changing 'processes=2' to 'processes=1'.