Issues with devstack after computer reboot
Hello all,
I was able to successfully get Devstack up and running per the instructions on EDX Introduction to Openstack class. However, when I rebooted my computer I got this error during boot:
"Failed to start Initial cloud-init job (pre-networking). See 'systemctl status cloud-init-local.service' for details"
Once I was able to log in I ran the systemctl status cloud-init-local.service command and received this error:
"● cloud-init-local.service - Initial cloud-init job (pre-networking) Loaded: loaded (/lib/systemd/system/cloud-init-local.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2016-10-20 22:18:59 CDT; 9min ago Process: 796 ExecStart=/usr/bin/cloud-init init --local (code=exited, status=1/FAILURE) Main PID: 796 (code=exited, status=1/FAILURE)
Oct 20 22:18:59 Guy-Server cloud-init[796]: return cls._build_from_requirements(requires) Oct 20 22:18:59 Guy-Server cloud-init[796]: File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 650, in _build_from_requirements Oct 20 22:18:59 Guy-Server cloud-init[796]: dists = ws.resolve(reqs, Environment()) Oct 20 22:18:59 Guy-Server cloud-init[796]: File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 829, in resolve Oct 20 22:18:59 Guy-Server cloud-init[796]: raise DistributionNotFound(req, requirers) Oct 20 22:18:59 Guy-Server cloud-init[796]: pkg_resources.DistributionNotFound: The 'cloud-init==0.7.8-1-g3705bb5-0ubuntu1~16.04.3' distribution was not found and is required by the application Oct 20 22:18:59 Guy-Server systemd[1]: cloud-init-local.service: Main process exited, code=exited, status=1/FAILURE Oct 20 22:18:59 Guy-Server systemd[1]: Failed to start Initial cloud-init job (pre-networking). Oct 20 22:18:59 Guy-Server systemd[1]: cloud-init-local.service: Unit entered failed state. Oct 20 22:18:59 Guy-Server systemd[1]: cloud-init-local.service: Failed with result 'exit-code'."
This is what my /usr/bin/cloud-init file looks like:
"#!/usr/bin/python3
EASY-INSTALL-ENTRY-SCRIPT: 'cloud-init==0.7.8','console_scripts','cloud-init'
requires = 'cloud-init==0.7.8' import sys from pkg_resources import load_entry_point
if name == 'main': sys.exit( load_entry_point('cloud-init==0.7.8', 'console_scripts', 'cloud-init')() ) "
I googled this error and several topics popped up but could not find any solutions. I also made a post on the discussion board but so far no solutions. Any help is appreciated because I cannot seem to resolve this by myself.
Thank you