Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upopenstack_sd chosing random network-interface #4339
Comments
simonpasquier
referenced this issue
Sep 24, 2018
Merged
discovery/openstack: discover all interfaces #4649
brian-brazil
closed this
in
#4649
Oct 9, 2018
lock
bot
locked and limited conversation to collaborators
Apr 7, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
alfarme commentedJul 3, 2018
Bug Report
What did you do?
I set up openstack_sd with the below config.
What did you expect to see?
openstack_sd should discover nodes and use consistently use the same network-interface (10.x.x.x) on all servers.
What did you see instead? Under which circumstances?
openstack_sd successfully added all available nodes, but the chose network interface seems arbitrary. it also changes on each discovery run (every 60 seconds)
out of 44 nodes, between 6 and 10 get "re-discovered" with a new private_ip every 60 seconds.
** examples **
before:
address="10.150.x.x:9100"
__meta_openstack_instance_flavor="1310a6bc-3b91-47d0-ad50-9a50b9cf743f"
__meta_openstack_instance_id="1cda4a6c-fc4a-4de5-9cc5-13bba908333f"
__meta_openstack_instance_name="xxx"
__meta_openstack_instance_status="ACTIVE"
__meta_openstack_private_ip="10.150.x.x"
metrics_path="/metrics"
scheme="http"
job="openstack_dc1"
after:
(marked in yellow are the two servers from the 'before' picture)
address="100.100.x.x:9100"
__meta_openstack_instance_flavor="1310a6bc-3b91-47d0-ad50-9a50b9cf743f"
__meta_openstack_instance_id="1cda4a6c-fc4a-4de5-9cc5-13bba908333f"
__meta_openstack_instance_name="xxx"
__meta_openstack_instance_status="ACTIVE"
__meta_openstack_private_ip="100.100.x.x"
metrics_path="/metrics"
scheme="http"
job="openstack_dc1"
Environment
Linux 4.4.70 x86_64`
Version 1.8.1
Revision 3a7c51a
Branch HEAD
BuildUser root@ab78fb101775
BuildDate 20171023-15:50:57
GoVersion go1.9.1