AlanObject's profile - activity

2015-08-04 04:34:50 -0600 received badge  Famous Question (source)
2015-02-25 07:43:46 -0600 received badge  Notable Question (source)
2015-02-06 20:27:22 -0600 received badge  Popular Question (source)
2015-01-22 12:04:45 -0600 received badge  Notable Question (source)
2015-01-22 12:04:45 -0600 received badge  Famous Question (source)
2015-01-22 12:04:45 -0600 received badge  Popular Question (source)
2015-01-21 16:06:47 -0600 answered a question nova image-list

It looks to me like you are missing one or more Python modules -- in this case one called netifaces. Make sure you did the apt-gets the install manual lists. Look on page 26 of the Juno install guide.

2015-01-21 16:06:47 -0600 asked a question Dashboard Problem with URL of VNC Console

I run openstack-dashboard in a VM based on Ubuntu 12.04 separate from the rest of the OpenStack components. It was very easy to install and get working except for this one problem.

When attempting to attach to the VNC console of some VM instance, the URL is formed with the hostname of the OS controller. So I get a URL that looks like this:

http://osccontrol:6080/ ...

If I manually replace the string with the IP address of the control system, it then works, like this:

http://10.1.1.63:6080/ ...

What is the best way to fix this? Can dashboard be configured to form the URL with the IP address or is there a way to associate a DNS name with the system known as oscontrol?

OpenStack release is Icehouse.

2014-01-21 00:39:33 -0600 received badge  Self-Learner (source)
2014-01-21 00:39:33 -0600 received badge  Teacher (source)
2013-12-02 15:55:51 -0600 commented question havana nova image-list doesn't work

@dheeru Yes it is resolved but unfortunately I do not know how. I think one of the REST interfaces was not responding properly and when I restarted the package it was then in an operational state. If I can re-create the problem I will post.

2013-11-20 19:47:06 -0600 answered a question What causes "The server has either erred or is incapable of performing the requested operation." when using nova delete to remove servers?

I finally found a solution:

# nova reset-state --active 9dad0e43-cb2c-4863-8765-ee4af5d6704d
# nova delete 9dad0e43-cb2c-4863-8765-ee4af5d6704d

it works! -- nova list now shows nothing in the table. Note the --active command line parameter. The nova delete doesn't seem to work unless the server is in "active" state.

2013-11-20 17:27:33 -0600 received badge  Enthusiast
2013-11-19 18:50:03 -0600 received badge  Student (source)
2013-11-19 10:43:55 -0600 received badge  Scholar (source)
2013-11-18 14:54:25 -0600 commented question What causes "The server has either erred or is incapable of performing the requested operation." when using nova delete to remove servers?

I assume you mean nova-compute.log -- I'll run a trial and edit the question with the results.

2013-11-18 14:50:16 -0600 received badge  Famous Question (source)
2013-11-18 10:51:47 -0600 asked a question why does service --status-all not show the OS daemons?

This is on Ubuntu 13.10.

This seems like a real newb question that I should know and it isn't really an OS question. I can use the service command to start and stop my keystone/nova/glance daemons but when I use service --status-all they aren't listed. Is this normal?

2013-11-18 10:48:09 -0600 answered a question Why does Openstack use flavor in APIs?

The intent of the API is that it reflects what is presented to the user.

A flavor is just a set of options that are generally appear often together. (ram, disk, vcpus as you put it). The reason this happens is that the truly optimal settings can be very hard to derive. Instead, a user uses flavor '2' for his VM and that runs like crap so then he tries flavor '3' and that works and we are good.

I haven't been around for OS development but I think this scheme evolved out of long experience of typing in the same options over and over again.

2013-11-17 17:08:28 -0600 received badge  Famous Question (source)
2013-11-17 17:08:26 -0600 received badge  Notable Question (source)
2013-11-17 09:28:54 -0600 received badge  Popular Question (source)
2013-11-16 15:39:45 -0600 asked a question What causes "The server has either erred or is incapable of performing the requested operation." when using nova delete to remove servers?

I am having trouble bringing up servers, so I end up with a list that looks like this:

root@xxx:~# nova list
+--------------------------------------+----------+--------+------------+-------------+----------+
| ID                                   | Name     | Status | Task State | Power State | Networks |
+--------------------------------------+----------+--------+------------+-------------+----------+
| edfde014-e489-413d-93e9-ab861a2dfbdd | precise1 | ERROR  | None       | NOSTATE     |          |
| 9dad0e43-cb2c-4863-8765-ee4af5d6704d | precise2 | ERROR  | None       | NOSTATE     |          |
+--------------------------------------+----------+--------+------------+-------------+----------+

Attempting to delete the servers doesn't work, it looks like this:

root@xxx:~# nova delete precise1
The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-86e8e658-a18e-47ee-9447-b953d9497882)
ERROR: Unable to delete any of the specified servers.
root@xxx:~# nova list
+--------------------------------------+----------+--------+------------+-------------+----------+
| ID                                   | Name     | Status | Task State | Power State | Networks |
+--------------------------------------+----------+--------+------------+-------------+----------+
| edfde014-e489-413d-93e9-ab861a2dfbdd | precise1 | ERROR  | deleting   | NOSTATE     |          |
| 9dad0e43-cb2c-4863-8765-ee4af5d6704d | precise2 | ERROR  | None       | NOSTATE     |          |
+--------------------------------------+----------+--------+------------+-------------+----------+
root@xxx:~#

Then the server stays there forever. I fixed a problem with glance although my new servers still don't work, at least I can delete them. So how do I purge the data base of these two?

