nsx-v plugin v1.1.0 problems with hiera overrides

Bug #1527594 reported by Nikita Koshikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel NSXv plugin
Fix Committed
High
Igor Zinovik

Bug Description

When using nsx-v plugin with others plugins that adds values inside quantum_settings hash - the deployment fails with:
$quantum_settings is :undef, not a hash or array at puppet/modules/nsxv/manifests/init.pp:14

Steps to reproduce:
1)create hiera override file with content:
quantum_settings:
 keystone:
   admin_password: 'passwd'

2)Try to run nsxv-install task
cd /etc/fuel/plguins/nsxv-1.0/
puppet apply --debug --modulepath:'puppet/modules:/etc/puppet/modules' puppet/manifests/nsxv-config.pp

fix is pretty simple - change hiera to hiera_hash

deployment_scripts/puppet/modules/nsxv/manifests/init.pp
- $quantum_settings = hiera('quantum_settings')
+ $quantum_settings = hiera_hash('quantum_settings')

deployment_scripts/puppet/modules/nsxv/files/openstack-network-controller.pp
- $ceilometer_hash = hiera('ceilometer',{})
+ $ceilometer_hash = hiera_hash('ceilometer',{})

This is MOS 7.0 and plugin version: 1.1.0

Ilya Kutukov (ikutukov)
Changed in fuel:
assignee: nobody → MOS Maintenance (mos-maintenance)
importance: Undecided → High
status: New → Confirmed
milestone: none → 7.0-updates
Igor Zinovik (izinovik)
tags: added: non-release
affects: fuel → fuel-plugins
Changed in fuel-plugins:
milestone: 7.0-updates → none
assignee: MOS Maintenance (mos-maintenance) → Igor Zinovik (izinovik)
Igor Zinovik (izinovik)
tags: added: nsxv
Revision history for this message
Igor Zinovik (izinovik) wrote :
Changed in fuel-plugins:
status: Confirmed → In Progress
summary: - nsx-v plugin problems with hiera overrides
+ nsx-v plugin v1.1.0 problems with hiera overrides
Revision history for this message
Artem Savinov (asavinov) wrote :

If you create hiera override file with content(with highest priority in hiera):

quantum_settings:
 keystone:
   admin_password: 'passwd'

you get error in top-role-compute task(uses for compute/compute-vmware roles)

Error: $neutron_config["database"] is :undef, not a hash or array at /etc/puppet/modules/osnailyfacter/modular/roles/compute.pp:97

https://github.com/openstack/fuel-library/blob/stable/7.0/deployment/puppet/osnailyfacter/modular/roles/compute.pp#L96
(this fix in master branch)

Igor Zinovik (izinovik)
Changed in fuel-plugins:
status: In Progress → Fix Committed
Revision history for this message
Nikita Koshikov (nkoshikov) wrote :
Changed in fuel-plugins:
milestone: none → 7.0
affects: fuel-plugins → fuel-plugin-nsxv
Changed in fuel-plugin-nsxv:
milestone: 7.0 → none
milestone: none → 1.0.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.