I wonder if you created your VN using atmosphere interface the issues sound 
similar. I suggest to start over and create a new VM following the API 
documentation - 
https://iujetstream.atlassian.net/wiki/spaces/JWT/pages/31391748/After+API+access+has+been+granted

You should follow all the network steps as listed here - 
https://iujetstream.atlassian.net/wiki/spaces/JWT/pages/35913730/OpenStack+command+line

Try to rerun ansible in the instance you create this way and see if it will 
help.

Suresh

> On Oct 23, 2018, at 9:35 PM, Modak, Prashant Kumar <[email protected]> wrote:
> 
> Hi Suresh,
> I have issued the command: ssh [email protected] though my ubuntu terminal 
> which is locally hosted in my Oracle Virtualbox.
> The ip address 149.165.170.53 is the ip address of CentOS image in jetstream 
> instance. I am successfully able to ssh and able to connect with the 
> jetstream instance.
> 
> Erlang creates 2 cookies in CentOS machine:
> /var/lib/rabbitmq/.erlang.cookie
> /home/xseduser/.erlang.cookie
> 
> The host mismatch is just a suggestion, after following the rabbitmq mailing 
> list, it is suggested over there to 
> focus on the next suggestion that is -- is the cookie set correctly?
> 
> So I copied the contents of var~cookie to home~cookie as suggested in the 
> rabbitmq mailing list, but that doesn't resolves the issue.
> 
> Thanks.
> Prashant
> ________________________________________
> From: Suresh Marru [[email protected]]
> Sent: Tuesday, October 23, 2018 8:10 PM
> To: Airavata Dev
> Subject: Re: issue facing with ansible playbook, Unable to start service 
> rabbitmq-server: Job for rabbitmq-server.service failed because the control 
> process exited with error code
> 
> HI Prashanth,
> 
> If you see the error message below it says you have a hostname mismatch, I am 
> wondering it is due to the jetstream external vs internal IP address. Did you 
> start the VM from atmosphere or API (or Horizon)?
> 
> Suresh
> 
>> On Oct 22, 2018, at 8:32 PM, Modak, Prashant Kumar <[email protected]> wrote:
>> 
>> Hi,
>> Made some progress. But still the script is giving issue in the rabbitmq. 
>> Posting the log msg for the reference.
>> I looked into the issue and come to know that .erlang.cookie is the file 
>> that may cause the issue.
>> So I tried to change the cookie value in file: 
>> /var/lib/rabbitmq/.erlang.cookie
>> 
>> Helpful links:
>> 1. http://www.rabbitmq.com/clustering.html
>> 2. 
>> https://stackoverflow.com/questions/9673172/rabbitmq-erlang-how-to-make-sure-the-erlang-cookies-are-the-same
>> 3. https://groups.google.com/forum/#!topic/rabbitmq-users/a6sqrAUX_Fg
>> 
>> but still it gives the following error log message.
>> 
>> *****
>> fatal: [149.165.170.53]: FAILED! => {
>>   "changed": false,
>>   "cmd": "/usr/sbin/rabbitmqctl -q -n rabbit list_vhosts name tracing",
>>   "failed": true,
>>   "invocation": {
>>       "module_args": {
>>           "name": "master",
>>           "node": "rabbit",
>>           "state": "present",
>>           "tracing": false
>>       },
>>       "module_name": "rabbitmq_vhost"
>>   },
>>   "msg": "Error:********@js-170-53'\n- home dir: /var/lib/rabbitmq\n- cookie 
>> hash: JrqxAaCp6S1u6jBGyTapBQ==",
>>   "rc": 69,
>>   "stderr": "Error: unable to connect to node 'rabbit@js-170-53': 
>> nodedown\n\nDIAGNOSTICS\n===========\n\nattempted to contact: 
>> ['rabbit@js-170-53']\n\nrabbit@js-170-53:\n  * connected to epmd (port 4369) 
>> on js-170-53\n  * epmd reports node 'rabbit' running on port 25672\n  * TCP 
>> connection succeeded but Erlang distribution failed\n  * suggestion: 
>> hostname mismatch?\n  * suggestion: is the cookie set correctly?\n  * 
>> suggestion: is the Erlang distribution using TLS?\n\ncurrent node 
>> details:\n- node name: 'rabbitmq-cli-62@js-170-53'\n- home dir: 
>> /var/lib/rabbitmq\n- cookie hash: JrqxAaCp6S1u6jBGyTapBQ==\n\n",
>>   "stdout": "",
>>   "stdout_lines": []
>> }
>>      to retry, use: --limit 
>> @/home/prashant/Desktop/airavata/dev-tools/ansible/airavata.retry
>> *****
>> 
>> Please let me know, if you need any other information to debug the issue.
>> 
>> Any help will be appreciated.
>> 
>> 
>> Thanks,
>> Prashant
>> ________________________________________
>> From: Modak, Prashant Kumar
>> Sent: Monday, October 22, 2018 7:59 AM
>> To: [email protected]
>> Subject: issue facing with ansible playbook, Unable to start service 
>> rabbitmq-server: Job for rabbitmq-server.service failed because the control 
>> process exited with error code
>> 
>> Hi,
>> facing issue while trying to run the command: ansible-playbook -i 
>> inventories/standalone airavata.yml
>> 
>> TASK [rabbitmq : Start Rabbitmq server] 
>> ****************************************
>> task path: 
>> /home/prashant/Desktop/airavata/dev-tools/ansible/roles/rabbitmq/tasks/main.yml:45
>> Running systemd
>> Using module file 
>> /home/prashant/Desktop/airavata/dev-tools/ansible/ENV/lib/python3.6/site-packages/ansible/modules/core/system/systemd.py
>> <149.165.170.53> ESTABLISH SSH CONNECTION FOR USER: xseduser
>> <149.165.170.53> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto -o 
>> ControlPersist=60s -o User=xseduser -o ConnectTimeout=10 -o 
>> ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r 149.165.170.53 
>> '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo 
>> ~/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023 `" && echo 
>> ansible-tmp-1540212128.0684566-111171913185023="` echo 
>> ~/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023 `" ) && sleep 
>> 0'"'"''
>> <149.165.170.53> PUT /tmp/tmpzjiqtzqo TO 
>> /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/systemd.py
>> <149.165.170.53> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -vvv -C -o 
>> ControlMaster=auto -o ControlPersist=60s -o User=xseduser -o 
>> ConnectTimeout=10 -o 
>> ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r 
>> '[149.165.170.53]'
>> <149.165.170.53> ESTABLISH SSH CONNECTION FOR USER: xseduser
>> <149.165.170.53> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto -o 
>> ControlPersist=60s -o User=xseduser -o ConnectTimeout=10 -o 
>> ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r 149.165.170.53 
>> '/bin/sh -c '"'"'chmod u+x 
>> /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/ 
>> /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/systemd.py
>>  && sleep 0'"'"''
>> <149.165.170.53> ESTABLISH SSH CONNECTION FOR USER: xseduser
>> <149.165.170.53> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto -o 
>> ControlPersist=60s -o User=xseduser -o ConnectTimeout=10 -o 
>> ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r -tt 
>> 149.165.170.53 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c 
>> '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-awcdfhymkxxxdorkzyypwdlqzkaytyqx; 
>> /usr/bin/python 
>> /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/systemd.py;
>>  rm -rf 
>> "/home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/"
>>  > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
>> fatal: [149.165.170.53]: FAILED! => {
>>   "changed": false,
>>   "failed": true,
>>   "invocation": {
>>       "module_args": {
>>           "daemon_reload": false,
>>           "enabled": true,
>>           "masked": null,
>>           "name": "rabbitmq-server",
>>           "state": "started",
>>           "user": false
>>       }
>>   },
>>   "msg": "Unable to start service rabbitmq-server: Job for 
>> rabbitmq-server.service failed because the control process exited with error 
>> code. See \"systemctl status rabbitmq-server.service\" and \"journalctl 
>> -xe\" for details.\n"
>> }
>>       to retry, use: --limit 
>> @/home/prashant/Desktop/airavata/dev-tools/ansible/airavata.retry
>> 
>> PLAY RECAP 
>> *********************************************************************
>> 149.165.170.53             : ok=27   changed=1    unreachable=0    failed=1
>> 
>> 
>> Thanks.
>> Prashant
> 

Reply via email to