shotgun accidentally detects local host as a remote if host address was given as just IP
Bug #1506932 reported by
Alexander Gordeev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Maciej Kwiek |
Bug Description
if fuel-master node host address is given in a form of IP
eg: 10.109.15.2
shotgun will then unable to detect that it's local source, not a remote one.
this happens because it's guessing local source by judging to socket.
currently 100% reproducible on our custom BVT jobs
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: area-python |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Maciej Kwiek (maciej-iai) |
To post a comment you must log in.
it seems that if master node has got few interfaces with IPs by default, /github. com/openstack/ fuel-web/ blob/066e257c6a 0999d0719a9f361 7b947d013ffc5bb /shotgun/ shotgun/ utils.py# L42
so utils.is_local() https:/
should then iterate over them to ensure that IP address belongs to master node. Poking with just socket.get<> is not enough.
http:// paste.openstack .org/show/ 476891/
As you could notice, that utils.is_local() returns True only if fqdn was passed to it.
So, utils.is_local is definitely broken.