pci-passthrough-whitelist accepts config with newlines which generates errors in nova.conf

Bug #1904915 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
New
Undecided
Unassigned

Bug Description

cs:nova-compute-322

applications:
  nova-compute-kvm-sriov:
      options:
        pci-passthrough-whitelist: |
         [
          {"devname":"eth0", "physical_network":"physnet1"},
          {"devname":"eth1", "physical_network":"physnet1"}
         ]

This yaml when applied to the pci_passthrough-whitelist results in newlines in nova.conf which cannot be parsed by nova-compute. The charm should be able at the minimum

sanitized = json.loads(...) the config item
and then
context['pci_passthrough_whitelist'] = json.dumps(sanitized)

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.