nova pause return 'n/a (HTTP 404)'
I have encountered problems in using some of the osapi commands. When I tried to use commands such as pause,suspend,
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/
2011-07-21 11:15:44,828 DEBUG routes.middleware [-] Matched GET /servers/detail from (pid=1416) __call__ /usr/lib/
2011-07-21 11:15:44,829 DEBUG routes.middleware [-] Route path: '/servers/detail', defaults: {'action': u'detail', 'controller': <nova.api.
2011-07-21 11:15:44,829 DEBUG routes.middleware [-] Match dict: {'action': u'detail', 'controller': <nova.api.
2011-07-21 11:15:44,829 INFO nova.api.
2011-07-21 11:15:44,996 INFO nova.api.
2011-07-21 11:15:50,758 DEBUG nova.api.openstack [-] Successfully authenticated 'root' from (pid=1416) authenticate /usr/lib/
2011-07-21 11:15:50,860 DEBUG routes.middleware [-] Matched GET /servers/3 from (pid=1416) __call__ /usr/lib/
2011-07-21 11:15:50,860 DEBUG routes.middleware [-] Route path: '/servers/:(id)', defaults: {'action': u'show', 'controller': <nova.api.
2011-07-21 11:15:50,861 DEBUG routes.middleware [-] Match dict: {'action': u'show', 'controller': <nova.api.
2011-07-21 11:15:50,861 INFO nova.api.
2011-07-21 11:15:51,319 INFO nova.api.
2011-07-21 11:15:51,363 DEBUG routes.middleware [-] No route matched for POST /servers/3/pause from (pid=1416) __call__ /usr/lib/
2011-07-21 11:15:55,162 DEBUG nova.api.openstack [-] Successfully authenticated 'root' from (pid=1416) authenticate /usr/lib/
2011-07-21 11:15:55,188 DEBUG routes.middleware [-] Matched GET /servers/detail from (pid=1416) __call__ /usr/lib/
2011-07-21 11:15:55,189 DEBUG routes.middleware [-] Route path: '/servers/detail', defaults: {'action': u'detail', 'controller': <nova.api.
2011-07-21 11:15:55,189 DEBUG routes.middleware [-] Match dict: {'action': u'detail', 'controller': <nova.api.
2011-07-21 11:15:55,189 INFO nova.api.
2011-07-21 11:15:55,384 INFO nova.api.
-------
# nova-manage service list
lampard-VirtualBox nova-network enabled :-) 2011-07-21 03:38:08
lampard-VirtualBox nova-scheduler enabled :-) 2011-07-21 03:38:05
lampard-VirtualBox nova-compute enabled :-) 2011-07-21 03:38:08
P.S. Manually started the glance-api service by # glance-control glance-api start
# nova-manage version list
2011.3-dev (2011.3-
In /etc/nova/nova.conf
--dhcpbridge_
--dhcpbridge=
--logdir=
--state_
--lock_
--verbose
--s3_host=10.0.2.15
--rabbit_
--cc_host=10.0.2.15
--ec2_url=http://
--fixed_
--network_size=256
--FAKE_
--routing_
--verbose
--sql_connectio
--network_
--flat_
--public_
--flat_
--libvirt_type=qemu
# ifconfig
br100 Link encap:Ethernet HWaddr fe:16:3e:5c:ac:84
inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
inet6 addr: fe80::84a9:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9102 errors:0 dropped:0 overruns:0 frame:0
TX packets:9329 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:2990063 (2.9 MB) TX bytes:3104721 (3.1 MB)
eth0 Link encap:Ethernet HWaddr 08:00:27:48:bb:37
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22169 errors:0 dropped:0 overruns:0 frame:0
TX packets:14749 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:23272581 (23.2 MB) TX bytes:1767743 (1.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:60942 errors:0 dropped:0 overruns:0 frame:0
TX packets:60942 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:41878929 (41.8 MB) TX bytes:41878929 (41.8 MB)
virbr0 Link encap:Ethernet HWaddr 0a:24:b3:2a:ab:8e
inet addr:192.168.122.1 Bcast:192.
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:7634 (7.6 KB)
vnet0 Link encap:Ethernet HWaddr fe:16:3e:5c:ac:84
inet6 addr: fe80::fc16:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9225 errors:0 dropped:0 overruns:0 frame:0
TX packets:9137 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:3126353 (3.1 MB) TX bytes:3086533 (3.0 MB)
# nova-manage config list
--storage_
--ca_file=
--ec2_dmz_
--fixed_
--compute_
--dmz_mask=
--fixed_
--glance_
--rabbit_
--user_
--s3_dmz=$my_ip
--quota_ram=51200
--find_
--aws_access_
--vncserver_
--network_size=256
--enable_
--my_ip=10.0.2.15
--live_
--lockout_
--password_
--quota_
--zone_
--logdir=
--sqlite_
--nouse_
--cpuinfo_
--num_networks=1
--boot_
--live_
--notification_
--osapi_
--rabbit_port=5672
--live_
--rabbit_
--quota_
--ajax_
--injected_
--network_
--snapshot_
--vncproxy_url=http://
--ajax_
--minimum_
--quota_cores=20
--nouse_project_ca
--rabbit_
--volume_
--volume_
--lock_
--live_
--flat_
--connection_
--noupdate_
--default_
--s3_port=3333
--logging_
--instance_
--ec2_host=$my_ip
--credential_
--vpn_cert_
--logging_
--stub_
--console_
--default_
--osapi_scheme=http
--credential_
--sql_connectio
--console_
--norabbit_use_ssl
--instances_
--noflat_injected
--use_local_volumes
--host=
--flat_
--fixed_
--console_
--quota_
--quota_
--floating_
--lockout_window=15
--db_backend=
--credentials_
--dmz_net=10.0.0.0
--sql_retry_
--vpn_start=1000
--volume_
--crl_file=crl.pem
--rpc_conn_
--s3_host=10.0.2.15
--qemu_img=qemu-img
--max_nbd_
--vlan_
--scheduler_
--verbose
--sql_max_
--default_
--firewall_
--libvirt_type=qemu
--image_
--vpn_key_
--use_cow_images
--block_
--null_
--libvirt_
--vpn_client_
--credential_
--service_
--nopublish_errors
--credential_
--allowed_
--logging_
--quota_
--scheduler_
--ec2_port=8773
--rescue_
--osapi_port=8774
--auth_
--quota_volumes=10
--libvirt_uri=
--flat_
--ec2_scheme=http
--keys_
--vpn_image_id=0
--host_
--noauto_
--quota_
--nofake_call
--state_
--sql_idle_
--vpn_ip=$my_ip
--default_
--aws_secret_
--nouse_ipv6
--key_file=
--nofake_network
--osapi_
--quota_
--region_list=
--auth_
--network_
--noenable_
--osapi_host=$my_ip
--zone_name=nova
--rescue_
--logging_
--timeout_nbd=10
--compute_
--nofake_rabbit
--rabbit_
--vnc_keymap=en-us
--rescue_timeout=0
--nouse_syslog
--superuser_
--osapi_path=/v1.0/
--ec2_path=
--allow_
--ca_path=
--rabbit_
--node_
--lockout_
--db_driver=
--ajaxterm_
--volume_
--nostart_
--vlan_start=100
--rpc_thread_
--ipv6_
--vnc_enabled
--global_
--rabbit_
--rescue_
--network_
--ajax_
--project_
--image_
--control_
--cnt_vpn_clients=0
--vncproxy_
--compute_
--network_
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- lam kwan pak
- Solved:
- Last query:
- Last reply: