Modify pci_passthrough hiera value as string
authorSaravanan KR <skramaja@redhat.com>
Wed, 22 Mar 2017 14:10:29 +0000 (19:40 +0530)
committerSaravanan KR <skramaja@redhat.com>
Tue, 28 Mar 2017 08:33:20 +0000 (14:03 +0530)
Hiera value of nova::compute::pci_passthrough should be a string.
It has been modified to JSON with the heira hook changes. Modifying
it again back to string.
Closes-Bug: #1675036

Change-Id: I441907ff313ecc5b7b4da562c6be195687fc6c76

puppet/services/nova-compute.yaml
releasenotes/notes/sriov-pci-passthrough-8f28719b889bdaf7.yaml [new file with mode: 0644]

index d208bed..a9737eb 100644 (file)
@@ -52,7 +52,7 @@ parameters:
       For different formats, refer to the nova.conf documentation for
       pci_passthrough_whitelist configuration
     type: json
-    default: {}
+    default: ''
   NovaVcpuPinSet:
     description: >
       A list or range of physical CPU cores to reserve for virtual machine
@@ -101,7 +101,11 @@ outputs:
         map_merge:
           - get_attr: [NovaBase, role_data, config_settings]
           - nova::compute::libvirt::manage_libvirt_services: false
-            nova::compute::pci_passthrough: {get_param: NovaPCIPassthrough}
+            nova::compute::pci_passthrough:
+              str_replace:
+                template: "JSON_PARAM"
+                params:
+                  JSON_PARAM: {get_param: NovaPCIPassthrough}
             nova::compute::vcpu_pin_set: {get_param: NovaVcpuPinSet}
             nova::compute::reserved_host_memory: {get_param: NovaReservedHostMemory}
             # we manage migration in nova common puppet profile
diff --git a/releasenotes/notes/sriov-pci-passthrough-8f28719b889bdaf7.yaml b/releasenotes/notes/sriov-pci-passthrough-8f28719b889bdaf7.yaml
new file mode 100644 (file)
index 0000000..20146b0
--- /dev/null
@@ -0,0 +1,4 @@
+---
+fixes:
+  - The ``pci_passthrough`` hiera value should be passed as a string
+    (`bug 1675036 <https://bugs.launchpad.net/tripleo/+bug/1675036>`__).