Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I discovered that nova-api always shows this:

nova-api.log:2013-11-25 12:28:07.200 5507 INFO nova.api.openstack [req-1925c872-e3ee-46ff-8061-1e1903f223e7 03cc38dac979425abb2b76763b922036 c010bd7c02174062bb1df9c9cc9e6c15] http://controller.cloud.level2crm.com:8774/v2/c010bd7c02174062bb1df9c9cc9e6c15/servers returned with HTTP 500

I can create the instance from command line:

 nova boot --flavor 1 --key_name gaguilar --image 2291748e-41ca-41c5-9350-64886840fdfb --security_group default test
 +--------------------------------------+--------------------------------------+
 | Property                             | Value                                |
 +--------------------------------------+--------------------------------------+
 | OS-EXT-STS:task_state                | scheduling                           |
 | image                                | CirrOS 0.3.1                         |
 | OS-EXT-STS:vm_state                  | building                             |
 | OS-SRV-USG:launched_at               | None                                 |
 | flavor                               | m1.tiny                              |
 | id                                   | 1110c245-1cf4-4535-bc94-c13fd59f291d |
 | security_groups                      | [{u'name': u'default'}]              |
 | user_id                              | 03cc38dac979425abb2b76763b922036     |
 | OS-DCF:diskConfig                    | MANUAL                               |
 | accessIPv4                           |                                      |
 | accessIPv6                           |                                      |
 | progress                             | 0                                    |
 | OS-EXT-STS:power_state               | 0                                    |
 | OS-EXT-AZ:availability_zone          | nova                                 |
 | config_drive                         |                                      |
 | status                               | BUILD                                |
 | updated                              | 2013-11-25T12:52:12Z                 |
 | hostId                               |                                      |
 | OS-SRV-USG:terminated_at             | None                                 |
 | key_name                             | gaguilar                             |
 | name                                 | test                                 |
 | adminPass                            | 8L4ti8fLEQwc                         |
 | tenant_id                            | c010bd7c02174062bb1df9c9cc9e6c15     |
 | created                              | 2013-11-25T12:52:12Z                 |
 | os-extended-volumes:volumes_attached | []                                   |
 | metadata                             | {}                                   |
 +--------------------------------------+--------------------------------------+

but I always get:

nova list
   +--------------------------------------+------+--------+------------+-------------+----------+
| ID                                   | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+----------+
| 2f844996-122d-4975-8d38-7d048526f976 | test | ERROR  | None       | NOSTATE         |          |
+--------------------------------------+------+--------+------------+-------------+----------+

I don't understand since controller.cloud.level2crm.com:8774 is available and reachable

Any help on this?

Nooope! It seems I still have the same problem. I've fond following in the scheduler. I don't know why it worked last time.

2013-11-25 13:10:03.689 6395 ERROR nova.scheduler.filter_scheduler [req-fd0c887b-33a5-4463-806b-672ed13a06c6 03cc38dac979425abb2b76763b922036 c010bd7c02174062bb1df9c9cc9e6c15] [instance: 1b619d76-f9d8-4019-810f-a857bf1987b9] Error from last host: red1 (node red1): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1037, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1410, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1407, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2063, in spawn\n    admin_pass=admin_password)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2441, in _create_image\n    net = netutils.get_injected_network_template(network_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/netutils.py", line 74, in get_injected_network_template\n    if not (network_info and template):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 379, in __len__\n    return self._sync_wrapper(fn, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 366, in _sync_wrapper\n    self.wait()\n', u'  File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 398, in wait\n    self[:] = self._gt.wait()\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait\n    return self._exit_event.wait()\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 120, in wait\n    current.throw(*self._exc)\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main\n    result = function(*args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1228, in _allocate_network_async\n    dhcp_options=dhcp_options)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 49, in wrapper\n    res = f(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 276, in allocate_for_instance\n    **search_opts).get(\'security_groups\')\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params\n    ret = self.function(instance, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 466, in list_security_groups\n    retrieve_all, **_params)\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1197, in list\n    for r in self._pagination(collection, path, **params):\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1210, in _pagination\n    res = self.get(path, params=params)\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1183, in get\n    headers=headers, params=params)\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1168, in retry_request\n    headers=headers, params=params)\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1111, in do_request\n    self._handle_fault_response(status_code, replybody)\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1081, in _handle_fault_response\n    exception_handler_v20(status_code, des_error_body)\n', u'  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 88, in exception_handler_v20\n    message=message)\n', u'NeutronClientException: 404 Not Found\n\nThe resource could not be found.\n\n   \n']
2013-11-25 13:10:03.704 6395 WARNING nova.scheduler.driver [req-fd0c887b-33a5-4463-806b-672ed13a06c6 03cc38dac979425abb2b76763b922036 c010bd7c02174062bb1df9c9cc9e6c15] [instance: 1b619d76-f9d8-4019-810f-a857bf1987b9] Setting instance to ERROR state.
share|improve this question
    
have you check the free memory on compute node ? maybe that 's the reason , as I got same without any error in log but less memory , it just fail to allocate the vm . –  yikaus Mar 26 at 5:55

1 Answer 1

I resolved the problem.

It seems that's a bug on the system.

It's answered in the documentation: http://docs.openstack.org/havana/install-guide/install/apt/content/install-neutron.install-plug-in-controller.ovs.gre.html#comment-1132665540

and its related to this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725

Now I'm able to start the images.

[UPDATE]

No, it's not working. I can manage the instances but not create them.

share|improve this answer
    
Nooope! It seems I still have the same problem. –  Gonzalo Aguilar Delgado Nov 25 '13 at 20:28
    
When I boot a machine from command line it works... So the problem is when launching form horizon. command. nova boot --flavor 1 --key_name gaguilar --image 2291748e-41ca-41c5-9350-64886840fdfb --security_group default test –  Gonzalo Aguilar Delgado Nov 26 '13 at 5:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.