zhhuabj

Untitled

Aug 19th, 2026
55
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. source demo-openrc
  2. sunbeam launch ubuntu --name before-beta
  3. #ssh -i /home/ubuntu/snap/openstack/1060/sunbeam [email protected]
  4.  
  5. MODEL=admin/openstack-machines
  6. ubuntu@sunbeam:~$ juju config -m "$MODEL" openstack-hypervisor snap-channel
  7. 2024.1/stable
  8. ubuntu@sunbeam:~$ juju exec -m "$MODEL" --unit openstack-hypervisor/0 -- snap list openstack-hypervisor
  9. Name Version Rev Tracking Publisher Notes
  10. openstack-hypervisor 2024.1-d70ee1c7 648 2024.1/stable canonical** held
  11.  
  12. sunbeam manifest show latest > ~/manifest-stable.yml
  13. cp ~/manifest-stable.yml ~/manifest-beta.yml
  14. sed -i \
  15. '/^ openstack-hypervisor:$/,/^ [a-zA-Z]/ {
  16. s|snap-channel: 2024.1/stable|snap-channel: 2024.1/beta|
  17. }' ~/manifest-beta.yml
  18. ubuntu@sunbeam:~$ diff ~/manifest-stable.yml ~/manifest-beta.yml
  19. 37c37
  20. < snap-channel: 2024.1/stable
  21. ---
  22. > snap-channel: 2024.1/beta
  23.  
  24. ubuntu@sunbeam:~$ snap info openstack-hypervisor |awk '/^channels:/{show=1} show{print}' |grep '2024.1\/'
  25. 2024.1/stable: 2024.1-d70ee1c7 2026-07-03 (648) 308MB -
  26. 2024.1/candidate: 2024.1-d70ee1c7 2026-07-02 (648) 308MB -
  27. 2024.1/beta: 2024.1-d70ee1c7 2026-08-18 (660) 307MB -
  28. 2024.1/edge: 2024.1-d70ee1c7 2026-08-17 (660) 307MB -
  29.  
  30.  
  31. sunbeam cluster refresh -m ~/manifest-beta.yml
  32.  
  33. ubuntu@sunbeam:~$ juju config -m "$MODEL" openstack-hypervisor snap-channel
  34. 2024.1/beta
  35. ubuntu@sunbeam:~$ juju exec -m "$MODEL" --unit openstack-hypervisor/0 -- snap list openstack-hypervisor
  36. Name Version Rev Tracking Publisher Notes
  37. openstack-hypervisor 2024.1-d70ee1c7 660 2024.1/beta canonical** held
  38.  
  39. ubuntu@sunbeam:~$ juju exec -m "$MODEL" --unit openstack-hypervisor/0 -- sudo zcat /snap/openstack-hypervisor/current/usr/share/doc/python3-os-brick/changelog.Debian.gz |head -1
  40. python-os-brick (6.7.0-0ubuntu1.1) noble; urgency=medium
  41. ubuntu@sunbeam:~$ juju exec -m "$MODEL" --unit openstack-hypervisor/0 -- sudo grep -n 'sessions_list =\|sessions_map =' /snap/openstack-hypervisor/current/usr/lib/python3/dist-packages/os_brick/initiator/connectors/iscsi.py/iscsi.py
  42. 841: sessions_list = [(s[2], s[4], s[1]) for s in sessions
  43.  
  44. ubuntu@sunopenstack server show before-beta -c status -c OS-EXT-SRV-ATTR:host
  45. +----------------------+--------+
  46. | Field | Value |
  47. +----------------------+--------+
  48. | OS-EXT-SRV-ATTR:host | None |
  49. | status | ACTIVE |
  50. +----------------------+--------+
  51.  
  52. openstack server delete before-beta
  53.  
  54. ubuntu@susunbeam launch ubuntu --name after-betafter-beta
  55. Launching an OpenStack instance ...
  56. Found sunbeam key in OpenStack!
  57. Access the instance by running the following command:
  58. `ssh -i /home/ubuntu/snap/openstack/1060/sunbeam [email protected]`
  59.  
  60. ubuntu@sunbeam:~$ ssh -i /home/ubuntu/snap/openstack/1060/sunbeam [email protected] -- date
  61. Wed Aug 19 06:52:55 UTC 2026
  62.  
  63.  
  64.  
  65. openstack volume create --size 1 beta-upgrade-volume
  66. openstack server add volume after-beta beta-upgrade-volume
  67.  
  68.  
  69. ubuntu@sunbeam:~$ openstack volume list
  70. +--------------------------------------+---------------------+--------+------+-------------------------------------+
  71. | ID | Name | Status | Size | Attached to |
  72. +--------------------------------------+---------------------+--------+------+-------------------------------------+
  73. | fb60dd77-ad9b-4f11-add9-edfd2996a5f0 | beta-upgrade-volume | in-use | 1 | Attached to after-beta on /dev/vdb |
  74. +--------------------------------------+---------------------+--------+------+-------------------------------------+
  75.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment