Ask Your Question
0

openstack compute service list returning error 404

asked 2016-05-05 06:31:23 -0500

Forseti gravatar image

I know this is a very common question here, so I will say that I have gone through a lot of them and I have not get it fixed. I hope this is all the information you need to debug my problem. I aám setting up small cloud for university research group for testing.

I have Ubuntu 14.04 and I followed the current mitaka manual for Ubuntu 14.04. I have gotten to this stage so far: http://docs.openstack.org/mitaka/install-guide-ubuntu/nova-verify.html (http://docs.openstack.org/mitaka/inst...) - Nova Verification

forseti@controller:~$ openstack compute service list
Not found (HTTP 404) (Request-ID: req-3272e966-9247-473c-891e-c46c4efc784b)

These commands work for example: openstack image list and openstack user list Also:

forseti@controller:~$ curl http://controller:35357/v3
{"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

Output of /var/log/nova/nova-api.log is:

2016-05-05 11:34:07.988 12152 INFO nova.osapi_compute.wsgi.server [req-94cb41e9-5bda-4449-abfd-c9ac4a068c95 dd8e1ce613ac45e7a7bf8271e7b81ecb 67a42d00ed5d4119b824f8753f9c01d8 - - -] 192.168.2.1 "GET /v2.1/(tenant_id)s/os-services HTTP/1.1" status: 404 len: 264 time: 1.4167972
2016-05-05 11:34:17.694 12150 INFO nova.osapi_compute.wsgi.server [req-f89501a8-f31e-4f87-bdf4-572092bc1162 dd8e1ce613ac45e7a7bf8271e7b81ecb 67a42d00ed5d4119b824f8753f9c01d8 - - -] 192.168.2.1 "GET /v2.1/(tenant_id)s/os-services HTTP/1.1" status: 404 len: 264 time: 1.3741801

My nova conf file /etc/nova/nova.conf look like this:

DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
libvirt_use_virtio_for_bridges=True
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini

#Admin added configuration
enabled_apis=osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 192.168.2.1
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver

[api_database]

connection = mysql+pymysql://nova:password@controller/nova_api

[database]
connection = mysql+pymysql://nova:password@controller/nova

[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = password

[keystone_authtoken]
auth_uri = http://controller:5000/v3
auth_url = http://controller:35357/v3
auth_version =
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = password

[vnc]
vncserver_listen = $my_ip
vncserver_proxyclient_address = $my_ip

[glance]
api_servers = http://controller:9292
glance_api_servers = http://controller:9292

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

[neutron]
auth_strategy = keystone
admin_auth_url = http://controller:35357/v3

My admin_openrc file contents are:

export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=password
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
export OS_AUTH_VERSION=3

Output of openstack image service list is:

START with options: ['--debug', 'compute', 'service', 'list']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://controller:35357/v3', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', profile=None, project_domain_id='', project_domain_name='default', project_id='', project_name='admin', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='default', user_id='', username='admin', verbose_level=3, verify=None)
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2016-06-15 18:45:23 -0500

dchowdhu gravatar image

I am seeing the same issue, would you please share various steps you have taken to fix this? Thanks

edit flag offensive delete link more
0

answered 2016-05-05 10:22:53 -0500

Forseti gravatar image

After many hours, and a lot of commands: Possible fix: I had a typos in nova compute endpoints.

Had:

http://controller:8774/v2.1/(tenant_id)s

Instead of:

http://controller:8774/v2.1/%(tenant_id)s

I am not 100 % sure, but I think this fixed it, but I also tried all the other fixes i could before it, and port openings and other stuff.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-05-05 04:06:00 -0500

Seen: 1,187 times

Last updated: Jun 15 '16