Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Galaxy agent terminate not working as expected #32

Open
markkent opened this issue Jun 1, 2012 · 0 comments
Open

Galaxy agent terminate not working as expected #32

markkent opened this issue Jun 1, 2012 · 0 comments

Comments

@markkent
Copy link

markkent commented Jun 1, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant