Comment 0 for bug 2052511

Revision history for this message
Peter Jose De Sousa (pjds) wrote :

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.architecture: amd64
  image.description: ubuntu 22.04 LTS amd64 (release) (20240126)
  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.base_image: 56e10b38e59e94fd87d16fb6e090747602edd5ee77d9d8ffa6db4efa5821e0a9
  volatile.cloud-init.instance-id: 603dfa45-a097-40f5-84fe-3677d9d365f2
  volatile.eth0.host_name: tap442c9001
  volatile.eth0.hwaddr: 00:16:3e:1b:a2:ba
  volatile.last_state.power: RUNNING
  volatile.uuid: 58631d0e-94ca-4a7a-b34e-6aa0512d2d6f
  volatile.uuid.generation: 58631d0e-94ca-4a7a-b34e-6aa0512d2d6f
  volatile.vsock_id: "4166733703"
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 - 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