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

Agent terminate does not work #26

Open
electrum opened this issue Apr 13, 2012 · 2 comments
Open

Agent terminate does not work #26

electrum opened this issue Apr 13, 2012 · 2 comments

Comments

@electrum
Copy link
Contributor

Verify that the agent doesn't have any slots:

17:33 ubuntu@i-64580004:~ prod] galaxy show -h 10.215.90.175
No slots match the provided filters.

Try to terminate:

[17:33 ubuntu@i-64580004:~ prod] galaxy agent terminate -h 10.215.90.175
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]}}
@electrum
Copy link
Contributor Author

Turns out I was using it incorrectly, but it still doesn't work when used correctly:

[17:33 ubuntu@i-64580004:~ prod] galaxy agent terminate 6217
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]}}

@electrum
Copy link
Contributor Author

Looks like the client sends the agentId in the DELETE body, but the coordinator expects it in the URI.

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