zhhuabj

Untitled

Jul 21st, 2026
69
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.16 KB | None | 0 0
  1. 1, apply for the fix
  2.  
  3. sudo add-apt-repository cloud-archive:caracal-proposed
  4. sudo apt update
  5. 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
  6. sudo apt install heat-api=1:22.0.1-0ubuntu1.3~cloud0 heat-api-cfn=1:22.0.1-0ubuntu1.3~cloud0 -y
  7.  
  8. ubuntu@juju-26fdcf-caracal-2:~$ sudo systemctl status heat-engine |grep active
  9. Active: active (running) since Tue 2026-07-21 07:51:58 UTC; 10s ago
  10. ubuntu@juju-26fdcf-caracal-2:~$ sudo dpkg -l |grep heat
  11. ii heat-api 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - ReST API
  12. ii heat-api-cfn 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - CFN API
  13. ii heat-common 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - common files
  14. ii heat-engine 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - engine
  15. ii python3-heat 1:22.0.1-0ubuntu1.3~cloud0 all OpenStack orchestration service - Python 3 files
  16. ii python3-heatclient 3.5.0-0ubuntu1~cloud0 all client library and CLI for OpenStack Heat - Python 3.x
  17. ubuntu@juju-26fdcf-caracal-2:~$ sudo apt-cache policy heat-engine
  18. heat-engine:
  19. Installed: 1:22.0.1-0ubuntu1.3~cloud0
  20. Candidate: 1:22.0.1-0ubuntu1.3~cloud0
  21. Version table:
  22. *** 1:22.0.1-0ubuntu1.3~cloud0 500
  23. 500 http://ubuntu-cloud.archive.canonical.com/ubuntu jammy-proposed/caracal/main amd64 Packages
  24. 100 /var/lib/dpkg/status
  25. 1:22.0.1-0ubuntu1.2~cloud0 500
  26. 500 http://ubuntu-cloud.archive.canonical.com/ubuntu jammy-updates/caracal/main amd64 Packages
  27. 1:18.0.1-0ubuntu1.3 500
  28. 500 http://az1.clouds.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
  29. 1:18.0.1-0ubuntu1.1 500
  30. 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
  31. 1:18.0.0-0ubuntu1 500
  32. 500 http://az1.clouds.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
  33.  
  34. $ openstack stack list
  35. +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
  36. | ID | Stack Name | Project | Stack Status | Creation Time | Updated Time |
  37. +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
  38. | aada9b13-7d97-4c16-b250-d29a2d6a7531 | test-sriov | 3be20dcd2d104c519c7658100a6fe32d | CREATE_COMPLETE | 2026-07-21T08:13:09Z | None |
  39. | 658b140b-ddd8-4ded-a828-2510e945b79c | sriov-port-stack | 3be20dcd2d104c519c7658100a6fe32d | CREATE_COMPLETE | 2026-07-21T08:12:43Z | None |
  40. +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
  41.  
  42. $ nova list
  43. nova CLI is deprecated and will be removed in a future release
  44. +--------------------------------------+------+--------+------------+-------------+-----------------------+
  45. | ID | Name | Status | Task State | Power State | Networks |
  46. +--------------------------------------+------+--------+------------+-------------+-----------------------+
  47. | 3a9212c5-3325-4b92-8cd5-e97cfdda81a6 | i1 | ACTIVE | - | Running | private=192.168.21.69 |
  48. +--------------------------------------+------+--------+------------+-------------+-----------------------+
  49.  
  50.  
  51. 2, reset profile
  52. cat <<EOF > sriov-port-update.yaml
  53. heat_template_version: 2015-10-15
  54. parameters:
  55. sriov_net:
  56. type: string
  57. default: private
  58. resources:
  59. sriov_port:
  60. type: OS::Neutron::Port
  61. properties:
  62. name: heat-sriov-port1
  63. network: { get_param: sriov_net }
  64. value_specs:
  65. binding:profile:
  66. capabilities: ["switchdev"]
  67. card_serial_number: "MT2234420968"
  68. pci_slot: "0000:04:00.2"
  69. pci_vendor_info: "15b3:1016"
  70. pf_mac_address: "1e:38:96:af:a0:55"
  71. physical_network: "physnet1"
  72. vf_num: "1"
  73. spoof: null
  74. EOF
  75. openstack stack update -t sriov-port-update.yaml sriov-port-stack --wait
  76. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  77. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  78. {
  79. "capabilities": [
  80. "switchdev"
  81. ],
  82. "card_serial_number": "MT2234420968",
  83. "pci_slot": "0000:04:00.2",
  84. "pci_vendor_info": "15b3:1016",
  85. "pf_mac_address": "1e:38:96:af:a0:55",
  86. "physical_network": "physnet1",
  87. "vf_num": "1"
  88. }
  89.  
  90.  
  91.  
  92. 3, add spoof=true without patch
  93. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  94. {
  95. "capabilities": [
  96. "switchdev"
  97. ],
  98. "card_serial_number": "MT2234420968",
  99. "pci_slot": "0000:04:00.2",
  100. "pci_vendor_info": "15b3:1016",
  101. "pf_mac_address": "1e:38:96:af:a0:55",
  102. "physical_network": "physnet1",
  103. "vf_num": "1"
  104. }
  105.  
  106.  
  107. cat <<EOF > sriov-port-add-spoof.yaml
  108. heat_template_version: 2015-10-15
  109. parameters:
  110. sriov_net:
  111. type: string
  112. default: private
  113. resources:
  114. sriov_port:
  115. type: OS::Neutron::Port
  116. properties:
  117. name: heat-sriov-port1
  118. network: { get_param: sriov_net }
  119. value_specs:
  120. binding:profile:
  121. spoof: "true"
  122. EOF
  123. openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
  124. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  125. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  126. {
  127. "capabilities": [
  128. "switchdev"
  129. ],
  130. "card_serial_number": "MT2234420968",
  131. "pci_slot": "0000:04:00.2",
  132. "pci_vendor_info": "15b3:1016",
  133. "pf_mac_address": "1e:38:96:af:a0:55",
  134. "physical_network": "physnet1",
  135. "vf_num": "1",
  136. "spoof": "true"
  137. }
  138.  
  139.  
  140. 3, keep spoof=true unchange, so re-run again
  141. $ openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
  142. 2026-07-21 08:43:29Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
  143. 2026-07-21 08:43:29Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
  144. +---------------------+--------------------------------------+
  145. | Field | Value |
  146. +---------------------+--------------------------------------+
  147. | id | 658b140b-ddd8-4ded-a828-2510e945b79c |
  148. | stack_name | sriov-port-stack |
  149. | description | No description |
  150. | creation_time | 2026-07-21T08:12:43Z |
  151. | updated_time | 2026-07-21T08:43:29Z |
  152. | stack_status | UPDATE_COMPLETE |
  153. | stack_status_reason | Stack UPDATE completed successfully |
  154. +---------------------+--------------------------------------+
  155.  
  156.  
  157. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  158. {
  159. "capabilities": [
  160. "switchdev"
  161. ],
  162. "card_serial_number": "MT2234420968",
  163. "pci_slot": "0000:04:00.2",
  164. "pci_vendor_info": "15b3:1016",
  165. "pf_mac_address": "1e:38:96:af:a0:55",
  166. "physical_network": "physnet1",
  167. "vf_num": "1",
  168. "spoof": "true"
  169. }
  170.  
  171.  
  172. 4, delete spoof
  173. cat <<EOF > sriov-port-delete-spoof.yaml
  174. heat_template_version: 2015-10-15
  175. parameters:
  176. sriov_net:
  177. type: string
  178. default: private
  179. resources:
  180. sriov_port:
  181. type: OS::Neutron::Port
  182. properties:
  183. name: heat-sriov-port1
  184. network: { get_param: sriov_net }
  185. value_specs:
  186. binding:profile:
  187. spoof: null
  188. EOF
  189. openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
  190. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  191. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  192. {
  193. "capabilities": [
  194. "switchdev"
  195. ],
  196. "card_serial_number": "MT2234420968",
  197. "pci_slot": "0000:04:00.2",
  198. "pci_vendor_info": "15b3:1016",
  199. "pf_mac_address": "1e:38:96:af:a0:55",
  200. "physical_network": "physnet1",
  201. "vf_num": "1"
  202. }
  203.  
  204.  
  205. 5, modify vf_num to 0, and add spoof=true again, and delete card_serial_number
  206. cat <<EOF > sriov-port-delete-spoof.yaml
  207. heat_template_version: 2015-10-15
  208. parameters:
  209. sriov_net:
  210. type: string
  211. default: private
  212. resources:
  213. sriov_port:
  214. type: OS::Neutron::Port
  215. properties:
  216. name: heat-sriov-port1
  217. network: { get_param: sriov_net }
  218. value_specs:
  219. binding:profile:
  220. vf_num: '0'
  221. spoof: 'true'
  222. card_serial_number: null
  223. EOF
  224. openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
  225. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  226. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  227. {
  228. "capabilities": [
  229. "switchdev"
  230. ],
  231. "card_serial_number": "MT2234420968",
  232. "pci_slot": "0000:04:00.2",
  233. "pci_vendor_info": "15b3:1016",
  234. "pf_mac_address": "1e:38:96:af:a0:55",
  235. "physical_network": "physnet1",
  236. "vf_num": "0",
  237. "spoof": "true"
  238. }
  239.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment