Skip to content
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

ADS issue when running deploying a lab #82

Open
kraghupathi opened this issue Jul 18, 2017 · 7 comments
Open

ADS issue when running deploying a lab #82

kraghupathi opened this issue Jul 18, 2017 · 7 comments
Assignees
Labels

Comments

@kraghupathi
Copy link

Getting following error while deploying a lab on Base1 server

File "/usr/lib/python2.6/site-packages/Flask-0.11.1-py2.6.egg/flask/app.py", line 1639, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python2.6/site-packages/Flask-0.11.1-py2.6.egg/flask/app.py", line 1625, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/var/www/html/ads-web-app/api.py", line 70, in index r = requests.post(ADS_URL, data=json.dumps(data), headers=headers) File "/usr/lib/python2.6/site-packages/requests-2.9.1-py2.6.egg/requests/api.py", line 107, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/lib/python2.6/site-packages/requests-2.9.1-py2.6.egg/requests/api.py", line 53, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.6/site-packages/requests-2.9.1-py2.6.egg/requests/sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.6/site-packages/requests-2.9.1-py2.6.egg/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.6/site-packages/requests-2.9.1-py2.6.egg/requests/adapters.py", line 437, in send raise ConnectionError(e, request=request) ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb54088e510>: Failed to establish a new connection: [Errno 111] Connection refused',)) on browser.

Please fix above issue on Base1 server.

@sivashankerN
Copy link

sivashankerN commented Jul 18, 2017

@kraghupathi start ./manage-service first and then start app.py in backgroud

@ksripathi
Copy link
Contributor

ksripathi commented Jul 18, 2017 via email

@kraghupathi
Copy link
Author

@sivashankerN : I tried to run /manage-service stop and /manage-service start
But will getting following error
mongod (pid 11658) is running... Starting all services. Traceback (most recent call last): File "src/httplogging/http_logging_server.py", line 16, in <module> from utils.envsetup import EnvSetUp File "/root/ovpl/src/utils/envsetup.py", line 5, in <module> from config.adapters.base_config import SUBNET ImportError: No module named base_config Traceback (most recent call last): File "src/adapters/adapter_server.py", line 17, in <module> from httplogging.http_logger import logger File "/root/ovpl/src/httplogging/http_logger.py", line 6, in <module> from utils.envsetup import EnvSetUp File "/root/ovpl/src/utils/envsetup.py", line 5, in <module> from config.adapters.base_config import SUBNET ImportError: No module named base_config Traceback (most recent call last): File "src/controller_server.py", line 27, in <module> from httplogging.http_logger import logger File "/root/ovpl/src/httplogging/http_logger.py", line 6, in <module> from utils.envsetup import EnvSetUp File "/root/ovpl/src/utils/envsetup.py", line 5, in <module> from config.adapters.base_config import SUBNET ImportError: No module named base_config

@ksripathi
Copy link
Contributor

@kraghupathi

It looks like mis configuration made to base_config file I will look into this and shall update the status here

@ksripathi
Copy link
Contributor

@kraghupathi

Its working now please check it and confirm

http logging service started 10.100.1.9:8239 10.100.1.9:8239 /root/logs/ovpl.log [D 170719 02:44:33 git_commands:26] GIT_CLONE_LOC = /root/labs/ [D 170719 02:44:33 git_commands:27] LAB_SPEC_DIR = /scripts/ [D 170719 02:44:33 git_commands:28] LAB_SPEC_FILE = labspec.json [D 170719 02:44:33 adapter_server:92] module_name = centos_bridged_adapter, adapter_name = CentOSBridgeVZAdapter [D 170719 02:44:33 centos_bridged_adapter:294] BridgeVZAdapter: test_logging() [D 170719 02:44:33 adapter_server:104] __main__() PORT=8000, CreateURI=/api/1.0/vm/create, DestroyURI=/api/1.0/vm/destroy,RestartURI=/api/1.0/vm/restart 10.100.1.9:8239 10.100.1.9:8239 [D 170719 02:44:34 controller_server:75] ControllerServer: It will run on port : 5000

@ksripathi ksripathi self-assigned this Jul 19, 2017
@sivashankerN
Copy link

@ksripathi what changes you have made to solve this issue. Could you please update here

@sivashankerN
Copy link

@ksripathi what was the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants