zhhuabj

epoxy

Jul 21st, 2026
66
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.35 KB | None | 0 0
  1. 0, apply for the fix
  2.  
  3. sudo add-apt-repository cloud-archive:epoxy-proposed
  4. sudo apt update
  5. sudo apt install heat-common=1:24.0.0-0ubuntu1.1~cloud1 python3-heat=1:24.0.0-0ubuntu1.1~cloud1 heat-engine=1:24.0.0-0ubuntu1.1~cloud1 -y
  6. sudo apt install heat-api=1:24.0.0-0ubuntu1.1~cloud1 heat-api-cfn=1:24.0.0-0ubuntu1.1~cloud1 -y
  7. ubuntu@juju-2dbbe4-epoxy-2:~$ sudo systemctl status heat-engine |grep active
  8. Active: active (running) since Tue 2026-07-21 07:27:34 UTC; 8s ago
  9. ubuntu@juju-2dbbe4-epoxy-2:~$ sudo dpkg -l |grep heat
  10. ii heat-api 1:24.0.0-0ubuntu1.1~cloud1 all OpenStack orchestration service - ReST API
  11. ii heat-api-cfn 1:24.0.0-0ubuntu1.1~cloud1 all OpenStack orchestration service - CFN API
  12. ii heat-common 1:24.0.0-0ubuntu1.1~cloud1 all OpenStack orchestration service - common files
  13. ii heat-engine 1:24.0.0-0ubuntu1.1~cloud1 all OpenStack orchestration service - engine
  14. ii python3-heat 1:24.0.0-0ubuntu1.1~cloud1 all OpenStack orchestration service - Python 3 files
  15. ii python3-heatclient 4.1.0-0ubuntu1~cloud0 all client library and CLI for OpenStack Heat - Python 3.x
  16. ubuntu@juju-2dbbe4-epoxy-2:~$ sudo apt-cache policy heat-engine
  17. heat-engine:
  18. Installed: 1:24.0.0-0ubuntu1.1~cloud1
  19. Candidate: 1:24.0.0-0ubuntu1.1~cloud1
  20. Version table:
  21. *** 1:24.0.0-0ubuntu1.1~cloud1 500
  22. 500 http://ubuntu-cloud.archive.canonical.com/ubuntu noble-proposed/epoxy/main amd64 Packages
  23. 100 /var/lib/dpkg/status
  24. 1:24.0.0-0ubuntu1~cloud0 500
  25. 500 http://ubuntu-cloud.archive.canonical.com/ubuntu noble-updates/epoxy/main amd64 Packages
  26. 1:22.0.1-0ubuntu1.2 500
  27. 500 http://az1.clouds.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
  28. 1:22.0.0-0ubuntu1 500
  29. 500 http://az1.clouds.archive.ubuntu.com/ubuntu noble/main amd64 Packages
  30.  
  31. 1, create the stack
  32.  
  33. cat <<EOF > port-only.yaml
  34. heat_template_version: 2015-10-15
  35. parameters:
  36. sriov_net:
  37. type: string
  38. default: private
  39. resources:
  40. sriov_port:
  41. type: OS::Neutron::Port
  42. properties:
  43. name: heat-sriov-port1
  44. network: { get_param: sriov_net }
  45. value_specs:
  46. binding:vnic_type: normal
  47. binding:profile: {}
  48. outputs:
  49. port_id:
  50. value: { get_resource: sriov_port }
  51. EOF
  52. openstack stack create -t port-only.yaml sriov-port-stack --wait
  53. cat <<EOF > vm-only.yaml
  54. heat_template_version: 2015-10-15
  55. parameters:
  56. image:
  57. type: string
  58. default: jammy
  59. flavor:
  60. type: string
  61. default: m1.small
  62. key_name:
  63. type: string
  64. default: testkey
  65. port_id:
  66. type: string
  67. resources:
  68. vm1:
  69. type: OS::Nova::Server
  70. properties:
  71. name: i1
  72. image: { get_param: image }
  73. flavor: { get_param: flavor }
  74. key_name: { get_param: key_name }
  75. networks:
  76. - port: { get_param: port_id }
  77. EOF
  78. PORT_ID=$(openstack stack output show sriov-port-stack port_id -coutput_value -fvalue)
  79. #openstack stack delete test-sriov --yes --wait
  80. openstack stack create -t vm-only.yaml --parameter port_id=$PORT_ID test-sriov --wait
  81.  
  82. $ nova list
  83. nova CLI is deprecated and will be removed in a future release
  84. +--------------------------------------+------+--------+------------+-------------+------------------------+
  85. | ID | Name | Status | Task State | Power State | Networks |
  86. +--------------------------------------+------+--------+------------+-------------+------------------------+
  87. | dfe06587-68d2-4fc9-bf1f-6db249aef775 | i1 | ACTIVE | - | Running | private=192.168.21.215 |
  88. +--------------------------------------+------+--------+------------+-------------+------------------------+
  89.  
  90.  
  91. 2, reset profile
  92. cat <<EOF > sriov-port-update.yaml
  93. heat_template_version: 2015-10-15
  94. parameters:
  95. sriov_net:
  96. type: string
  97. default: private
  98. resources:
  99. sriov_port:
  100. type: OS::Neutron::Port
  101. properties:
  102. name: heat-sriov-port1
  103. network: { get_param: sriov_net }
  104. value_specs:
  105. binding:profile:
  106. capabilities: ["switchdev"]
  107. card_serial_number: "MT2234420968"
  108. pci_slot: "0000:04:00.2"
  109. pci_vendor_info: "15b3:1016"
  110. pf_mac_address: "1e:38:96:af:a0:55"
  111. physical_network: "physnet1"
  112. vf_num: "1"
  113. spoof: null
  114. EOF
  115. openstack stack update -t sriov-port-update.yaml sriov-port-stack --wait
  116. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  117. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  118. {
  119. "capabilities": [
  120. "switchdev"
  121. ],
  122. "card_serial_number": "MT2234420968",
  123. "pci_slot": "0000:04:00.2",
  124. "pci_vendor_info": "15b3:1016",
  125. "pf_mac_address": "1e:38:96:af:a0:55",
  126. "physical_network": "physnet1",
  127. "vf_num": "1"
  128. }
  129.  
  130.  
  131. 3, add spoof=true without patch
  132. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  133. {
  134. "capabilities": [
  135. "switchdev"
  136. ],
  137. "card_serial_number": "MT2234420968",
  138. "pci_slot": "0000:04:00.2",
  139. "pci_vendor_info": "15b3:1016",
  140. "pf_mac_address": "1e:38:96:af:a0:55",
  141. "physical_network": "physnet1",
  142. "vf_num": "1"
  143. }
  144.  
  145.  
  146. cat <<EOF > sriov-port-add-spoof.yaml
  147. heat_template_version: 2015-10-15
  148. parameters:
  149. sriov_net:
  150. type: string
  151. default: private
  152. resources:
  153. sriov_port:
  154. type: OS::Neutron::Port
  155. properties:
  156. name: heat-sriov-port1
  157. network: { get_param: sriov_net }
  158. value_specs:
  159. binding:profile:
  160. spoof: "true"
  161. EOF
  162. openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
  163. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  164. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  165. {
  166. "capabilities": [
  167. "switchdev"
  168. ],
  169. "card_serial_number": "MT2234420968",
  170. "pci_slot": "0000:04:00.2",
  171. "pci_vendor_info": "15b3:1016",
  172. "pf_mac_address": "1e:38:96:af:a0:55",
  173. "physical_network": "physnet1",
  174. "vf_num": "1",
  175. "spoof": "true"
  176. }
  177.  
  178.  
  179. 3, keep spoof=true unchange, so re-run again
  180. $ openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
  181. 2026-07-21 07:41:36Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
  182. 2026-07-21 07:41:37Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
  183. +---------------------+--------------------------------------+
  184. | Field | Value |
  185. +---------------------+--------------------------------------+
  186. | id | d787efd2-86d8-4a99-8fba-e711c153dd82 |
  187. | stack_name | sriov-port-stack |
  188. | description | No description |
  189. | creation_time | 2026-07-21T07:35:57Z |
  190. | updated_time | 2026-07-21T07:41:36Z |
  191. | stack_status | UPDATE_COMPLETE |
  192. | stack_status_reason | Stack UPDATE completed successfully |
  193. +---------------------+--------------------------------------+
  194.  
  195. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  196. {
  197. "capabilities": [
  198. "switchdev"
  199. ],
  200. "card_serial_number": "MT2234420968",
  201. "pci_slot": "0000:04:00.2",
  202. "pci_vendor_info": "15b3:1016",
  203. "pf_mac_address": "1e:38:96:af:a0:55",
  204. "physical_network": "physnet1",
  205. "vf_num": "1",
  206. "spoof": "true"
  207. }
  208.  
  209.  
  210. 4, delete spoof
  211. cat <<EOF > sriov-port-delete-spoof.yaml
  212. heat_template_version: 2015-10-15
  213. parameters:
  214. sriov_net:
  215. type: string
  216. default: private
  217. resources:
  218. sriov_port:
  219. type: OS::Neutron::Port
  220. properties:
  221. name: heat-sriov-port1
  222. network: { get_param: sriov_net }
  223. value_specs:
  224. binding:profile:
  225. spoof: null
  226. EOF
  227. openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
  228. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  229. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  230. {
  231. "capabilities": [
  232. "switchdev"
  233. ],
  234. "card_serial_number": "MT2234420968",
  235. "pci_slot": "0000:04:00.2",
  236. "pci_vendor_info": "15b3:1016",
  237. "pf_mac_address": "1e:38:96:af:a0:55",
  238. "physical_network": "physnet1",
  239. "vf_num": "1"
  240. }
  241.  
  242.  
  243. 5, modify vf_num to 0, and add spoof=true again, and delete card_serial_number
  244. cat <<EOF > sriov-port-delete-spoof.yaml
  245. heat_template_version: 2015-10-15
  246. parameters:
  247. sriov_net:
  248. type: string
  249. default: private
  250. resources:
  251. sriov_port:
  252. type: OS::Neutron::Port
  253. properties:
  254. name: heat-sriov-port1
  255. network: { get_param: sriov_net }
  256. value_specs:
  257. binding:profile:
  258. vf_num: '0'
  259. spoof: 'true'
  260. card_serial_number: null
  261. EOF
  262. openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
  263. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  264. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  265. {
  266. "capabilities": [
  267. "switchdev"
  268. ],
  269. "card_serial_number": "MT2234420968",
  270. "pci_slot": "0000:04:00.2",
  271. "pci_vendor_info": "15b3:1016",
  272. "pf_mac_address": "1e:38:96:af:a0:55",
  273. "physical_network": "physnet1",
  274. "vf_num": "0",
  275. "spoof": "true"
  276. }
  277.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment