wrong yaql expression for "deleted_nodes" generation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Michael Polenchuk | ||
Mitaka |
Won't Fix
|
High
|
Stanislaw Bogatkin |
Bug Description
Detailed bug description:
In current master there is yaql expression: https:/
It produces "null" in case without node deletions. But puppets need list (in this case - empty list), example: https:/
Puppet fails on nil values, returned by hiera (default value '[]' is not used).
Steps to reproduce:
Use latest ISO with current master/MOS 10, deploy env without node deletions.
Expected results:
Env is deployed.
Actual result:
Deployment fails with something like this: 2016-06-07 17:33:38 +0000 Puppet (err): Could not find data item deleted_nodes in any Hiera data file and no default supplied at /etc/puppet/
domain.local
Reproducibility:
-
Workaround:
-
Impact:
Deploying Fuel with Ubuntu 16.04 nodes.
Description of the environment:
Operation system: Ubuntu 16.04
Versions of components: -
Reference architecture: -
Network model: -
Related projects installed: -
Additional information:
-
Changed in fuel: | |
status: | Fix Committed → Confirmed |
fuel-yaql> {"deleted_nodes" => $.get(deleted( $.network_ metadata. nodes.values( ).fqdn) , [])}.toYaml()