Bug 1514545
| Summary: | installing older version images (yum localinstall) create wrong latest links in rhosp-director-images [openstack-10] | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Mike Burns <mburns> |
| Component: | rhosp-director-images | Assignee: | Mike Burns <mburns> |
| Status: | CLOSED WONTFIX | QA Contact: | Omri Hochman <ohochman> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 10.0 (Newton) | CC: | dbecker, jslagle, mburns, morazi, ohochman, rbartal, rhel-osp-director-maint |
| Target Milestone: | --- | Keywords: | Reopened, Triaged, ZStream |
| Target Release: | 10.0 (Newton) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1509665 | Environment: | |
| Last Closed: | 2019-01-21 20:03:15 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: | |||
|
Description
Mike Burns
2017-11-17 18:24:43 UTC
This is the specfile change:
diff --git a/rhosp-director-images.spec b/rhosp-director-images.spec
index ee5401a..5b37081 100644
--- a/rhosp-director-images.spec
+++ b/rhosp-director-images.spec
@@ -55,6 +55,7 @@ echo %{version},%{release} > %{buildroot}%{app_root}/version-%{version}-%{releas
%post
nvr=0
nv=0
+version=%{version}
ver_major=${version%.*}
for ver in %{app_root}/version-*txt; do
ver=$(basename $(echo $ver | sed 's/\.txt//'))
Note for testing: This only shows up when you install images from an older release *after* a newer release. IOW, without the fix: Install OSP 12 images, then OSP 10 images --> failure Install OSP 10 images, then OSP 12 images --> works |