Hi, I've previously used the "remove_previous_stacks" command on the REST API for deleting old rpms in the cluster.
I'm tried this again now with ambari version 2.6.2.0-155 (Hortonworks compile, Centos 7 OS, Oracle 1.8u181 jdk) and I get no reply on the API, and no job is scheduled in the UI. There is also no messages related to this, even in DEBUG mode, in the ambari server log. Note that GET request to the API for e.g. host_components works and gives correct output. Here is the output from the failed command: date && curl --insecure -v 'http://localhost:8443/api/v1/clusters/helm/requests' -u admin:XXXXXX -H "X-Requested-By: ambari" -X POST -d'{"RequestInfo":{"context":"remove_previous_stacks", "action" : "remove_previous_stacks", "parameters" : {"version":"2.6.5.0-292"}}, "Requests/resource_filters": [{"hosts":"compute-10-1.local, compute-10-0.local, compute-10-2.local, compute-10-3.local, compute-10-4.local, compute-10-5.local, compute-10-6.local, compute-10-7.local, compute-10-8.local, compute-10-9.local, service-10-4.local, service-10-5.local, service-10-6.local"}]}' ; date Wed Sep 19 12:15:45 CEST 2018 * About to connect() to localhost port 8443 (#0) * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8443 (#0) * Server auth using Basic with user 'admin' > POST /api/v1/clusters/helm/requests HTTP/1.1 > Authorization: Basic XXXXXXXXXX= > User-Agent: curl/7.29.0 > Host: localhost:8443 > Accept: */* > X-Requested-By: ambari > Content-Length: 434 > Content-Type: application/x-www-form-urlencoded > * upload completely sent off: 434 out of 434 bytes * Empty reply from server * Connection #0 to host localhost left intact curl: (52) Empty reply from server Wed Sep 19 12:15:45 CEST 2018 Is this API command removed in this version? Regards, Eirik
