| Summary: | Volume appears as attached although it doesn't show up in the guest | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Alexander Chuzhoy <sasha> | ||||||||
| Component: | openstack-nova | Assignee: | Lee Yarwood <lyarwood> | ||||||||
| Status: | CLOSED WORKSFORME | QA Contact: | nlevinki <nlevinki> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 7.0 (Kilo) | CC: | athomas, berrange, dasmith, eglynn, eharney, kchamart, lyarwood, ndipanov, ohochman, sasha, sbauza, sferdjao, sgordon, sgotliv, vromanso, yeylon | ||||||||
| Target Milestone: | z5 | Keywords: | ZStream | ||||||||
| Target Release: | 7.0 (Kilo) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2016-02-23 11:04:54 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Attachments: |
|
||||||||||
|
Description
Alexander Chuzhoy
2016-02-03 22:32:56 UTC
Note: your Cinder version is a bit outdated, we are going to GA with openstack-cinder-7.0.1..... yours is openstack-cinder-7.0.0-2.el7ost.noarch. We need both Nova and Cinder logs to understand what happened. Did Cinder fail to create a volume or provide a connection information or maybe Nova failed to attach this volume to the running instance. Created attachment 1121199 [details]
cinder and nova logs from a controller
Created attachment 1121202 [details]
cinder and nova logs from a controller
Created attachment 1121203 [details]
nova-compute log crom a compute
Additional info: Note the VM ID: [stack@instack ~]$ nova list --all-tenant +--------------------------------------+--------+----------------------------------+--------+------------+-------------+--------------------------------------+ | ID | Name | Tenant ID | Status | Task State | Power State | Networks | +--------------------------------------+--------+----------------------------------+--------+------------+-------------+--------------------------------------+ | c8345b30-d0e3-43f3-8845-4a50f67e8aa7 | nisim1 | ef92657639184ad589a20aa0d239846f | ACTIVE | - | Running | tenant=192.168.32.5, 192.168.200.101 | +--------------------------------------+--------+----------------------------------+--------+------------+-------------+--------------------------------------+ Note that the cinder volume appears as attached to that VM: [stack@instack ~]$ cinder list --all-tenant +--------------------------------------+----------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+ | ID | Tenant ID | Status | Display Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+ | 1f588c45-b8b9-4588-8da0-d36cd3b0715d | ef92657639184ad589a20aa0d239846f | in-use | - | 1 | - | false | c8345b30-d0e3-43f3-8845-4a50f67e8aa7 | +--------------------------------------+----------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+ Yet - when we check the disks on that VM - it has only one. [stack@instack ~]$ ssh cirros.200.101 "sudo /sbin/fdisk -l" Disk /dev/vda: 1073 MB, 1073741824 bytes 255 heads, 63 sectors/track, 130 cylinders, total 2097152 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/vda1 * 16065 2088449 1036192+ 83 Linux Reproduced:
Environment:
python-nova-2015.1.0-16.el7ost.noarch
openstack-nova-console-2015.1.0-16.el7ost.noarch
python-cinderclient-1.2.1-1.el7ost.noarch
openstack-nova-compute-2015.1.0-16.el7ost.noarch
openstack-nova-novncproxy-2015.1.0-16.el7ost.noarch
openstack-nova-scheduler-2015.1.0-16.el7ost.noarch
python-cinder-2015.1.0-3.el7ost.noarch
openstack-nova-cert-2015.1.0-16.el7ost.noarch
openstack-cinder-2015.1.0-3.el7ost.noarch
openstack-nova-api-2015.1.0-16.el7ost.noarch
openstack-nova-common-2015.1.0-16.el7ost.noarch
openstack-nova-conductor-2015.1.0-16.el7ost.noarch
python-novaclient-2.23.0-1.el7ost.noarch
[stack@instack ~]$ nova show e4d77817-5fdc-437d-ba47-b4562cb184de
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | overcloud-compute-0.localdomain |
| OS-EXT-SRV-ATTR:hypervisor_hostname | overcloud-compute-0.localdomain |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-02-11T20:34:14.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-02-11T20:33:36Z |
| flavor | m1.tiny (1) |
| hostId | 21f62e0206f093421eae52d951d6470242ab4e8f62ed5387673b06e0 |
| id | e4d77817-5fdc-437d-ba47-b4562cb184de |
| image | cirros (e85261ed-7188-49f5-b29f-109d796564ac) |
| key_name | oskey |
| metadata | {} |
| name | nisim1 |
| os-extended-volumes:volumes_attached | [{"id": "06902a7b-b904-4709-b3e0-25974ae29624"}] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant network | 192.168.32.5, 192.168.200.101 |
| tenant_id | f3bccd5571df4d508736dd4754813079 |
| updated | 2016-02-11T20:34:14Z |
| user_id | 981300fa16014e488d28dcfab5fa666a |
+--------------------------------------+----------------------------------------------------------+
[stack@instack ~]$ cinder list --all-tenant
+--------------------------------------+----------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| ID | Tenant ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+----------------------------------+--------+--------------+------+-------------+----------+--------------------------------------+
| 06902a7b-b904-4709-b3e0-25974ae29624 | f3bccd5571df4d508736dd4754813079 | in-use | - | 1 | - | false | e4d77817-5fdc-437d-ba47-b4562cb184de |
nothing on the instance.
|