The computing node has left the mount information after the encryption fails.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
yenai | ||
Queens |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Rocky |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Stein |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
[stack@localhost devstack]$ cinder type-create encrypt-
+------
| ID | Name | Description | Is_Public |
+------
| 054fad16-
+------
[stack@localhost devstack]$ cinder encryption-
+------
| Volume Type ID | Provider | Cipher | Key Size | Control Location |
+------
| 054fad16-
+------
[stack@localhost devstack]$ cinder create --volume-type encrypt-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2019-01-
| description | None |
| encrypted | True |
| id | 247bd974-
| metadata | {} |
| migration_status | None |
| multiattach | False |
| name | yenai |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| updated_at | None |
| user_id | 657205033877433
| volume_type | encrypt-
+------
[stack@localhost libvirt]$ cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 247bd974-
| f1c15752-
+------
[[stack@localhost devstack]$ nova volume-attach 6ce2254a-
+------
| Property | Value |
+------
| device | /dev/vdc |
| id | 247bd974-
| serverId | 6ce2254a-
| volumeId | 247bd974-
+------
[stack@localhost devstack]$
ERROR:
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
Jan 12 09:37:25 localhost.
[stack@localhost encryptors]$ nova show 6ce2254a-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2019-01-
| description | - |
| flavor:disk | 1 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {} |
| flavor:
| flavor:ram | 512 |
| flavor:swap | 0 |
| flavor:vcpus | 1 |
| hostId | b3a5a7c35a7b686
| host_status | UP |
| id | 6ce2254a-
| image | cirros-
| key_name | - |
| locked | False |
| metadata | {} |
| name | yenai |
| os-extended-
| progress | 0 |
| public network | 2001:db8::1d2, 172.24.4.104 |
| security_groups | default |
| status | ACTIVE |
| tags | [] |
| tenant_id | 9b881cf6b92049b
| trusted_
| updated | 2019-01-
| user_id | 657205033877433
+------
[stack@localhost encryptors]$ cinder show 247bd974-
+------
| Property | Value |
+------
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2019-01-
| description | None |
| encrypted | True |
| id | 247bd974-
| metadata | |
| migration_status | None |
| multiattach | False |
| name | yenai |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2019-01-
| user_id | 657205033877433
| volume_type | encrypt-
+------
[stack@localhost encryptors]$ ls -lh /dev/disk/by-path/
total 0
lrwxrwxrwx. 1 root root 9 Jan 12 13:18 ip-192.
lrwxrwxrwx. 1 root root 9 Jan 12 06:30 ip-192.
lrwxrwxrwx. 1 root root 9 Jan 11 15:42 pci-0000:
lrwxrwxrwx. 1 root root 9 Jan 11 15:42 pci-0000:
lrwxrwxrwx. 1 root root 10 Jan 11 15:42 pci-0000:
lrwxrwxrwx. 1 root root 10 Jan 11 15:42 pci-0000:
Changed in nova: | |
assignee: | nobody → yenai (yenai2008) |
description: | updated |
tags: | added: cinder volumes |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: libvirt |
Changed in nova: | |
assignee: | yenai (yenai2008) → Matt Riedemann (mriedem) |
Fix proposed to branch: master /review. openstack. org/632598
Review: https:/