** Description changed:

+ [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/maas/wsgi.py'.
  Traceback (most recent call last):
-   File "/usr/share/maas/wsgi.py", line 32, in <module>
-     start_up()
-   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 54, in 
start_up
-     with locks.startup:
-   File "/usr/lib/python2.7/dist-packages/maasserver/utils/dblocks.py", line 
77, in __enter__
-     raise DatabaseLockAttemptOutsideTransaction(self)
+   File "/usr/share/maas/wsgi.py", line 32, in <module>
+     start_up()
+   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 54, in 
start_up
+     with locks.startup:
+   File "/usr/lib/python2.7/dist-packages/maasserver/utils/dblocks.py", line 
77, in __enter__
+     raise DatabaseLockAttemptOutsideTransaction(self)
  DatabaseLockAttemptOutsideTransaction: <DatabaseLock classid=20120116 objid=1>
  mod_wsgi (pid=26522): Target WSGI script '/usr/share/maas/wsgi.py' cannot be 
loaded as Python module.
  mod_wsgi (pid=26522): Exception occurred processing WSGI script 
'/usr/share/maas/wsgi.py'.
  Traceback (most recent call last):
-   File "/usr/share/maas/wsgi.py", line 32, in <module>
-     start_up()
-   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 54, in 
start_up
-     with locks.startup:
-   File "/usr/lib/python2.7/dist-packages/maasserver/utils/dblocks.py", line 
77, in __enter__
-     raise DatabaseLockAttemptOutsideTransaction(self)
+   File "/usr/share/maas/wsgi.py", line 32, in <module>
+     start_up()
+   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 54, in 
start_up
+     with locks.startup:
+   File "/usr/lib/python2.7/dist-packages/maasserver/utils/dblocks.py", line 
77, in __enter__
+     raise DatabaseLockAttemptOutsideTransaction(self)
  DatabaseLockAttemptOutsideTransaction: <DatabaseLock classid=20120116 objid=1>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1325759

Title:
  start_up uses database lock outside of transaction

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1325759/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to