Check for legacy hiera data fails preventing the upgrade from proceeding
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Marios Andreou |
Bug Description
As discussed in https:/
package I got was openstack-
just landed into the package so we didn't hit it earlier).
We have [2] which removes the old hook and data as part of the upgrade, but it seems something further is needed? Indeed before the upgrade running the check yields the occ data.
[1] https:/
[2] https:/
Changed in tripleo: | |
milestone: | pike-1 → pike-2 |
Changed in tripleo: | |
status: | Triaged → Fix Released |
I confirm, on a newton-> ocata upgrade, I've got the same error. Going on the controller:
os-apply-config --key hiera.datafiles --type raw --key-default empty
-> "bootstrap_node": {"mapped_data": {"bootstrap_ nodeid" : "overcloud- controller- 0", "bootstrap_ nodeid_ ip": "192.168.24.14"}}, "all_nodes": {"mapped_data": {"heat_ api_enabled" : "true", "mongodb_network": "internal_api", "gnocchi_ api_network" : "internal_api", "cinder_ volume_ enabled" : "true", "ca_certs_enabled": "true", "timezone_ short_node_ names": ["overcloud- controller- 0", "overcloud- controller- 1", "overcloud- controller- 2", "overcloud- novacompute- 0", "overcloud- novacompute- 1", "overcloud- cephstorage- 0"],... .
so the check in https:/ /review. openstack. org/#/c/ 426241/ 2/heat- config- hiera/install. d/hook- hiera.py fails and then the upgrade fails:
Legacy hieradata from os-apply-config has been detected. Please update all of your interfaces to use the new heat-agents hiera hook before proceeding
This https:/ /github. com/openstack- infra/tripleo- ci/blob/ master/ scripts/ tripleo. sh#L844. .L846 has been applied and going on the platform:
[root@overcloud -controller- 0 ~]# ls -lrth /usr/libexec/ os-apply- config/ templates/ etc/puppet/ hiera.yaml /usr/libexec/ os-refresh- config/ configure. d/40-hiera- datafiles /etc/puppet/ hieradata/ *.yaml os-apply- config/ templates/ etc/puppet/ hiera.yaml: No such file or directory os-refresh- config/ configure. d/40-hiera- datafiles: No such file or directory hieradata/ *.yaml: No such file or directory
ls: cannot access /usr/libexec/
ls: cannot access /usr/libexec/
ls: cannot access /etc/puppet/