cloud-init persists in running state on Kali in AWS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Medium
|
Unassigned |
Bug Description
Hello,
We're trying to customize published Kali AMIs using packer & cloud-init. The entire process works with Ubuntu, CentOS, and Amazon Linux 2 targets, but seemingly breaks with Kali. We've tried it with both the 2020.01 and 2019.03.
We're also experiencing a long timeout for ec2 data source:
root@kali:~# cloud-init status --long
status: running
time: Fri, 27 Mar 2020 20:06:54 +0000
detail:
DataSourceEc2Local
root@kali:~# cloud-init analyze blame
-- Boot Record 01 --
51.20500s (init-local/
00.91700s (init-network/
00.67200s (init-network/
00.27400s (init-network/
00.24800s (init-network/
00.00600s (init-network/
00.00300s (init-network/
Attached is the log tarball produced by cloud-init. We'd appreciate any hints as to what may be happening. It's worth noting that these targets are starting in a VPC without direct connection to the outside world, but there's a squid proxy available for web traffic. We have relevant parts set up to use that proxy.
Thanks!
Thanks for filing the bug.
Looking into the logs cloud-init- local.service and cloud-init.service run correctly and complete. cloud-config. service blocks until network- online. target is reached in systemd.
Typically this is after either 'networking. service' 'systemd- networkd- wait-online. service' or 'network- manager- wait-online. service' have completed.
the systemd journal logs the following output if network- online. target is reached
Mar 26 18:32:15 f4 systemd[1]: Reached target Network is Online.
Mar 26 18:32:15 f4 systemd[1]: Reached target System Initialization.
These are not present in the journal.
Do you have the AMI you tried? It's likely there are some changes needed to the service units in the image to ensure that network- online. target is reached. Then cloud-config modules/final can run to completion.