-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre_build in labspec.json fails! #29
Comments
Can you attach the logs of OVPL when it fails? |
sure!! These are from yesterday evening run. 02/25/2015 05:54:31 PM: DEBUG: /root/ovpl/src/adapters/CentOSVZAdapter.py:195 -> vm_id = 58136, src_dir=/root/labs/databases-iiith, dest_dir=/vz/root/58136/root/labs |
Hey, not the logs printed on the screen. Can you paste the logs from the On Thu, Feb 26, 2015 at 3:31 PM, sai krishna notifications@github.com
|
I got these from the log file!! Did I miss some thing??
/root/logs/<log file on 25th feb>
10.2.56.212 : user/pwd: vlead/1
|
Okay. Thanks! I'll look into it. But looks like 'Connection refused', so a On Thu, Feb 26, 2015 at 4:31 PM, sai krishna notifications@github.com
|
observed this. Not an actual issue. but still ovpl does this wired When a container is created with ovpl : On Thu, Feb 26, 2015 at 5:35 PM, Anon Ray notifications@github.com wrote:
|
ADS is unable to contact the VMManager service to install the lab. This is On Thu, Feb 26, 2015 at 5:49 PM, sai krishna notifications@github.com
|
Now ADS is able to contact the VMManager. The pre-build script is being called. Although the script itself is fine, With further enhancements(capturing the exit code and handling it in pre-build-script.sh) also I could reproduce the same issue. #!/bin/sh When "sudo apt-get install -y dvipng" is run, exit code 100 is thrown. So I capture this in my script and run it. Still ovpl fails. Thanks, |
To manually install the lab: the order of scripts to be executed: pre-build-script.sh I must say, the lab is deployed after this step. |
Can you guys create an ansible script to deploy this lab? |
ADS can be enhaced to deploy a lab using ansible. |
I am running a shell script to install packages required for a lab with in pre_build of the labspec.json.
I have tested the script on a vanila ubuntu container. The script runs fine without throwing any error.
The same script when passed to ovpl via labspec.json, installation fails. I have set the execute permissions too.
"pre_build": ["sh pre-build-script.sh "],
My script "pre-build-script.sh":
(sudo apt-get update; sudo apt-get install -y make m4 build-essential gcc gfortran libssl-dev python-software-properties; sudo -E apt-add-repository -y ppa:aims/sagemath; sudo apt-get update; sudo apt-get install -y dvipng; sudo dpkg --configure -a; sudo apt-get install -f; sudo apt-get install -y sagemath-upstream-binary --force-yes)
I have tested the same on a new container multiple times and it is successfull. but not via ovpl.
The text was updated successfully, but these errors were encountered: