Bug 1601484

Summary: glance image save is failing after ffwd upgrade
Product: Red Hat OpenStack Reporter: Yariv <yrachman>
Component: openstack-tripleo-heat-templatesAssignee: Cyril Roelandt <cyril>
Status: CLOSED ERRATA QA Contact: Mike Abrams <mabrams>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: abishop, cyril, eglynn, fpercoco, jschluet, lmarsh, mburns, pdeore, srevivo, tshefi, yrachman
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)Flags: lmarsh: needinfo-
lmarsh: needinfo-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-8.0.7-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-13 22:27: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: 1601472    
Bug Blocks:    

Description Yariv 2018-07-16 13:21:28 UTC
Description of problem:

saving image is failing after FFWD upgrade

openstack  image save 4b8a2abb-f691-47f5-a59e-a66196a15d8d --file /tmp/rhel-guest-image-7.3-36.x86_64.qcow2
Image 4b8a2abb-f691-47f5-a59e-a66196a15d8d has no data.
Image 4b8a2abb-f691-47f5-a59e-a66196a15d8d has no data.

Version-Release number of selected component (if applicable):



How reproducible:


Steps to Reproduce:
1. Apply FFWD upgrade
2. Track the following bz 1601472 to reproduce 

Actual results:
The following error returned:

Image 4b8a2abb-f691-47f5-a59e-a66196a15d8d has no data.
Image 4b8a2abb-f691-47f5-a59e-a66196a15d8d has no data.

Expected results:
Image will be downloaded

Additional info:
Enter active controller

[root@controller-0 ~]# ls -ltr /var/lib/glance/images/
total 1119936
-rw-r-----. 1 glance glance 573403648 Jul 15 19:13 4b8a2abb-f691-47f5-a59e-a66196a15d8d
-rw-r-----. 1 glance glance 573403648 Jul 15 19:13 f88c39b3-9e55-4775-8276-6d778d34a74f

Enter dockers
[root@controller-0 ~]# docker exec -it glance_api /bin/bash
()[glance@controller-0 /]$ ls -ltr /var/lib/glance/images/
total 0

Comment 1 Yariv 2018-07-16 13:29:16 UTC
The environment is HA environment
OSP puddle version  

cat  /home/stack/core_puddle_version 
2018-07-13.1(undercloud) [stack@undercloud-0 ~]$ 
started 10z5 --> 10z async -> 13

Comment 2 Yariv 2018-07-25 12:09:10 UTC
sos report in https://bugzilla.redhat.com/show_bug.cgi?id=1601472

Comment 3 Cyril Roelandt 2018-07-25 13:47:23 UTC
Yeah, it seems like the image directory (/var/lib/glance/images) is not available from the container. We might have to fix this in tripleo-heat-templates. Looking at docker/services/glance-api.yaml it seems like this is already done for NFS/NetApp.

@Pranali: do you understand why the volume is not mounted in this case?

Comment 4 Alan Bishop 2018-08-01 15:47:20 UTC
I believe this issue has been fixed (see [1] and my comment at [2]).

[1] https://github.com/openstack/tripleo-heat-templates/blob/stable/queens/docker/services/glance-api.yaml#L193
[2] https://review.openstack.org/#/c/569970/1/docker/services/glance-api.yaml@205

The fix appears to be on track for inclusion in 13z2, but I'll let Pranali confirm this.

Comment 5 Pranali Deore 2018-08-02 05:23:10 UTC
Yes, it's already been fixed during nfs cleanup.

@Cyril: Initially it was done only for NFS & NetApp, but as per Alan's comment we have added it with the list of volumes instead of keeping it conditional.

Comment 6 Alan Bishop 2018-08-08 13:04:35 UTC
Pranali, please identify the "fixed in version" and move this to MODIFIED. It will also require doc text.

Comment 17 errata-xmlrpc 2018-11-13 22:27:09 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-2018:3587