nova::compute::pci Generates Multiple Entries When hieradata nova::compute::pci::passthrough Contains JSON With Multiple Objects

Bug #1828105 reported by Vadim Khitrin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-nova
Invalid
Undecided
Unassigned

Bug Description

When deploying with TripleO and passing the following TripleO parameter,
  NovaPCIPassthrough:
    - devname: "eth10"
      trusted: "true"
      physical_network: "sriov-1"
    - devname: "eth11"
      trusted: "true"
      physical_network: "sriov-2"

TripleO will create the following hieradata:
"nova::compute::pci::passthrough": "[{\"devname\": \"eth10\", \"physical_network\": \"sriov-1\", \"trusted\": \"true\"}, {\"devname\": \"eth11\", \"physical_network\": \"sriov-2\", \"trusted\": \"true\"}]"\

When executing /etc/puppet/modules/nova/manifests/compute/pci.pp with the hieradata mentioned above, it will result in the following 2 entries:
[pci]
passthrough_whitelist=[{"devname": "eth10", "physical_network": "sriov-1", "trusted": "true"}]
passthrough_whitelist=[{"devname": "eth11", "physical_network": "sriov-2", "trusted": "true"}]

This behaviour up to Stein release did not cause any issues.

Since Stein release, during Podman containers deployment on compute nodes, nova_wait_for_compute_service.py script runs and verifies nova.conf.
Script will fail due to multiple values of 'passthrough_whitelist' which were generated by puppet.
Refer to tripleo-heat-templates launchpad#1827775 - https://bugs.launchpad.net/tripleo/+bug/1827775

Revision history for this message
Vadim Khitrin (vkhitrin) wrote :

https://review.opendev.org/#/c/657673/

Verified it on fresh deployment of Stein

Revision history for this message
Vadim Khitrin (vkhitrin) wrote :

Will be solved by TripleO https://bugs.launchpad.net/tripleo/+bug/1827775/comments/4

No need to alter puppet-nova if it worked thus far

Changed in puppet-nova:
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.