[Openstack-operators] Cannot create Instances

Joe Topjian joe.topjian at cybera.ca
Thu Mar 14 23:43:02 UTC 2013


Hi Steven,




On Thu, Mar 14, 2013 at 6:25 PM, Steven Barnabas
<sbarnabas at frontporch.com>wrote:

>  Hi all,
>
>  I followed the instruction found here
> http://docs.openstack.org/folsom/basic-install/content/index.html. to the
> T.
>
>  I have 3 Nodes
> 1 Controller
> 1 Network
> 1 Compute
>
>  Whenever I try to create an instance in Horizon, it seems as thought it
> is actually going to create the instance but then just gives me the
> instances screen with an "Error" in the Status of the newly created
> instance.
>
>  I have an Windows Image that I am trying to install.  I have
> successfully imported this image via http.
>
>  Here is my nova.conf on the Compute box
>  [DEFAULT]
>
>  # MySQL Connection #
> sql_connection=mysql://nova:password@192.168.0.1/nova
>
>  # nova-scheduler #
> rabbit_host=192.168.0.1
> rabbit_password=password
> scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler
>
>  # nova-api #
> cc_host=192.168.0.1
> auth_strategy=keystone
> s3_host=192.168.0.1
> ec2_host=192.168.0.1
> nova_url=http://192.168.0.1:8774/v1.1/
> ec2_url=http://192.168.0.1:8773/services/Cloud
> keystone_ec2_url=http://192.168.0.1:5000/v2.0/ec2tokens
> api_paste_config=/etc/nova/api-paste.ini
> allow_admin_api=true
> use_deprecated_auth=false
> ec2_private_dns_show_ip=True
> dmz_cidr=169.254.169.254/32
> ec2_dmz_host=192.168.0.1
> metadata_host=192.168.0.1
> metadata_listen=0.0.0.0
> enabled_apis=metadata
>
>  # Networking #
> network_api_class=nova.network.quantumv2.api.API
> quantum_url=http://192.168.0.1:9696
> quantum_auth_strategy=keystone
> quantum_admin_tenant_name=service
> quantum_admin_username=quantum
> quantum_admin_password=password
> quantum_admin_auth_url=http://192.168.0.1:35357/v2.0
> libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
> linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
> firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
>
>  # Compute #
> compute_driver=libvirt.LibvirtDriver
> connection_type=libvirt
>
>  # Cinder #
> volume_api_class=nova.volume.cinder.API
>
>  # Glance #
> glance_api_servers=192.168.0.1:9292
> image_service=nova.image.glance.GlanceImageService
>
>  # novnc #
> novnc_enable=true
> novncproxy_base_url=http://172.16.32.10:6080/vnc_auto.html
> vncserver_proxyclient_address=192.168.0.3
> vncserver_listen=0.0.0.0
>
>  # Misc #
> logdir=/var/log/nova
> state_path=/var/lib/nova
> lock_path=/var/lock/nova
> root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
> verbose=true
>
>
>  When I am checking the nova-compute.log file on the Compute box, I am
> getting the following errors:
>
>  *013-03-14 15:10:24 6016 ERROR nova.openstack.common.rpc.common [-] AMQP
> server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying
> again in 1 seconds.*
> *2013-03-14 15:10:25 6016 INFO nova.openstack.common.rpc.common [-]
> Reconnecting to AMQP server on localhost:5672*
>

Something might be wrong here. You should see a message such as:

Connected to AMQP server on 192.168.0.1:5672

Even though the config you provided has your rabbit_host as 192.168.0.1, it
looks like your compute node is trying to connect to rabbit at localhost.
Your controller and compute are two different servers, right?

If so, can you double-check rabbit_host in /etc/nova on your compute node.
Then on your controller, run:

nova-manage service list

and see if your compute node is responding with a :-)

If not, this is the first problem to resolve.

Let me know if you need anything clarified.


