Ask Your Question
0

Python Encoding Error when Launching an Instance with Openstack Icehouse

asked 2015-01-08 08:30:03 -0500

jmhal gravatar image

Hi,

I'm following this http://docs.openstack.org/icehouse/install-guide/install/apt/content/ch_preface.html (tutorial) for Ubuntu 12.04. Up until the end of Chapter 7, everything goes smoothly. But when I try to launch an instance with:

nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64 --nic net-id=b8c68b13-2991-45d6-86d9-c980cf2cde5b --security-group default --key-name demo-key demo-instance1

I get the following error from "nova show":

fault | {"message": "No valid host was found. ", "code": 500, "created": "2015-01-08T14:04:22Z"}

Looking at the logs, I found this at /var/log/nova/nova-scheduler.log:

2015-01-08 11:04:22.641 5304 ERROR nova.scheduler.filter_scheduler [req-5d2cada7-6f0d-41a4-aa51-7d332019383e 767519f7ae8541c9acce93455824bf8d 935c10c31f374dca8af3eb7368a27aa4] [instance: 5aa873d0-3721-4751-ad50-c71567ec9a87] Error from last host: pargocad-Studio-XPS-8100 (node pargocad-Studio-XPS-8100): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1328, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 393, in decorated_function\n return function(self, context, args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1740, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1737, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2288, in spawn\n admin_pass=admin_password)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2657, in _create_image\n project_id=instance[\'project_id\'])\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 192, in cache\n args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 413, in create_image\n copy_qcow2_image(base, self.path, size)\n', u' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 249, in inner\n return f(args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 379, in copy_qcow2_image\n disk.extend(target, size, use_cow=True)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 155, in extend\n if not is_image_partitionless(image, use_cow):\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 205, in is_image_partitionless\n fs.setup()\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 81, in setup\n self.teardown()\n', u' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 75, in setup\n if not mount.do_mount():\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/disk/mount/api.py", line 218, in do_mount\n status = self.get_dev() and self.map_dev() and ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-15 07:22:43 -0500

jmhal gravatar image

The only solution I found was updating to 14.04. After that, the problem is no longer.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-01-08 08:30:03 -0500

Seen: 220 times

Last updated: Jan 15 '15