Contrail Platform Developers
Highlighted
Contrail Platform Developers

Can not intall contrail via "intall guide"

[ Edited ]
‎04-14-2020 10:10 PM

   Hi J team!

   I'm trying to install contrail for lab. I have tried to install all version by contrail_command (1911, 1912, 1912-L1, 2003) but all failed. I have read the guide very carefully but I see it was not updated fully. Etc: some page tell we need asiblie 2.4.2 but some page below tell 2.5 or 2.7.

   This is my enviroment (all on vphere server):

   1 contrail_command server: centos 7.6 docker 18.03.1 ce, ansible 2.4.2

   1 contrail all in one server: centos .7.7 

   1 appformix server: centos 7.7 (already have appfomix image and license on it).

   All of them can reach each orther and have host information on /etc/hosts file. I have try many way and tried many time for install contrail but i still got error.

   So please give me any suggest. Are they fail because they are vm ?

   This is some error log:

error.png

[root@contrail_command ~]# cat /var/log/contrail/deploy.log | grep fatal
time="2020-04-14T22:29:22+07:00" level=debug msg="fatal: [192.168.3.82]: FAILED! => {\"changed\": false, \"msg\": \"Could not find the requested service chronyd: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:29:22+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00~fatal: [192.168.3.81]: FAILED! => {\"changed\": false, \"msg\": \"Could not find the requested service chronyd: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:38:51+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\b(fatal: [192.168.3.81]: FAILED! => {\"changed\": true, \"msg\": \"'Traceback (most recent call last):\\\\n File \\\"/tmp/ansible_kolla_docker_payload_W7gqzq/__main__.py\\\", line 828, in main\\\\n result = bool(getattr(dw, module.params.get(\\\\'action\\\\'))())\\\\n File \\\"/tmp/ansible_kolla_docker_payload_W7gqzq/__main__.py\\\", line 608, in recreate_or_restart_container\\\\n self.start_container()\\\\n File \\\"/tmp/ansible_kolla_docker_payload_W7gqzq/__main__.py\\\", line 630, in start_container\\\\n self.create_container()\\\\n File \\\"/tmp/ansible_kolla_docker_payload_W7gqzq/__main__.py\\\", line 598, in create_container\\\\n self.dc.create_container(**options)\\\\n File \\\"/usr/lib/python2.7/site-packages/docker/api/container.py\\\", line 427, in create_container\\\\n return self.create_container_from_config(config, name)\\\\n File \\\"/usr/lib/python2.7/site-packages/docker/api/container.py\\\", line 437, in create_container_from_config\\\\n res = self._post_json(u, data=config, params=params)\\\\n File \\\"/usr/lib/python2.7/site-packages/docker/api/client.py\\\", line 289, in _post_json\\\\n return self._post(url, data=json.dumps(data2), **kwargs)\\\\n File \\\"/usr/lib/python2.7/site-packages/docker/utils/decorators.py\\\", line 46, in inner\\\\n return f(self, *args, **kwargs)\\\\n File \\\"/usr/lib/python2.7/site-packages/docker/api/client.py\\\", line 226, in _post\\\\n return self.post(url, **self._set_request_timeout(kwargs))\\\\n File \\\"/usr/lib/python2.7/site-packages/requests/sessions.py\\\", line 581, in post\\\\n return self.request(\\\\'POST\\\\', url, data=data, json=json, **kwargs)\\\\n File \\\"/usr/lib/python2.7/site-packages/requests/sessions.py\\\", line 533, in request\\\\n resp = self.send(prep, **send_kwargs)\\\\n File \\\"/usr/lib/python2.7/site-packages/requests/sessions.py\\\", line 646, in send\\\\n r = adapter.send(request, **kwargs)\\\\n File \\\"/usr/lib/python2.7/site-packages/requests/adapters.py\\\", line 529, in send\\\\n raise ReadTimeout(e, request=request)\\\\nReadTimeout: UnixHTTPConnectionPool(host=\\\\'localhost\\\\', port=None): Read timed out. (read timeout=60)\\\\n'\"}" logger=ansible-deployer-container

 

 

[root@contrail_command ~]# cat /var/log/contrail/deploy.log | grep fail
time="2020-04-14T22:27:17+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00Olocalhost : ok=0 changed=0 unreachable=0 failed=0 " logger=ansible-deployer-container
time="2020-04-14T22:27:46+07:00" level=debug msg="failed: [192.168.3.81] (item=cloud-config) => {\"changed\": false, \"item\": \"cloud-config\", \"msg\": \"Could not find the requested service cloud-config: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:46+07:00" level=debug msg="failed: [192.168.3.82] (item=cloud-config) => {\"changed\": false, \"item\": \"cloud-config\", \"msg\": \"Could not find the requested service cloud-config: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:46+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x010failed: [192.168.3.82] (item=cloud-final) => {\"changed\": false, \"item\": \"cloud-final\", \"msg\": \"Could not find the requested service cloud-final: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:46+07:00" level=debug msg="failed: [192.168.3.81] (item=cloud-final) => {\"changed\": false, \"item\": \"cloud-final\", \"msg\": \"Could not find the requested service cloud-final: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:47+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00\xa7failed: [192.168.3.81] (item=cloud-init-local) => {\"changed\": false, \"item\": \"cloud-init-local\", \"msg\": \"Could not find the requested service cloud-init-local: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:47+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00\xa7failed: [192.168.3.82] (item=cloud-init-local) => {\"changed\": false, \"item\": \"cloud-init-local\", \"msg\": \"Could not find the requested service cloud-init-local: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:47+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00\x95failed: [192.168.3.81] (item=cloud-init) => {\"changed\": false, \"item\": \"cloud-init\", \"msg\": \"Could not find the requested service cloud-init: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:47+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00\x95failed: [192.168.3.82] (item=cloud-init) => {\"changed\": false, \"item\": \"cloud-init\", \"msg\": \"Could not find the requested service cloud-init: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:47+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x01Bfailed: [192.168.3.81] (item=cloud-config) => {\"changed\": false, \"item\": \"cloud-config\", \"msg\": \"Could not find the requested service cloud-config: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:27:47+07:00" level=debug msg="failed: [192.168.3.82] (item=cloud-config) => {\"changed\": false, \"item\": \"cloud-config\", \"msg\": \"Could not find the requested service cloud-config: host\"}" logger=ansible-deployer-container
time="2020-04-14T22:33:09+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00O192.168.3.81 : ok=47 changed=25 unreachable=0 failed=0 " logger=ansible-deployer-container
time="2020-04-14T22:33:09+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00\x9f192.168.3.82 : ok=46 changed=25 unreachable=0 failed=0 " logger=ansible-deployer-container
time="2020-04-14T22:33:09+07:00" level=debug msg="localhost : ok=69 changed=6 unreachable=0 failed=0 " logger=ansible-deployer-container
time="2020-04-14T22:38:51+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00O192.168.3.81 : ok=54 changed=28 unreachable=0 failed=1 " logger=ansible-deployer-container
time="2020-04-14T22:38:51+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00O192.168.3.82 : ok=3 changed=0 unreachable=0 failed=0 " logger=ansible-deployer-container
time="2020-04-14T22:38:51+07:00" level=debug msg="\x01\x00\x00\x00\x00\x00\x00Olocalhost : ok=68 changed=2 unreachable=0 failed=0 " logger=ansible-deployer-container

 

  

 

 

 

Feedback