Ask Your Question

beenum's profile - activity

2019-02-11 04:07:12 -0500 received badge  Famous Question (source)
2018-09-27 11:11:03 -0500 received badge  Notable Question (source)
2018-03-02 01:27:33 -0500 received badge  Popular Question (source)
2017-11-05 10:47:36 -0500 asked a question Nova-lxd error: Fails to spawn an instance

Hi everyone,

I deployed DevStack with nova-lxd a few months ago successfully and everything worked fine. I tried to deploy again a few days ago and failed. I tried to deploy using stable/ocata, stable/pike and the master, and I tried it on different machines. When I try to start an instance, it fails and the nova-compute displays the following errors;

Oct 28 19:47:34 ubuntu nova-compute[98366]: DEBUG nova.compute.manager [None req-d6f459a3-7f5a-4f4b-8122-6be08857be95 admin admin] [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067] Start spawning the instance on the hypervisor. {{(pid=98366) _build_and_run_instance /opt/stack/nova/nova/compute/manager.py:1996}}
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [None req-d6f459a3-7f5a-4f4b-8122-6be08857be95 admin admin] [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067] Instance failed to spawn: TypeError: spawn() got multiple values for keyword argument 'network_info'
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067] Traceback (most recent call last):
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067]   File "/opt/stack/nova/nova/compute/manager.py", line 2208, in _build_resources
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067]     yield resources
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067]   File "/opt/stack/nova/nova/compute/manager.py", line 2001, in _build_and_run_instance
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067]     block_device_info=block_device_info)
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067] TypeError: spawn() got multiple values for keyword argument 'network_info'
Oct 28 19:47:34 ubuntu nova-compute[98366]: ERROR nova.compute.manager [instance: 044f3343-8c50-4fd5-9df9-9c7a8e35f067]

Is there anything I am missing here? Any help would be really appreciated.

Regards,

Muneeb Ahmad

2017-06-08 05:30:06 -0500 received badge  Notable Question (source)
2017-06-08 05:30:06 -0500 received badge  Notable Question (source)
2017-06-08 05:30:06 -0500 received badge  Popular Question (source)
2017-06-08 05:30:06 -0500 received badge  Famous Question (source)
2017-06-08 02:46:01 -0500 received badge  Famous Question (source)
2017-01-24 14:19:18 -0500 received badge  Notable Question (source)
2017-01-09 09:51:18 -0500 received badge  Popular Question (source)
2017-01-08 05:28:51 -0500 asked a question Unable to start an instance using nova-lxd

Hi guys, My question is that I tried to run Devstack(stable/newton) with nova-lxd(stable/newton) and when I try to start an instance, I get an error

Error: Build of instance <id> aborted: Image is unacceptable: Bad Image format: Image could not be found.'

It's unable to upload image to LXD, I'm not sure why. This happened with the images provided by Devstack and also with the ones I uploaded. Upon further investigation, I found that in lxd/driver.py, the following is unable to retrieve any information about the image and returns empty string;

img_meta = IMAGE_API.get(context, instance.image_ref)

I hope you guys can help me out, I'm not sure how to tackle this issue. n-cpu.log shows the following traces;

2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] Traceback (most recent call last):
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova/nova/compute/manager.py", line 2078, in _build_resources
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     yield resources
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova/nova/compute/manager.py", line 1920, in _build_and_run_instance
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     block_device_info=block_device_info)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 274, in spawn
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     self.setup_image(context, instance, image_meta)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 1336, in setup_image
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     os.unlink(container_manifest)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     self.force_reraise()
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     six.reraise(self.type_, self.value, self.tb)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova-lxd/nova/virt/lxd/driver.py", line 1219, in setup_image
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]     image_id=instance.image_ref, reason=reason)
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] ImageUnacceptable: Image  is unacceptable: Bad Image format: Image  could not be found.
2017-01-08 23:27:24.327 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] 
2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129] Traceback (most recent call last):
2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129]   File "/opt/stack/nova/nova/compute/manager.py", line 1779, in _do_build_and_run_instance
2017-01-08 23:27:27.620 TRACE nova.compute.manager [instance: 29d3ffcd-dacb-4505-ae51-fe973b33e129 ...
(more)
2016-11-21 11:38:14 -0500 received badge  Notable Question (source)
2016-11-21 11:38:14 -0500 received badge  Famous Question (source)
2016-11-03 06:05:31 -0500 received badge  Famous Question (source)
2016-06-09 15:14:57 -0500 received badge  Taxonomist
2016-05-24 08:51:58 -0500 asked a question Does OpenStack support Xvisor? If not is there a way I can make it run?

Hey guys, I'm thinking about trying Xvisor but I guess OpenStack doesn't have a support for it yet. Is there any way I can run it ?

2016-05-10 05:02:54 -0500 received badge  Notable Question (source)
2016-05-10 05:02:54 -0500 received badge  Popular Question (source)
2016-04-10 18:32:13 -0500 received badge  Popular Question (source)
2016-04-10 12:00:31 -0500 received badge  Famous Question (source)
2016-04-06 13:23:21 -0500 answered a question Can't ssh my lxc instances and no instance console available on Horizon

Solved the ssh issue though. In case of devstack, just remove "force_config_drive=False" from /etc/nova/nova.conf. Restart the nova-compute service.

2016-04-06 01:51:08 -0500 asked a question Can't ssh my lxc instances and no instance console available on Horizon

Hello guys, I deployed OpenStack with LXD as a hypervisor. Everything is working fine but I'm unable to access the console on horizon of any instance I run. I'm unable to ssh into any instance except the CirrOS. Log file of an instance shows the following errors something regarding cloud-init;

* Starting Mount filesystems on boot   ...done.
 * Starting Signal sysvinit that the rootfs is mounted   ...done.
 * Starting Populate /dev filesystem   ...done.
 * Stopping Read required files in advance (for other mountpoints)   ...done.
 * Starting Clean /tmp directory   ...done.
 * Starting Populate and link to /run filesystem   ...done.
 * Starting Track if upstart is running in a container   ...done.
 * Stopping Clean /tmp directory   ...done.
 * Stopping Populate and link to /run filesystem   ...done.
 * Starting load fallback graphics devices   ...done.
 * Starting workaround for missing events in container   ...done.
 * Stopping load fallback graphics devices   ...done.
 * Stopping workaround for missing events in container   ...done.
cloud-init-container: emitted ifup for eth0
 * Starting Uncomplicated firewall   ...done.
 * Starting configure network device security   ...done.
 * Starting set console font   ...done.
 * Starting enable remaining boot-time encrypted block devices   ...done.
 * Stopping set console font   ...done.
 * Starting userspace bootsplash   ...done.
 * Starting Initialize or finalize resolvconf   ...done.
 * Stopping userspace bootsplash   ...done.
 * Starting configure network device security   ...done.
 * Starting Send an event to indicate plymouth is up   ...done.
 * Starting Mount network filesystems   ...done.
 * Stopping Send an event to indicate plymouth is up   ...done.
 * Stopping Mount network filesystems   ...done.
 * Starting Bridge socket events into upstart   ...done.
 * Starting configure network device   ...done.
Traceback (most recent call last):
  File "/usr/bin/cloud-init", line 618, in <module>
    sys.exit(main())
  File "/usr/bin/cloud-init", line 614, in main
    get_uptime=True, func=functor, args=(name, args))
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
1900, in log_time
    ret = func(*args, **kwargs)
  File "/usr/bin/cloud-init", line 448, in status_wrapper
    util.ensure_dirs((data_d, link_d,))
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
1278, in ensure_dirs
    ensure_dir(d, mode)
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
1318, in ensure_dir
    chmod(path, mode)
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 1497, in chmod
    os.chmod(path, real_mode)
OSError: [Errno 1] Operation not permitted: '/var/lib/cloud/data'
cloud-init-nonet[3.0]: waiting 10 seconds for network device
 * Starting Mount network filesystems   ...done.
cloud-init-nonet[3.0]: static networking is now up
 * Starting configure network device   ...done.
 * Stopping Mount network filesystems   ...done.
 * Starting set sysctls from /etc/sysctl.conf   ...done.
 * Stopping set sysctls from /etc/sysctl.conf   ...done.
