backends.pp should not override already enabled_backends

Bug #1598094 reported by Roman Sokolkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Wishlist
Unassigned
puppet-cinder
Invalid
Undecided
Unassigned

Bug Description

In current implementation cinder::backends will override all existing values in [DEFAULT]/enabled_backends. If backends managed from different manifests it doesn't allow to keep existing, while adding new.

Probably it would be better to use ini_subsetting instead of cinder_config.

Steps to reproduce:
0) Let's say you want to deploy two Cinder backends (in my case one by Fuel plugin, but generally it can be standalone manifest)
1) Create new plugin that uses cinder::backends to add backend X
2) Deploy MOS 9.0 with new plugin and LVM or Ceph backend

Actual result:
[DEFAULT]/enabled_backends will be overwritten by plugin and by Fuel.
Finally it will have either Backend X or Fuel backend depending on executing order.

Expected result:
[DEFAULT]/enabled_backends will have both Backend X and Fuel backends

Tags: area-puppet
Revision history for this message
Dmitry Klenov (dklenov) wrote :

@Roman, can you please add steps to reproduce?

Changed in fuel:
milestone: none → 10.0
assignee: nobody → MOS Cinder (mos-cinder)
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Roman Sokolkov (rsokolkov) wrote :

@Dmitry, done.

description: updated
Changed in fuel:
assignee: MOS Cinder (mos-cinder) → MOS Puppet Team (mos-puppet)
importance: High → Wishlist
status: Incomplete → Confirmed
tags: added: area-puppet
Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

@Roman, I don't think we should switch to ini_subsetting. Please take a look on this lines: https://github.com/openstack/fuel-library/blob/master/deployment/puppet/openstack_tasks/manifests/roles/cinder.pp#L91-L110 - this gives you first backend name:
https://github.com/openstack/fuel-library/blob/master/deployment/puppet/openstack_tasks/manifests/roles/cinder.pp#L226

You just need to pass you value for backend name in second element of array. I think you need to fix your manifest only.

Changed in fuel:
status: Confirmed → Won't Fix
status: Won't Fix → Invalid
Curtis Hovey (sinzui)
Changed in fuel:
assignee: Registry Administrators (registry) → nobody
Revision history for this message
Takashi Kajinami (kajinamit) wrote :

There is no issue with puppet-cinder's implementation mentioned.
I'll close this now.

Changed in puppet-cinder:
status: New → Invalid
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.