Comment 0 for bug 1889938

Revision history for this message
Chad Smith (chad.smith) wrote :

sudo cloud-init query --all fails on juju deployed units with the following trace:

On some platforms (juju deployed instances and various openstack platforms), user-data is compressed when provided to the instance.

When deploying juju units in ec2 regions, user-data provided to the instance is gzip compressed.

The cloud-init query command attempts to load, decode and read raw userdata content from /var/lib/cloud/instance/user-data.txt. In cases where the user-data is gzip compressed, decoding fails.

Instead of reading raw user-data from /var/lib/cloud/instance/user-data.txt, cloud-init query command should read the already decompressed/decoded data /var/lib/cloud/instance/user-data.txt.i
if present.