Traceback (most recent call last):
  File "/usr/bin/cloud-init", line 618, in <module>
    sys.exit(main())
  File "/usr/bin/cloud-init", line 614, in main
    get_uptime=True, func=functor, args=(name, args))
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
1900, in log_time
    ret = func(*args, **kwargs)
  File "/usr/bin/cloud-init", line 448, in status_wrapper
    util.ensure_dirs((data_d, link_d,))
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
1278, in ensure_dirs
    ensure_dir(d, mode)
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line
1318, in ensure_dir
    chmod(path, mode ...
(more)
2016-04-05 13:55:27 -0500 answered a question With 'LXD' as a hypervisor, I'm unable to launch instances and get "Error: No valid host was found. There are not enough hosts available."

I resolved the issue. It was due the older lxd and lxc packages installed by default in ubuntu wily. So all I did was to update them to the latest versions.

2016-03-27 10:33:12 -0500 asked a question Is it possible to install openstack on Snappy Ubuntu core?

I'm thinking about about using Raspberry Pi 2 as a Nova-compute node. So is it possible to do that using Snappy Ubuntu core?

2016-03-25 21:22:16 -0500 received badge  Notable Question (source)
2016-03-25 13:55:04 -0500 commented answer With 'LXD' as a hypervisor, I'm unable to launch instances and get "Error: No valid host was found. There are not enough hosts available."

I have added LXD API failed communication error found in n-cond too...any idea?

2016-03-25 13:54:09 -0500 received badge  Editor (source)
2016-03-25 13:48:20 -0500 commented answer With 'LXD' as a hypervisor, I'm unable to launch instances and get "Error: No valid host was found. There are not enough hosts available."

That didn't work out for me. I did the same for lxd.filters. I'm still blank...help!!

2016-03-22 11:19:08 -0500 received badge  Popular Question (source)
2016-03-22 08:25:33 -0500 received badge  Student (source)
2016-03-21 10:41:12 -0500 received badge  Famous Question (source)
2016-03-21 09:56:12 -0500 received badge  Organizer (source)
2016-03-21 09:20:22 -0500 asked a question With 'LXD' as a hypervisor, I'm unable to launch instances and get "Error: No valid host was found. There are not enough hosts available."

I'm running devstack on a VM with Wily and successfully ran stack.sh with nova-lxd plugin, everything went fine. Hypervisor on the dashboard is changed to 'lxd' too. I added a glance image by running;

glance image-create --name='lxc' --container-format=bare --disk-format=raw < vivid-server-cloudimg-amd64-root.tar.gz

But I'm unable to run any instance and It always gives me the error of "Error: No valid host was found. There are not enough hosts available."

Got some errors in the nova-conductor which looks like;

2016-03-21 18:26:38.271 ^[[01;31mERROR nova.scheduler.utils [^[[01;36mreq-b7bc843a-90f6-4277-865c-b0c098e4f68d ^[[00;36madmin admin^[[01;31m] ^[[01;35m[instance: fff87a03-28d0-4506-b32c-135e53256e64] ^[[01;31mError from last host: ubuntu (node ubuntu): [u'Traceback (most recent call last):\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 1925, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/opt/stack/nova/nova/compute/manager.py", line 2091, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance fff87a03-28d0-4506-b32c-135e53256e64 was re-scheduled: Failed to communicate with LXD API instance-00000002: Error 500 - Error inserting instance-00000002 into database: Bad key: limits.cpu.\n']^[[00m
2016-03-21 18:26:38.391 ^[[01;33mWARNING nova.scheduler.utils [^[[01;36mreq-b7bc843a-90f6-4277-865c-b0c098e4f68d ^[[00;36madmin admin^[[01;33m] ^[[01;35m^[[01;33mFailed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 150, in inner
    return func(*args, **kwargs)

  File "/opt/stack/nova/nova/scheduler/manager.py", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

  File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 74, in select_destinations
    raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.
^[[00m2016-03-21 18:26:38.392 ^[[01;33mWARNING nova.scheduler.utils [^[[01;36mreq-b7bc843a-90f6-4277-865c-b0c098e4f68d ^[[00;36madmin admin^[[01;33m] ^[[01;35m[instance: fff87a03-28d0-4506-b32c-135e53256e64] ^[[01;33mSetting instance to ERROR state.^[[00m

And in nova-schedular logs, found some fails starting from retry filters:

2016-03-21 18:16:41.474 ^[[00;36mINFO nova.scheduler.filters.retry_filter [^[[01;36mreq-6f75faa5-eae3-4132-887b-c42cea1bb136 ^[[00;36madmin admin^[[00;36m] ^[[01;35m^[[00;36mHost [u'ubuntu', u'ubuntu'] fails.  Previously tried hosts: [[u'ubuntu', u'ubuntu']]^[[00m
2016-03-21 18:16:41.474 ^[[00;36mINFO nova.filters [^[[01;36mreq-6f75faa5-eae3-4132-887b-c42cea1bb136 ^[[00;36madmin admin^[[00;36m] ^[[01;35m^[[00;36mFilter RetryFilter returned 0 hosts^[[00m
2016-03-21 18:16:41.474 ^[[00;32mDEBUG nova.filters [^[[01;36mreq-6f75faa5-eae3-4132-887b-c42cea1bb136 ^[[00;36madmin admin^[[00;32m] ^[[01;35m^[[00;32mFiltering removed all hosts for the request with instance ID 'bc278c26-76ec-4a3e-a02a-e04747b04d57'. Filter results: [('RetryFilter', None)]^[[00m ^[[00;33mfrom (pid=16998) get_filtered_objects /opt/stack/nova/nova/filters.py:129^[[00m2016-03-21 18:16:41.474 ^[[00;36mINFO nova.filters [^[[01;36mreq-6f75faa5-eae3-4132-887b-c42cea1bb136 ^[[00;36madmin admin^[[00;36m] ^[[01;35m^[[00;36mFiltering removed all hosts fo
r the request with instance ID 'bc278c26-76ec-4a3e-a02a-e04747b04d57'. Filter results: ['RetryFilter: (start: 1, end: 0)']^[[00m2016-03-21 18:16:41.474 ^[[00;32mDEBUG nova.scheduler.filter_scheduler [^[[01;36mreq-6f75faa5-eae3-4132-887b-c42cea1bb136 ^[[00;36madmin admin^[[00;32m] ^[[01;35m^[[00;32mThere are 0 hosts available ...
(more)
2016-03-16 02:32:23 -0500 received badge  Notable Question (source)
2016-03-12 12:16:36 -0500 received badge  Scholar (source)
2016-03-12 12:16:35 -0500 received badge  Supporter (source)
2016-03-11 04:17:46 -0500 received badge  Popular Question (source)
2016-03-07 04:57:53 -0500 received badge  Enthusiast
2016-03-01 14:08:37 -0500 asked a question Could not satisfy constraints for 'pylxd': installation from path or url cannot be constrained to a version

I'm trying to install nova-lxd using devstack on ubuntu 15.10 but ./stack.sh fails at a certain point. The end of stack.sh.log is as follows;

/usr/local/lib/python2.7/dist-packages (from -c /opt/stack/requirements/upper-constraints.txt (line 185))
2016-02-29 21:54:48.400 | Installing collected packages: nova-lxd
2016-02-29 21:54:48.401 | Running setup.py develop for nova-lxd
2016-02-29 21:54:49.633 | Successfully installed nova-lxd-13.0.0.0b2.dev115
2016-02-29 21:54:49.858 | Installing test-requirements for /opt/stack/nova-lxd/test-requirements.txt
2016-02-29 21:54:50.443 | Ignoring dnspython3: markers "python_version=='3.4'" don't match your environment
2016-02-29 21:54:50.578 | Ignoring python-ironic-inspector-client: markers "python_version=='3.4'" don't match your environment
2016-02-29 21:54:50.691 | Could not satisfy constraints for 'pylxd': installation from path or url cannot be constrained to a version
2016-02-29 21:54:50.928 | Error on exit

2016-02-29 21:54:51.217 | ovs-ofctl: br-int is not a bridge or a socket
2016-02-29 21:54:51.235 | ovs-ofctl: br-tun is not a bridge or a socket
2016-02-29 21:54:51.269 | ovs-ofctl: br-ex is not a bridge or a socket
2016-02-29 21:54:51.289 | ovs-ofctl: br-int is not a bridge or a socket
2016-02-29 21:54:51.332 | ovs-ofctl: br-tun is not a bridge or a socket
2016-02-29 21:54:51.352 | ovs-ofctl: br-ex is not a bridge or a socket

And used the sample local.conf with little additions as follows;

[[local|localrc]]

ADMIN_PASSWORD=a DATABASE_PASSWORD=a RABBIT_PASSWORD=a SERVICE_PASSWORD=$ADMIN_PASSWORD

LOGFILE=$DEST/logs/stack.sh.log

LOGDAYS=2

SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5

SWIFT_REPLICAS=1

SWIFT_DATA_DIR=$DEST/data

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
enable_service neutron

Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_USE_DEBUG_COMMAND=True
Q_L3_ENABLED=True
Q_L3_ROUTER_PER_TENANT=True
ENABLE_TENANT_TUNNELS=True

enable_plugin nova-lxd https://github.com/lxc/nova-lxd

Any help would really be appreciated :(