[Openstack] Availability zone internal and nova command hangs

A. Chakraborty chakrabak at gmail.com
Thu Sep 5 16:16:19 UTC 2013


I get the following output when I type the command "nova-manage service
list"

Binary           Host                                 Zone
Status     State Updated_At
nova-cert        myhost                          internal
enabled    :-)   2013-09-05 16:01:14
nova-scheduler   myhost                           internal
enabled    :-)   2013-09-05 16:01:14
nova-conductor   myhost                          internal
enabled    :-)   2013-09-05 16:01:14
nova-consoleauth  myhost                            internal
enabled    :-)   2013-09-05 16:01:14
nova-network      myhost                           internal
enabled    :-)   2013-09-05 16:01:15
nova-compute    myhost                            nova
enabled    :-)   2013-09-05 16:00:59


could anyone tell me why the availability zone for the first 5 components
is   internal?  How can I convert it to "nova"? I am running openstack
grizzly, in a single-machine mode.


Also, when the I run any nova command (nova list, nova host-list etc.),
the command waits for a long time.... Could it be due to the above issue of
availability zones (i.e., 'internal').  Here is  log files:

nova list
INFO (connectionpool:191) Starting new HTTP connection (1): 1XX.56.XX.X
^CTraceback (most recent call last):
  File "/usr/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2.13.0', 'console_scripts',
'nova')()
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in
main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in
main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line
937, in do_list
    servers = cs.servers.list(search_opts=search_opts)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line
375, in list
    return self._list("/servers%s%s" % (detail, query_string), "servers")
  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 230,
in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217,
in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199,
in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 170,
in request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in
request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 354,
in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 460,
in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 211,
in send
    timeout=timeout
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line
415, in urlopen
    body=body, headers=headers)
  File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line
275, in _make_request
    httplib_response = conn.getresponse(buffering=True)
  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 447, in readline
    data = self._sock.recv(self._rbufsize)
KeyboardInterrupt

Here is the last three log entries from the /var/log/nova/nova-api.log. The
http connection time is ~255, which is very large. I have not yet created
any VM, as I could not execute nova image-list, secgroup-add-rule, etc.

2013-09-04 06:14:24.173 31946 INFO nova.osapi_compute.wsgi.server [-]
(31946) accepted ('1XX.56.XX.X', 41687)

2013-09-04 06:15:13.868 31946 INFO nova.osapi_compute.wsgi.server [-]
1XX.56.XX.X "GET /v2/e4e613863a214020935c7aabe44ba7ce/os-tenant-networks
HTTP/1.1" status: 401 len: 465 time: 255.9475789

2013-09-04 06:16:17.996 31946 INFO nova.osapi_compute.wsgi.server [-]
1XX.56.XX.X "GET /v2/e4e613863a214020935c7aabe44ba7ce/os-security-groups
HTTP/1.1" status: 401 len: 465 time: 256.0612741

Here I should note down that there are three instances of nova-api process
running in my computer. The openstack is a single-node installation.

Please help.


Thanking you,

-- 

Abhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130905/bc6d1884/attachment.html>


More information about the Openstack mailing list