No error returned if database is locked when trying to add keypair

Bug #710596 reported by Thierry Carrez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Running bzr640 with sqlite DB backend:

euca-add-keypair mykey > mykey.priv
chmod 600 mykey.priv
euca-run-instances ami-g06qbntt -k mykey -t m1.tiny
NotFound: no keypair for user ttx, name mykey

Looking at the logs, it appears that the euca-add-keypair call failed because the database was locked:
ERROR nova.exception [-] DB exception wrapped
 ... OperationalError: (OperationalError) database is locked ...
ERROR nova.api [-DRSBB1DHCAOFHVBZ-ZF ttx IRT] UnknownError: An unknown error has occurred. Please try your request again.
INFO nova.api [-DRSBB1DHCAOFHVBZ-ZF ttx IRT] 8.70466s 192.168.0.111 GET / None:None 400 [Boto/1.9b (linux2)] text/plain text/xml

Maybe the return code is correct and the problem is in euca2ools instead.

Revision history for this message
Thierry Carrez (ttx) wrote :

The euca2ools exception was eaten by the redirection.

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.