And the other one is related to cloud-init:
File "/usr/lib/python3/dist-packages/uaclient/clouds/identity.py", line 56, in get_cloud_type_from_result_file
dsname = result["v1"]["datasource"].split()[0].lower()
AttributeError: 'NoneType' object has no attribute 'split'
What is interesting in this error is that we are calling the get_cloud_type_from_result_file function. We should only be calling this function if we don't have the cloud-id command in the machine. Since we are running on xenial machines, was not expecing that to happen.
So there is something wrong with cloud-init here. Maybe that is related to the snap issue we are seeing.
Can you run the following cloud-init command and attach the logs here please
cloud-init collect-logs
Looking at the logs, I am seeing two distinct errors. One is livepatch issue that we have:
Failed running command '/snap/ bin/canonical- livepatch config remote-server=https:/ /livepatch. canonical. com' [exit(1)]. Message: 2021/05/04 15:18:29 error executing config: Livepatchd error: Couldn't setup system logger.
And the other one is related to cloud-init: python3/ dist-packages/ uaclient/ clouds/ identity. py", line 56, in get_cloud_ type_from_ result_ file "v1"][" datasource" ].split( )[0].lower( )
File "/usr/lib/
dsname = result[
AttributeError: 'NoneType' object has no attribute 'split'
What is interesting in this error is that we are calling the get_cloud_ type_from_ result_ file function. We should only be calling this function if we don't have the cloud-id command in the machine. Since we are running on xenial machines, was not expecing that to happen.
So there is something wrong with cloud-init here. Maybe that is related to the snap issue we are seeing.
Can you run the following cloud-init command and attach the logs here please
cloud-init collect-logs