You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a galaxy set up, and one of the agents has all of the slots removed. I'm trying to use galaxy agent terminate to shut down the agent's host, but it's not working. I'm not sure if I'm just using the CLI wrong, or whether there's a real issue there.
[16:14 ubuntu@i-64580004:~ prod] galaxy --debug agent terminate -u 9df4
2012-06-01T16:49:34.366+0000 INFO main com.proofpoint.log.Logging Logging to stderr
Exception in thread "main" com.proofpoint.http.client.ApacheHttpClient$ExceptionFromResponseHandler: UnexpectedResponseException{request=Request{uri=http://127.0.0.1:64000/v1/admin/agent, method='DELETE', headers={}, bodyGenerator=com.proofpoint.galaxy.cli.HttpCommander$TextBodyGenerator@4cdada24}, statusCode=405, statusMessage='Method Not Allowed', headers={Content-Length=[1299], Allow=[POST,GET,OPTIONS,HEAD], Content-Type=[text/html;charset=ISO-8859-1], Cache-Control=[must-revalidate,no-cache,no-store]}}
at com.proofpoint.http.client.ApacheHttpClient$1.handleResponse(ApacheHttpClient.java:92)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1085)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1059)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1050)
at com.proofpoint.http.client.ApacheHttpClient.execute(ApacheHttpClient.java:76)
at com.proofpoint.galaxy.cli.HttpCommander.terminateAgent(HttpCommander.java:365)
at com.proofpoint.galaxy.cli.Galaxy$AgentTerminateCommand.execute(Galaxy.java:876)
at com.proofpoint.galaxy.cli.Galaxy$GalaxyCommanderCommand.execute(Galaxy.java:257)
at com.proofpoint.galaxy.cli.Galaxy$GalaxyCommanderCommand.execute(Galaxy.java:204)
at com.proofpoint.galaxy.cli.Galaxy$GalaxyCommand.call(Galaxy.java:165)
at com.proofpoint.galaxy.cli.Galaxy.main(Galaxy.java:141)
Caused by: UnexpectedResponseException{request=Request{uri=http://127.0.0.1:64000/v1/admin/agent, method='DELETE', headers={}, bodyGenerator=com.proofpoint.galaxy.cli.HttpCommander$TextBodyGenerator@4cdada24}, statusCode=405, statusMessage='Method Not Allowed', headers={Content-Length=[1299], Allow=[POST,GET,OPTIONS,HEAD], Content-Type=[text/html;charset=ISO-8859-1], Cache-Control=[must-revalidate,no-cache,no-store]}}
at com.proofpoint.http.client.JsonResponseHandler.handle(JsonResponseHandler.java:56)
at com.proofpoint.http.client.ApacheHttpClient$1.handleResponse(ApacheHttpClient.java:88)
... 10 more
The text was updated successfully, but these errors were encountered:
I have a galaxy set up, and one of the agents has all of the slots removed. I'm trying to use galaxy agent terminate to shut down the agent's host, but it's not working. I'm not sure if I'm just using the CLI wrong, or whether there's a real issue there.
The agent is the one with ID 9df4 in the listing:
[16:14 ubuntu@i-64580004:~ prod] galaxy agent list
uuid host machine status type location
756c 10.42.89.234 i-42451d22 ONLINE c1.xlarge /i-42451d22/agent
2f65 10.127.73.159 i-46dde121 ONLINE c1.xlarge /i-46dde121/agent
26f4 10.94.13.48 i-4c451d2c ONLINE c1.xlarge /i-4c451d2c/agent
9fa9 10.42.150.49 i-6963800f ONLINE m2.xlarge /i-6963800f/agent
747a 10.220.106.255 i-d3d6bbb5 ONLINE m1.small /i-d3d6bbb5/agent
8986 10.86.83.8 i-b71ef4d2 ONLINE m2.xlarge /i-b71ef4d2/agent
3815 10.123.19.71 i-3eb13259 ONLINE m1.large /i-3eb13259/agent
9df4 10.44.137.41 i-9403e7ed ONLINE m2.xlarge /i-9403e7ed/agent
b905 10.122.207.148 i-3bdab75d ONLINE m1.small /i-3bdab75d/agent
There are no slots on the agent:
[16:14 ubuntu@i-64580004:~ prod] galaxy show | grep i-9403e7ed
[16:14 ubuntu@i-64580004:~ prod]
However, I'm unable to terminate the agent:
16:14 ubuntu@i-64580004:~ prod] galaxy agent terminate -u 9df4
UnexpectedResponseException{request=Request{uri=http://127.0.0.1:64000/v1/admin/agent, method='DELETE', headers={}, bodyGenerator=com.proofpoint.galaxy.cli.HttpCommander$TextBodyGenerator@478e4327}, statusCode=405, statusMessage='Method Not Allowed', headers={Content-Length=[1299], Allow=[POST,GET,OPTIONS,HEAD], Content-Type=[text/html;charset=ISO-8859-1], Cache-Control=[must-revalidate,no-cache,no-store]}}
[16:14 ubuntu@i-64580004:~ prod] galaxy --debug agent terminate -u 9df4
2012-06-01T16:49:34.366+0000 INFO main com.proofpoint.log.Logging Logging to stderr
Exception in thread "main" com.proofpoint.http.client.ApacheHttpClient$ExceptionFromResponseHandler: UnexpectedResponseException{request=Request{uri=http://127.0.0.1:64000/v1/admin/agent, method='DELETE', headers={}, bodyGenerator=com.proofpoint.galaxy.cli.HttpCommander$TextBodyGenerator@4cdada24}, statusCode=405, statusMessage='Method Not Allowed', headers={Content-Length=[1299], Allow=[POST,GET,OPTIONS,HEAD], Content-Type=[text/html;charset=ISO-8859-1], Cache-Control=[must-revalidate,no-cache,no-store]}}
at com.proofpoint.http.client.ApacheHttpClient$1.handleResponse(ApacheHttpClient.java:92)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1085)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1059)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1050)
at com.proofpoint.http.client.ApacheHttpClient.execute(ApacheHttpClient.java:76)
at com.proofpoint.galaxy.cli.HttpCommander.terminateAgent(HttpCommander.java:365)
at com.proofpoint.galaxy.cli.Galaxy$AgentTerminateCommand.execute(Galaxy.java:876)
at com.proofpoint.galaxy.cli.Galaxy$GalaxyCommanderCommand.execute(Galaxy.java:257)
at com.proofpoint.galaxy.cli.Galaxy$GalaxyCommanderCommand.execute(Galaxy.java:204)
at com.proofpoint.galaxy.cli.Galaxy$GalaxyCommand.call(Galaxy.java:165)
at com.proofpoint.galaxy.cli.Galaxy.main(Galaxy.java:141)
Caused by: UnexpectedResponseException{request=Request{uri=http://127.0.0.1:64000/v1/admin/agent, method='DELETE', headers={}, bodyGenerator=com.proofpoint.galaxy.cli.HttpCommander$TextBodyGenerator@4cdada24}, statusCode=405, statusMessage='Method Not Allowed', headers={Content-Length=[1299], Allow=[POST,GET,OPTIONS,HEAD], Content-Type=[text/html;charset=ISO-8859-1], Cache-Control=[must-revalidate,no-cache,no-store]}}
at com.proofpoint.http.client.JsonResponseHandler.handle(JsonResponseHandler.java:56)
at com.proofpoint.http.client.ApacheHttpClient$1.handleResponse(ApacheHttpClient.java:88)
... 10 more
The text was updated successfully, but these errors were encountered: