Public bug reported:
Start a 20.04 ARM instance using the Canonical provided 20.04 AMI
(ubuntu-focal-20.04-arm64-server-20200609 (ami-091fa45b154a839b0)), and
provide any script as user-data in Instance Details.
For example, this script:
#!/bin/bash
/bin/echo "zzz running cloud init"
/bin/echo hello > /tmp/hello
/bin/echo hello > ~/hello
Start the instances. The script should run, but it does not. The
/tmp/hello file is not created. The /var/log/cloud-init-output.log does
not indicate the script has run (the "zzz running..." output does not
appear). The cloud-init.log indicates that many parts of the init that
run on other AMIs are not being run: it stops at init-network:
$ tail /var/log/cloud-init.log
2020-07-02 01:19:42,417 - util.py[DEBUG]: Read 3287 bytes from
/etc/ssh/sshd_config
2020-07-02 01:19:42,417 - util.py[DEBUG]: Writing to /root/.ssh/authorized_keys
- wb: [600] 541 bytes
2020-07-02 01:19:42,417 - util.py[DEBUG]: Changing the ownership of
/root/.ssh/authorized_keys to 0:0
2020-07-02 01:19:42,417 - handlers.py[DEBUG]: finish: init-network/config-ssh:
SUCCESS: config-ssh ran successfully
2020-07-02 01:19:42,417 - main.py[DEBUG]: Ran 15 modules with 0 failures
2020-07-02 01:19:42,418 - atomic_helper.py[DEBUG]: Atomically writing to file
/var/lib/cloud/data/status.json (via temporary file
/var/lib/cloud/data/tmpe9uo7rsu) - w: [644] 518 bytes/chars
2020-07-02 01:19:42,418 - util.py[DEBUG]: Reading from /proc/uptime
(quiet=False)
2020-07-02 01:19:42,418 - util.py[DEBUG]: Read 10 bytes from /proc/uptime
2020-07-02 01:19:42,418 - util.py[DEBUG]: cloud-init mode 'init' took 0.828
seconds (0.83)
2020-07-02 01:19:42,418 - handlers.py[DEBUG]: finish: init-network: SUCCESS:
searching for network datasources
$ wc -l /var/log/cloud-init.log
712 /var/log/cloud-init.log
Only 712 lines vs 930 on 18.04.
This problem does not occur on 20.04 x86 AMI, or 18.04 ARM AMI, it seems
to be specific to 20.04 ARM.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: cloud-init 20.1-10-g71af48df-0ubuntu5
ProcVersionSignature: User Name 5.4.0-1015.15-aws 5.4.41
Uname: Linux 5.4.0-1015-aws aarch64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: arm64
CasperMD5CheckResult: skip
CloudName: Amazon - Ec2
Date: Thu Jul 2 01:31:27 2020
Ec2AMI: ami-091fa45b154a839b0
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-west-2d
Ec2InstanceType: m6g.medium
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
logs.tgz: Error: [Errno 2] No such file or directory: '/tmp/cloud-init-logs.tgz'
user_data.txt: Error: [Errno 13] Permission denied:
'/var/lib/cloud/instance/user-data.txt'
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug arm64 ec2-images focal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1885973
Title:
user-data not being run on 20.04 ARM Graviton 2 instances
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1885973/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs