euca-add-keypair fails with MySQL chosen in nova.sh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Vish Ishaya |
Bug Description
Hi:
1) I'm running Ubuntu Server 10.04.1 LTS fresh install on bare metal.
2) I Installed OpenStack via nova.sh script no problem (Trunk Revision 643)
3) Jump to screen 8 and do: euca-add-keypair mykey > mykey.priv
I get the following stack trace in mykey.priv:
Warning: failed to parse error message from AWS: <unknown>:1:0: syntax error
BotoServerError: 500 Internal Server Error
Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
return app(environ, start_response)
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/home/
rv = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/home/
req.path)
File "/home/
user = self.get_
File "/home/
user_dict = drv.get_
File "/home/
user = db.user_
File "/home/
return IMPL.user_
File "/home/
return f(*args, **kwargs)
File "/home/
filter_
File "/usr/lib/
ret = list(self[0:1])
File "/usr/lib/
return list(res)
File "/usr/lib/
return self._execute_
File "/usr/lib/
mapper=
File "/usr/lib/
clause, params or {})
File "/usr/lib/
params)
File "/usr/lib/
return self.__
File "/usr/lib/
context.
File "/usr/lib/
context)
File "/usr/lib/
context)
File "/usr/lib/
context.
File "/usr/lib/
context)
File "/usr/lib/
context)
File "/usr/lib/
cursor.
OperationalError: (OperationalError) no such table: users u'SELECT users.created_at AS users_created_at, users.updated_at AS users_updated_at, users.deleted_at AS users_deleted_at, users.deleted AS users_deleted, users.id AS users_id, us
ers.name AS users_name, users.access_key AS users_access_key, users.secret_key AS users_secret_key, users.is_admin AS users_is_admin \nFROM users \nWHERE users.access_key = ? AND users.deleted = ? \n LIMIT 1 OFFSET 0' ('admin', False)
Note 1: nova.sqlite works fine.
Note 2: users table does exist in nova database in MySQL.
Cheers,
Dave
Related branches
- Rick Harris (community): Approve
- Josh Kearney (community): Approve
-
Diff: 19 lines (+2/-0)1 file modifiedbin/nova-api (+2/-0)
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
Solved it using this answer: https:/ /answers. launchpad. net/nova/ +question/ 134376