0-complexity / openvcloud

OpenvCloud
Other
2 stars 4 forks source link

Installation failed #141

Open alexelshamouty opened 8 years ago

alexelshamouty commented 8 years ago

Environment could not be installed due to this error

Environment :

du-conv-2

Behaviour

1 Create ovc_git 2 ssh into ovc_git 3 execute master_spawn.py -q 4 execute the following command :

jspython scripts/master-configure.py --gateway 192.168.31.254 --start 192.168.28.10 --end 192.168.28.200 --netmask 255.255.252.0 --ssl wildcard --gid 777

Result

[192.168.103.236:22] out: E:HEAD is now at cd9613b... fix a bug in cloudspace params (#131)
[192.168.103.236:22] out: copy: /opt/code/github/0-complexity/openvcloud/apps/nginx/ms1_fe->/opt/nginx/cfg/sites-enabled/ms1_fe
[192.168.103.236:22] out: 2016/05/14 21:56:06 - atyourserviceAction       - Stopping jumpscale:portal_main
[192.168.103.236:22] out: 2016/05/14 21:56:06 - atyourserviceAction       - Status jumpscale:portal_main not running
[192.168.103.236:22] out: 2016/05/14 21:56:06 - atyourserviceAction       - Stopping jumpscale:portal_main
[192.168.103.236:22] out: 2016/05/14 21:56:06 - atyourserviceAction       - Starting jumpscale:portal_main
[192.168.103.236:22] out: 2016/05/14 21:56:08 - atyourserviceAction       - Status jumpscale      :portal         :main is running
[192.168.103.236:22] out: HTTP Error 404: Not Found
[192.168.103.236:22] out: Traceback (most recent call last):
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/bin/ays", line 270, in <module>
[192.168.103.236:22] out:     s.install(deps=args.deps, reinstall=args.reinstall, offline=args.offline)
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/baselib/atyourservice/Service.py", line 103, in wrapper
[192.168.103.236:22] out:     result = processresult(result, F(dep, *args, deps=False, **kwargs))
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/baselib/atyourservice/Service.py", line 621, in install
[192.168.103.236:22] out:     self._install(start=start, deps=deps, reinstall=reinstall, offline=offline)
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/baselib/atyourservice/Service.py", line 712, in _install
[192.168.103.236:22] out:     self.configure(deps=False)
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/baselib/atyourservice/Service.py", line 106, in wrapper
[192.168.103.236:22] out:     result, F(service, *args, deps=False, **kwargs))
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/baselib/atyourservice/Service.py", line 877, in configure
[192.168.103.236:22] out:     self.actions.configure(self)
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/hrd/apps/openvcloud__cb_master_aio__main/actions.py", line 121, in configure
[192.168.103.236:22] out:     j.apps.cloudbroker.iaas.syncAvailableImagesToCloudbroker()
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/var/code/actorremote_cloudbroker_actor_iaas_.py", line 19, in syncAvailableImagesToCloudbroker
[192.168.103.236:22] out:     resultcode,result=self._appserverclient.wsclient.callWebService("cloudbroker","iaas","syncAvailableImagesToCloudbroker",)
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/portal/portal/PortalClientWS.py", line 73, in callWebService
[192.168.103.236:22] out:     result = self.httpconnection.post(url, headers=headers, data=data)
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/baselib/http_client/HttpClient.py", line 92, in post
[192.168.103.236:22] out:     response = self._http_request(url, data=data, headers=headers, method='POST',**params)
[192.168.103.236:22] out: ~   File "/opt/jumpscale7/lib/JumpScale/baselib/http_client/HttpClient.py", line 177, in _http_request
[192.168.103.236:22] out:     raise HTTPError(e, url)
[192.168.103.236:22] out: ~ HTTPError: 404:
[192.168.103.236:22] out:  Could not find method, path was cloudbroker/iaas/syncAvailableImagesToCloudbroker
[192.168.103.236:22] out:
[192.168.103.236:22] out: type/level: UNKNOWN/1
[192.168.103.236:22] out: <class 'JumpScale.baselib.http_client.HttpClient.HTTPError'>: 404:
[192.168.103.236:22] out:  Could not find method, path was cloudbroker/iaas/syncAvailableImagesToCloudbroker
[192.168.103.236:22] out:
[192.168.103.236:22] out:

I have cleaned & started the installation for 5 times with the same parameters and the result is the same

notes :

1 . installation script does not support reinstallation or re-running the scripts much , there are no parameters to identify that this is a re installation and that old hrds should be ignored/overwritten , hence the result is always remove everything and start over

2 . the script 'master_spawn' does not really check if the machine has been created successfully , i have faced an error when it thinks that the machine has been created while in reality it has not and it was in an error stat , this is probably due to the lack of error checking on ms1 api side , but there should be a way to check if the machine was really started or not

3 . master_spawn.py is really slow , and this is due to the fact that the script runs sequentially , in my opinion i think it should utilises threading or any other means of parallelism to cut down the wait time , especially that the virtual machines are independent of each other

4 . if master_configure.py was interrupted it does not cleanly restart , it reads values from hrd and disregard the actual data thats on disk ( add check ? )

grimpy commented 8 years ago

Bug was found in the cloudbroker failing to register subset of api. fixed in b4

maxux commented 8 years ago

I think the interruption/restore state will be improved when code will be migrated to ays/js8, not before.

js-awesomo commented 7 years ago

COO Notified

FastGeert commented 7 years ago

@grimpy how can a critical bug end up in backlog