Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1, apply for the fix
- sudo add-apt-repository cloud-archive:yoga-proposed
- sudo apt update
- sudo apt install heat-common=1:18.0.1-0ubuntu1.4~cloud0 python3-heat=1:18.0.1-0ubuntu1.4~cloud0 heat-engine=1:18.0.1-0ubuntu1.4~cloud0 -y
- sudo apt install heat-api=1:18.0.1-0ubuntu1.4~cloud0 heat-api-cfn=1:18.0.1-0ubuntu1.4~cloud0 -y
- ubuntu@juju-acfe8b-yoga-2:~$ sudo systemctl status heat-engine |grep active
- Active: active (running) since Tue 2026-07-21 08:49:12 UTC; 11s ago
- ubuntu@juju-acfe8b-yoga-2:~$ dpkg -l |grep heat
- ii heat-api 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - ReST API
- ii heat-api-cfn 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - CFN API
- ii heat-common 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - common files
- ii heat-engine 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - engine
- ii python3-heat 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - Python 3 files
- ii python3-heatclient 2.5.1-0ubuntu1~cloud0 all client library and CLI for OpenStack Heat - Python 3.x
- ubu
- ubuntu@juju-acfe8b-yoga-2:~$ sudo apt-cache policy heat-engine
- heat-engine:
- Installed: 1:18.0.1-0ubuntu1.4~cloud0
- Candidate: 1:18.0.1-0ubuntu1.4~cloud0
- Version table:
- *** 1:18.0.1-0ubuntu1.4~cloud0 500
- 500 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-proposed/yoga/main amd64 Packages
- 100 /var/lib/dpkg/status
- 1:18.0.1-0ubuntu1.3~cloud0 500
- 500 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-updates/yoga/main amd64 Packages
- 1:14.2.0-0ubuntu2 500
- 500 http://az1.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
- 1:14.2.0-0ubuntu1.1 500
- 500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
- 1:14.0.0~b3~git2020041012.2ef9f4bf3-0ubuntu1 500
- 500 http://az1.clouds.archive.ubuntu.com/ubuntu focal/main amd64 Packages
- $ openstack stack list
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- | ID | Stack Name | Project | Stack Status | Creation Time | Updated Time |
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- | 2ce70653-db22-4882-b9a0-4d50361f91ff | test-sriov | d40f7b11d90341a1ae42b38a12f88a44 | CREATE_COMPLETE | 2026-07-21T08:50:52Z | None |
- | dc430d35-328c-408a-a21d-d4b37dbf6d62 | sriov-port-stack | d40f7b11d90341a1ae42b38a12f88a44 | CREATE_COMPLETE | 2026-07-21T08:50:28Z | None |
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- $ nova list
- nova CLI is deprecated and will be removed in a future release
- +--------------------------------------+---------------+--------+------------+-------------+------------------------+
- | ID | Name | Status | Task State | Power State | Networks |
- +--------------------------------------+---------------+--------+------------+-------------+------------------------+
- | aad72b76-b03b-408f-93ae-6a0055c5565b | cirros-084027 | ACTIVE | - | Running | private=192.168.21.91 |
- | 4b263868-5c49-46e8-8afb-09ae7b4b5b29 | i1 | ACTIVE | - | Running | private=192.168.21.194 |
- +--------------------------------------+---------------+--------+------------+-------------+------------------------+
- 2, reset profile
- cat <<EOF > sriov-port-update.yaml
- heat_template_version: 2015-10-15
- parameters:
- sriov_net:
- type: string
- default: private
- resources:
- sriov_port:
- type: OS::Neutron::Port
- properties:
- name: heat-sriov-port1
- network: { get_param: sriov_net }
- value_specs:
- binding:profile:
- capabilities: ["switchdev"]
- card_serial_number: "MT2234420968"
- pci_slot: "0000:04:00.2"
- pci_vendor_info: "15b3:1016"
- pf_mac_address: "1e:38:96:af:a0:55"
- physical_network: "physnet1"
- vf_num: "1"
- spoof: null
- EOF
- openstack stack update -t sriov-port-update.yaml sriov-port-stack --wait
- [0.004s]2026-07-21 08:52:58Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-07-21 08:52:58Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-07-21 08:52:59Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-07-21 08:52:59Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-07-21T08:50:28Z |
- | updated_time | 2026-07-21T08:52:58Z |
- | stack_status | UPDATE_COMPLETE |
- | stack_status_reason | Stack UPDATE completed successfully |
- +---------------------+--------------------------------------+
- openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- {
- "capabilities": [
- "switchdev"
- ],
- "card_serial_number": "MT2234420968",
- "pci_slot": "0000:04:00.2",
- "pci_vendor_info": "15b3:1016",
- "pf_mac_address": "1e:38:96:af:a0:55",
- "physical_network": "physnet1",
- "vf_num": "1"
- }
- 3, add spoof=true without patch
- $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- {
- "capabilities": [
- "switchdev"
- ],
- "card_serial_number": "MT2234420968",
- "pci_slot": "0000:04:00.2",
- "pci_vendor_info": "15b3:1016",
- "pf_mac_address": "1e:38:96:af:a0:55",
- "physical_network": "physnet1",
- "vf_num": "1"
- }
- cat <<EOF > sriov-port-add-spoof.yaml
- heat_template_version: 2015-10-15
- parameters:
- sriov_net:
- type: string
- default: private
- resources:
- sriov_port:
- type: OS::Neutron::Port
- properties:
- name: heat-sriov-port1
- network: { get_param: sriov_net }
- value_specs:
- binding:profile:
- spoof: "true"
- EOF
- openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
- [0.006s]2026-07-21 08:54:01Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-07-21 08:54:01Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-07-21 08:54:02Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-07-21 08:54:02Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-07-21T08:50:28Z |
- | updated_time | 2026-07-21T08:54:01Z |
- | stack_status | UPDATE_COMPLETE |
- | stack_status_reason | Stack UPDATE completed successfully |
- +---------------------+--------------------------------------+
- openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- {
- "capabilities": [
- "switchdev"
- ],
- "card_serial_number": "MT2234420968",
- "pci_slot": "0000:04:00.2",
- "pci_vendor_info": "15b3:1016",
- "pf_mac_address": "1e:38:96:af:a0:55",
- "physical_network": "physnet1",
- "vf_num": "1",
- "spoof": "true"
- }
- 3, keep spoof=true unchange, so re-run again
- $ openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
- 2026-07-21 08:54:37Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-07-21 08:54:37Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-07-21T08:50:28Z |
- | updated_time | 2026-07-21T08:54:37Z |
- | stack_status | UPDATE_COMPLETE |
- | stack_status_reason | Stack UPDATE completed successfully |
- +---------------------+--------------------------------------+
- $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- {
- "capabilities": [
- "switchdev"
- ],
- "card_serial_number": "MT2234420968",
- "pci_slot": "0000:04:00.2",
- "pci_vendor_info": "15b3:1016",
- "pf_mac_address": "1e:38:96:af:a0:55",
- "physical_network": "physnet1",
- "vf_num": "1",
- "spoof": "true"
- }
- 4, delete spoof
- cat <<EOF > sriov-port-delete-spoof.yaml
- heat_template_version: 2015-10-15
- parameters:
- sriov_net:
- type: string
- default: private
- resources:
- sriov_port:
- type: OS::Neutron::Port
- properties:
- name: heat-sriov-port1
- network: { get_param: sriov_net }
- value_specs:
- binding:profile:
- spoof: null
- EOF
- openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
- [0.004s]2026-07-21 08:55:14Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-07-21 08:55:14Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-07-21 08:55:16Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-07-21 08:55:16Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-07-21T08:50:28Z |
- | updated_time | 2026-07-21T08:55:14Z |
- | stack_status | UPDATE_COMPLETE |
- | stack_status_reason | Stack UPDATE completed successfully |
- +---------------------+--------------------------------------+
- openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- {
- "capabilities": [
- "switchdev"
- ],
- "card_serial_number": "MT2234420968",
- "pci_slot": "0000:04:00.2",
- "pci_vendor_info": "15b3:1016",
- "pf_mac_address": "1e:38:96:af:a0:55",
- "physical_network": "physnet1",
- "vf_num": "1"
- }
- 5, modify vf_num to 0, and add spoof=true again, and delete card_serial_number
- cat <<EOF > sriov-port-delete-spoof.yaml
- heat_template_version: 2015-10-15
- parameters:
- sriov_net:
- type: string
- default: private
- resources:
- sriov_port:
- type: OS::Neutron::Port
- properties:
- name: heat-sriov-port1
- network: { get_param: sriov_net }
- value_specs:
- binding:profile:
- vf_num: '0'
- spoof: 'true'
- card_serial_number: null
- EOF
- openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
- [0.004s]2026-07-21 08:55:57Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-07-21 08:55:57Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-07-21 08:55:58Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-07-21 08:55:58Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-07-21T08:50:28Z |
- | updated_time | 2026-07-21T08:55:57Z |
- | stack_status | UPDATE_COMPLETE |
- | stack_status_reason | Stack UPDATE completed successfully |
- +---------------------+--------------------------------------+
- openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
- {
- "capabilities": [
- "switchdev"
- ],
- "card_serial_number": "MT2234420968",
- "pci_slot": "0000:04:00.2",
- "pci_vendor_info": "15b3:1016",
- "pf_mac_address": "1e:38:96:af:a0:55",
- "physical_network": "physnet1",
- "vf_num": "0",
- "spoof": "true"
- }
Advertisement