You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Akhil S Naik (JIRA)" <ji...@apache.org> on 2018/10/09 12:34:00 UTC
[jira] [Created] (AMBARI-24753) Ambari remove_previous_stacks
doesnt work properly in SLES Operating systems
Akhil S Naik created AMBARI-24753:
-------------------------------------
Summary: Ambari remove_previous_stacks doesnt work properly in SLES Operating systems
Key: AMBARI-24753
URL: https://issues.apache.org/jira/browse/AMBARI-24753
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.6.2
Reporter: Akhil S Naik
Ambari Supports Deleting an old HDP stack version which is not current version with respect to Apache jira : AMBARI-18435
{code:java}
curl -u admin:asnaik -H "X-Requested-By:ambari" -i -X POST http://172.25.39.146:8080/api/v1/clusters/c117/requests -d '{"RequestInfo":{"context":"remove_previous_stacks", "action" : "remove_previous_stacks", "parameters" : {"version":"2.6.5.0-292"}}, "Requests/resource_filters": [{"hosts":"c117-node2.squadron-labs.com,c117-node3.squadron-labs.com,c117-node4.squadron-labs.com"}]}'
{code}
But for any reason if zypper refresh is failing the , the above curl command gets picked up properly in Ambari and will show as "Succeeded," but the operation doesn't actually remove any files or perform any other tasks.
Also the Zypper refresh may take more than 15 minutes the ambari will timeout due to agent and we might need to retry the operation again. This 15 minutes timeout though can be configured with agent.task.timeout in ambari.properties there should be some provision to provide it via curl command only
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)