vlead / ovpl

ADS - Automated Deployment Service
MIT License
0 stars 22 forks source link

ADS issue when running deploying a lab #82

Open kraghupathi opened 7 years ago

kraghupathi commented 7 years ago

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 commented 7 years ago

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

ksripathi commented 7 years ago

We should host ADS web-app using nginx, wsgi and gunicorn instead of running web-app everytime manually

On Tue, Jul 18, 2017 at 5:06 PM, sivashankerN notifications@github.com wrote:

@kraghupathi https://github.com/kraghupathi start ./mange-service first and then start app.py in backgroud

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vlead/ovpl/issues/82#issuecomment-316037576, or mute the thread https://github.com/notifications/unsubscribe-auth/AIXi7Eqm4MyyYHLuIMZ0g46BVsBdVTxIks5sPJjIgaJpZM4ObHOe .

kraghupathi commented 7 years ago

@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 commented 7 years ago

@kraghupathi

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

ksripathi commented 7 years ago

@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

sivashankerN commented 7 years ago

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

sivashankerN commented 7 years ago

@ksripathi what was the issue?