Bug 1481810

Summary: Create volume from iso image fails
Product: Red Hat OpenStack Reporter: Eric Harney <eharney>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: Avi Avraham <aavraham>
Severity: medium Docs Contact:
Priority: medium    
Version: 11.0 (Ocata)CC: eharney, mariel, pgrist, srevivo, tshefi
Target Milestone: z3Keywords: Regression, Triaged, ZStream
Target Release: 11.0 (Ocata)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-cinder-10.0.4-4.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-31 17:44:20 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:
Embargoed:
Bug Depends On: 1454850    
Bug Blocks:    

Description Eric Harney 2017-08-15 19:11:03 UTC
Description of problem:

Creating a volume from an iso image fails with an error like:

"qemu-img: Could not open '/opt/stack/data/cinder/conversion/tmpEIQ4Uvworker2@lvmdriver-1': Unknown driver 'iso'\n"


Version-Release number of selected component (if applicable):
openstack-cinder-10.0.3-2.el7ost

Comment 5 Tzach Shefi 2017-10-15 19:51:58 UTC
Verified on openstack-cinder-10.0.6-1.el7ost.noarch

Create image from iso
glance image-create --disk-format iso --container-format bare --file dsl-4.4.10.iso --name dsl
+------------------+-----------------------------------------------------------------+
| Property         | Value                                                           |
+------------------+-----------------------------------------------------------------+
| checksum         | 5cb7e0d4506c249b78bbe0cd4695b865                                |
| container_format | bare                                                            |
| created_at       | 2017-10-15T19:49:23Z                                            |
| direct_url       | swift+config://ref1/glance/bb96c9ed-31b3-47b5-98a4-617d5bc5e434 |
| disk_format      | iso                                                             |
| id               | bb96c9ed-31b3-47b5-98a4-617d5bc5e434                            |
| min_disk         | 0                                                               |
| min_ram          | 0                                                               |
| name             | dsl                                                             |
| owner            | 83d18c34b9b34a7e8eb9707e8b315306                                |
| protected        | False                                                           |
| size             | 52328448                                                        |
| status           | active                                                          |
| tags             | []                                                              |
| updated_at       | 2017-10-15T19:49:23Z                                            |
| virtual_size     | None                                                            |
| visibility       | shared                                                          |
+------------------+-----------------------------------------------------------------+

Create volume from said iso/image
cinder create 1 --image-id bb96c9ed-31b3-47b5-98a4-617d5bc5e434
+--------------------------------+--------------------------------------+
| Property                       | Value                                |
+--------------------------------+--------------------------------------+
| attachments                    | []                                   |
| availability_zone              | nova                                 |
| bootable                       | false                                |
| consistencygroup_id            | None                                 |
| created_at                     | 2017-10-15T19:50:30.000000           |
| description                    | None                                 |
| encrypted                      | False                                |
| id                             | 055d4f73-56d8-4c18-9089-978620f02778 |
| metadata                       | {}                                   |
| migration_status               | None                                 |
| multiattach                    | False                                |
| name                           | None                                 |
| os-vol-host-attr:host          | None                                 |
| os-vol-mig-status-attr:migstat | None                                 |
| os-vol-mig-status-attr:name_id | None                                 |
| os-vol-tenant-attr:tenant_id   | 83d18c34b9b34a7e8eb9707e8b315306     |
| replication_status             | None                                 |
| size                           | 1                                    |
| snapshot_id                    | None                                 |
| source_volid                   | None                                 |
| status                         | creating                             |
| updated_at                     | None                                 |
| user_id                        | 2e034e7699db454cbe2e415dad80565c     |
| volume_type                    | None                                 |
+--------------------------------+--------------------------------------+

Verify volume is created/available status.
 cinder list
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| ID                                   | Status    | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------+------+-------------+----------+-------------+
| 055d4f73-56d8-4c18-9089-978620f02778 | available | -    | 1    | -           | true     |             |

Comment 7 errata-xmlrpc 2017-10-31 17:44:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3103