No functional tests covering the local multi-node scenario
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
New
|
Undecided
|
Unassigned |
Bug Description
I think this is a known gap in the development team, but as of today there is no functional test covering the local multi-node scenario described in the tutorial:
https:/
https:/
> sg snap_daemon "openstack.sunbeam cluster bootstrap --manifest /snap/openstack
2024-05-
2024-05-
2024-05-
2024-05-
2024-05-
2024-05-
By having the func test, the following issues could have been discovered earlier.
- https:/
- https:/
- https:/
- https:/
For the record, here is how I'm testing the multi-node scenario locally. And the whole process takes 115 minutes.
for i in {1..3}; do ${i}.localdomai n"
uvt-kvm wait "sunbeam-
uvt-kvm ssh "sunbeam- ${i}.localdomai n" -- -t sudo snap install openstack --channel 2024.1/edge ${i}.localdomai n" -- 'sunbeam prepare-node-script | bash -x'
uvt-kvm ssh "sunbeam-
# LP: #2065911 ${i}.localdomai n" -- sudo ip link set enp9s0 up
# TODO: make it permanent across reboots
uvt-kvm ssh "sunbeam-
done
uvt-kvm ssh sunbeam- 1.localdomain -- tee deployment_ manifest. yaml < manifest.yaml 1.localdomain -- 'tail -n+2 /snap/openstack /current/ etc/manifests/ edge.yml >> deployment_ manifest. yaml'
uvt-kvm ssh sunbeam-
uvt-kvm ssh sunbeam- 1.localdomain -- -t \ manifest. yaml \
time sunbeam cluster bootstrap --manifest deployment_
--role control --role compute --role storage
## -> real 21m13.010s
# LP: #2065490 1.localdomain -- 'juju model-default --cloud sunbeam-microk8s logging- config= "<root> =INFO;unit= DEBUG"' 1.localdomain -- 'juju model-config -m openstack logging- config= "<root> =INFO;unit= DEBUG"'
uvt-kvm ssh sunbeam-
uvt-kvm ssh sunbeam-
uvt-kvm ssh sunbeam- 2.localdomain -- -t \ 1.localdomain -- sunbeam cluster add --name sunbeam- 2.localdomain -f value)"
time sunbeam cluster join --role control --role compute --role storage \
--token "$(uvt-kvm ssh sunbeam-
## -> real 25m3.417s
uvt-kvm ssh sunbeam- 3.localdomain -- -t \ 1.localdomain -- sunbeam cluster add --name sunbeam- 3.localdomain -f value)"
time sunbeam cluster join --role control --role compute --role storage \
--token "$(uvt-kvm ssh sunbeam-
## -> real 27m28.257s
uvt-kvm ssh sunbeam- 1.localdomain -- -t \
time sunbeam cluster resize
## -> real 32m55.238s
uvt-kvm ssh sunbeam- 1.localdomain -- -t \ manifest. yaml
time sunbeam configure --openrc demo-openrc --manifest deployment_
## -> real 3m30.742s
uvt-kvm ssh sunbeam- 1.localdomain -- -t \
'time sunbeam openrc > admin-openrc'
## -> real 0m11.547s
uvt-kvm ssh sunbeam- 1.localdomain -- -t \
time sunbeam launch ubuntu --name test
## -> real 1m13.650s