Hi there Scott,
Not sure if totally related to this issue but I am faced similar symptoms on tip of tree in github
Commit: [ 5407e3901f3206071a101defce2d8d24e85cc7c0 netinfo: Adjust ifconfig output parsing for FreeBSD ipv ]
https://github.com/cloud-init/cloud-init/commit/fff37e7dc6849fd16db504b0d338fae20a7beb39
Without the patch provided by https://bugs.launchpad.net/cloud-init/+bug/1775371/+attachment/5149292/+files/cloudinit-decodeerr-env1.diff
I face the same exception when using **query**
load_file return decode_binary(contents) File "/usr/lib/python3.6/site-packages/cloudinit/util.py", line 150, in decode_binary return blob.decode(encoding) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3432: invalid start byte
e.g
cloud-init query --format 'custom-{{instance_id}}.{{region}}.{{availability_zone}}.{{v1.cloud_name}}.com{{local_hostname}}'
After patch it works as expected and query returns the formatted string
Hi there Scott,
Not sure if totally related to this issue but I am faced similar symptoms on tip of tree in github
Commit: [ 71a101defce2d8d 24e85cc7c0 netinfo: Adjust ifconfig output parsing for FreeBSD ipv
5407e3901f32060
]
https:/ /github. com/cloud- init/cloud- init/commit/ fff37e7dc6849fd 16db504b0d338fa e20a7beb39
Without the patch provided by /bugs.launchpad .net/cloud- init/+bug/ 1775371/ +attachment/ 5149292/ +files/ cloudinit- decodeerr- env1.diff
https:/
I face the same exception when using **query**
load_file binary( contents) python3. 6/site- packages/ cloudinit/ util.py" , line 150, in decode_binary encoding)
return decode_
File "/usr/lib/
return blob.decode(
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 3432: invalid start byte
e.g
cloud-init query --format 'custom- {{instance_ id}}.{{ region} }.{{availabilit y_zone} }.{{v1. cloud_name} }.com{{ local_hostname} }'
After patch it works as expected and query returns the formatted string