Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1535614

Summary: openstack overcloud container image prepare outputs empty list when sahara or cinder-backup referenced
Product: Red Hat OpenStack Reporter: Pavel Sedlák <psedlak>
Component: openstack-containersAssignee: Dan Prince <dprince>
Status: CLOSED DUPLICATE QA Contact: Omri Hochman <ohochman>
Severity: urgent Docs Contact: Andrew Burden <aburden>
Priority: urgent    
Version: 13.0 (Queens)CC: bdobreli, emacchi, jschluet, m.andre, rhallise, sbaker
Target Milestone: Upstream M3Keywords: AutomationBlocker, Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-15 10:47:11 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 Pavel Sedlák 2018-01-17 18:11:30 UTC
When executing
> openstack overcloud container image prepare --namespace docker-registry.engineering.redhat.com/rhosp13 \
> --tag 2018-01-12.2 --prefix openstack- \
> --set ceph_namespace=registry.access.redhat.com/rhceph \
> --set ceph_image=rhceph-3-rhel7 --set ceph_tag=3-2 \
> --output-images-file /home/stack/container_images.yaml \
> --environment-file /usr/share/openstack-tripleo-heat-templates/environments/services/sahara.yaml \
> --environment-file /usr/share/openstack-tripleo-heat-templates/environments/cinder-backup.yaml

It generates empty list of images:
> container_images: []

Same command when used before for Pike/12 worked.

To generate non empty list, both sahara.yaml and cinder-backup.yaml had to be removed, just one of them still results in empty list.
List obtained after removing both can be see e.g. in other bugs attachment https://bugzilla.redhat.com/attachment.cgi?id=1382579 .

cat /usr/share/openstack-tripleo-heat-templates/environments/services/sahara.yaml
> resource_registry:
>   OS::TripleO::Services::SaharaApi: ../../puppet/services/sahara-api.yaml
>   OS::TripleO::Services::SaharaEngine: ../../puppet/services/sahara-engine.yaml

cat /usr/share/openstack-tripleo-heat-templates/environments/cinder-backup.yaml
> resource_registry:
>   OS::TripleO::Services::CinderBackup: ../puppet/services/pacemaker/cinder-backup.yaml
>   # For non-pcmk managed implementation
>   # OS::TripleO::Services::CinderBackup: ../puppet/services/cinder-backup.yaml(undercloud)

Comment 2 Bogdan Dobrelya 2018-02-13 10:56:56 UTC
I can reproduce it on my dev box with the client and t-h-t installed/clonned from master branches, via pip/git.

Comment 3 Bogdan Dobrelya 2018-02-13 11:01:30 UTC
It works though when --environment-files picked like from the services-docker/sahara.yaml and services-docker/cinder-backup.yaml (note: services-docker is used instead of just services)

Shall we change this to a docs bug perhaps?

Comment 7 Martin André 2018-02-15 10:47:11 UTC

*** This bug has been marked as a duplicate of bug 1535971 ***