>  *
> *
>  *2013-03-14 15:40:19 ERROR nova.compute.manager
> [req-008e9e8b-0f85-429e-ba68-ab617e02064e aa0e0626b30140fd87f26225a202bf58
> fd28b03caed749d8b8b014ec350d9f92] [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853] Instance failed to spawn*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853] Traceback (most recent call last):*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 747, in
> _spawn*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     block_device_info)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 117, in wrapped
> *
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     temp_level, payload)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/contextlib.py", line 24, in __exit__*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     self.gen.next()*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 92, in wrapped*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     return f(*args, **kw)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1090,
> in spawn*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     admin_pass=admin_password)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1356,
> in _create_image*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     project_id=instance['project_id'])
> *
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line
> 126, in cache*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     *args, **kwargs)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line
> 173, in create_image*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     prepare_template(target=base,
> *args, **kwargs)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/utils.py", line 796, in inner*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     retval = f(*args, **kwargs)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line
> 117, in call_if_not_exists*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     fetch_func(target=target, *args,
> **kwargs)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/utils.py", line 440, in
> fetch_image*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     images.fetch_to_raw(context,
> image_id, target, user_id, project_id)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 77, in
> fetch_to_raw*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     fetch(context, image_href,
> path_tmp, user_id, project_id)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 72, in fetch*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     image_service.download(context,
> image_id, image_file)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 222, in
> download*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]
> _reraise_translated_image_exception(image_id)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 220, in
> download*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     image_chunks =
> self._client.call(context, 1, 'data', image_id)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 138, in call
> *
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     return getattr(client.images,
> method)(*args, **kwargs)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 108, in
> data*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     resp, body =
> self.api.raw_request('GET', '/v1/images/%s' % image_id)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 191,
> in raw_request*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     return self._http_request(url,
> method, **kwargs)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]   File
> "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 158,
> in _http_request*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853]     raise exc.from_response(resp)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853] HTTPInternalServerError:
> HTTPInternalServerError (HTTP 500)*
> *2013-03-14 15:40:19 1855 TRACE nova.compute.manager [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853] *
>
>
>  *2013-03-14 15:40:19 ERROR nova.compute.manager
> [req-008e9e8b-0f85-429e-ba68-ab617e02064e aa0e0626b30140fd87f26225a202bf58
> fd28b03caed749d8b8b014ec350d9f92] [instance:
> abad985e-5c9e-4f53-b0bc-e6f6c6cac853] Build error: ['Traceback (most recent
> call last):\n', '  File*
> * "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 494,
> in _run_instance\n    injected_files, admin_password)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 747, in
> _spawn\n    block_device_info)\n', '  File "/usr/lib/pyt*
> *hon2.7/dist-packages/nova/exception.py", line 117, in wrapped\n
> temp_level, payload)\n', '  File "/usr/lib/python2.7/contextlib.py", line
> 24, in __exit__\n    self.gen.next()\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 92, in wrapped\n
> *
> *   return f(*args, **kw)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1090,
> in spawn\n    admin_pass=admin_password)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1356,
> in _create_image\n    proj*
> *ect_id=instance[\'project_id\'])\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line
> 126, in cache\n    *args, **kwargs)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line
> 173, in create_image\n *
> *   prepare_template(target=base, *args, **kwargs)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/utils.py", line 796, in inner\n
> retval = f(*args, **kwargs)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line
> 117, in call_if*
> *_not_exists\n    fetch_func(target=target, *args, **kwargs)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/utils.py", line 440, in
> fetch_image\n    images.fetch_to_raw(context, image_id, target, user_id,
> project_id)\n', '  File "/usr/lib/python2.7/d*
> *ist-packages/nova/virt/images.py", line 77, in fetch_to_raw\n
> fetch(context, image_href, path_tmp, user_id, project_id)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 72, in
> fetch\n    image_service.download(context, image_id, image_file*
> *)\n', '  File "/usr/lib/python2.7/dist-packages/nova/image/glance.py",
> line 222, in download\n
> _reraise_translated_image_exception(image_id)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 220, in
> download\n    image_chunks = self._clien*
> *t.call(context, 1, \'data\', image_id)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 138, in
> call\n    return getattr(client.images, method)(*args, **kwargs)\n', '
> File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 1*
> *08, in data\n    resp, body = self.api.raw_request(\'GET\',
> \'/v1/images/%s\' % image_id)\n', '  File
> "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 191,
> in raw_request\n    return self._http_request(url, method, **kwargs)\n', '
> File "/usr/lib*
> */python2.7/dist-packages/glanceclient/common/http.py", line 158, in
> _http_request\n    raise exc.from_response(resp)\n',
> 'HTTPInternalServerError: HTTPInternalServerError (HTTP 500)\n']*
>  *
> *
> I have been trying to figure this out for 2 weeks now.  I don't know what
> I am doing wrong.  Any help would be appreciated.  I can get any other info
> needed also.
>
>
>
>  Thank you.
>
>
>
>
>  Steven Barnabas
> Network Engineer
> Front Porch, Inc.
> 209-288-5580
> 209-652-7733 mobile
> www.frontporch.com
>
>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>


-- 
Joe Topjian
Systems Administrator
Cybera Inc.

www.cybera.ca

Cybera is a not-for-profit organization that works to spur and support
innovation, for the economic benefit of Alberta, through the use
of cyberinfrastructure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130314/0a2e8386/attachment.html>


More information about the OpenStack-operators mailing list