Bug 1371695

Summary: cinder volume backup throws UnicodeDecodeError: 'ascii' and access denied
Product: Red Hat OpenStack Reporter: Eric Harney <eharney>
Component: python-os-brickAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: lkuchlan <lkuchlan>
Severity: urgent Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: apevec, cschwede, ealcaniz, egafford, eharney, felipe.alfaro, fpercoco, geguileo, jschluet, lhh, listaepg, nlevinki, ochalups, pablo.iranzo, paldeala, rcernin, srevivo, tbarron, tshefi
Target Milestone: asyncKeywords: Triaged, ZStream
Target Release: 8.0 (Liberty)Flags: tshefi: automate_bug+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-os-brick-0.5.0-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1349005
: 1371696 (view as bug list) Environment:
Last Closed: 2016-09-14 14:42:08 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: 1349005    
Bug Blocks: 1360424, 1371696    

Comment 2 lkuchlan 2016-09-11 05:26:38 UTC
Tested using:
python-os-brick-0.5.0-2.el7ost
python-cinder-7.0.2-3.el7ost.noarch
python-cinderclient-1.5.0-1.el7ost.noarch
openstack-cinder-7.0.2-3.el7ost.noarch

Verification flow:

[root@dhcp162-28 ~(keystone_admin)]# cinder create 1
+---------------------------------------+--------------------------------------+
|                Property               |                Value                 |
+---------------------------------------+--------------------------------------+
|              attachments              |                  []                  |
|           availability_zone           |                 nova                 |
|                bootable               |                false                 |
|          consistencygroup_id          |                 None                 |
|               created_at              |      2016-09-11T05:11:32.000000      |
|              description              |                 None                 |
|               encrypted               |                False                 |
|                   id                  | 89ddb321-6d7c-4861-b7c4-f7c08207c044 |
|                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     |   fcc2d977826f43d48afa62e614355675   |
|   os-volume-replication:driver_data   |                 None                 |
| os-volume-replication:extended_status |                 None                 |
|           replication_status          |               disabled               |
|                  size                 |                  1                   |
|              snapshot_id              |                 None                 |
|              source_volid             |                 None                 |
|                 status                |               creating               |
|                user_id                |   a8cebff40eac4edaad955f290d9d219b   |
|              volume_type              |                 None                 |
+---------------------------------------+--------------------------------------+

[root@dhcp162-28 ~(keystone_admin)]# cinder list
+--------------------------------------+-----------+------------------+------+------+-------------+----------+-------------+-------------+
|                  ID                  |   Status  | Migration Status | Name | Size | Volume Type | Bootable | Multiattach | Attached to |
+--------------------------------------+-----------+------------------+------+------+-------------+----------+-------------+-------------+
| 89ddb321-6d7c-4861-b7c4-f7c08207c044 | available |        -         |  -   |  1   |      -      |  false   |    False    |             |
+--------------------------------------+-----------+------------------+------+------+-------------+----------+-------------+-------------+

[root@dhcp162-28 ~(keystone_admin)]# cinder backup-create 89ddb321-6d7c-4861-b7c4-f7c08207c044
+-----------+--------------------------------------+
|  Property |                Value                 |
+-----------+--------------------------------------+
|     id    | 2bc6ef7b-0a5d-4455-a5ef-1492bbeab39b |
|    name   |                 None                 |
| volume_id | 89ddb321-6d7c-4861-b7c4-f7c08207c044 |
+-----------+--------------------------------------+

[root@dhcp162-28 ~(keystone_admin)]# cinder backup-list
+--------------------------------------+--------------------------------------+-----------+------+------+--------------+----------------+
|                  ID                  |              Volume ID               |   Status  | Name | Size | Object Count |   Container    |
+--------------------------------------+--------------------------------------+-----------+------+------+--------------+----------------+
| 2bc6ef7b-0a5d-4455-a5ef-1492bbeab39b | 89ddb321-6d7c-4861-b7c4-f7c08207c044 | available |  -   |  1   |      22      | volumes_backup |
+--------------------------------------+--------------------------------------+-----------+------+------+--------------+----------------+

Comment 4 errata-xmlrpc 2016-09-14 14:42:08 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://rhn.redhat.com/errata/RHBA-2016-1867.html