bilelmsekni / OpenStack-Grizzly-Install-Guide

A full install guide for OpenStack Grizzly
352 stars 218 forks source link

Unable to run Instance, Ends with status Error in OpenStack #45

Closed bugcy013 closed 11 years ago

bugcy013 commented 11 years ago

HI,

I followed your OVS_MultiNode installation. same setup nodes but except compute node have only one interface, I manually created eth1:0, eth0:1

I am trying to start instance it's says instance status Error. In horizon log tab says Unable to get log for instance "c307ae2b-c09d-4c05-9525-906ed35d81c5".

This my /var/log/nova/nova-compute.log

2013-05-13 15:59:38.717 3014 TRACE nova.compute.manager [instance: c307ae2b-c09d-4c05-9525-906ed35d81c5] QuantumClientException: 404 Not Found 2013-05-13 15:59:38.717 3014 TRACE nova.compute.manager [instance: c307ae2b-c09d-4c05-9525-906ed35d81c5] 2013-05-13 15:59:38.717 3014 TRACE nova.compute.manager [instance: c307ae2b-c09d-4c05-9525-906ed35d81c5] The resource could not be found.

Full stace trace. http://paste.ubuntu.com/5662352/

Please guide me how to resolve this.

-Dhanasekaran.

maller commented 11 years ago

can you ping your Computenode from the networknode? on both Ip adresses?

bugcy013 commented 11 years ago

Hi Maller,

I am able ping networknode both the ip address.

can you please look my console output. http://paste.ubuntu.com/5664089/

Please guide me. How to debug this issue. I checked nova compute log it's says
2013-05-14 06:44:06.429 3014 TRACE nova.compute.manager [instance: 713e788d-d2a1-4262-82dc-b7852afcaae2] QuantumClientException: 404 Not Found 2013-05-14 06:44:06.429 3014 TRACE nova.compute.manager [instance: 713e788d-d2a1-4262-82dc-b7852afcaae2] 2013-05-14 06:44:06.429 3014 TRACE nova.compute.manager [instance: 713e788d-d2a1-4262-82dc-b7852afcaae2] The resource could not be found. nova-compute.log http://paste.ubuntu.com/5664097/

-Dhanasekaran

maller commented 11 years ago

ok,

can you post the quantum-server log from the controlnode

bugcy013 commented 11 years ago

HI Maller,

One more info. after I restarted machines networknode and computernode not pinging openstack management network.

in mycase networknode 10.10.10.52, computernode 10.10.10.53 not pinging but VMconf network working good. and also I can ping controller node mangement ip in computenode.

maller commented 11 years ago

if i understand you right, you can ping from the computenode the networknode and the controlnode, right?

can you ping from the network node 10.10.10.51 10.10.10.53 10.20.20.53

and can you check that the bridges are up

bugcy013 commented 11 years ago

HI

from networknode to 10.10.10.51,10.10.10.53,10.20.20.53 all the ip reachable from network node.

root@networknode:~# ping 10.10.10.51 PING 10.10.10.51 (10.10.10.51) 56(84) bytes of data. 64 bytes from 10.10.10.51: icmp_req=1 ttl=64 time=0.510 ms 64 bytes from 10.10.10.51: icmp_req=2 ttl=64 time=0.490 ms 64 bytes from 10.10.10.51: icmp_req=3 ttl=64 time=0.489 ms 64 bytes from 10.10.10.51: icmp_req=4 ttl=64 time=0.487 ms ^C --- 10.10.10.51 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2997ms rtt min/avg/max/mdev = 0.487/0.494/0.510/0.009 ms root@networknode:~# ping 10.10.10.53 PING 10.10.10.53 (10.10.10.53) 56(84) bytes of data. 64 bytes from 10.10.10.53: icmp_req=1 ttl=64 time=0.305 ms 64 bytes from 10.10.10.53: icmp_req=2 ttl=64 time=0.327 ms 64 bytes from 10.10.10.53: icmp_req=3 ttl=64 time=0.306 ms ^C --- 10.10.10.53 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.305/0.312/0.327/0.022 ms root@networknode:~# ping 10.20.20.53 PING 10.20.20.53 (10.20.20.53) 56(84) bytes of data. 64 bytes from 10.20.20.53: icmp_req=1 ttl=64 time=0.228 ms 64 bytes from 10.20.20.53: icmp_req=2 ttl=64 time=0.119 ms 64 bytes from 10.20.20.53: icmp_req=3 ttl=64 time=0.216 ms ^C --- 10.20.20.53 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.119/0.187/0.228/0.051 ms root@networknode:~#

