Hi Wangpan, the exact config settings of the added feature did not come up
on devstack. I tried with virt-inst to make sure its not devstack thing but
still I got permission error. I have to fix libvirt-qemu apparmor settings
to make the VM boot up.
I suggest community to consider the following. I will propose BP on similar
lines
Source path, target name must be configurable to allow other use cases like
access to appliance VMs from host so that configuration can be pushed and
run time status can be fetched.
Fix libvirt apparmor issues or document the settings.
On Wed, Sep 25, 2013 at 4:03 AM, wangpan <email address hidden> wrote:
> Hi Ravi, I also got this issue when I test my codes under devstack, and
> this is the comment about this issue:
> https://review.openstack.org/#/c/36372/6..7/etc/nova/nova.conf.sample
> The original method to fix this issue is adding a config item for storing
> the socket file on the host, but Daniel doesn't like this, and I think the
> better way to notify the user about this trap is adding some doc to the
> release notes.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1227912
>
> Title:
> instance fails to boot with qemu guest agent set in image metadata
>
> Status in OpenStack Compute (Nova):
> New
>
> Bug description:
> I set the image metadata to enable qemu guest agent. When I bring up
> instance it fails to open socket due to permission.
> I observed this with devstack.
>
> Here is more info
>
> nova image-meta cirros-0.3.1-x86_64-uec set hw_qemu_guest_agent=yes
>
> 2013-09-19 15:21:55.717 ERROR nova.compute.manager
> [req-be5e6b88-77f8-47d5-974e-85e1f875608a demo demo] [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] Error: internal error process exited
> while connecting to monitor: char device redirected to /dev/pts/27 (label
> charserial1)
> qemu-system-x86_64: -chardev
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/org.qemu.guest_agent.0.instance-0000000b.sock,server,nowait:
> Failed to bind socket: Permission denied
> chardev: opening backend "socket" failed
>
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] Traceback (most recent call last):
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/opt/stack/nova/nova/compute/manager.py", line 1038, in _build_instance
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] set_access_ip=set_access_ip)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/opt/stack/nova/nova/compute/manager.py", line 1411, in _spawn
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] LOG.exception(_('Instance failed
> to spawn'), instance=instance)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/opt/stack/nova/nova/compute/manager.py", line 1408, in _spawn
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] block_device_info)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 2071, in spawn
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] block_device_info,
> context=context)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3214, in
> _create_domain_and_network
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4]
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3157, in _create_domain
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4]
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3152, in _create_domain
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] except Exception as e:
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in
> doit
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] result =
> proxy_call(self._autowrap, f, *args, **kwargs)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in
> proxy_call
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] rv = execute(f,*args,**kwargs)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in
> tworker
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] rv = meth(*args,**kwargs)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] File
> "/usr/lib/python2.7/dist-packages/libvirt.py", line 711, in createWithFlags
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] if ret == -1: raise libvirtError
> ('virDomainCreateWithFlags() failed', dom=self)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] libvirtError: internal error process
> exited while connecting to monitor: char device redirected to /dev/pts/27
> (label charserial1)
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] qemu-system-x86_64: -chardev
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/org.qemu.guest_agent.0.instance-0000000b.sock,server,nowait:
> Failed to bind socket: Permission denied
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4] chardev: opening backend "socket"
> failed
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4]
> 2013-09-19 15:21:55.717 TRACE nova.compute.manager [instance:
> fccd153e-b8f7-4b09-aa25-b531fd618eb4]
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1227912/+subscriptions
>
Hi Wangpan, the exact config settings of the added feature did not come up
on devstack. I tried with virt-inst to make sure its not devstack thing but
still I got permission error. I have to fix libvirt-qemu apparmor settings
to make the VM boot up.
I suggest community to consider the following. I will propose BP on similar
lines
Source path, target name must be configurable to allow other use cases like
access to appliance VMs from host so that configuration can be pushed and
run time status can be fetched.
Fix libvirt apparmor issues or document the settings.
On Wed, Sep 25, 2013 at 4:03 AM, wangpan <email address hidden> wrote:
> Hi Ravi, I also got this issue when I test my codes under devstack, and /review. openstack. org/#/c/ 36372/6. .7/etc/ nova/nova. conf.sample /bugs.launchpad .net/bugs/ 1227912 0.3.1-x86_ 64-uec set hw_qemu_ guest_agent= yes manager 77f8-47d5- 974e-85e1f87560 8a demo demo] [instance: b8f7-4b09- aa25-b531fd618e b4] Error: internal error process exited id=charchannel0 ,path=/ var/lib/ libvirt/ qemu/org. qemu.guest_ agent.0. instance- 0000000b. sock,server, nowait: manager [instance: b8f7-4b09- aa25-b531fd618e b4] Traceback (most recent call last): manager [instance: b8f7-4b09- aa25-b531fd618e b4] File nova/nova/ compute/ manager. py", line 1038, in _build_instance manager [instance: b8f7-4b09- aa25-b531fd618e b4] set_access_ ip=set_ access_ ip) manager [instance: b8f7-4b09- aa25-b531fd618e b4] File nova/nova/ compute/ manager. py", line 1411, in _spawn manager [instance: b8f7-4b09- aa25-b531fd618e b4] LOG.exception( _('Instance failed manager [instance: b8f7-4b09- aa25-b531fd618e b4] File nova/nova/ compute/ manager. py", line 1408, in _spawn manager [instance: b8f7-4b09- aa25-b531fd618e b4] block_device_info) manager [instance: b8f7-4b09- aa25-b531fd618e b4] File nova/nova/ virt/libvirt/ driver. py", line 2071, in spawn manager [instance: b8f7-4b09- aa25-b531fd618e b4] block_device_info, manager [instance: b8f7-4b09- aa25-b531fd618e b4] File nova/nova/ virt/libvirt/ driver. py", line 3214, in domain_ and_network manager [instance: b8f7-4b09- aa25-b531fd618e b4] manager [instance: b8f7-4b09- aa25-b531fd618e b4] File nova/nova/ virt/libvirt/ driver. py", line 3157, in _create_domain manager [instance: b8f7-4b09- aa25-b531fd618e b4] manager [instance: b8f7-4b09- aa25-b531fd618e b4] File nova/nova/ virt/libvirt/ driver. py", line 3152, in _create_domain manager [instance: b8f7-4b09- aa25-b531fd618e b4] except Exception as e: manager [instance: b8f7-4b09- aa25-b531fd618e b4] File lib/python2. 7/dist- packages/ eventlet/ tpool.py" , line 179, in manager [instance: b8f7-4b09- aa25-b531fd618e b4] result = self._autowrap, f, *args, **kwargs) manager [instance: b8f7-4b09- aa25-b531fd618e b4] File lib/python2. 7/dist- packages/ eventlet/ tpool.py" , line 139, in manager [instance: b8f7-4b09- aa25-b531fd618e b4] rv = execute( f,*args, **kwargs) manager [instance: b8f7-4b09- aa25-b531fd618e b4] File lib/python2. 7/dist- packages/ eventlet/ tpool.py" , line 77, in manager [instance: b8f7-4b09- aa25-b531fd618e b4] rv = meth(*args, **kwargs) manager [instance: b8f7-4b09- aa25-b531fd618e b4] File python2. 7/dist- packages/ libvirt. py", line 711, in createWithFlags manager [instance: b8f7-4b09- aa25-b531fd618e b4] if ret == -1: raise libvirtError teWithFlags( ) failed', dom=self) manager [instance: b8f7-4b09- aa25-b531fd618e b4] libvirtError: internal error process manager [instance: b8f7-4b09- aa25-b531fd618e b4] qemu-system-x86_64: -chardev id=charchannel0 ,path=/ var/lib/ libvirt/ qemu/org. qemu.guest_ agent.0. instance- 0000000b. sock,server, nowait: manager [instance: b8f7-4b09- aa25-b531fd618e b4] chardev: opening backend "socket" manager [instance: b8f7-4b09- aa25-b531fd618e b4] manager [instance: b8f7-4b09- aa25-b531fd618e b4] /bugs.launchpad .net/nova/ +bug/1227912/ +subscriptions
> this is the comment about this issue:
> https:/
> The original method to fix this issue is adding a config item for storing
> the socket file on the host, but Daniel doesn't like this, and I think the
> better way to notify the user about this trap is adding some doc to the
> release notes.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> instance fails to boot with qemu guest agent set in image metadata
>
> Status in OpenStack Compute (Nova):
> New
>
> Bug description:
> I set the image metadata to enable qemu guest agent. When I bring up
> instance it fails to open socket due to permission.
> I observed this with devstack.
>
> Here is more info
>
> nova image-meta cirros-
>
> 2013-09-19 15:21:55.717 ERROR nova.compute.
> [req-be5e6b88-
> fccd153e-
> while connecting to monitor: char device redirected to /dev/pts/27 (label
> charserial1)
> qemu-system-x86_64: -chardev
> socket,
> Failed to bind socket: Permission denied
> chardev: opening backend "socket" failed
>
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/opt/stack/
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/opt/stack/
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> to spawn'), instance=instance)
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/opt/stack/
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/opt/stack/
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> context=context)
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/opt/stack/
> _create_
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/opt/stack/
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/opt/stack/
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/usr/local/
> doit
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> proxy_call(
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/usr/local/
> proxy_call
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/usr/local/
> tworker
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> "/usr/lib/
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> ('virDomainCrea
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> exited while connecting to monitor: char device redirected to /dev/pts/27
> (label charserial1)
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> socket,
> Failed to bind socket: Permission denied
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> failed
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
> 2013-09-19 15:21:55.717 TRACE nova.compute.
> fccd153e-
>
> To manage notifications about this bug go to:
> https:/
>
--
Ravi