Nova fails polling networks

Asked by Steven Hecht

Hello,

my Nova fails launching a virtual Machine. It seems it has problems with networks created in Quantum.
The guide I followed is https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst
I have a two node setup, Folsom, one Cloud Controller, one Compute Node.

Some output:
root@os-controller:/home# quantum net-list
+--------------------------------------+----------+--------------------------------------+
| id | name | subnets |
+--------------------------------------+----------+--------------------------------------+
| 0603b03a-6842-4b46-b35e-b445184dde47 | network1 | e158b9db-b9fe-4dfa-ae2a-7a3abcba9293 |
+--------------------------------------+----------+--------------------------------------+

root@os-controller:/home# nova --debug network-list
Please input your password for the keyring

REQ: curl -i http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/os-networks -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 4a31e3cf314548e183a962aca0b02731"

connect: (10.172.17.10, 8774)
send: u'GET /v2/123c47a7ef21465da5894ed5867e4cfc/os-networks HTTP/1.1\r\nHost: 10.172.17.10:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 4a31e3cf314548e183a962aca0b02731\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'

#Process freezes, so pressing CTRL+C
^CTraceback (most recent call last):
  File "/usr/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2.9.0', 'console_scripts', 'nova')()
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 531, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 467, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 490, in do_network_list
    network_list = cs.networks.list()
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/networks.py", line 49, in list
    return self._list("/os-networks", "networks")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 239, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 226, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 208, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 182, in request
    resp, body = super(HTTPClient, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1196, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1166, in _conn_request
    response = conn.getresponse()
  File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.7/socket.py", line 430, in readline
    data = recv(1)
KeyboardInterrupt
root@os-controller:/home# nova --debug boot --flavor 1 --image 8816cced-4e0a-4717-8c9d-5adb86a55fa9 --nic net-id=0603b03a-6842-4b46-b35e-b445184dde47 cirros
Please input your password for the keyring

REQ: curl -i http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/flavors/1 -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 4a31e3cf314548e183a962aca0b02731"

connect: (10.172.17.10, 8774)
send: u'GET /v2/123c47a7ef21465da5894ed5867e4cfc/flavors/1 HTTP/1.1\r\nHost: 10.172.17.10:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 4a31e3cf314548e183a962aca0b02731\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-8decffd0-8eef-4d14-a0d2-38b8c38a931b
header: Content-Type: application/json
header: Content-Length: 422
header: Date: Thu, 22 Nov 2012 19:47:07 GMT
RESP:{'status': '200', 'content-length': '422', 'content-location': u'http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/flavors/1', 'x-compute-request-id': 'req-8decffd0-8eef-4d14-a0d2-38b8c38a931b', 'date': 'Thu, 22 Nov 2012 19:47:07 GMT', 'content-type': 'application/json'} {"flavor": {"name": "m1.tiny", "links": [{"href": "http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/flavors/1", "rel": "self"}, {"href": "http://10.172.17.10:8774/123c47a7ef21465da5894ed5867e4cfc/flavors/1", "rel": "bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 0, "id": "1"}}

REQ: curl -i http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/images/8816cced-4e0a-4717-8c9d-5adb86a55fa9 -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 4a31e3cf314548e183a962aca0b02731"

send: u'GET /v2/123c47a7ef21465da5894ed5867e4cfc/images/8816cced-4e0a-4717-8c9d-5adb86a55fa9 HTTP/1.1\r\nHost: 10.172.17.10:8774\r\nx-auth-project-id: admin\r\nx-auth-token: 4a31e3cf314548e183a962aca0b02731\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: X-Compute-Request-Id: req-ff4d582d-b807-4b08-a7be-991e168b8921
header: Content-Type: application/json
header: Content-Length: 692
header: Date: Thu, 22 Nov 2012 19:47:08 GMT
RESP:{'status': '200', 'content-length': '692', 'content-location': u'http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/images/8816cced-4e0a-4717-8c9d-5adb86a55fa9', 'x-compute-request-id': 'req-ff4d582d-b807-4b08-a7be-991e168b8921', 'date': 'Thu, 22 Nov 2012 19:47:08 GMT', 'content-type': 'application/json'} {"image": {"status": "ACTIVE", "updated": "2012-11-20T10:07:45Z", "name": "cirros-0.3.0-x86_x64", "links": [{"href": "http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/images/8816cced-4e0a-4717-8c9d-5adb86a55fa9", "rel": "self"}, {"href": "http://10.172.17.10:8774/123c47a7ef21465da5894ed5867e4cfc/images/8816cced-4e0a-4717-8c9d-5adb86a55fa9", "rel": "bookmark"}, {"href": "http://127.0.0.1:9292/123c47a7ef21465da5894ed5867e4cfc/images/8816cced-4e0a-4717-8c9d-5adb86a55fa9", "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": "2012-11-20T10:07:45Z", "progress": 100, "minRam": 0, "minDisk": 0, "id": "8816cced-4e0a-4717-8c9d-5adb86a55fa9", "metadata": {}}}

REQ: curl -i http://10.172.17.10:8774/v2/123c47a7ef21465da5894ed5867e4cfc/servers -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 4a31e3cf314548e183a962aca0b02731" -d '{"server": {"name": "cirros", "imageRef": "8816cced-4e0a-4717-8c9d-5adb86a55fa9", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "0603b03a-6842-4b46-b35e-b445184dde47"}]}}'

send: u'POST /v2/123c47a7ef21465da5894ed5867e4cfc/servers HTTP/1.1\r\nHost: 10.172.17.10:8774\r\nContent-Length: 196\r\nx-auth-project-id: admin\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: 4a31e3cf314548e183a962aca0b02731\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"server": {"name": "cirros", "imageRef": "8816cced-4e0a-4717-8c9d-5adb86a55fa9", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "0603b03a-6842-4b46-b35e-b445184dde47"}]}}'
reply: 'HTTP/1.1 404 Not Found\r\n'
header: Content-Length: 78
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-457f80bd-2ffb-413d-a7b0-633de0facf31
header: Date: Thu, 22 Nov 2012 19:47:08 GMT
RESP:{'date': 'Thu, 22 Nov 2012 19:47:08 GMT', 'status': '404', 'content-length': '78', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-457f80bd-2ffb-413d-a7b0-633de0facf31'} {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}

DEBUG (shell:534) The resource could not be found. (HTTP 404) (Request-ID: req-457f80bd-2ffb-413d-a7b0-633de0facf31)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 531, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 467, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 228, in do_boot
    server = cs.servers.create(*boot_args, **boot_kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 498, in create
    **boot_kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/base.py", line 160, in _boot
    return_raw=return_raw, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 148, in _create
    _resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 242, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 226, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 208, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 202, in request
    raise exceptions.from_response(resp, body)
NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-457f80bd-2ffb-413d-a7b0-633de0facf31)
ERROR: The resource could not be found. (HTTP 404) (Request-ID: req-457f80bd-2ffb-413d-a7b0-633de0facf31)
root@os-controller:/home#

###THATS THE MAIN FAULT####

#My nova.conf file:
root@os-controller:/home# cat /etc/nova/nova.conf
[DEFAULT]
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/run/lock/nova
verbose=True
api_paste_config=/etc/nova/api-paste.ini
scheduler_driver=nova.scheduler.simple.SimpleScheduler
s3_host=10.172.17.10
ec2_host=10.172.17.10
ec2_dmz_host=10.172.17.10
rabbit_host=10.172.17.10
cc_host=10.172.17.10
metadata_host=10.172.17.10
metadata_listen=0.0.0.0
nova_url=http://10.172.17.10:8774/v1.1/
sql_connection=mysql://nova:openstack@10.172.17.10/nova
ec2_url=http://10.172.17.10:8773/services/Cloud
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf

quota_instances=100

use_deprecated_auth=false
auth_strategy=keystone
keystone_ec2_url=http://10.172.17.10:5000/v2.0/ec2tokens

glance_api_servers=10.172.17.10:9292
image_service=nova.image.glance.GlanceImageService

novnc_enabled=true
novncproxy_base_url=http://10.172.17.10:6080/vnc_auto.html
novncproxy_port=6080
vncserver_proxyclient_address=10.172.17.10
vncserver_listen=0.0.0.0

network_api_class=nova.network.quantumv2.api.API
quantum_url=http://10.172.17.10:9696
quantum_auth_strategy=keystone
quantum_admin_tenant_name=service
quantum_admin_username=quantum
quantum_admin_password=service_pass
quantum_admin_auth_url=http://10.172.17.10:35357/v2.0
libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver

compute_driver=libvirt.LibvirtDriver

volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900

#Keystone endpoint list:
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+
| id | region | publicurl | internalurl | adminurl |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+
| 2cefde5afe21494f829a3fd33d95a63e | RegionOne | http://10.172.17.10:8776/v1/$(tenant_id)s | http://10.172.17.10:8776/v1/$(tenant_id)s | http://10.172.17.10:8776/v1/$(tenant_id)s |
| 857cbd8b5b1f46bc86591efaeb0b1fe4 | RegionOne | http://10.172.17.10:9292/v2 | http://10.172.17.10:9292/v2 | http://10.172.17.10:9292/v2 |
| 91aca54c69bb48a18656f8df76e4ee9b | RegionOne | http://10.172.17.10:5000/v2.0 | http://10.172.17.10:5000/v2.0 | http://10.172.17.10:35357/v2.0 |
| 9d4f84750dc644cca586b679960623de | RegionOne | http://10.172.17.10:9696/ | http://10.172.17.10:9696/ | http://10.172.17.10:9696/ |
| 9e03b828259140b393715fc5656d79f4 | RegionOne | http://10.172.17.10:8773/services/Cloud | http://10.172.17.10:8773/services/Cloud | http://10.172.17.10:8773/services/Admin |
| f42abec4f54b4956813cb1c1da425b5e | RegionOne | http://10.172.17.10:8774/v2/$(tenant_id)s | http://10.172.17.10:8774/v2/$(tenant_id)s | http://10.172.17.10:8774/v2/$(tenant_id)s |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+

Anybody has got an idea where to search for the fault?
Thanks in advance.

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.