osuosl / ganeti_webmgr

Ganeti Web Manager is a Django based web application that allows administrators and clients access to their ganeti clusters. It includes a permissions and quota system that allows administrators to grant access to both clusters and virtual machines. It also includes user groups for structuring access to organizations.
https://code.osuosl.org/projects/ganeti-webmgr
GNU General Public License v2.0
64 stars 32 forks source link

Fix recent setup failures. #102

Open MorganEPatch opened 7 years ago

MorganEPatch commented 7 years ago

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.

MorganEPatch commented 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.

ramereth commented 7 years ago

@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?

MorganEPatch commented 7 years ago

@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

ramereth commented 7 years ago

@LyonesGamer are you running this on one of our workstations with chefdk installed?

MorganEPatch commented 7 years ago

@ramereth Yes. Does that make a difference?