[openstack-dev] [tripleo] Adding new roles after upgrade is broken.
Sofer Athlan-Guyot
sathlang at redhat.com
Fri Aug 18 11:18:58 UTC 2017
Hi,
We may have missing packages when the user is adding a new role to its
roles_data file and the base image is coming from previous version.
The workflow would be this one:
- install newton
- upgrade to ocata
- add collectd to roles_data and redeploy the stack
For instance if one is adding
OS::TripleO::Services::Collectdservices::collectd in an ocata env coming
from an upgraded newton env, he/she won't have the necessary packages
(for instance collectd-disk). The puppet manifest will fail has the
package is missing and puppet doesn't install package. The upgrade
task[1] is useless as the new role wasn't added during the upgrade but
after.
I don't see any easy way to solve this. Basically we need a way to keep
in sync base image between release without using the upgrade_tasks,
maybe in the tripleo-package one ?
This shouldn't be a problem with container, but everything before pike
is affected.
Originially seen there[2]
[1] https://github.com/openstack/tripleo-heat-templates/blob/stable/ocata/puppet/services/metrics/collectd.yaml#L130..L134
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1455065
--
Sofer Athlan-Guyot.
More information about the OpenStack-dev
mailing list