puppet-nova/spec
Oliver Walsh 1cd349f893 Fix handling of nova pci MultiStrOpt params
The changes in Ie27dbbc510c73c685b239a9be4af2700a0eb42f0 did not appear to fix
the handling of the nova pci_* params. The config being written to nova.conf
remains in the ListOpt format.

As support for MultiStrOpt was added to nova_config in
I6be7bb4cea1906bd98c513bd2d01153e4643e3ac we just need to pass an array of
strings to nova_config to set these MultiStrOpt params.

Nova expects the string values to be JSON encoded so that is what the parser
function now returns.  This function has also been renamed from
'check_array_of_hash' (which it never did) to 'to_array_of_json_strings'.

The acceptable input formats are a JSON array of objects or a puppet Array of
Hashes. Perviously a "JSON with single quotes" format was used but should now
be considered deprecated as it could corrupt data.

This also removes any pci_alias entries from nova.conf when the param is not
set.

Change-Id: Ida3ecab717bc3113ba23553c559263f35c49c46a
Closes-bug: #1696955
2017-08-14 12:52:20 +01:00
..
acceptance Deprecate nova::cert 2017-05-01 20:50:46 +00:00
classes Fix handling of nova pci MultiStrOpt params 2017-08-14 12:52:20 +01:00
defines Deprecate nova::cell_v2::cell and add reno for new cell_v2 type. 2017-04-13 10:02:07 +00:00
fixtures/manifests Test bug #1278452 with real node definitions 2014-04-14 13:35:27 -04:00
hosts Move nova to use OSDefaults - Part1 2016-06-11 15:19:55 -03:00
type Merge "Remove extra spaces" 2017-07-27 02:13:48 +00:00
unit Switch nova_security_rule to openstack provider 2017-07-27 16:10:55 -04:00
shared_examples.rb Add hooks for external install & svc management 2015-12-08 10:14:11 -05:00
spec_helper.rb Move rspec-puppet-facts to spec helper 2016-09-30 14:03:24 -06:00
spec_helper_acceptance.rb Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance 2016-01-18 09:11:28 -05:00