Bug 1601484 - glance image save is failing after ffwd upgrade
Summary: glance image save is failing after ffwd upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: z3
: 13.0 (Queens)
Assignee: Cyril Roelandt
QA Contact: Mike Abrams
URL:
Whiteboard:
Depends On: 1601472
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-16 13:21 UTC by Yariv
Modified: 2018-11-13 22:27 UTC (History)
11 users (show)

Fixed In Version: openstack-tripleo-heat-templates-8.0.7-2.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-13 22:27:09 UTC
Target Upstream Version:
Embargoed:
lmarsh: needinfo-
lmarsh: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 569970 0 None MERGED Add support of shared staging location for glance-direct 2020-07-09 16:18:02 UTC
OpenStack gerrit 570752 0 None MERGED Add support of shared staging location for glance-direct 2020-07-09 16:18:02 UTC
Red Hat Product Errata RHBA-2018:3587 0 None None None 2018-11-13 22:27:46 UTC

Internal Links: 1601472

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


Note You need to log in before you can comment on or make changes to this bug.