globals task works wrong on redeployment if hiera override done by plugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Kyrylo Galanov | ||
Mitaka |
Fix Released
|
High
|
Kyrylo Galanov |
Bug Description
Fuel 9.0 RC2
NetApp fuel plugin has hiera override that overrides "storage" section.
Globals.pp uses hiera() function instead of hiera_hash() for "storage" and other sections. [1]
This causes different globals.yaml on second (LCM) deploy-changes run.
In short, plugin that does hiera override will probably break LCM.
See the difference:
root@node-2:~# hiera storage
{"volume_
root@node-2:~# hiera -h storage
{"admin_
"bootstrap_
"ephemeral_
"fsid"
"images_
"images_
"metadata"
"mon_key"=>"...",
"objects_
"osd_pool_
"per_pool_
{".rgw"=>64,
"backups"=>64,
"compute"=>64,
"default_
"images"=>64,
"volumes"=>64},
"pg_num"=>64,
"radosgw_
"volumes_
"volumes_
"volumes_
"volume_
{"volumes_
"volumes_
"volumes_
"netapp"
Steps to reproduce:
1) Deploy 9.0 env
2) Do "hiera storage" on controller (Thats what hiera func does)
3) Simulate hiera override on controller
root@node-2:~# cat /etc/hiera/
storage:
volume_
netapp: cinder_netapp
4) Do "hiera storage"
Expected result: See all default values plus changes
Actual result: See only override
Changed in fuel: | |
milestone: | none → 10.0 |
tags: | added: area-library |
no longer affects: | fuel/newton |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Kyrylo Galanov (kgalanov) |
Changed in fuel: | |
status: | Confirmed → In Progress |
summary: |
- globals task works wrong if hiera override done by plugin + globals task works wrong on redeployment if hiera override done by + plugin |
tags: | added: 9.1-proposed |
tags: | added: on-verification |
Fix proposed to branch: master /review. openstack. org/340686
Review: https:/