G5K: the method 'inside_g5k' is not working properly
The method 'inside_g5k' is not working properly as hostnames are not finishing by grid5000.fr
.
Consequently the inventory is always considering that the code is executing from outside G5K network.
A possible solution is either :
- use
socket.getfqdn()
instead ofsocket.gethostname()
in theinside_g5k
method - make an internal DNS request
The second solution (DNS request) would have the advance to be also compatible with VPN access.