UPDATE:

When the nova delete command attempts to execute the nova-compute.log does not get any new entries. However the nova-api.log gets an extensive traceback starting with:

2013-11-18 12:53:53.789 19195 WARNING nova.compute.api [req-c75bf3b4-33b0-4523-8a18-6f00c36ffbb9 de2b62ce53764cd1979f0b39b87acc16 3405c884d51f4332a046c57ddfffc828] [instance: edfde014-e489-413d-93e9-ab861a2dfbdd] instance's host xxx is down, deleting from database
2013-11-18 12:54:53.862 19195 ERROR nova.api.openstack [req-c75bf3b4-33b0-4523-8a18-6f00c36ffbb9 de2b62ce53764cd1979f0b39b87acc16 3405c884d51f4332a046c57ddfffc828] Caught error: Timeout while waiting on RPC response - topic: "network.xxx", RPC method: "deallocate_for_instance" info: "<unknown>"
2013-11-18 12:54:53.862 19195 TRACE nova.api.openstack Traceback (most recent call last):

((omitted lots of calls))

2013-11-18 12:54:53.862 19195 TRACE nova.api.openstack     exc.info, real_topic, msg.get('method'))
2013-11-18 12:54:53.862 19195 TRACE nova.api.openstack Timeout: Timeout while waiting on RPC response - topic: "network.xxx", RPC method: "deallocate_for_instance" info: "<unknown>"
2013-11-18 12:54:53.862 19195 TRACE nova.api.openstack 
2013-11-18 12:54:53.865 19195 INFO nova.api.openstack [req-c75bf3b4-33b0-4523-8a18-6f00c36ffbb9 de2b62ce53764cd1979f0b39b87acc16 3405c884d51f4332a046c57ddfffc828] http://xxx:8774/v2/3405c884d51f4332a046c57ddfffc828/servers/edfde014-e489-413d-93e9-ab861a2dfbdd returned with HTTP 500
2013-11-18 12:54:53.865 19195 INFO nova.osapi_compute.wsgi.server [req-c75bf3b4-33b0-4523-8a18-6f00c36ffbb9 de2b62ce53764cd1979f0b39b87acc16 3405c884d51f4332a046c57ddfffc828] 65.49.79.26 "DELETE /v2/3405c884d51f4332a046c57ddfffc828/servers/edfde014-e489-413d-93e9-ab861a2dfbdd HTTP/1.1" status: 500 len: 335 time: 60.2047951

So at the end of the day it seems like my compute node isn't responding -- is that right? I found a utility I think is deprecated that shows this:

nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth hv-v-xxx                            internal         enabled    :-)   2013-11-18 21:01:07
nova-cert        hv-v-xxx                            internal         enabled    :-)   2013-11-18 21:01:07
nova-scheduler   hv-v-xxx                            internal         enabled    :-)   2013-11-18 21:01:07
nova-conductor   hv-v-xxx                            internal         enabled    :-)   2013-11-18 21:01:08
nova-compute     hv-v-xxx                            nova             enabled    XXX   2013-11-11 21:49:07
nova-network     hv-v-xxx                            internal         enabled    XXX   2013-11-11 21:49:08

Would that XXX state have anything to do with it?

2013-11-16 12:36:10 -0600 received badge  Editor (source)
2013-11-16 12:29:33 -0600 received badge  Supporter (source)
2013-11-14 00:24:56 -0600 received badge  Notable Question (source)
2013-11-13 15:02:51 -0600 received badge  Popular Question (source)
2013-11-11 18:43:56 -0600 commented question havana nova image-list doesn't work

yes glance runs and I can do a "glance image-list". However I didn't know which log file to look in so I will examine that and post back.

2013-11-11 13:40:16 -0600 asked a question havana nova image-list doesn't work

I am doing my first install with havana on Ubuntu 13.10. So far so good up to the point where the installation guide suggests testing nova with a "nova image-list" command. It hangs and eventually errors out. Here is the traceback with the --debug switch on. Any suggestions on what needs to be fixed?

((omitted first REQ))

REQ: curl -i http://xxxx.com:8774/v2/3405c884d51f4332a046c57ddfffc828/images/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ((clipped binary data))

INFO (connectionpool:202) Starting new HTTP connection (1): xxxx.com
DEBUG (connectionpool:296) "GET /v2/3405c884d51f4332a046c57ddfffc828/images/detail HTTP/1.1" 500 128
RESP: [500] CaseInsensitiveDict({'date': 'Mon, 11 Nov 2013 19:29:13 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89'})
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:740) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 737, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 673, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 915, in do_image_list
    image_list = cs.images.list(limit=limit)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 54, in list
    return self._list('/images%s%s' % (detail, query), 'images')
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 61, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 229, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 213, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 195, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 189, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89)

UPDATE:

I went silent on this issue for a week because I lost contact with my server. I was configuring the bridge and did a remote boot and what do you know the /etc/fstab had an error in it that stopped the boot until I could get into the host facility to hook up a console. Here's to putting the extra effort into an SOL facility.

Anyway, after I rebooted the "nova image-list" now works! I wish I had some expertise in reading the log files so I could see what was jamming up but it looks like this now:

root@xxx:~# nova image-list
+--------------------------------------+---------+--------+--------+
| ID                                   | Name    | Status | Server |
+--------------------------------------+---------+--------+--------+
| de0dca15-a72f-48e0-aeb3-a0dde710292a | Precise | ACTIVE |        |
| 79e78677-9787-491b-af2e-5dad49a2595a | Saucy ...
(more)