Issue while deploying murano package on ubuntu 16.04

Asked by Anjali Pathak

I am deploying murano package using ubuntu 16.04. When we are deploying murano packages, the murano agent gets installed inside the guest vm(instance) however the deployment fails while throwing an error ("ImportError: No module named builtins") inside the guest vm.

please refer the below logs.

 Sep 16 06:31:02 cnctck0m0fqm81 muranoagent[8952]: from builtins import str
Sep 16 06:31:02 cnctck0m0fqm81 muranoagent[8952]: ImportError: No module named builtins
Sep 16 06:31:02 cnctck0m0fqm81 systemd[1]: murano-agent.service: Main process exited, code=exited, status=1/FAILURE
Sep 16 06:31:02 cnctck0m0fqm81 systemd[1]: murano-agent.service: Unit entered failed state.
Sep 16 06:31:02 cnctck0m0fqm81 systemd[1]: murano-agent.service: Failed with result 'exit-code'.
Sep 16 06:31:02 cnctck0m0fqm81 systemd[1]: murano-agent.service: Service hold-off time over, scheduling restart.
Sep 16 06:31:02 cnctck0m0fqm81 systemd[1]: Stopped OpenStack Murano Agent.
Sep 16 06:31:02 cnctck0m0fqm81 systemd[1]: Started OpenStack Murano Agent.
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: Traceback (most recent call last):
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/bin/muranoagent", line 7, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: from muranoagent.cmd.run import main
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/lib/python2.7/dist-packages/muranoagent/cmd/run.py", line 31, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: from muranoagent import app
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/lib/python2.7/dist-packages/muranoagent/app.py", line 28, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: from muranoagent import execution_plan_runner
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/lib/python2.7/dist-packages/muranoagent/execution_plan_runner.py", line 20, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: from muranoagent import files_manager as fm
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/lib/python2.7/dist-packages/muranoagent/files_manager.py", line 17, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: import git
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/lib/python2.7/dist-packages/git/__init__.py", line 46, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: from git.repo import Repo # @NoMove @IgnorePep8
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/lib/python2.7/dist-packages/git/repo/__init__.py", line 4, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: from .base import *
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: File "/usr/local/lib/python2.7/dist-packages/git/repo/base.py", line 7, in <module>
Sep 16 06:31:06 cnctck0m0fqm81 muranoagent[8958]: from builtins import str

Question information

Language:
English Edit question
Status:
Solved
For:
Murano Edit question
Assignee:
No assignee Edit question
Solved by:
zhurong
Solved:
Last query:
Last reply:
Revision history for this message
Best zhurong (zhu-rong) said :
#1

Hi, Anjali, first of all, thanks for use murano, I checkout this problem, I want to know the 'GitPython' version in your guest vm, As the upper-constraints.txt(https://github.com/openstack/requirements/blob/master/upper-constraints.txt#L541), in python2.7, the GitPython should be 2.1.11, But as the error log you paste, I check the GitPython code, I think your use the high verion not suiteable in python2.7. Please downgrade the GitPython to 2.1.11, and have a try. thanks

Revision history for this message
Anjali Pathak (anjali22) said :
#2

Dear Zhurong,

Thank you for your valuable guidance.
Yes, you are right the GitPython version which I had in my Guest VM was high and not supported by the python2.7. After downgrading the version of GitPython to 2.1.11, I am able to solve the problem which I have been facing earlier.

But now, I am facing an another issue after downgrading the version.
Please refer the below logs:

*********************************************************************************************************************
2019-09-18 06:30:38.052 18042 WARNING muranoagent.app [-] Communication error

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app Traceback (most recent call last):

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/muranoagent/app.py", line 126, in _wait_plan

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app with self._create_rmq_client() as mq:

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/muranoagent/common/messaging/mqclient.py", line 52, in _enter_

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app self.connect()

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/muranoagent/common/messaging/mqclient.py", line 60, in connect

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app self._connection.connect()

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 281, in connect

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app return self.connection

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 829, in connection

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app self._connection = self._establish_connection()

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 784, in _establish_connection

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app conn = self.transport.establish_connection()

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/kombu/transport/pyamqp.py", line 130, in establish_connection

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app conn.connect()

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/amqp/connection.py", line 311, in connect

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app self.transport.connect()

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/amqp/transport.py", line 77, in connect

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app self._connect(self.host, self.port, self.connect_timeout)

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app File "/usr/local/lib/python2.7/dist-packages/amqp/transport.py", line 148, in _connect

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app "failed to resolve broker hostname"))

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app error: [Errno 111] Connection refused

2019-09-18 06:30:38.052 18042 TRACE muranoagent.app
************************************************************************************************************

Could you please check this logs and provide your guidance on it.

Revision history for this message
Anjali Pathak (anjali22) said :
#3

Thanks zhurong, that solved my question.

Revision history for this message
Anjali Pathak (anjali22) said :
#4

Dear Zhurong,

Is there any update on this issue???

Revision history for this message
zhurong (zhu-rong) said :
#5

You mark this as sloved, I thougt you deploy succesfully.
As the log, maybe your guest vm cann't connect with the rabbitmq-server. please verift your vm can connect with your controller rabbitmq-server.

Revision history for this message
Anjali Pathak (anjali22) said :
#6

As per our observation we also analyse that this occur due to guest vm cann't connect with the rabbitmq-server. i am not able to ping or telnet rabbitmq server. currently we are looking on it.