Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source demo-openrc
- sunbeam launch ubuntu --name before-beta
- #ssh -i /home/ubuntu/snap/openstack/1060/sunbeam [email protected]
- MODEL=admin/openstack-machines
- ubuntu@sunbeam:~$ juju config -m "$MODEL" openstack-hypervisor snap-channel
- 2024.1/stable
- ubuntu@sunbeam:~$ juju exec -m "$MODEL" --unit openstack-hypervisor/0 -- snap list openstack-hypervisor
- Name Version Rev Tracking Publisher Notes
- openstack-hypervisor 2024.1-d70ee1c7 648 2024.1/stable canonical** held
- sunbeam manifest show latest > ~/manifest-stable.yml
- cp ~/manifest-stable.yml ~/manifest-beta.yml
- sed -i \
- '/^ openstack-hypervisor:$/,/^ [a-zA-Z]/ {
- s|snap-channel: 2024.1/stable|snap-channel: 2024.1/beta|
- }' ~/manifest-beta.yml
- ubuntu@sunbeam:~$ diff ~/manifest-stable.yml ~/manifest-beta.yml
- 37c37
- < snap-channel: 2024.1/stable
- ---
- > snap-channel: 2024.1/beta
- ubuntu@sunbeam:~$ snap info openstack-hypervisor |awk '/^channels:/{show=1} show{print}' |grep '2024.1\/'
- 2024.1/stable: 2024.1-d70ee1c7 2026-07-03 (648) 308MB -
- 2024.1/candidate: 2024.1-d70ee1c7 2026-07-02 (648) 308MB -
- 2024.1/beta: 2024.1-d70ee1c7 2026-08-18 (660) 307MB -
- 2024.1/edge: 2024.1-d70ee1c7 2026-08-17 (660) 307MB -
- sunbeam cluster refresh -m ~/manifest-beta.yml
- ubuntu@sunbeam:~$ juju config -m "$MODEL" openstack-hypervisor snap-channel
- 2024.1/beta
- ubuntu@sunbeam:~$ juju exec -m "$MODEL" --unit openstack-hypervisor/0 -- snap list openstack-hypervisor
- Name Version Rev Tracking Publisher Notes
- openstack-hypervisor 2024.1-d70ee1c7 660 2024.1/beta canonical** held
- 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
- python-os-brick (6.7.0-0ubuntu1.1) noble; urgency=medium
- 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
- 841: sessions_list = [(s[2], s[4], s[1]) for s in sessions
- ubuntu@sunopenstack server show before-beta -c status -c OS-EXT-SRV-ATTR:host
- +----------------------+--------+
- | Field | Value |
- +----------------------+--------+
- | OS-EXT-SRV-ATTR:host | None |
- | status | ACTIVE |
- +----------------------+--------+
- openstack server delete before-beta
- ubuntu@susunbeam launch ubuntu --name after-betafter-beta
- Launching an OpenStack instance ...
- Found sunbeam key in OpenStack!
- Access the instance by running the following command:
- `ssh -i /home/ubuntu/snap/openstack/1060/sunbeam [email protected]`
- ubuntu@sunbeam:~$ ssh -i /home/ubuntu/snap/openstack/1060/sunbeam [email protected] -- date
- Wed Aug 19 06:52:55 UTC 2026
- openstack volume create --size 1 beta-upgrade-volume
- openstack server add volume after-beta beta-upgrade-volume
- ubuntu@sunbeam:~$ openstack volume list
- +--------------------------------------+---------------------+--------+------+-------------------------------------+
- | ID | Name | Status | Size | Attached to |
- +--------------------------------------+---------------------+--------+------+-------------------------------------+
- | fb60dd77-ad9b-4f11-add9-edfd2996a5f0 | beta-upgrade-volume | in-use | 1 | Attached to after-beta on /dev/vdb |
- +--------------------------------------+---------------------+--------+------+-------------------------------------+
Advertisement