Bug 1593341
| Summary: | Allow option for amphora image to be automatically uploaded in raw format | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Andrew Austin <aaustin> | |
| Component: | openstack-tripleo-common | Assignee: | Carlos Goncalves <cgoncalves> | |
| Status: | CLOSED ERRATA | QA Contact: | Alexander Stafeyev <astafeye> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | 13.0 (Queens) | CC: | aaustin, astafeye, augol, bschmaus, cgoncalves, gfidente, hrybacki, itbrown, jtaleric, mariel, mburns, slinaber, tvignaud | |
| Target Milestone: | z1 | Keywords: | Regression, Triaged, ZStream | |
| Target Release: | 14.0 (Rocky) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | openstack-tripleo-common-9.4.1-0.20190119050432.261de49 openstack-tripleo-heat-templates-9.0.1-0.20181013060912.el7ost | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1598146 (view as bug list) | Environment: | ||
| Last Closed: | 2019-03-18 13:03:09 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: | ||||
| Bug Blocks: | 1598146 | |||
|
Description
Andrew Austin
2018-06-20 15:21:31 UTC
Thank you for spotting this! In addition to a new option, we should weight the pros/cons of uploading in raw format the default. The user *can* upload an image in QCOW2 format but to boot from rbd Nova will have to convert it in RAW format. If you want to do an automatic conversion of the image to RAW format when rbd backend is enabled in Nova, set it based on the value of the "NovaEnableRbdBackend" Removing RFE tag. This is an issue that was observed by a field member, acked by engineering teams (Storage and Network DFGs) and that should be fixed. If RBD backend is enabled, Director will convert the image to RAW and upload it to Glance as so. If not, no format conversion will be performed. Trying with latest OSP14 puddle and this seems to still be a issue. Sharing the results : https://gist.github.com/jtaleric/747b66798f7bb155698b91add1eeb790 From the gist above : 3d607db4-1264-4f08-87a3-6d549c3cd4e5 is with the image as raw on Ceph 90c092cf-d9d8-49c9-b325-548358c19a8e is with the image as qcow2 on Ceph From the gist above you can see Octavia will fail with any concurrency with the image misconfigured (qcow2 instead of raw). *** Bug 1680520 has been marked as a duplicate of this bug. *** +--------------------------------------+----------------------------------------+--------+
| ID | Name | Status |
+--------------------------------------+----------------------------------------+--------+
| 2216d407-4193-4c27-b1cc-e0fc23748811 | octavia-amphora-14.0-20190226.1.x86_64 | active |
+--------------------------------------+----------------------------------------+--------+
(overcloud) [stack@undercloud-0 ~]$ openstack image show 2216d407-4193-4c27-b1cc-e0fc23748811
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| checksum | 5fbc891c6d7b3fe93cb274415815c7dc |
| container_format | bare |
| created_at | 2019-03-04T12:40:15Z |
| disk_format | qcow2 |
| file | /v2/images/2216d407-4193-4c27-b1cc-e0fc23748811/file |
| id | 2216d407-4193-4c27-b1cc-e0fc23748811 |
| min_disk | 0 |
| min_ram | 0 |
| name | octavia-amphora-14.0-20190226.1.x86_64 |
| owner | 639c47aecfcc4929ab0d347849b64b09 |
| properties | direct_url='rbd://c735da94-3e6a-11e9-811c-525400ff7314/images/2216d407-4193-4c27-b1cc-e0fc23748811/snap', locations='[{u'url': u'rbd://c735da94-3e6a-11e9-811c-525400ff7314/images/2216d407-4193-4c27-b1cc-e0fc23748811/snap', u'metadata': {}}]', os_hash_algo='sha512', os_hash_value='013791bf0dc1c82354bab7c4c24c78ca86df4b28b40acad1a9990d4fe38969ef2c7829da3649f193d71ebd5fccf2376d2dc70505be2a252a45b2c2740a84d8bd', os_hidden='False' |
| protected | False |
| schema | /v2/schemas/image |
| size | 837156864 |
| status | active |
| tags | amphora-image |
| updated_at | 2019-03-04T12:40:28Z |
| virtual_size | None |
| visibility | shared |
+------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ openstack image show 2216d407-4193-4c27-b1cc-e0fc23748811 -f json
{
"min_ram": 0,
"status": "active",
"virtual_size": null,
"name": "octavia-amphora-14.0-20190226.1.x86_64",
"tags": "amphora-image",
"checksum": "5fbc891c6d7b3fe93cb274415815c7dc",
"created_at": "2019-03-04T12:40:15Z",
"disk_format": "qcow2",
"updated_at": "2019-03-04T12:40:28Z",
"visibility": "shared",
"properties": "direct_url='rbd://c735da94-3e6a-11e9-811c-525400ff7314/images/2216d407-4193-4c27-b1cc-e0fc23748811/snap', locations='[{u'url': u'rbd://c735da94-3e6a-11e9-811c-525400ff7314/images/2216d407-4193-4c27-b1cc-e0fc23748811/snap', u'metadata': {}}]', os_hash_algo='sha512', os_hash_value='013791bf0dc1c82354bab7c4c24c78ca86df4b28b40acad1a9990d4fe38969ef2c7829da3649f193d71ebd5fccf2376d2dc70505be2a252a45b2c2740a84d8bd', os_hidden='False'",
"owner": "639c47aecfcc4929ab0d347849b64b09",
"protected": false,
"file": "/v2/images/2216d407-4193-4c27-b1cc-e0fc23748811/file",
"container_format": "bare",
"min_disk": 0,
"size": 837156864,
"id": "2216d407-4193-4c27-b1cc-e0fc23748811",
"schema": "/v2/schemas/image"
It fails for me. 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-2019:0446 |