HTTP 500 Error when Creating new VM Instance [closed]

asked 2014-01-13 11:30:10 -0500

TD-Roy gravatar image

updated 2014-01-22 15:12:24 -0500

Evgeny gravatar image

So Im starting out with OpenSTack and Ive configured the Controller and Compute nodes to what I think is correct: I am trying to provision a VM instance through the controller node after setting up the compute nodes via this command:

nova  boot --flavor 1 --key_name mykey --image cca70938-308a-4ae5-8f1e-c43235ea0afb Test

I receive the following error:

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-9162146c-4639-415a-8e2a-f08ec069c494)

When I run:

nova --debug boot --flavor 1 --key_name mykey --image cca70938-308a-4ae5-8f1e-c43235ea0afb Test

I get this:

REQ: curl -i http://localhost:8774/v2/053f36be8a1f4d7a9ce72999dc2a121f/servers -                                    X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Cont                                    ent-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: ..." -d '{"server": {"name": "Test", "imageRef": "c                                    ca70938-308a-4ae5-8f1e-c43235ea0afb", "key_name": "mykey", "flavorRef": "1", "ma                                    x_count": 1, "min_count": 1}}'

RESP: [500] CaseInsensitiveDict({'date': 'Mon, 13 Jan 2014 16:58:41 GMT', 'conte                                    nt-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute                                    -request-id': 'req-9162146c-4639-415a-8e2a-f08ec069c494'})
RESP BODY: {"computeFault": {"message": "The server has either erred or is incap                                    able 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-9162146c-4639-415a-8e2a-f08ec06                                    9c494)
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/novaclient/shell.py", line 737, in ma                                    in
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib64/python2.6/site-packages/novaclient/shell.py", line 673, in ma                                    in
    args.func(self.cs, args)
  File "/usr/lib64/python2.6/site-packages/novaclient/v1_1/shell.py", line 424,                                     in do_boot
    server = cs.servers.create(*boot_args, **boot_kwargs)
  File "/usr/lib64/python2.6/site-packages/novaclient/v1_1/servers.py", line 658                                    , in create
    **boot_kwargs)
  File "/usr/lib64/python2.6/site-packages/novaclient/base.py", line 402, in _bo                                    ot
    return_raw=return_raw, **kwargs)
  File "/usr/lib64/python2.6/site-packages/novaclient/base.py", line 145, in _cr                                    eate
    _resp, body = self.api.client.post(url, body=body)
  File "/usr/lib64/python2.6/site-packages/novaclient/client.py", line 232, in p                                    ost
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/lib64/python2.6/site-packages/novaclient/client.py", line 213, in _                                    cs_request
    **kwargs)
  File "/usr/lib64/python2.6/site-packages/novaclient/client.py", line 195, in _                                    time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib64/python2.6/site-packages/novaclient/client.py", line 189, in r                                    equest
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the r                                    equested operation. (HTTP 500) (Request-ID: req-9162146c-4639-415a-8e2a-f08ec069                                    c494)
ERROR: The server has either erred or is incapable of performing the requested o                                    peration. (HTTP 500) (Request-ID: req-9162146c-4639-415a-8e2a-f08ec069c494)

I want to move forward to set up the dashboard but Id like to know that I can provision an instance successfully. After looking at some other threads, Ive checked /etc/nova/nova.conf for the connection string and that is correct as far as I know.

Anything else I should be looking at to resolve this?

Thank you for any assistance provided

Roy

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by dheeru
close date 2014-01-15 12:14:52.383122

Comments

You need to check through the Nova service logs (/var/log/nova/*.log) and see if there are any errors that correspond to these requests. Your best bet is to tail the log when making the request and see what shows up. Have you verified that other commands (e.g., "nova flavor-list") work correctly?

larsks gravatar imagelarsks ( 2014-01-13 12:39:24 -0500 )edit

nova flavor-list, nova image-list all work properly. I find that when I run the nova boot command and when I try to run nova network-create commands, I get the HTTP 500 error. I will check the nova.log, however I believe all of the errors are consistent with whats above

TD-Roy gravatar imageTD-Roy ( 2014-01-13 12:46:20 -0500 )edit

This is what I see in nova.log. I tried to reset the rabbitmq guest password as well as restart the service but to no avail. 2014-01-12 19:36:50.785 32399 INFO nova.openstack.common.rpc.common [req-94e93f07-0e72-4425-a211-c8102d369177 None None] Reconnecting to AMQP server on localhost:5672 2014-01-12 19:36:53.795 32399 ERROR nova.openstack.common.rpc.common [req-94e93f07-0e72-4425-a211-c8102d369177 None None] AMQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.

TD-Roy gravatar imageTD-Roy ( 2014-01-13 12:56:12 -0500 )edit

I checked and saw that I didnt have a rabbitmq.conf file. I added the listener address and port in that file (that was just created) and now the Rabbitmq error is gone. I see that a connection is formed, however Im getting now: Connection to neutron failed: Maximum attempts reached I started to set up networking with nova-network not neutron. Is this an issue?

TD-Roy gravatar imageTD-Roy ( 2014-01-13 14:57:10 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-15 10:19:19 -0500

TD-Roy gravatar image

Ended up recreating the Openstack environment and this error does not persists

Must have jumbled something up somewhere.

Can be closed.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-01-13 11:30:10 -0500

Seen: 3,793 times

Last updated: Jan 15 '14