cloud-init disables user on azure at second reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Medium
|
Unassigned | ||
linux (Ubuntu) |
Triaged
|
Undecided
|
Unassigned | ||
walinuxagent (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
Environment:
platform: Azure
arm image: Canonical UbuntuServer 16.04-DAILY-LTS latest
Steps:
Deploy VM with user/pass authentication
Install latest linux-next-upstream kernel (for example 4.19.0-
reboot (all good)
reboot again
cloud-init disables the username password authentication
I checked the cloud-init logs and found:
2018-11-01 16:45:28,566 - init.py[INFO]: User already exists, skipping.
2018-11-01 16:45:28,570 - util.py[DEBUG]: Running command ['passwd', '-l', ''] with allowed return codes [0] (shell=False, capture=True)
2018-11-01 16:45:28,793 - util.py[DEBUG]: Reading from /etc/sudoers (quiet=False)
2018-11-01 16:45:28,795 - util.py[DEBUG]: Read 781 bytes from /etc/sudoers
2018-11-01 16:45:28,796 - util.py[DEBUG]: Writing to /etc/sudoers.
2018-11-01 16:45:28,797 - handlers.py[DEBUG]: finish: init-network/
This issue is very bad one, as it can render your vm inaccessible on Azure.
I think this problem is due to the new kernel installation.
Initial bug report:
https:/
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in linux (Ubuntu): | |
status: | Incomplete → Triaged |
Hi,
Please attach the tarball created by running 'cloud-init collect-logs'.
Then set the status back to New.
As it is, there is not enough information available here to see what happened.
Thanks for filing a bug.
Scott