yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #43676
[Bug 1524205] Re: To set "image_cache_subdirectory_name=_base$my_ip", and create a instance failed.
AFAIK, glance image cache is transparent to the user: so the user don't know if he is using cache or not.
It also doesn't have any dependencies on nova caching implementation.
AFAIU caching in nova is managed by Nova so please change affected projects. Please, reopen a bug if there is glance dependencies on it.
** Project changed: glance => nova
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1524205
Title:
To set "image_cache_subdirectory_name=_base$my_ip", and create a
instance failed.
Status in OpenStack Compute (nova):
New
Bug description:
If I set "mage_cache_subdirectory_name=_base$my_ip" in nova.conf for
using glance cache function. Then I create a instance failed.
[DEFAULT]
verbose = True
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
libvirt_use_virtio_for_bridges=True
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
enabled_apis=ec2,osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.10.10.30
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
image_cache_subdirectory_name = _base$my_ip
[oslo_messaging_rabbit]
rabbit_host = 10.10.10.10
rabbit_userid = openstack
rabbit_password = 123qwe
[keystone_authtoken]
auth_uri = http://10.10.10.10:5000
auth_url = http://10.10.10.10:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = 123qwe
[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.10.10.30
novncproxy_base_url = http://10.10.10.10:6080/vnc_auto.html
[glance]
host = 10.10.10.10
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[neutron]
url = http://10.10.10.10:9696
auth_url = http://10.10.10.10:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = neutron
password = 123qwe
[xenserver]
cache_images = all
I found some error informations in /var/log/nova/nova-compute.log
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] Traceback (most recent call last):
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2155, in _build_resources
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] yield resources
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2009, in _build_and_run_instance
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] block_device_info=block_device_info)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2444, in spawn
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] block_device_info=block_device_info)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4519, in _create_domain_and_network
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] xml, pause=pause, power_on=power_on)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4449, in _create_domain
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] guest.launch(pause=pause)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/guest.py", line 141, in launch
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] self._encoded_xml, errors='ignore')
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 195, in __exit__
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] six.reraise(self.type_, self.value, self.tb)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/guest.py", line 136, in launch
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] return self._domain.createWithFlags(flags)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 183, in doit
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] result = proxy_call(self._autowrap, f, *args, **kwargs)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 141, in proxy_call
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] rv = execute(f, *args, **kwargs)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 122, in execute
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] six.reraise(c, e, tb)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 80, in tworker
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] rv = meth(*args, **kwargs)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] File "/usr/lib/python2.7/dist-packages/libvirt.py", line 896, in createWithFlags
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2015-10-27 10:23:16.719 39365 ERROR nova.compute.manager [instance: 1e208e90-a6cd-415f-be9c-7f7af3cec69a] libvirtError: internal error: process exited while connecting to monitor: 2015-10-27T02:23:16.229430Z qemu-system-x86_64: -drive file=/var/lib/nova/instances/1e208e90-a6cd-415f-be9c-7f7af3cec69a/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: Could not open backing file: Could not open '/var/lib/nova/instances/_base10.10.10.30/cd799cdd4ec3bfd3f43e3a0e995909464d6dcfc2': Permission denied
I check that the owner of _base$my_ip is not nova, then get
permission denied.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1524205/+subscriptions
References