Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@juju-d22955-flamingo-2:~$ sudo add-apt-repository cloud-archive:flamingo-proposed
- Repository: 'deb http://ubuntu-cloud.archive.canonical.com/ubuntu noble-proposed/flamingo main'
- Description:
- Ubuntu Cloud Archive for OpenStack Flamingo [proposed]
- More info: https://wiki.ubuntu.com/OpenStack/CloudArchive
- Adding repository.
- Press [ENTER] to continue or Ctrl-c to cancel.
- Adding deb entry to /etc/apt/sources.list.d/cloudarchive-flamingo.list
- Adding disabled deb-src entry to /etc/apt/sources.list.d/cloudarchive-flamingo.list
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- ubuntu-cloud-keyring is already the newest version (2023.11.28.1).
- 0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
- Hit:1 http://az1.clouds.archive.ubuntu.com/ubuntu noble InRelease
- Get:2 http://az1.clouds.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
- Get:3 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
- Hit:4 http://az1.clouds.archive.ubuntu.com/ubuntu noble-backports InRelease
- Get:5 http://az1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1229 kB]
- Get:6 http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/flamingo InRelease [6575 B]
- Get:7 http://az1.clouds.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1687 kB]
- Get:8 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [971 kB]
- Get:9 http://ubuntu-cloud.archive.canonical.com/ubuntu noble-proposed/flamingo InRelease [6577 B]
- Get:10 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [206 kB]
- Get:11 http://ubuntu-cloud.archive.canonical.com/ubuntu noble-proposed/flamingo/main amd64 Packages [143 kB]
- Get:12 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1203 kB]
- Get:13 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [1392 kB]
- Get:14 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [321 kB]
- Fetched 7416 kB in 3s (2367 kB/s)
- Reading package lists... Done
- sudo apt install heat-common=1:25.0.0-0ubuntu1~cloud1 python3-heat=1:25.0.0-0ubuntu1~cloud1 heat-engine=1:25.0.0-0ubuntu1~cloud1 -y
- sudo apt install heat-api=1:25.0.0-0ubuntu1~cloud1 heat-api-cfn=1:25.0.0-0ubuntu1~cloud1 -y
- ubuntu@juju-d22955-flamingo-2:~$ sudo apt-cache policy heat-common
- heat-common:
- Installed: 1:25.0.0-0ubuntu1~cloud1
- Candidate: 1:25.0.0-0ubuntu1~cloud1
- Version table:
- *** 1:25.0.0-0ubuntu1~cloud1 500
- 500 http://ubuntu-cloud.archive.canonical.com/ubuntu noble-proposed/flamingo/main amd64 Packages
- 100 /var/lib/dpkg/status
- 1:25.0.0-0ubuntu1~cloud0 500
- 500 http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/flamingo/main amd64 Packages
- 1:22.0.1-0ubuntu1.3 500
- 500 http://az1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
- 1:22.0.0-0ubuntu1 500
- 500 http://az1.clouds.archive.ubuntu.com/ubuntu noble/main amd64 Packages
- $ openstack stack list
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- | ID | Stack Name | Project | Stack Status | Creation Time | Updated Time |
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- | 4a5796a8-42d3-4dbb-a41f-90e52a18c779 | test-sriov | 4cfa727e460b49a98fa0fc322912b46f | CREATE_COMPLETE | 2026-08-26T02:21:33Z | None |
- | 057739a8-3783-4914-b93c-0633d8b8b2be | sriov-port-stack | 4cfa727e460b49a98fa0fc322912b46f | CREATE_COMPLETE | 2026-08-26T02:07:18Z | None |
- +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
- $ openstack server list
- +--------------------------------------+------+--------+------------------------+-------+----------+
- | ID | Name | Status | Networks | Image | Flavor |
- +--------------------------------------+------+--------+------------------------+-------+----------+
- | 7c318c6e-00de-4585-a7d6-d5a102b36734 | i1 | ACTIVE | private=192.168.21.190 | jammy | m1.small |
- +--------------------------------------+------+--------+------------------------+-------+----------+
- 2, reset profile
- $ cat <<EOF > sriov-port-update.yamlate.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.003s]2026-08-26 02:23:12Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-08-26 02:23:12Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-08-26 02:23:13Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-08-26 02:23:13Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | 057739a8-3783-4914-b93c-0633d8b8b2be |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-08-26T02:07:18Z |
- | updated_time | 2026-08-26T02:23:12Z |
- | 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"
- }
- 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.yamloof.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.003s]2026-08-26 02:24:26Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-08-26 02:24:26Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-08-26 02:24:27Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-08-26 02:24:27Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | 057739a8-3783-4914-b93c-0633d8b8b2be |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-08-26T02:07:18Z |
- | updated_time | 2026-08-26T02:24:26Z |
- | 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"
- }
- 3, keep spoof=true unchange, so re-run again
- $ openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
- 2026-08-26 02:25:16Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-08-26 02:25:16Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | 057739a8-3783-4914-b93c-0633d8b8b2be |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-08-26T02:07:18Z |
- | updated_time | 2026-08-26T02:25:16Z |
- | 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.yamloof.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.003s]2026-08-26 02:26:09Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-08-26 02:26:09Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-08-26 02:26:10Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-08-26 02:26:10Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | 057739a8-3783-4914-b93c-0633d8b8b2be |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-08-26T02:07:18Z |
- | updated_time | 2026-08-26T02:26:09Z |
- | 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"
- }
- 5, modify vf_num to 0, and add spoof=true again, and delete card_serial_number
- $ cat <<EOF > sriov-port-delete-spoof.yamloof.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.003s]2026-08-26 02:27:04Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
- 2026-08-26 02:27:04Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
- 2026-08-26 02:27:05Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
- 2026-08-26 02:27:05Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
- +---------------------+--------------------------------------+
- | Field | Value |
- +---------------------+--------------------------------------+
- | id | 057739a8-3783-4914-b93c-0633d8b8b2be |
- | stack_name | sriov-port-stack |
- | description | No description |
- | creation_time | 2026-08-26T02:07:18Z |
- | updated_time | 2026-08-26T02:27:04Z |
- | 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": "0",
- "spoof": "true"
- }
Advertisement