start_up uses database lock outside of transaction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Gavin Panella | ||
1.5 |
Fix Released
|
Critical
|
Gavin Panella | ||
maas (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Trusty |
Fix Released
|
Critical
|
Greg Lutostanski |
Bug Description
[Impact]
* When using new locking code, this is used to prevent an error on maas server startup when asking for a lock when not in a transaction
[Testcase]
* Run included tests in test_start_up.py
[Regression Potential]
* Minimal
mod_wsgi (pid=26521): Exception occurred processing WSGI script '/usr/share/
Traceback (most recent call last):
File "/usr/share/
start_up()
File "/usr/lib/
with locks.startup:
File "/usr/lib/
raise DatabaseLockAtt
DatabaseLockAtt
mod_wsgi (pid=26522): Target WSGI script '/usr/share/
mod_wsgi (pid=26522): Exception occurred processing WSGI script '/usr/share/
Traceback (most recent call last):
File "/usr/share/
start_up()
File "/usr/lib/
with locks.startup:
File "/usr/lib/
raise DatabaseLockAtt
DatabaseLockAtt
Related branches
- Julian Edwards (community): Approve
-
Diff: 26 lines (+7/-3)1 file modifiedsrc/maasserver/start_up.py (+7/-3)
- Gavin Panella (community): Approve
-
Diff: 26 lines (+7/-3)1 file modifiedsrc/maasserver/start_up.py (+7/-3)
description: | updated |
Changed in maas (Ubuntu Trusty): | |
status: | New → Fix Committed |
importance: | Undecided → Critical |
assignee: | nobody → Greg Lutostanski (lutostag) |
milestone: | none → trusty-updates |
Changed in maas (Ubuntu): | |
importance: | Undecided → Critical |
This bug was fixed in the package maas - 1.6.1+bzr2550- 0ubuntu1
--------------- bzr2550- 0ubuntu1) utopic; urgency=medium
maas (1.6.1+
* New upstream bugfix release:
- Auto-link node MACs to Networks (LP: #1341619)
[ Julian Edwards ] maas-region- controller. postinst: Don't restart RabbitMQ on
* debian/
upgrades, just ensure it's running. Should prevent a race with the
cluster celery restarting.
* debian/rules: Pull upstream branch from the right place.
[ Andres Rodriguez ] maas-region- controller. postinst: Ensure cluster celery is
* debian/
started if it also runs on the region.
-- Julian Edwards <email address hidden> Thu, 21 Aug 2014 18:38:27 +1000