Prepare images should autoevaluate container parameters for legacy services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Invalid
|
High
|
Bogdan Dobrelya |
Bug Description
When we reference a legacy service deployed with puppet on the host, like:
$ cat sahara.yaml
> resource_registry:
> OS::TripleO:
> OS::TripleO:
$ openstack overcloud container image prepare -e sahara.yaml
it produces an empty list of container_images: []
While it works as expected when resource_registry contains services referenced from 'docker/services' path.
This is new to Queens, and was not the case for Pike. We should fall back to the Pike behavior as users may still want have their legacy services upgradable into containerized services. Therefore,
'openstack overcloud container image prepare' should work the same way for services defined either in the docker/services or puppet/services paths.
Changed in tripleo: | |
status: | New → In Progress |
assignee: | nobody → Bogdan Dobrelya (bogdando) |
milestone: | none → queens-rc1 |
importance: | Undecided → High |
tags: | added: containers upgrade |
I may be missing something, but when specifying legacy BM services I expect not to see container images for it.
Calling "openstack overcloud container image prepare" with no arguments will generate a list of *all* container images, while passing it a role and heat environment files will restrict it to *only* the container images used in the specified services.
With the above example, sahara.yaml does not use containerized services so it's expected to output an empty list.
IMO we should include environments/ docker. yaml and probably environments/ docker- ha.yaml too by default so that the behavior is maybe a bit less confusing.