2

On my machine (debian jessie) ganeti-metad listens on all interfaces:

# netstat -lepn | grep metad
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      0          66528       32831/ganeti-metad
unix  2      [ ACC ]     STREAM     LISTENING     383      1/init              /run/lvm/lvmetad.socket
unix  2      [ ACC ]     STREAM     LISTENING     66525    32831/ganeti-metad  /var/run/ganeti/socket/ganeti-metad

Currently I'm using the firewall to limit access, but I preferr to change the interface thThere is a argument in ganeti-metad to provide address, but it also says that default is based on cluster configuration:

# /usr/sbin/ganeti-metad --help
ganeti-metad (ganeti) version v2.12.4
Usage: ganeti-metad [OPTION...]
  -b ADDR  --bind=ADDR        Bind address (default depends on cluster configuration)

Which ganeti cluster configuration parameter drives the interface that ganeti-metad listens on? How to change it?

neutrinus
  • 1,155

2 Answers2

1

I'm not entirely sure if this is what you're trying to achieve ...

Did you tried to specify it inside /etc/default/ganeti, for example

# Default arguments for Ganeti daemons
NODED_ARGS=""
MASTERD_ARGS=""
RAPI_ARGS=""
CONFD_ARGS=""
LUXID_ARGS=""
METAD_ARGS="-b XX.XX.XX.XX"

XX.XX.XX.XX being the IP ganeti-metad should bind to?

gxx
  • 5,199
0

Default arguments for Ganeti daemons are in /etc/default/ganeti.

So add a new line METAD_ARGS="-p 81" to move ganeti-metad to port 81, or METAD_ARGS="-b abb.bbb.ccc.ddd -p 81" to also move the daemon to other interface.

To get this setup activated:

  1. run gnt-cluster redist-conf on ganeti master to propagate config in the cluster
  2. kill the running ganeti-metad daemons an all nodes. They will be restarted when Ganeti needs it, don't worry, i.e. when gnt-instance add ... is executed.
Doka
  • 156