Ambari-agent start fails when using ubuntu

Bug #1736631 reported by Shi Yan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sahara
New
Undecided
Unassigned

Bug Description

Creating ambari 2.4 cluster with ubuntu image fails when running sudo(ambari-agent start).
There is a workaround in the code to restart the ambari-agent since it will start automatically in ubuntu, but it seems not working.

2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [req-932abf47-293f-456f-aebc-5f6682f14c83 2a17d75a68924d4d8424cd086e6f8876 5fd0366d75b64acb8c4781cbe4adac41 - - -] [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] Restart of ambari-agent is needed for host hd p01-hdp-worker-0.novalocal, reason: RemoteCommandException: Error during command execution: "ambari-agent start"
Return code: 255
STDERR:
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"

STDOUT:
Verifying Python version compatibility...
Using python /usr/bin/python
Checking for previously running Ambari Agent...
ERROR: ambari-agent already running
Check /run/ambari-agent/ambari-agent.pid for PID.

Error ID: d9f9b323-ddb8-4a04-ad2a-40222820cc12
Error ID: 70dd290e-9da0-441e-8ff3-3f4adf33b322: SubprocessException: RemoteCommandException: Error during command execution: "ambari-agent start"
Return code: 255
STDERR:
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"

STDOUT:
Verifying Python version compatibility...
Using python /usr/bin/python
Checking for previously running Ambari Agent...
ERROR: ambari-agent already running
Check /run/ambari-agent/ambari-agent.pid for PID.

Error ID: d9f9b323-ddb8-4a04-ad2a-40222820cc12
Error ID: 70dd290e-9da0-441e-8ff3-3f4adf33b322
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] Traceback (most recent call last):
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] File "/usr/lib/python2.7/dist-packages/sahara/plugins/ambari/deploy.py", line 132, in _setup_agent
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] sudo("ambari-agent start")
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] File "/usr/lib/python2.7/dist-packages/sahara/utils/ssh_remote.py", line 855, in execute_command
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] cmd, run_as_root, get_stderr, raise_when_error)
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] File "/usr/lib/python2.7/dist-packages/sahara/utils/ssh_remote.py", line 955, in _run_s
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] return self._run_with_log(func, timeout, description, *args, **kwargs)
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] File "/usr/lib/python2.7/dist-packages/sahara/utils/ssh_remote.py", line 766, in _run_with_log
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] return self._run(func, *args, **kwargs)
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] File "/usr/lib/python2.7/dist-packages/sahara/utils/ssh_remote.py", line 951, in _run
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] return procutils.run_in_subprocess(self.proc, func, args, kwargs)
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] File "/usr/lib/python2.7/dist-packages/sahara/utils/procutils.py", line 54, in run_in_subprocess
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] raise exceptions.SubprocessException(result['exception'])
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] SubprocessException: RemoteCommandException: Error during command execution: "ambari-agent start"
2017-12-06 11:47:13.009 13355 ERROR sahara.plugins.ambari.deploy [instance: none, cluster: 7ae247e2-6a42-4072-a624-3de9c2840824] Return code: 255

Revision history for this message
Luigi Toscano (ltoscano) wrote :

I thought I answered this already: did you try to create an HDP 2.4 cluster using Ambari 2.4.2 or Ambari 2.2.1.0?

Revision history for this message
Nicolas Haller (gaasmann) wrote :

Exact same error when creating an HDP 2.5 cluster with Ubuntu/Ambari 2.4.2.0.

Revision history for this message
Luigi Toscano (ltoscano) wrote :

We are not using Launchpad anymore, we moved to storyboard. Please check the updates in the corresponding story:

https://storyboard.openstack.org/#!/story/1736631

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.