and networknode bridges also up, I can reach public internet like br-ex interface

bugcy013 commented 11 years ago

Hi Maller,

Any help regarding this root@controllernode:~# cat /var/log/nova/nova-scheduler.log 2013-05-15 07:11:15.837 ERROR nova.scheduler.filter_scheduler [req-c119b427-04a2-4ce2-9fdc-9e6713093267 d43dc3b8d44a4a4e86fc66e993435aac d6d99913be7041efa121d9a2f5add2d3] [instance: a7b92d8b-1795-4bba-b894-d15ff50338e9] Error from last host: computenode (node computenode): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 817, in _run_instance\n requested_networks, macs, security_groups)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1061, in _allocate_network\n instance=instance)\n', u' File "/usr/lib/python2.7/contextlib.py", line 24, in exit\n self.gen.next()\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1057, in _allocate_network\n security_groups=security_groups)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 46, in wrapper\n res = f(self, context, _args, _kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/quantumv2/api.py", line 192, in allocate_for_instance\n _search_opts).get(\'security_groups\')\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107, in with_params\n ret = self.function(instance, args, _kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 477, in list_security_groups\n retrieve_all, __params)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 996, in list\n for r in self._pagination(collection, path, _params):\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 1009, in _pagination\n res = self.get(path, params=params)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 982, in get\n headers=headers, params=params)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 967, in retry_request\n headers=headers, params=params)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 912, in do_request\n self._handle_fault_response(status_code, replybody)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 893, in _handle_fault_response\n exception_handler_v20(status_code, des_error_body)\n', u' File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 87, in exception_handler_v20\n message=message)\n', u'QuantumClientException: 404 Not Found\n\nThe resource could not be found.\n\n \n'] 2013-05-15 07:11:15.846 WARNING nova.scheduler.driver [req-c119b427-04a2-4ce2-9fdc-9e6713093267 d43dc3b8d44a4a4e86fc66e993435aac d6d99913be7041efa121d9a2f5add2d3] [instance: a7b92d8b-1795-4bba-b894-d15ff50338e9] Setting instance to ERROR state. root@controllernode:~# date Wed May 15 07:27:26 EDT 2013 root@controllernode:~#

please guide me. How to debug this isssue.

-Dhanasekaran.

maller commented 11 years ago

which error comes by this command quantum -v net-list ?

its look like a similar problem like this https://answers.launchpad.net/quantum/+question/224419

bugcy013 commented 11 years ago

Hi,

When i exec. quantum -v net-list it's gives +--------------------------------------+--------------+------------------------------------------------------+ | id | name | subnets | +--------------------------------------+--------------+------------------------------------------------------+ | 57ec98a3-f67d-4f87-a7ef-0dda497e6e63 | net_proj_one | 1c9740e4-b962-4c09-b33d-12c094a57d0a 50.50.1.0/24 | | fea3ea07-6d0e-47d7-ae54-9d056aab76e4 | ext_net | 020e2b13-05b9-4c17-87ce-101585abe100 192.168.70.0/24 | +--------------------------------------+--------------+------------------------------------------------------+

Full console output. http://paste.ubuntu.com/5667465/

maller commented 11 years ago

can you create a instances about the CLI ?

nova boot myFancyName --image image_ID --flavor 3

bugcy013 commented 11 years ago

HI,

I can able start instance in command line. But not instance run properly. check my console output. http://paste.ubuntu.com/5667568/

For Horizon says. http://i.imgur.com/fngw1xG.png

when i start the instance it's create compute node /var/log/nova/nova-compute.log http://paste.ubuntu.com/5667611/

-Dhanasekaran

bugcy013 commented 11 years ago

Hi,

When I start the instance it's not getting ip-address. this is may be the issue.

bilelmsekni commented 11 years ago

Try to verify your DHCP agent, you need to give the quantum user in the sudoers file the full root priviliges for the DHCP to function correctly and give your VMs the IP address.