SUSE / susecloud-repocheck

SUSECloud Update Infrastructure Check for Azure, AWS, and GCP
GNU General Public License v3.0
22 stars 10 forks source link

Issue with ec2metadata output on aws ec2 instance sles 15 sp5 #59

Open sdrivas opened 5 months ago

sdrivas commented 5 months ago

2024-05-17 14:50:33,818 WARNING: There was 1 problem. 2024-05-17 14:50:33,818 INFO: Collecting debug data. Please wait 1-2 minutes maybe longer, depending on machine type. Traceback (most recent call last): File "/usr/bin/ec2metadata", line 129, in main() File "/usr/bin/ec2metadata", line 79, in main ec2metautils.display(meta, meta.get_meta_data_options(), prefix=True) File "/usr/lib/python3.6/site-packages/ec2metadata/ec2metautils.py", line 84, in display write_file(sys.stdout, metadata, metaopts, prefix) File "/usr/lib/python3.6/site-packages/ec2metadata/ec2metautils.py", line 104, in write_file value = metadata.get(metaopt) File "/usr/lib/python3.6/site-packages/ec2metadata/init.py", line 179, in get return self._get(path) File "/usr/lib/python3.6/site-packages/ec2metadata/init.py", line 102, in _get return value.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte 2024-05-17 14:50:33,925 ERROR: PROBLEM: Issue with ec2metadata output. Check metadata access.

rfparedes commented 4 months ago

This error is related to an issue with your instance returning the data from ec2metadata. You can look into why ec2metadata --api latest isn't returning on your instance. This is most likely the root of all your issues.

susecloud-repocheck needs to handle the error.