When Cloud-init from MAAS configures a Ubuntu Core 18 device, console-conf still runs and fails during network configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I deployed Ubuntu Core 18 with MAAS, which uses cloud-init to configure the device. This configures networking, storage, uploads public ssh keys from MAAS to an ubuntu user on the device. This all works and you can login via ssh to the device with your ssh key(s), however, console-conf still says on the console of the device to "Press enter to continue" for first configuration of Ubuntu Core 18. If you do this, you get to the network configuration and if you check Done, you get the following error:
Network configuration failed: 'Error in network definition /etc/netplan/
You cannot continue and you are stuck in this console screen.
There should be a way so that if the device is configured, that console-conf recognizes this and allows the user to use the existing configuration, or be disabled when the system is deployed with MAAS and configured with cloud-init.
This is by design since you are not the owner of the device. If you want
to own the device then MAAS has to send snap user info and email to become
the owner and consoleconf won’t run if the device is owned.
On Fri, Feb 22, 2019 at 12:25 PM Luke Williams <email address hidden>
wrote:
> Public bug reported: 00-snapd- config. yaml line 4 column 6: ens3: set-name: /bugs.launchpad .net/bugs/ 1817294 /bugs.launchpad .net/subiquity/ +bug/1817294/ +subscriptions
>
> Hello,
>
> I deployed Ubuntu Core 18 with MAAS, which uses cloud-init to configure
> the device. This configures networking, storage, uploads public ssh keys
> from MAAS to an ubuntu user on the device. This all works and you can
> login via ssh to the device with your ssh key(s), however, console-conf
> still says on the console of the device to "Press enter to continue" for
> first configuration of Ubuntu Core 18. If you do this, you get to the
> network configuration and if you check Done, you get the following
> error:
>
> Network configuration failed: 'Error in network definition
> /etc/netplan/
> requires match: properties\n'
>
> You cannot continue and you are stuck in this console screen.
>
> There should be a way so that if the device is configured, that console-
> conf recognizes this and allows the user to use the existing
> configuration, or be disabled when the system is deployed with MAAS and
> configured with cloud-init.
>
> ** Affects: subiquity
> Importance: Undecided
> Status: New
>
>
> ** Tags: cloud-init console-conf ubuntu-core-18
>
> --
> You received this bug notification because you are subscribed to
> subiquity.
> Matching subscriptions: subiquity-bugs
> https:/
>
> Title:
> When Cloud-init from MAAS configures a Ubuntu Core 18 device, console-
> conf still runs and fails during network configuration
>
> To manage notifications about this bug go to:
> https:/
>