I don't think that this problem is related to AppArmor. It is happening again but, it is random, on a host without AppArmor installed...
The logs shows: nova-compute.log: http://paste.openstack.org/show/477033/ nova-conductor.log: http://paste.openstack.org/show/477036/ libvirtd.log: --- 2015-10-21 15:07:14.578+0000: 2805: error : virNetDevTapCreate:290 : Unable to create tap device tapab04671d-75: Device or resource busy --- I'm trying to launch the following Stack: https://github.com/sandvine/os-ansible-deployment-lite/blob/liberty/misc/os-heat-templates/sandvine-stack-0.1-cs-1.yaml It failed (CREATE_FAILED), then, I tried it again, and it works (CREATE_COMPLETE)! :-/ This never happened with Kilo (very same Heat Template)... It seems that, the first time that of launch, after uploading a qcow2, it fails, then, the second time, it works... Am I missing something here? Thanks! Thiago On 20 October 2015 at 10:04, Mohammed Naser <[email protected]> wrote: > What do you see in /var/log/syslog regarding apparmor? > > On Mon, Oct 19, 2015 at 10:12 PM, Martinx - ジェームズ > <[email protected]> wrote: >> Guys, >> >> Finally my Liberty setup is working! >> >> But, I removed the apparmor and libapparmor-perl packages out from >> Ubuntu, otherwise, it is not possible to launch any instance, the >> following error(s) appear: >> >> libvirtd.log: >> --- >> 2015-10-20 00:58:35.393+0000: 12689: error : virNetDevTapCreate:290 : >> Unable to create tap device tap3805bb26-ef: Device or resource busy >> --- >> >> nova-compute.log: >> >> --- >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager >> [req-3a40fb40-ab82-4446-9e2d-641e451f3c85 >> b0e9378fbc1a48328e29f28e9109c25a d896204e6b6040da88039585bedb0824 - - >> -] [instance: e305b8bf-2d74-4819-bc92-3eb1bd59db50] Instance failed to >> spawn >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] Traceback (most recent call >> last): >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2155, >> in _build_resources >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] yield resources >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2009, >> in _build_and_run_instance >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] >> block_device_info=block_device_info) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line >> 2444, in spawn >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] >> block_device_info=block_device_info) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line >> 4519, in _create_domain_and_network >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] xml, pause=pause, >> power_on=power_on) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line >> 4449, in _create_domain >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] guest.launch(pause=pause) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/guest.py", line >> 141, in launch >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] self._encoded_xml, >> errors='ignore') >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, >> in __exit__ >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] six.reraise(self.type_, >> self.value, self.tb) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/guest.py", line >> 136, in launch >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] return >> self._domain.createWithFlags(flags) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 183, in >> doit >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] result = >> proxy_call(self._autowrap, f, *args, **kwargs) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 141, in >> proxy_call >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] rv = execute(f, *args, >> **kwargs) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 122, in >> execute >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] six.reraise(c, e, tb) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 80, in >> tworker >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] rv = meth(*args, **kwargs) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] File >> "/usr/lib/python2.7/dist-packages/libvirt.py", line 896, in >> createWithFlags >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] if ret == -1: raise >> libvirtError ('virDomainCreateWithFlags() failed', dom=self) >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] libvirtError: Unable to create >> tap device tap3805bb26-ef: Device or resource busy >> 2015-10-19 20:58:35.476 13685 ERROR nova.compute.manager [instance: >> e305b8bf-2d74-4819-bc92-3eb1bd59db50] >> --- >> >> As I said, after removing apparmor, I can now use my brand new Liberty setup! >> >> Am I missing something? Is it possible to keep apparmor and Liberty? >> >> Thanks, >> Thiago >> >> _______________________________________________ >> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> Post to : [email protected] >> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack > > > > -- > Mohammed Naser — vexxhost > ----------------------------------------------------- > D. 514-316-8872 > D. 800-910-1726 ext. 200 > E. [email protected] > W. http://vexxhost.com _______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
