Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Python by k ( 14 years ago )
. /home/kost/openstack/nova/nova/novarc
root@island106:~/openstack/nova# . /home/kost/openstack/nova/nova/novarc
root@island106:~/openstack/nova# euca-add-keypair test > test.pem
root@island106:~/openstack/nova# euca-run-instances -k test -t m1.tiny ami-tiny
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/pymodules/python2.6/eventlet/wsgi.py", line 336, in handle_one_response
result = self.application(self.environ, start_response)
File "/usr/lib/pymodules/python2.6/paste/urlmap.py", line 203, in __call__
return app(environ, start_response)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/home/kost/openstack/nova/nova/nova/api/ec2/__init__.py", line 59, in __call__
rv = req.get_response(self.application)
File "/usr/lib/pymodules/python2.6/webob/request.py", line 918, in get_response
application, catch_exc_info=False)
File "/usr/lib/pymodules/python2.6/webob/request.py", line 886, in call_application
app_iter = application(self.environ, start_response)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 147, in __call__
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/pymodules/python2.6/webob/dec.py", line 208, in call_func
return self.func(req, *args, **kwargs)
File "/home/kost/openstack/nova/nova/nova/api/ec2/__init__.py", line 170, in __call__
req.path)
File "/home/kost/openstack/nova/nova/nova/auth/manager.py", line 260, in authenticate
user = self.get_user_from_access_key(access_key)
File "/home/kost/openstack/nova/nova/nova/auth/manager.py", line 606, in get_user_from_access_key
user_dict = drv.get_user_from_access_key(access_key)
File "/home/kost/openstack/nova/nova/nova/auth/dbdriver.py", line 53, in get_user_from_access_key
user = db.user_get_by_access_key(context.get_admin_context(), access)
File "/home/kost/openstack/nova/nova/nova/db/api.py", line 832, in user_get_by_access_key
return IMPL.user_get_by_access_key(context, access_key)
File "/home/kost/openstack/nova/nova/nova/db/sqlalchemy/api.py", line 96, in wrapper
return f(*args, **kwargs)
File "/home/kost/openstack/nova/nova/nova/db/sqlalchemy/api.py", line 1728, in user_get_by_access_key
filter_by(deleted=can_read_deleted(context)).
File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/query.py", line 1496, in first
ret = list(self[0:1])
File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/query.py", line 1405, in __getitem__
return list(res)
File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/query.py", line 1565, in __iter__
return self._execute_and_instances(context)
File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/query.py", line 1570, in _execute_and_instances
mapper=self._mapper_zero_or_none())
File "/usr/lib/pymodules/python2.6/sqlalchemy/orm/session.py", line 735, in execute
clause, params or {})
File "/usr/lib/pymodules/python2.6/sqlalchemy/engine/base.py", line 1157, in execute
params)
File "/usr/lib/pymodules/python2.6/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement
return self.__execute_context(context)
File "/usr/lib/pymodules/python2.6/sqlalchemy/engine/base.py", line 1268, in __execute_context
context.parameters[0], context=context)
File "/usr/lib/pymodules/python2.6/sqlalchemy/engine/base.py", line 1367, in _cursor_execute
context)
File "/usr/lib/pymodules/python2.6/sqlalchemy/engine/base.py", line 1360, in _cursor_execute
context)
File "/usr/lib/pymodules/python2.6/sqlalchemy/engine/default.py", line 288, in do_execute
cursor.execute(statement, parameters)
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, users.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' (u'admin', False)
root@island106:~/openstack/nova# euca-describe-instances
0$ nova 1$ api 2$ objectstore 3$ compute 4$ network 5$ scheduler 6$ volume 7-$ ajax_console_proxy 8$* test
mysql> select * from users;
+---------------------+------------+------------+---------+-------+------+------------+------------+----------+
| created_at | updated_at | deleted_at | deleted | id | name | access_key | secret_key | is_admin |
+---------------------+------------+------------+---------+-------+------+------------+------------+----------+
| 2011-01-26 15:13:28 | NULL | NULL | 0 | admin | NULL | admin | admin | 1 |
+---------------------+------------+------------+---------+-------+------+------------+------------+----------+
1 row in set (0.00 sec)
Revise this Paste
Parent: 27974