Running hiera task owerwrites plugin data files in the config

Bug #1512456 reported by Dmitry Ilyin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Vladimir Kuklin

Bug Description

Running hiera task will overwrite any modification to the hiera config file made by plugins

Plugin should has ability for re-define already existing data in hiera.
This need for just modify data for process it later by standart fuel manifests.

For example, plugin, than just disable OVS usage in network_scheme and configure network by standart netconfig task.

Dmitry Ilyin (idv1985)
Changed in fuel:
importance: Undecided → High
assignee: nobody → Dmitry Ilyin (idv1985)
milestone: none → 8.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/240973

Changed in fuel:
status: New → In Progress
Dmitry Pyzhov (dpyzhov)
tags: added: area-library
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

The actual issue was corrected in running Hiera twice in master branch. Moving this to low and feature tag.

tags: added: feature
Changed in fuel:
importance: High → Low
Revision history for this message
Sergey Vasilenko (xenolog) wrote :

Also plugin should has ability for re-define already existing in hiera data.
This need for just modify data for process it later by standart fuel manifests.

For example, plugin, than just disable OVS usage in network_scheme and configure network by standart netconfig task.

description: updated
Changed in fuel:
importance: Low → Medium
Changed in fuel:
assignee: Dmitry Ilyin (idv1985) → Vladimir Kuklin (vkuklin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/240973
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=134d640af1d043e5649d384a2c33e1193473d65f
Submitter: Jenkins
Branch: master

commit 134d640af1d043e5649d384a2c33e1193473d65f
Author: Dmitry Ilyin <email address hidden>
Date: Mon Nov 2 22:27:08 2015 +0300

    Extend hiera task to improve plugin support

    * Add hiera_config type to mange hiera.yaml
    * Plugins can put their overrides to /etc/hiera/plugins/
    * Running hiera_config again will gather override files
      and insert records for them to the main config file after
      the basic elements
    * Or, it metadata_yaml_file is present, hiera_config can
      take the list of enabled plugins and add records for them
      instead of scanning the plugins directory

    Closes-Bug: 1512456
    DocImpact: add information about placing plugin data files to /etc/hiera/plugins/ instead of other files.
    Change-Id: Ifdb27708a2457e8c1430695bb2412594806d211f

Changed in fuel:
status: In Progress → Fix Released
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.