running as root stalls bootstrap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Snap |
Triaged
|
Low
|
Unassigned |
Bug Description
Hello
When bootstrapping sunbeam on an LXC VM my sunbeam installation hangs if I run as root,
[Reproducer]
1. Create a vm, for example: lxc init --vm ubuntu:jammy sunbeam-edge --network br0 --storage nvme-vms
2. lxc config edit sunbeam-edge, add 24GiB of memory and 8 cores, for example, also increase the disk size of the root disk. e.g.
architecture: x86_64
config:
image.
image.
image.label: release
image.os: ubuntu
image.release: jammy
image.serial: "20240126"
image.type: disk-kvm.img
image.version: "22.04"
limits.cpu: "8"
limits.memory: 24GiB
volatile.
volatile.
volatile.
volatile.
volatile.
volatile.uuid: 58631d0e-
volatile.
volatile.
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: nvme-vms
size: 50GiB
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
3. lxc exec sunbeam-edge /bin/bash - this will take you straight into the root user
4. Install the snap:
sudo snap install openstack --channel 2023.1
sunbeam prepare-node-script | bash -x && newgrp snap_daemon
sunbeam cluster bootstrap --accept-defaults
^^
This step will hang on "Bootstrapping juju"
[Workarounds]
Do not run as root,
Thank you,
Peter
description: | updated |
This is most likely because ssh into the box is not working, and therefore Juju fails to bootstrap itself onto the node