juju add-machine baremetal is in "PENDING" state

Hi All,

  • Installed juju client on Baremetal
  • Initialized lxd with default lxdbr0 10.121.152.1/24
  • Created lxc VM 10.121.152.102 on the baremetal and attached it as manual-cloud controller. (juju bootstrap manual-cloud)
  • Created new model and added baremetal (juju add-machine ssh:user1@10.121.152.1) to that model.

Baremetal machine added successfully but still in pending state.

add-machine of parent host is supported from inside VM? Thank you for the support.

user@baremetal:~$ juju version
3.2.2-genericlinux-amd64
user@baremetal:~$ juju clouds
Only clouds with registered credentials are shown.
There are more clouds, use --all to see them.

Clouds available on the controller:
Cloud         Regions  Default  Type
manual-cloud  1        default  manual

Clouds available on the client:
Cloud         Regions  Default    Type    Credentials  Source    Description
localhost     1        localhost  lxd     1            built-in  LXD Container Hypervisor
manual-cloud  1        default    manual  0            local
user@baremetal:~$ lxc list
+------+---------+-------------------------+------+-----------------+-----------+
| NAME |  STATE  |          IPV4           | IPV6 |      TYPE       | SNAPSHOTS |
+------+---------+-------------------------+------+-----------------+-----------+
| vm1  | RUNNING | 10.121.152.102 (enp5s0) |      | VIRTUAL-MACHINE | 0         |
+------+---------+-------------------------+------+-----------------+-----------+
user@baremetal:~$ juju controllers
Use --refresh option with this command to see the latest information.

Controller             Model  User   Access     Cloud/Region          Models  Nodes    HA  Version
manual-cloud-default*  ceph   admin  superuser  manual-cloud/default       2      1  none  3.2.2
user@baremetal:~$ juju machines -m controller
Machine  State    Address         Inst id  Base          AZ  Message
0        started  10.121.152.102  manual:  ubuntu@22.04      Manually provisioned machine
user@baremetal:~$ juju status
Model  Controller            Cloud/Region          Version  SLA          Timestamp
ceph   manual-cloud-default  manual-cloud/default  3.2.2    unsupported  23:23:21+05:30

Machine  State    Address       Inst id              Base          AZ  Message
0        pending  10.121.152.1  manual:10.121.152.1  ubuntu@22.04      Manually provisioned machine
user@baremetal:~$ juju machines -m ceph
Machine  State    Address       Inst id              Base          AZ  Message
0        pending  10.121.152.1  manual:10.121.152.1  ubuntu@22.04      Manually provisioned machine

This looks like you’re trying to provision the LXD bare metal host as a Juju machine using it’s address as the first one on default bridge.

I’m not sure this is possible, but the things to check are:

  • The provisioner logs for the model.
  • The firewall on the host.

Yes. Should go with external bridged / routed options rather.