Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1, apply for the fix
- sudo add-apt-repository cloud-archive:caracal-proposed
- sudo apt update
- sudo apt install heat-common=1:22.0.1-0ubuntu1.3~cloud0 python3-heat=1:22.0.1-0ubuntu1.3~cloud0 heat-engine=1:22.0.1-0ubuntu1.3~cloud0 -y
- sudo apt install heat-api=1:22.0.1-0ubuntu1.3~cloud0 heat-api-cfn=1:22.0.1-0ubuntu1.3~cloud0 -y
- ubuntu@juju-26fdcf-caracal-2:~$ sudo systemctl status heat-engine |grep active
- Active: active (running) since Tue 2026-07-21 07:51:58 UTC; 10s ago
- ubuntu@juju-26fdcf-caracal-2:~$ sudo dpkg -l |grep heat
- ii heat-api 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - ReST API
- ii heat-api-cfn 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - CFN API
- ii heat-common 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - common files
- ii heat-engine 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - engine
- ii python3-heat 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - Python 3 files
- ii python3-heatclient 3.5.0-0ubuntu1~cloud0 all client library and CLI for OpenStack Heat - Python 3.x
- ubuntu@juju-26fdcf-caracal-2:~$ sudo apt-cache policy heat-engine
- heat-engine:
- Installed: 1:22.0.1-0ubuntu1.3~cloud0
- Candidate: 1:22.0.1-0ubuntu1.3~cloud0
- Version table:
- *** 1:22.0.1-0ubuntu1.3~cloud0 500
- 500 http://ubuntu-cloud.archive.canonical.com/ubuntu jammy-proposed/caracal/main amd64 Packages
- 100 /var/lib/dpkg/status
- 1:22.0.1-0ubuntu1.2~cloud0 500
- 500 http://ubuntu-cloud.archive.canonical.com/ubuntu jammy-updates/caracal/main amd64 Packages
- 1:18.0.1-0ubuntu1.3 500
- 500 http://az1.clouds.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
- 1:18.0.1-0ubuntu1.1 500
- 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
- 1:18.0.0-0ubuntu1 500
- 500 http://az1.clouds.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
- $ openstack stack list
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- | ID | Stack Name | Project | Stack Status | Creation Time | Updated Time |
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- | aada9b13-7d97-4c16-b250-d29a2d6a7531 | test-sriov | 3be20dcd2d104c519c7658100a6fe32d | CREATE_COMPLETE | 2026-07-21T08:13:09Z | None |
- | 658b140b-ddd8-4ded-a828-2510e945b79c | sriov-port-stack | 3be20dcd2d104c519c7658100a6fe32d | CREATE_COMPLETE | 2026-07-21T08:12:43Z | None |
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- $ nova list
- nova CLI is deprecated and will be removed in a future release
- +--------------------------------------+------+--------+------------+-------------+-----------------------+
- | ID | Name | Status | Task State | Power State | Networks |
- +--------------------------------------+------+--------+------------+-------------+-----------------------+
- | 3a9212c5-3325-4b92-8cd5-e97cfdda81a6 | i1 | ACTIVE | - | Running | private=192.168.21.69 |
- +--------------------------------------+------+--------+------------+-------------+-----------------------+
- 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
- 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
- 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:43:29Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-07-21 08:43:29Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | 658b140b-ddd8-4ded-a828-2510e945b79c |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-07-21T08:12:43Z |
- | updated_time | 2026-07-21T08:43:29Z |
- | 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
- 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
- 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