Cloud-init failures on boot after launching an AMI

0

Hello,
Am having difficulty getting an AMI of a machine launched. The image is CentOS 7. This seems to point to something like a Python environment issue, but I am not quite sure. The image does contain the centos-release-scl, for the purposes of installing Python3 which only operates in a Python virtual environment. I am not sure why that would affect this as Python 2 is still installed. Below are the relevant log entries from the system log at initial boot. The machine shows 1/2 checks passed, and cannot be accessed.

Thank you

Line 611: \[   24.190979] cloud-init\[598]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point\[\[1;31mFAILED\[0m] Failed to start Initial cloud-init job (pre-networking).  
Line 611: \[   24.190979] cloud-init\[598]: File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point\[\[1;31mFAILED\[0m] Failed to start Initial cloud-init job (pre-networking).  
Line 650: \[\[1;31mFAILED\[0m] Failed to start LSB: Bring up/down networking.  
Line 650: \[\[1;31mFAILED\[0m] Failed to start LSB: Bring up/down networking.  
Line 660: \[   25.114549] cloud-init\[752]: load_entry_point('cloud-init==18.5', 'console_scripts', 'cloud-init')()\[\[1;31mFAILED\[0m] Failed to start Initial cloud-init job (metadata service crawler).  
Line 660: \[   25.114549] cloud-init\[752]: load_entry_point('cloud-init==18.5', 'console_scripts', 'cloud-init')()\[\[1;31mFAILED\[0m] Failed to start Initial cloud-init job (metadata service crawler).  
Line 699: \[   25.572718] cloud-init\[752]: File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>\[\[1;31mFAILED\[0m] Failed to start Apply the settings specified in cloud-config.  
Line 699: \[   25.572718] cloud-init\[752]: File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>\[\[1;31mFAILED\[0m] Failed to start Apply the settings specified in cloud-config.  
Line 732: \[   26.120298] cloud-init\[\[1;31mFAILED\[0m] Failed to start Execute cloud user/final scripts.\[766]: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 26, in <module>  
Line 732: \[   26.120298] cloud-init\[\[1;31mFAILED\[0m] Failed to start Execute cloud user/final scripts.\[766]: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 26, in <module>
cjc2875
asked 4 years ago3977 views
1 Answer
0

The problem turned out to be dependency issues within python2.7 that relate to cloud-init. Removing requests and urllib3 via pip and yum, then reinstalling via yum, and reinstalling cloud-init has resolved the issue.

cjc2875
answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions