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

Topology not providing agent_port when querying /hosts #28

Open
cgilmour opened this issue Jan 14, 2016 · 0 comments
Open

Topology not providing agent_port when querying /hosts #28

cgilmour opened this issue Jan 14, 2016 · 0 comments
Labels

Comments

@cgilmour
Copy link
Collaborator

Agent port is zero for all hosts when doing this:

ubuntu@ip-192-168-0-10:~$ curl -s -f -H "Content-Type: application/json" http://192.168.0.10:9603/hosts
[{"id":"1","name":"ip-192-168-0-10","ip":"192.168.0.10","romana_ip":"10.0.0.0/16","agent_port":0,"links":null},{"id":"2","name":"ip-192-168-0-11","ip":"192.168.0.11","romana_ip":"10.1.0.0/16","agent_port":0,"links":null},{"id":"3","name":"ip-192-168-0-12","ip":"192.168.0.12","romana_ip":"10.2.0.0/16","agent_port":0,"links":null},{"id":"4","name":"ip-192-168-0-13","ip":"192.168.0.13","romana_ip":"10.3.0.0/16","agent_port":0,"links":null},{"id":"5","name":"ip-192-168-0-14","ip":"192.168.0.14","romana_ip":"10.4.0.0/16","agent_port":0,"links":null}]

But when checking a specific host, the correct number is provided.

ubuntu@ip-192-168-0-10:~$ curl -s -f -H "Content-Type: application/json" http://192.168.0.10:9603/hosts/1
{"id":"1","name":"ip-192-168-0-10","ip":"192.168.0.10","romana_ip":"10.0.0.0/16","agent_port":9604,"links":[{"Href":"http://192.168.0.10:9604","Rel":"agent"},{"Href":"/hosts/1","Rel":"self"},{"Href":"/hosts","Rel":"self"}]}ubuntu@ip-192-168-0-10:~$ 

This was affecting my 'romana' script, since it parses the output of /hosts query. I can change it to use /hosts/{id} instead.

@cgilmour cgilmour added the bug label Jan 14, 2016
pritesh pushed a commit that referenced this issue Nov 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant