zhhuabj

Untitled

Jul 21st, 2026
72
0
240 days
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.42 KB | None | 0 0
  1. 1, apply for the fix
  2.  
  3. sudo add-apt-repository cloud-archive:yoga-proposed
  4. sudo apt update
  5. 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
  6. sudo apt install heat-api=1:18.0.1-0ubuntu1.4~cloud0 heat-api-cfn=1:18.0.1-0ubuntu1.4~cloud0 -y
  7.  
  8. ubuntu@juju-acfe8b-yoga-2:~$ sudo systemctl status heat-engine |grep active
  9. Active: active (running) since Tue 2026-07-21 08:49:12 UTC; 11s ago
  10. ubuntu@juju-acfe8b-yoga-2:~$ dpkg -l |grep heat
  11. ii heat-api 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - ReST API
  12. ii heat-api-cfn 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - CFN API
  13. ii heat-common 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - common files
  14. ii heat-engine 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - engine
  15. ii python3-heat 1:18.0.1-0ubuntu1.4~cloud0 all OpenStack orchestration service - Python 3 files
  16. ii python3-heatclient 2.5.1-0ubuntu1~cloud0 all client library and CLI for OpenStack Heat - Python 3.x
  17. ubu
  18. ubuntu@juju-acfe8b-yoga-2:~$ sudo apt-cache policy heat-engine
  19. heat-engine:
  20. Installed: 1:18.0.1-0ubuntu1.4~cloud0
  21. Candidate: 1:18.0.1-0ubuntu1.4~cloud0
  22. Version table:
  23. *** 1:18.0.1-0ubuntu1.4~cloud0 500
  24. 500 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-proposed/yoga/main amd64 Packages
  25. 100 /var/lib/dpkg/status
  26. 1:18.0.1-0ubuntu1.3~cloud0 500
  27. 500 http://ubuntu-cloud.archive.canonical.com/ubuntu focal-updates/yoga/main amd64 Packages
  28. 1:14.2.0-0ubuntu2 500
  29. 500 http://az1.clouds.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
  30. 1:14.2.0-0ubuntu1.1 500
  31. 500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
  32. 1:14.0.0~b3~git2020041012.2ef9f4bf3-0ubuntu1 500
  33. 500 http://az1.clouds.archive.ubuntu.com/ubuntu focal/main amd64 Packages
  34.  
  35.  
  36. $ openstack stack list
  37. +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
  38. | ID | Stack Name | Project | Stack Status | Creation Time | Updated Time |
  39. +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
  40. | 2ce70653-db22-4882-b9a0-4d50361f91ff | test-sriov | d40f7b11d90341a1ae42b38a12f88a44 | CREATE_COMPLETE | 2026-07-21T08:50:52Z | None |
  41. | dc430d35-328c-408a-a21d-d4b37dbf6d62 | sriov-port-stack | d40f7b11d90341a1ae42b38a12f88a44 | CREATE_COMPLETE | 2026-07-21T08:50:28Z | None |
  42. +--------------------------------------+------------------+----------------------------------+-----------------+----------------------+--------------+
  43.  
  44.  
  45. $ nova list
  46. nova CLI is deprecated and will be removed in a future release
  47. +--------------------------------------+---------------+--------+------------+-------------+------------------------+
  48. | ID | Name | Status | Task State | Power State | Networks |
  49. +--------------------------------------+---------------+--------+------------+-------------+------------------------+
  50. | aad72b76-b03b-408f-93ae-6a0055c5565b | cirros-084027 | ACTIVE | - | Running | private=192.168.21.91 |
  51. | 4b263868-5c49-46e8-8afb-09ae7b4b5b29 | i1 | ACTIVE | - | Running | private=192.168.21.194 |
  52. +--------------------------------------+---------------+--------+------------+-------------+------------------------+
  53.  
  54.  
  55.  
  56. 2, reset profile
  57. cat <<EOF > sriov-port-update.yaml
  58. heat_template_version: 2015-10-15
  59. parameters:
  60. sriov_net:
  61. type: string
  62. default: private
  63. resources:
  64. sriov_port:
  65. type: OS::Neutron::Port
  66. properties:
  67. name: heat-sriov-port1
  68. network: { get_param: sriov_net }
  69. value_specs:
  70. binding:profile:
  71. capabilities: ["switchdev"]
  72. card_serial_number: "MT2234420968"
  73. pci_slot: "0000:04:00.2"
  74. pci_vendor_info: "15b3:1016"
  75. pf_mac_address: "1e:38:96:af:a0:55"
  76. physical_network: "physnet1"
  77. vf_num: "1"
  78. spoof: null
  79. EOF
  80. openstack stack update -t sriov-port-update.yaml sriov-port-stack --wait
  81. [0.004s]2026-07-21 08:52:58Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
  82. 2026-07-21 08:52:58Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
  83. 2026-07-21 08:52:59Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
  84. 2026-07-21 08:52:59Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
  85. +---------------------+--------------------------------------+
  86. | Field | Value |
  87. +---------------------+--------------------------------------+
  88. | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
  89. | stack_name | sriov-port-stack |
  90. | description | No description |
  91. | creation_time | 2026-07-21T08:50:28Z |
  92. | updated_time | 2026-07-21T08:52:58Z |
  93. | stack_status | UPDATE_COMPLETE |
  94. | stack_status_reason | Stack UPDATE completed successfully |
  95. +---------------------+--------------------------------------+
  96.  
  97.  
  98. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  99. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  100. {
  101. "capabilities": [
  102. "switchdev"
  103. ],
  104. "card_serial_number": "MT2234420968",
  105. "pci_slot": "0000:04:00.2",
  106. "pci_vendor_info": "15b3:1016",
  107. "pf_mac_address": "1e:38:96:af:a0:55",
  108. "physical_network": "physnet1",
  109. "vf_num": "1"
  110. }
  111.  
  112.  
  113.  
  114.  
  115. 3, add spoof=true without patch
  116. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  117. {
  118. "capabilities": [
  119. "switchdev"
  120. ],
  121. "card_serial_number": "MT2234420968",
  122. "pci_slot": "0000:04:00.2",
  123. "pci_vendor_info": "15b3:1016",
  124. "pf_mac_address": "1e:38:96:af:a0:55",
  125. "physical_network": "physnet1",
  126. "vf_num": "1"
  127. }
  128.  
  129.  
  130.  
  131. cat <<EOF > sriov-port-add-spoof.yaml
  132. heat_template_version: 2015-10-15
  133. parameters:
  134. sriov_net:
  135. type: string
  136. default: private
  137. resources:
  138. sriov_port:
  139. type: OS::Neutron::Port
  140. properties:
  141. name: heat-sriov-port1
  142. network: { get_param: sriov_net }
  143. value_specs:
  144. binding:profile:
  145. spoof: "true"
  146. EOF
  147. openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
  148. [0.006s]2026-07-21 08:54:01Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
  149. 2026-07-21 08:54:01Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
  150. 2026-07-21 08:54:02Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
  151. 2026-07-21 08:54:02Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
  152. +---------------------+--------------------------------------+
  153. | Field | Value |
  154. +---------------------+--------------------------------------+
  155. | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
  156. | stack_name | sriov-port-stack |
  157. | description | No description |
  158. | creation_time | 2026-07-21T08:50:28Z |
  159. | updated_time | 2026-07-21T08:54:01Z |
  160. | stack_status | UPDATE_COMPLETE |
  161. | stack_status_reason | Stack UPDATE completed successfully |
  162. +---------------------+--------------------------------------+
  163.  
  164.  
  165. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  166. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  167. {
  168. "capabilities": [
  169. "switchdev"
  170. ],
  171. "card_serial_number": "MT2234420968",
  172. "pci_slot": "0000:04:00.2",
  173. "pci_vendor_info": "15b3:1016",
  174. "pf_mac_address": "1e:38:96:af:a0:55",
  175. "physical_network": "physnet1",
  176. "vf_num": "1",
  177. "spoof": "true"
  178. }
  179.  
  180.  
  181.  
  182. 3, keep spoof=true unchange, so re-run again
  183. $ openstack stack update -t ./sriov-port-add-spoof.yaml sriov-port-stack --wait
  184. 2026-07-21 08:54:37Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
  185. 2026-07-21 08:54:37Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
  186. +---------------------+--------------------------------------+
  187. | Field | Value |
  188. +---------------------+--------------------------------------+
  189. | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
  190. | stack_name | sriov-port-stack |
  191. | description | No description |
  192. | creation_time | 2026-07-21T08:50:28Z |
  193. | updated_time | 2026-07-21T08:54:37Z |
  194. | stack_status | UPDATE_COMPLETE |
  195. | stack_status_reason | Stack UPDATE completed successfully |
  196. +---------------------+--------------------------------------+
  197.  
  198.  
  199.  
  200. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  201. {
  202. "capabilities": [
  203. "switchdev"
  204. ],
  205. "card_serial_number": "MT2234420968",
  206. "pci_slot": "0000:04:00.2",
  207. "pci_vendor_info": "15b3:1016",
  208. "pf_mac_address": "1e:38:96:af:a0:55",
  209. "physical_network": "physnet1",
  210. "vf_num": "1",
  211. "spoof": "true"
  212. }
  213.  
  214.  
  215.  
  216. 4, delete spoof
  217. cat <<EOF > sriov-port-delete-spoof.yaml
  218. heat_template_version: 2015-10-15
  219. parameters:
  220. sriov_net:
  221. type: string
  222. default: private
  223. resources:
  224. sriov_port:
  225. type: OS::Neutron::Port
  226. properties:
  227. name: heat-sriov-port1
  228. network: { get_param: sriov_net }
  229. value_specs:
  230. binding:profile:
  231. spoof: null
  232. EOF
  233. openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
  234. [0.004s]2026-07-21 08:55:14Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
  235. 2026-07-21 08:55:14Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
  236. 2026-07-21 08:55:16Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
  237. 2026-07-21 08:55:16Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
  238. +---------------------+--------------------------------------+
  239. | Field | Value |
  240. +---------------------+--------------------------------------+
  241. | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
  242. | stack_name | sriov-port-stack |
  243. | description | No description |
  244. | creation_time | 2026-07-21T08:50:28Z |
  245. | updated_time | 2026-07-21T08:55:14Z |
  246. | stack_status | UPDATE_COMPLETE |
  247. | stack_status_reason | Stack UPDATE completed successfully |
  248. +---------------------+--------------------------------------+
  249.  
  250.  
  251. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  252. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  253. {
  254. "capabilities": [
  255. "switchdev"
  256. ],
  257. "card_serial_number": "MT2234420968",
  258. "pci_slot": "0000:04:00.2",
  259. "pci_vendor_info": "15b3:1016",
  260. "pf_mac_address": "1e:38:96:af:a0:55",
  261. "physical_network": "physnet1",
  262. "vf_num": "1"
  263. }
  264.  
  265.  
  266. 5, modify vf_num to 0, and add spoof=true again, and delete card_serial_number
  267. cat <<EOF > sriov-port-delete-spoof.yaml
  268. heat_template_version: 2015-10-15
  269. parameters:
  270. sriov_net:
  271. type: string
  272. default: private
  273. resources:
  274. sriov_port:
  275. type: OS::Neutron::Port
  276. properties:
  277. name: heat-sriov-port1
  278. network: { get_param: sriov_net }
  279. value_specs:
  280. binding:profile:
  281. vf_num: '0'
  282. spoof: 'true'
  283. card_serial_number: null
  284. EOF
  285. openstack stack update -t ./sriov-port-delete-spoof.yaml sriov-port-stack --wait
  286. [0.004s]2026-07-21 08:55:57Z [sriov-port-stack]: UPDATE_IN_PROGRESS Stack UPDATE started
  287. 2026-07-21 08:55:57Z [sriov-port-stack.sriov_port]: UPDATE_IN_PROGRESS state changed
  288. 2026-07-21 08:55:58Z [sriov-port-stack.sriov_port]: UPDATE_COMPLETE state changed
  289. 2026-07-21 08:55:58Z [sriov-port-stack]: UPDATE_COMPLETE Stack UPDATE completed successfully
  290. +---------------------+--------------------------------------+
  291. | Field | Value |
  292. +---------------------+--------------------------------------+
  293. | id | dc430d35-328c-408a-a21d-d4b37dbf6d62 |
  294. | stack_name | sriov-port-stack |
  295. | description | No description |
  296. | creation_time | 2026-07-21T08:50:28Z |
  297. | updated_time | 2026-07-21T08:55:57Z |
  298. | stack_status | UPDATE_COMPLETE |
  299. | stack_status_reason | Stack UPDATE completed successfully |
  300. +---------------------+--------------------------------------+
  301.  
  302.  
  303. openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  304. $ openstack port show heat-sriov-port1 -f json | jq '.binding_profile'
  305. {
  306. "capabilities": [
  307. "switchdev"
  308. ],
  309. "card_serial_number": "MT2234420968",
  310. "pci_slot": "0000:04:00.2",
  311. "pci_vendor_info": "15b3:1016",
  312. "pf_mac_address": "1e:38:96:af:a0:55",
  313. "physical_network": "physnet1",
  314. "vf_num": "0",
  315. "spoof": "true"
  316. }
  317.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment