Open MorganEPatch opened 7 years ago
Note: if you want to test this locally, make sure you change the "revision" in ganeti_webmgr/chef/environments/vagrant.json to this branch, otherwise it will keep checking out the old version of the scripts and failing.
@LyonesGamer how are you getting this to work? I keep running into berkshelf/vagrant-berkshelf#315. Perhaps it might make more sense to switch this over to running inside of docker? I'm not sure how much additional work that might be however but this seems to be an issue.
@Kennric thoughts?
@ramereth I'm not sure, I haven't seen that error myself. I just followed this guide: http://ganeti-webmgr.readthedocs.io/en/latest/dev/vagrant.html
@LyonesGamer are you running this on one of our workstations with chefdk installed?
@ramereth Yes. Does that make a difference?
Setuptools v34 introduced several new dependencies, which must each themselves be installed with setuptools, creating a cyclic dependency that makes the whole thing very difficult to install. In order to fix this, pip is first upgraded to the newest versions (which are smart enough to know not to call setuptools on itself now), then the dependencies for setuptools are installed using the old version of setuptools, then setuptools itself is updated. This prevents any further issues.
As well, there was an issue with changes to the application (namely to the setup.sh script) not being reflected on the vagrant instance I was using for testing. This was because Chef was installing the application to /opt/ganeti_webmgr_src, but the setup script was told to use /home/vagrant/ganeti_webmgr as the install directory. Once they were both back on the same page, this fixed the issue.
I don't believe any documentation change is necessary here, as it's a minor change to very internal workings.