No error returned if database is locked when trying to add keypair
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 [-DRSBB1DHCAOFH
INFO nova.api [-DRSBB1DHCAOFH
Maybe the return code is correct and the problem is in euca2ools instead.
The euca2ools exception was eaten by the redirection.