[Mitaka] Fails to resize the instance booted by creating a volume, recognizing it as an ephemeral disk when using ceph
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
nova-compute fails to resize instance that was booted by creating a volume, recognizing it as an ephemeral disk.
Steps to reproduce
==================
1. Create an instance by selecting boot source as 'image' and creating a new volume
2. Resize the instance
3. Confirm the resizing
Expected result
===============
successful resize
Actual result
=============
It passes until the step of resize confirmation without any error but it fails after the resize confirmation is hit.
Environment
===========
1. Exact version of OpenStack you are running. See the following
Mitaka
dpkg -l | grep nova
ii nova-common 2:13.0.0-0ubuntu2 all OpenStack Compute - common files
ii nova-compute 2:13.0.0-0ubuntu2 all OpenStack Compute - compute node base
ii nova-compute-kvm 2:13.0.0-0ubuntu2 all OpenStack Compute - compute node (KVM)
ii nova-compute-
ii python-nova 2:13.0.0-0ubuntu2 all OpenStack Compute Python libraries
ii python-novaclient 2:3.3.1-2 all client library for OpenStack Compute API - Python 2.7
2. Which hypervisor did you use?
Libvirt + KVM
dpkg -l | egrep 'libvirt|qemu|kvm'
ii ipxe-qemu 1.0.0+git-
ii libvirt-bin 1.3.1-1ubuntu10.1 amd64 programs for the libvirt library
ii libvirt0:amd64 1.3.1-1ubuntu10.1 amd64 library for interfacing with different virtualization systems
ii nova-compute-kvm 2:13.0.0-0ubuntu2 all OpenStack Compute - compute node (KVM)
ii nova-compute-
ii python-libvirt 1.3.1-1ubuntu1 amd64 libvirt Python bindings
ii qemu-block-
ii qemu-slof 20151103+
ii qemu-system 1:2.5+dfsg-
ii qemu-system-arm 1:2.5+dfsg-
ii qemu-system-common 1:2.5+dfsg-
ii qemu-system-mips 1:2.5+dfsg-
ii qemu-system-misc 1:2.5+dfsg-
ii qemu-system-ppc 1:2.5+dfsg-
ii qemu-system-sparc 1:2.5+dfsg-
ii qemu-system-x86 1:2.5+dfsg-
ii qemu-utils 1:2.5+dfsg-
2. Which storage type did you use?
Ceph
dpkg -l | egrep 'ceph'
ii ceph-common 10.2.2-1xenial amd64 common utilities to mount and interact with a ceph storage cluster
ii libcephfs1 10.2.2-1xenial amd64 Ceph distributed file system client library
ii python-cephfs 10.2.2-1xenial amd64 Python libraries for the Ceph libcephfs library
3. Which networking type did you use?
Neutron with OpenVSwitch
# On the api node
dpkg -l | grep neutron
ii neutron-common 2:8.1.0-
ii neutron-plugin-ml2 2:8.1.0-
ii neutron-server 2:8.1.0-
ii python-neutron 2:8.1.0-
ii python-
ii python-neutron-lib 0.0.2-2 all Neutron shared routines and utilities - Python 2.7
ii python-
# On the network node
dpkg -l | grep neutron
ii neutron-common 2:8.1.0-
ii neutron-dhcp-agent 2:8.1.0-
ii neutron-l3-agent 2:8.1.0-
ii neutron-
ii neutron-
ii python-neutron 2:8.1.0-
ii python-
ii python-neutron-lib 0.0.2-2 all Neutron shared routines and utilities - Python 2.7
ii python-
Logs & Configs
==============
2016-07-05 15:40:32.701 99291 DEBUG oslo_concurrenc
2016-07-05 15:40:32.702 99291 DEBUG oslo_concurrenc
2016-07-05 15:40:32.728 99291 DEBUG oslo_concurrenc
2016-07-05 15:40:32.741 99291 DEBUG nova.virt.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.744 99291 ERROR nova.compute.
2016-07-05 15:40:32.811 99291 DEBUG oslo_concurrenc
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
2016-07-05 15:40:32.839 99291 ERROR oslo_messaging.
openstack server show 9debce4f-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | stopped |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | 1st-network=
| config_drive | |
| created | 2016-07-
| flavor | m1.large (4) |
| hostId | 90f85ee8c380c68
| id | 9debce4f-
| image | |
| key_name | desktop |
| name | e1 |
| os-extended-
| project_id | 04e7fe0cfb19418
| properties | |
| security_groups | [{u'name': u'default'}] |
| status | SHUTOFF |
| updated | 2016-07-
| user_id | 8e0667528546403
+------
openstack volume show 90ea9f31-
+------
| Field | Value |
+------
| attachments | [{u'server_id': u'9debce4f-
| availability_zone | nova |
| bootable | true |
| consistencygroup_id | None |
| created_at | 2016-07-
| description | |
| encrypted | False |
| id | 90ea9f31-
| migration_status | None |
| multiattach | False |
| name | |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| properties | attached_mode='rw', readonly='False' |
| replication_status | disabled |
| size | 40 |
| snapshot_id | None |
| source_volid | None |
| status | in-use |
| type | ceph |
| updated_at | 2016-07-
| user_id | 8e0667528546403
| volume_
+------
# On the Ceph cluster
⟫ sudo rbd ls openstack-volume | grep 9debce4f-
1 ⟫ sudo rbd ls openstack-volume | grep 90ea9f31-
volume-
⟫ sudo rbd info -p openstack-volume volume-
rbd image 'volume-
size 40960 MB in 10240 objects
order 22 (4096 kB objects)
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
(The volume size has not been changed.)
As you can see above, nova-compute tries to do something on the 9debce4f-
description: | updated |
description: | updated |
Changed in nova: | |
assignee: | nobody → Xuanzhou Perry Dong (oss-xzdong) |
Tested in devstack with lvm backend. Can't reproduce the error.