Open travula opened 7 years ago
@vlead/platform @sounak98
There is an important development at VLEAD. The new labs - data structures and Linux - that are being done as part of SSAD would like to use the platform. In this context, professor is interested to see a demo. I would like to meet you over the weekend to tie the loose ends and get ready for the production.
@travula Sir, can you schedule a meeting tomorrow as the Wednesday meeting was cancelled.
The link local-ads:8080
is not opening. Log is attached.
08/23/2017 07:24:12 PM: DEBUG: /root/ovpl/src/vmmanager/lab_action_script.py:48 -> LabActionScript::run() - service apache2 start
08/23/2017 07:24:12 PM: DEBUG: /root/ovpl/src/vmmanager/lab_action_script.py:49 -> LabActionScript::run() - /root/labs/computer-programming-responsive-iiith/scripts
08/23/2017 07:24:12 PM: DEBUG: /root/ovpl/src/utils/execute_commands.py:28 -> command: service apache2 start
08/23/2017 07:24:13 PM: INFO: /root/ovpl/src/vmmanager/vm_manager.py:124 -> Finishing test_lab: Success
08/23/2017 07:24:13 PM: DEBUG: /root/ovpl/src/lab_manager.py:55 -> response = <Response [200]>
08/23/2017 07:24:13 PM: DEBUG: /root/ovpl/src/controller.py:104 -> current user is kammari.sripathi@gmail.com
08/23/2017 07:24:13 PM: DEBUG: /root/ovpl/src/controller.py:113 -> Lab deployed by kammari.sripathi@gmail.com
08/23/2017 07:24:13 PM: DEBUG: /root/ovpl/src/state.py:60 -> record id = https://github.com/Virtual-Labs/computer-programming-responsive-iiith2017-08-23 19:24:13.118612
08/23/2017 07:24:14 PM: DEBUG: /root/ovpl/src/state.py:67 -> Insert of record with Id = https://github.com/Virtual-Labs/computer-programming-responsive-iiith2017-08-23 19:24:13.118612 successful
08/23/2017 07:24:14 PM: INFO: /root/ovpl/src/controller.py:74 -> test_lab(): test succcessful, ip = 192.168.33.2
192.168.33.2 is the ip of the machine on which your application is deployed. Check this machine if your application is deployed.
@sounak98
Have you executed below command mentioned at https://github.com/vlead/setup-ovpl-centos/blob/develop/user-docs/run-ads-using-vagrant-box.org
echo '192.168.33.10 local-ads.com' >> /etc/hosts
@ksripathi
On deploying the translators repo in the ads we get the following error.
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/vmmanager/vm_manager_server.py:64 -> lab_src_url = https://github.com/vlead/translators, version = develop
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/git_commands.py:26 -> GIT_CLONE_LOC = /root/labs/
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/git_commands.py:27 -> LAB_SPEC_DIR = /scripts/
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/git_commands.py:28 -> LAB_SPEC_FILE = labspec.json
09/26/2017 11:04:18 AM: INFO: /root/ovpl/src/vmmanager/vm_manager.py:67 -> Environment http_proxy =
09/26/2017 11:04:18 AM: INFO: /root/ovpl/src/vmmanager/vm_manager.py:68 -> Environment https_proxy =
09/26/2017 11:04:18 AM: INFO: /root/ovpl/src/vmmanager/vm_manager.py:99 -> Starting test_lab
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/git_commands.py:41 -> lab_src_url: https://github.com/vlead/translators
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/git_commands.py:44 -> repo_name: translators
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/git_commands.py:102 -> spec_file_path: /root/labs/translators/scripts/labspec.json
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/vmmanager/vm_manager.py:106 -> spec_path: /root/labs/translators/scripts/
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/execute_commands.py:28 -> command: echo "Acquire::http::Proxy \"\";">>/etc/apt/apt.conf
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/execute_commands.py:28 -> command: echo "Acquire::https::Proxy \"\";">>/etc/apt/apt.conf
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/vmmanager/vm_manager.py:109 -> Changed to Diretory: /root/labs/translators/scripts/
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/vmmanager/vm_manager.py:110 -> CWD: /root/labs/translators/scripts
09/26/2017 11:04:18 AM: INFO: /root/ovpl/src/vmmanager/lab_action_runner.py:50 -> Configuring the lab...
09/26/2017 11:04:18 AM: INFO: /root/ovpl/src/vmmanager/lab_action_runner.py:55 -> Running the pre-build scripts...
09/26/2017 11:04:18 AM: INFO: /root/ovpl/src/vmmanager/lab_action_runner.py:60 -> Running the build scripts...
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/vmmanager/lab_action_script.py:47 -> LabActionScript::run() -
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/vmmanager/lab_action_script.py:48 -> LabActionScript::run() - cd /root/labs/translators; make build
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/vmmanager/lab_action_script.py:49 -> LabActionScript::run() - /root/labs/translators/scripts
09/26/2017 11:04:18 AM: DEBUG: /root/ovpl/src/utils/execute_commands.py:28 -> command: cd /root/labs/translators; make build
09/26/2017 11:05:58 AM: ERROR: /root/ovpl/src/utils/execute_commands.py:35 -> Called Process Error Message: ./init.sh
Cloning into 'literate-tools'...
make -f tangle-make -k all
make[1]: Entering directory `/root/labs/translators'
mkdir -p ~/emacs/lisp
wget http://orgmode.org/org-8.2.10.tar.gz
tar zxvf org-8.2.10.tar.gz
org-8.2.10/README
org-8.2.10/COPYING
org-8.2.10/lisp/Makefile
org-8.2.10/lisp/ob-C.el
org-8.2.10/lisp/ob-R.el
org-8.2.10/lisp/ob-asymptote.el
org-8.2.10/lisp/ob-awk.el
org-8.2.10/lisp/ob-calc.el
org-8.2.10/lisp/ob-clojure.el
org-8.2.10/lisp/ob-comint.el
org-8.2.10/lisp/ob-core.el
org-8.2.10/lisp/ob-css.el
org-8.2.10/lisp/ob-ditaa.el
org-8.2.10/lisp/ob-dot.el
org-8.2.10/lisp/ob-emacs-lisp.el
org-8.2.10/lisp/ob-eval.el
org-8.2.10/lisp/ob-exp.el
org-8.2.10/lisp/ob-fortran.el
org-8.2.10/lisp/ob-gnuplot.el
org-8.2.10/lisp/ob-haskell.el
org-8.2.10/lisp/ob-io.el
org-8.2.10/lisp/ob-java.el
org-8.2.10/lisp/ob-js.el
org-8.2.10/lisp/ob-keys.el
org-8.2.10/lisp/ob-latex.el
org-8.2.10/lisp/ob-ledger.el
org-8.2.10/lisp/ob-lilypond.el
org-8.2.10/lisp/ob-lisp.el
org-8.2.10/lisp/ob-lob.el
org-8.2.10/lisp/ob-makefile.el
org-8.2.10/lisp/ob-matlab.el
org-8.2.10/lisp/ob-maxima.el
org-8.2.10/lisp/ob-mscgen.el
org-8.2.10/lisp/ob-ocaml.el
org-8.2.10/lisp/ob-octave.el
org-8.2.10/lisp/ob-org.el
org-8.2.10/lisp/ob-perl.el
org-8.2.10/lisp/ob-picolisp.el
org-8.2.10/lisp/ob-plantuml.el
org-8.2.10/lisp/ob-python.el
org-8.2.10/lisp/ob-ref.el
org-8.2.10/lisp/ob-ruby.el
org-8.2.10/lisp/ob-sass.el
org-8.2.10/lisp/ob-scala.el
org-8.2.10/lisp/ob-scheme.el
org-8.2.10/lisp/ob-screen.el
org-8.2.10/lisp/ob-sh.el
org-8.2.10/lisp/ob-shen.el
org-8.2.10/lisp/ob-sql.el
org-8.2.10/lisp/ob-sqlite.el
org-8.2.10/lisp/ob-table.el
org-8.2.10/lisp/ob-tangle.el
org-8.2.10/lisp/ob.el
org-8.2.10/lisp/org-agenda.el
org-8.2.10/lisp/org-archive.el
org-8.2.10/lisp/org-attach.el
org-8.2.10/lisp/org-bbdb.el
org-8.2.10/lisp/org-bibtex.el
org-8.2.10/lisp/org-capture.el
org-8.2.10/lisp/org-clock.el
org-8.2.10/lisp/org-colview.el
org-8.2.10/lisp/org-compat.el
org-8.2.10/lisp/org-crypt.el
org-8.2.10/lisp/org-ctags.el
org-8.2.10/lisp/org-datetree.el
org-8.2.10/lisp/org-docview.el
org-8.2.10/lisp/org-element.el
org-8.2.10/lisp/org-entities.el
org-8.2.10/lisp/org-eshell.el
org-8.2.10/lisp/org-faces.el
org-8.2.10/lisp/org-feed.el
org-8.2.10/lisp/org-footnote.el
org-8.2.10/lisp/org-gnus.el
org-8.2.10/lisp/org-habit.el
org-8.2.10/lisp/org-id.el
org-8.2.10/lisp/org-indent.el
org-8.2.10/lisp/org-info.el
org-8.2.10/lisp/org-inlinetask.el
org-8.2.10/lisp/org-install.el
org-8.2.10/lisp/org-irc.el
org-8.2.10/lisp/org-list.el
org-8.2.10/lisp/org-loaddefs.el
org-8.2.10/lisp/org-macro.el
org-8.2.10/lisp/org-macs.el
org-8.2.10/lisp/org-mhe.el
org-8.2.10/lisp/org-mobile.el
org-8.2.10/lisp/org-mouse.el
org-8.2.10/lisp/org-pcomplete.el
org-8.2.10/lisp/org-plot.el
org-8.2.10/lisp/org-protocol.el
org-8.2.10/lisp/org-rmail.el
org-8.2.10/lisp/org-src.el
org-8.2.10/lisp/org-table.el
org-8.2.10/lisp/org-timer.el
org-8.2.10/lisp/org-version.el
org-8.2.10/lisp/org-w3m.el
org-8.2.10/lisp/org.el
org-8.2.10/lisp/ox-ascii.el
org-8.2.10/lisp/ox-beamer.el
org-8.2.10/lisp/ox-html.el
org-8.2.10/lisp/ox-icalendar.el
org-8.2.10/lisp/ox-latex.el
org-8.2.10/lisp/ox-man.el
org-8.2.10/lisp/ox-md.el
org-8.2.10/lisp/ox-odt.el
org-8.2.10/lisp/ox-org.el
org-8.2.10/lisp/ox-publish.el
org-8.2.10/lisp/ox-texinfo.el
org-8.2.10/lisp/ox.el
org-8.2.10/Makefile
org-8.2.10/request-assign-future.txt
org-8.2.10/mk/default.mk
org-8.2.10/mk/targets.mk
org-8.2.10/mk/version.mk
org-8.2.10/mk/org-fixup.el
org-8.2.10/etc/Makefile
org-8.2.10/etc/ORG-NEWS
org-8.2.10/etc/schema/
org-8.2.10/etc/schema/od-schema-v1.2-os.rnc
org-8.2.10/etc/schema/od-manifest-schema-v1.2-os.rnc
org-8.2.10/etc/schema/schemas.xml
org-8.2.10/etc/styles/
org-8.2.10/etc/styles/OrgOdtStyles.xml
org-8.2.10/etc/styles/OrgOdtContentTemplate.xml
org-8.2.10/etc/styles/README
org-8.2.10/contrib/README
org-8.2.10/contrib/lisp/
org-8.2.10/contrib/lisp/org-contacts.el
org-8.2.10/contrib/lisp/ox-bibtex.el
org-8.2.10/contrib/lisp/org-toc.el
org-8.2.10/contrib/lisp/htmlize.el
org-8.2.10/contrib/lisp/org-registry.el
org-8.2.10/contrib/lisp/org-eval.el
org-8.2.10/contrib/lisp/ox-rss.el
org-8.2.10/contrib/lisp/org-choose.el
org-8.2.10/contrib/lisp/ob-eukleides.el
org-8.2.10/contrib/lisp/ob-mathomatic.el
org-8.2.10/contrib/lisp/org-drill.el
org-8.2.10/contrib/lisp/ox-confluence.el
org-8.2.10/contrib/lisp/org-mime.el
org-8.2.10/contrib/lisp/org-depend.el
org-8.2.10/contrib/lisp/ob-fomus.el
org-8.2.10/contrib/lisp/org-jira.el
org-8.2.10/contrib/lisp/org-wl.el
org-8.2.10/contrib/lisp/org-git-link.el
org-8.2.10/contrib/lisp/ob-julia.el
org-8.2.10/contrib/lisp/ob-tcl.el
org-8.2.10/contrib/lisp/org-mtags.el
org-8.2.10/contrib/lisp/org-sudoku.el
org-8.2.10/contrib/lisp/org-velocity.el
org-8.2.10/contrib/lisp/org-panel.el
org-8.2.10/contrib/lisp/org-vm.el
org-8.2.10/contrib/lisp/org-track.el
org-8.2.10/contrib/lisp/org-collector.el
org-8.2.10/contrib/lisp/org-elisp-symbol.el
org-8.2.10/contrib/lisp/ox-freemind.el
org-8.2.10/contrib/lisp/org-eval-light.el
org-8.2.10/contrib/lisp/org-learn.el
org-8.2.10/contrib/lisp/org-mew.el
org-8.2.10/contrib/lisp/org-man.el
org-8.2.10/contrib/lisp/ox-deck.el
org-8.2.10/contrib/lisp/org-screen.el
org-8.2.10/contrib/lisp/org-notmuch.el
org-8.2.10/contrib/lisp/org-static-mathjax.el
org-8.2.10/contrib/lisp/org-invoice.el
org-8.2.10/contrib/lisp/ox-s5.el
org-8.2.10/contrib/lisp/org-secretary.el
org-8.2.10/contrib/lisp/org-bookmark.el
org-8.2.10/contrib/lisp/ox-taskjuggler.el
org-8.2.10/contrib/lisp/org-mairix.el
org-8.2.10/contrib/lisp/org-contribdir.el
org-8.2.10/contrib/lisp/org-checklist.el
org-8.2.10/contrib/lisp/ox-groff.el
org-8.2.10/contrib/lisp/org-favtable.el
org-8.2.10/contrib/lisp/org-notify.el
org-8.2.10/contrib/lisp/org-colview-xemacs.el
org-8.2.10/contrib/lisp/org-screenshot.el
org-8.2.10/contrib/lisp/orgtbl-sqlinsert.el
org-8.2.10/contrib/lisp/org-interactive-query.el
org-8.2.10/contrib/lisp/org-mac-iCal.el
org-8.2.10/contrib/lisp/org-mac-link.el
org-8.2.10/contrib/lisp/org-bibtex-extras.el
org-8.2.10/contrib/lisp/org-wikinodes.el
org-8.2.10/contrib/lisp/org-annotate-file.el
org-8.2.10/contrib/lisp/ob-oz.el
org-8.2.10/contrib/lisp/org-expiry.el
org-8.2.10/contrib/lisp/ox-koma-letter.el
org-8.2.10/contrib/lisp/org-bullets.el
org-8.2.10/contrib/scripts/
org-8.2.10/contrib/scripts/docco.css
org-8.2.10/contrib/scripts/org-docco.org
org-8.2.10/contrib/scripts/x11idle.c
org-8.2.10/contrib/scripts/StartOzServer.oz
org-8.2.10/contrib/scripts/dir2org.zsh
org-8.2.10/contrib/scripts/.gitignore
org-8.2.10/contrib/scripts/org2hpda
org-8.2.10/contrib/scripts/staticmathjax/
org-8.2.10/contrib/scripts/staticmathjax/chrome/
org-8.2.10/contrib/scripts/staticmathjax/chrome/content/
org-8.2.10/contrib/scripts/staticmathjax/chrome/content/main.js
org-8.2.10/contrib/scripts/staticmathjax/chrome/content/main.xul
org-8.2.10/contrib/scripts/staticmathjax/chrome/chrome.manifest
org-8.2.10/contrib/scripts/staticmathjax/application.ini
org-8.2.10/contrib/scripts/staticmathjax/.gitignore
org-8.2.10/contrib/scripts/staticmathjax/defaults/
org-8.2.10/contrib/scripts/staticmathjax/defaults/preferences/
org-8.2.10/contrib/scripts/staticmathjax/defaults/preferences/prefs.js
org-8.2.10/contrib/scripts/staticmathjax/README.org
org-8.2.10/contrib/scripts/ditaa.jar
org-8.2.10/doc/Documentation_Standards.org
org-8.2.10/doc/Makefile
org-8.2.10/doc/dir
org-8.2.10/doc/doclicense.texi
org-8.2.10/doc/library-of-babel.org
org-8.2.10/doc/org
org-8.2.10/doc/org-version.inc
org-8.2.10/doc/org.pdf
org-8.2.10/doc/org.texi
org-8.2.10/doc/org_dual_license.texi
org-8.2.10/doc/orgcard.pdf
org-8.2.10/doc/orgcard.tex
org-8.2.10/doc/orgcard.txt
org-8.2.10/doc/orgcard_letter.pdf
org-8.2.10/doc/orgguide.pdf
org-8.2.10/doc/orgguide.texi
org-8.2.10/doc/pdflayout.sty
org-8.2.10/doc/texinfo.tex
rm -rf org-8.2.10.tar.gz
mv org-8.2.10 ~/emacs/lisp
checking for literate support ...
echo "pwd=..."
pwd=...
echo /root/labs/translators
/root/labs/translators
Literate support code already present
(ln -sf literate-tools/elisp; \
rm -rf src/org-templates; \
rm -rf src/style; \
mkdir -p src/org-templates; \
mkdir -p src/style;)
(rsync -a literate-tools/org-templates/default/ src/org-templates; \
rsync -a literate-tools/style/default/ src/style)
rsync -a literate-tools/org-templates/tex-macros.org src/org-templates/
rm -rf build
mkdir -p build build/code
# allow these to fail since the parent folder may not have a git repo.
echo -n "Built from commit: " > build/code/VERSION
echo `git rev-parse HEAD` >> build/code/VERSION
echo `git log --pretty=format:'%s' -n 1` >> build/code/VERSION
emacs --script elisp/publish.el
make[1]: Leaving directory `/root/labs/translators'
09/26/2017 11:05:58 AM: ERROR: /root/ovpl/src/vmmanager/lab_action_script.py:54 -> LabActionScript::run() exception is: Command 'cd /root/labs/translators; make build' returned non-zero exit status 2
09/26/2017 11:05:58 AM: ERROR: /root/ovpl/src/vmmanager/vm_manager.py:127 -> VMManager.test_lab failed: Script cd /root/labs/translators; make build failed
09/26/2017 11:05:58 AM: DEBUG: /root/ovpl/src/lab_manager.py:55 -> response = <Response [200]>
09/26/2017 11:05:58 AM: ERROR: /root/ovpl/src/controller.py:83 -> test_lab(); Test failed with error:Test lab failed
The command make build
fails. It is running fine in the local machine.
@talsperre
Have you tried the make build
command on openvz container which was created by ADS ???
And also as mentioned by you there is nothing to do with your local machine, before you proceed with ADS deployment it advisable to deploy the application
manually by choosing openvz template and same template should be configured in ADS.
@talsperre
Today I can help you with ADS deployment. I won't be available for next two days
@ksripathi
Several times when running the ADS, there is an error message regarding
VM 192.168.33.2: waiting for service at port: 9089 to be up..
Logs are as follows:
[D 170929 16:41:29 execute_commands:28] command: ssh -o "StrictHostKeyChecking no" root@192.168.33.10 "/usr/sbin/vzlist -a | grep 332"
[D 170929 16:41:29 centos_openvz_adapter:137] Ensuring VMManager service is running on VM 192.168.33.2
[D 170929 16:41:29 base_adapter:63] base_adapter: wait_for_service(): VM IP: 192.168.33.2
[D 170929 16:41:29 base_adapter:65] base_adapter: port: 9089; sleep: 5; timeout: 300
[D 170929 16:41:29 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 170929 16:41:29 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 170929 16:41:29 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 170929 16:41:29 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 170929 16:41:29 base_adapter:74] total slept: 5
[D 170929 16:41:29 base_adapter:81] VM 192.168.33.2: waiting for service at port: 9089 to be up..
[D 170929 16:41:34 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 170929 16:41:34 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 170929 16:41:34 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 170929 16:41:34 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 170929 16:41:34 base_adapter:74] total slept: 10
[D 170929 16:41:34 base_adapter:81] VM 192.168.33.2: waiting for service at port: 9089 to be up..
[D 170929 16:41:39 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 170929 16:41:39 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 170929 16:41:39 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 170929 16:41:39 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 170929 16:41:39 base_adapter:74] total slept: 15
[D 170929 16:41:39 base_adapter:81] VM 192.168.33.2: waiting for service at port: 9089 to be up..
[D 170929 16:41:44 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 170929 16:41:44 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 170929 16:41:44 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 170929 16:41:44 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 170929 16:41:44 base_adapter:74] total slept: 20
[D 170929 16:41:44 base_adapter:81] VM 192.168.33.2: waiting for service at port: 9089 to be up..
[D 170929 16:41:49 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 170929 16:41:49 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 170929 16:41:49 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 170929 16:41:49 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 170929 16:41:49 base_adapter:74] total slept: 25
[D 170929 16:41:49 base_adapter:81] VM 192.168.33.2: waiting for service at port: 9089 to be up..
^C[root@vagrant-centos65 ads-web-app]# [D 170929 16:41:54 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 170929 16:41:54 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 170929 16:41:54 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 170929 16:41:54 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 170929 16:41:54 base_adapter:74] total slept: 30
[D 170929 16:41:54 base_adapter:81] VM 192.168.33.2: waiting for service at port: 9089 to be up..
killall python
Current Proxy settings: None.
[root@vagrant-centos65 ads-web-app]# env | grep proxy
[root@vagrant-centos65 ads-web-app]#
Tried it on home network. Not IIIT network.
Content server has been manually deployed in openvz container using the commands in the labspec.json
file.
@talsperre
Which openvz template you are using..?? (can you paste name of the template here)
As per your requirement suggested template can be found here http://files.vlabs.ac.in/downloads/templates/ubuntu-14.04_x86_64-custom-emacs-nginx.tar.gz
and configure the same template on ADS to deploy the application here
@ksripathi
The openvz template I am using is ubuntu-14.04_x86_64-custom-emacs-nginx. The resource generator, content server and translator have been manually deployed in this template. However when the same URL is passed to the ads
, sometimes it gets successfully deployed whereas in all other cases we get the following in logs
command: ssh -o "StrictHostKeyChecking no" root@192.168.33.10 "/usr/sbin/vzctl set 332 --nameserver inherit --ram 2048M --swap 512M --onboot yes --save"
[D 171003 13:11:26 adapter_server:38] created VM id = 332
[D 171003 13:11:26 adapter_server:40] lab_repo_name = resource-generator
[D 171003 13:11:26 centos_openvz_adapter:125] centos_openvz_adapter: init_vm(): vm_id = 332
[D 171003 13:11:26 centos_openvz_adapter:273] public key location = /root/.ssh/id_rsa.pub, authorized key location = /vz/root/332/root/.ssh/authorized_keys
[D 171003 13:11:26 centos_openvz_adapter:278] command to cpy the public key = ssh -o "StrictHostKeyChecking no" root@192.168.33.10 "/bin/cat /root/.ssh/id_rsa.pub > /vz/root/332/root/.ssh/authorized_keys"
[D 171003 13:11:26 execute_commands:28] command: ssh -o "StrictHostKeyChecking no" root@192.168.33.10 "/bin/cat /root/.ssh/id_rsa.pub > /vz/root/332/root/.ssh/authorized_keys"
[D 171003 13:11:26 centos_openvz_adapter:317] vm_id = 332, src_dir=/root/ovpl, dest_dir=/vz/root/332/root/
[D 171003 13:11:26 centos_openvz_adapter:289] copy command = rsync -arz --progress /root/ovpl /vz/root/332/root/
[D 171003 13:11:26 centos_openvz_adapter:292] Command = ssh root@192.168.33.10 "rsync -arz --progress /root/ovpl /vz/root/332/root/"
[D 171003 13:11:26 execute_commands:28] command: ssh root@192.168.33.10 "rsync -arz --progress /root/ovpl /vz/root/332/root/"
[D 171003 13:11:30 centos_openvz_adapter:295] Copy successful
[D 171003 13:11:30 centos_openvz_adapter:343] vm_id = 332, src_dir=/root/labs/resource-generator, dest_dir=/vz/root/332/root/labs
[D 171003 13:11:30 centos_openvz_adapter:289] copy command = rsync -arz --progress /root/labs/resource-generator /vz/root/332/root/labs
[D 171003 13:11:30 centos_openvz_adapter:292] Command = ssh root@192.168.33.10 "rsync -arz --progress /root/labs/resource-generator /vz/root/332/root/labs"
[D 171003 13:11:30 execute_commands:28] command: ssh root@192.168.33.10 "rsync -arz --progress /root/labs/resource-generator /vz/root/332/root/labs"
[D 171003 13:11:30 centos_openvz_adapter:295] Copy successful
[D 171003 13:11:30 execute_commands:28] command: ssh -o "StrictHostKeyChecking no" root@192.168.33.10 "/usr/sbin/vzlist -a | grep 332"
[D 171003 13:11:30 centos_openvz_adapter:211] centos_openvz_adapter: start_vm_manager(): command = ssh -o 'StrictHostKeyChecking no' root@192.168.33.2 'python /root/ovpl/src/vmmanager/vm_manager_server.py >>/root/vm.log 2>&1 </dev/null &'
[D 171003 13:11:30 execute_commands:28] command: ssh -o 'StrictHostKeyChecking no' root@192.168.33.2 'python /root/ovpl/src/vmmanager/vm_manager_server.py >>/root/vm.log 2>&1 </dev/null &'
ssh: connect to host 192.168.33.2 port 22: Connection refused
[E 171003 13:11:30 centos_openvz_adapter:218] centos_openvz_adapter: start_vm_manager(): command = ssh -o 'StrictHostKeyChecking no' root@192.168.33.2 'python /root/ovpl/src/vmmanager/vm_manager_server.py >>/root/vm.log 2>&1 </dev/null &', ERROR = 'CalledProcessError' object has no attribute 'output'
[D 171003 13:11:30 execute_commands:28] command: ssh -o "StrictHostKeyChecking no" root@192.168.33.10 "/usr/sbin/vzlist -a | grep 332"
[D 171003 13:11:30 centos_openvz_adapter:137] Ensuring VMManager service is running on VM 192.168.33.2
[D 171003 13:11:30 base_adapter:63] base_adapter: wait_for_service(): VM IP: 192.168.33.2
[D 171003 13:11:30 base_adapter:65] base_adapter: port: 9089; sleep: 5; timeout: 300
[D 171003 13:11:30 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 171003 13:11:30 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 171003 13:11:30 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 171003 13:11:30 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 171003 13:11:30 base_adapter:74] total slept: 5
[D 171003 13:11:30 base_adapter:81] VM 192.168.33.2: waiting for service at port: 9089 to be up..
[D 171003 13:11:35 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.2
[D 171003 13:11:35 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.2
[D 171003 13:11:35 base_adapter:57] base_adapter: VM 192.168.33.2: Error connecting to port: 9089: [Errno 111] Connection refused
[D 171003 13:11:35 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 171003 13:11:35 base_adapter:74] total slept: 10
@talsperre
I will look into this issue, could you please share your git repo url and the branch to be deployed. I will test on my dev environment
@talsperre
I have re published the template ubuntu-14.04_x86_64-custom-emacs-nginx
please try this now and let me know if still same issue
translators Branch: develop resource-generator Branch: develop content-server Branch: devlop
The issue still persists with the republished template. Please check @ksripathi.
@talsperre
Yeah even I noticed same problem in my dev environment it works sometimes and doesn't sometimes. I will look into this soon
@travula Recently there seems to be an issue in logging to the ads using oauth. This is the error that I get:
URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
Probably a proxy issue. What is the solution? (I am currently running it from my own network)
@ksripathi @travula In the new box the issue regarding port 9089 not being free remains. I was able to deploy two of the modules but I received this while deploying the third module.
[D 171108 18:13:49 centos_openvz_adapter:211] centos_openvz_adapter: start_vm_manager(): command = ssh -o 'StrictHostKeyChecking no' root@192.168.33.5 'python /root/ovpl/src/vmmanager/vm_manager_server.py >>/root/vm.log 2>&1 </dev/null &'
[D 171108 18:13:49 execute_commands:28] command: ssh -o 'StrictHostKeyChecking no' root@192.168.33.5 'python /root/ovpl/src/vmmanager/vm_manager_server.py >>/root/vm.log 2>&1 </dev/null &'
ssh: connect to host 192.168.33.5 port 22: Connection refused
[E 171108 18:13:49 centos_openvz_adapter:218] centos_openvz_adapter: start_vm_manager(): command = ssh -o 'StrictHostKeyChecking no' root@192.168.33.5 'python /root/ovpl/src/vmmanager/vm_manager_server.py >>/root/vm.log 2>&1 </dev/null &', ERROR = 'CalledProcessError' object has no attribute 'output'
[D 171108 18:13:49 execute_commands:28] command: ssh -o "StrictHostKeyChecking no" root@192.168.33.10 "/usr/sbin/vzlist -a | grep 335"
[D 171108 18:13:49 centos_openvz_adapter:137] Ensuring VMManager service is running on VM 192.168.33.5
[D 171108 18:13:49 base_adapter:63] base_adapter: wait_for_service(): VM IP: 192.168.33.5
[D 171108 18:13:49 base_adapter:65] base_adapter: port: 9089; sleep: 5; timeout: 300
[D 171108 18:13:49 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.5
[D 171108 18:13:49 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.5
[D 171108 18:13:49 base_adapter:57] base_adapter: VM 192.168.33.5: Error connecting to port: 9089: [Errno 111] Connection refused
[D 171108 18:13:49 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 171108 18:13:49 base_adapter:74] total slept: 5
[D 171108 18:13:49 base_adapter:81] VM 192.168.33.5: waiting for service at port: 9089 to be up..
[D 171108 18:13:54 base_adapter:47] base_adapter: is_service_up(): VM IP: 192.168.33.5
[D 171108 18:13:54 base_adapter:51] base_adapter: trying to connect to port: 9089 of: 192.168.33.5
[D 171108 18:13:54 base_adapter:57] base_adapter: VM 192.168.33.5: Error connecting to port: 9089: [Errno 111] Connection refused
[D 171108 18:13:54 base_adapter:58] base_adapter: retrying to reach port 9089..
[D 171108 18:13:54 base_adapter:74] total slept: 10
@vlead/platform
Create the ADS vagrant box in the development environment.
ADS stands for auto deployment service