nova pause return 'n/a (HTTP 404)'

asked 2011-07-21 06:10:09 -0500

I have encountered problems in using some of the osapi commands. When I tried to use commands such as pause,suspend,action,rescue, the return result is 'n/a (http 404)'. I found that the nova-api.log file contains info of "No route matched for POST...."

Hence, I would like to ask if I have missed something in installing and configuring OpenStack compute.

Any help would be appreciated=]

P.S. Single node configuration

For example:

nova list

+----+----------+---------+-----------+-------------+ | ID | Name | Status | Public IP | Private IP | +----+----------+---------+-----------+-------------+ | 2 | Server 2 | SHUTOFF | | 192.168.4.3 | | 3 | test | ACTIVE | | 192.168.4.2 | | 4 | testname | SHUTOFF | | 192.168.4.4 | +----+----------+---------+-----------+-------------+

nova pause 3

n/a (HTTP 404)

nova list

+----+----------+---------+-----------+-------------+ | ID | Name | Status | Public IP | Private IP | +----+----------+---------+-----------+-------------+ | 2 | Server 2 | SHUTOFF | | 192.168.4.3 | | 3 | test | ACTIVE | | 192.168.4.2 | | 4 | testname | SHUTOFF | | 192.168.4.4 | +----+----------+---------+-----------+-------------+

In nova-api.log: 2011-07-21 11:15:44,711 DEBUG nova.api.openstack [-] Successfully authenticated 'root' from (pid=1416) authenticate /usr/lib/pymodules/python2.7/nova/api/openstack/auth.py:111 2011-07-21 11:15:44,828 DEBUG routes.middleware [-] Matched GET /servers/detail from (pid=1416) __call__ /usr/lib/pymodules/python2.7/routes/middleware.py:100 2011-07-21 11:15:44,829 DEBUG routes.middleware [-] Route path: '/servers/detail', defaults: {'action': u'detail', 'controller': } from (pid=1416) __call__ /usr/lib/pymodules/python2.7/routes/middleware.py:102 2011-07-21 11:15:44,829 DEBUG routes.middleware [-] Match dict: {'action': u'detail', 'controller': } from (pid=1416) __call__ /usr/lib/pymodules/python2.7/routes/middleware.py:103 2011-07-21 11:15:44,829 INFO nova.api.openstack.wsgi [-] GET http://10.0.2.15:8774/v1.0/servers/detail?fresh=1311218144.72 (http://10.0.2.15:8774/v1.0/servers/de...) 2011-07-21 11:15:44,996 INFO nova.api.openstack.wsgi [-] http://10.0.2.15:8774/v1.0/servers/detail?fresh=1311218144.72 (http://10.0.2.15:8774/v1.0/servers/de...) returned with HTTP 200 2011-07-21 11:15:50,758 DEBUG nova.api.openstack [-] Successfully authenticated 'root' from (pid=1416) authenticate /usr/lib/pymodules/python2.7/nova/api/openstack/auth.py:111 2011-07-21 11:15:50,860 DEBUG routes.middleware [-] Matched GET /servers/3 from (pid=1416) __call__ /usr/lib/pymodules/python2.7/routes/middleware.py:100 2011-07-21 11:15:50,860 DEBUG routes.middleware [-] Route path: '/servers/:(id)', defaults: {'action': u'show', 'controller': } from (pid=1416) __call__ /usr/lib/pymodules/python2.7/routes/middleware.py:102 2011-07-21 11:15:50,861 DEBUG routes.middleware [-] Match dict: {'action': u'show', 'controller': , 'id': u'3'} from (pid=1416) __call__ /usr/lib/pymodules/python2.7/routes/middleware.py:103 2011-07-21 11:15:50,861 INFO nova.api.openstack.wsgi [-] GET http://10.0.2.15:8774/v1.0/servers/3?fresh=1311218150.78 (http://10.0.2.15:8774/v1.0/servers/3?...) 2011-07-21 11:15:51,319 INFO nova.api.openstack.wsgi [-] http://10.0.2.15:8774/v1.0/servers/3?fresh=1311218150.78 (http://10.0.2 ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-07-25 01:05:11 -0500

Sorry for the late reply It works fine=] Thanks!

edit flag offensive delete link more
0

answered 2011-07-21 13:04:36 -0500

The 'pause' resource is part of the Admin API. It is an optionally-enabled set of resources on /servers/<id>/ that shouldn't be exposed to non-admin users. Please set the 'allow_admin_api' flag to true, restart, and make your request again.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-07-21 06:10:09 -0500

Seen: 41 times

Last updated: Jul 25 '11