Skip to content

Commit

Permalink
exporter: Use fqdn instead of hostname only
Browse files Browse the repository at this point in the history
In distributed setups, the coordinator may point to places in
different subnets. In order for clients to resolve resources behind
the exporter, they need to know its FQDN instead of just the hostname.

Thus, set this to be the default.

Signed-off-by: Andreas Naumann <[email protected]>
  • Loading branch information
legraps committed Oct 24, 2023
1 parent 1052d34 commit a6c7230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions labgrid/remote/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ def main():
dest='hostname',
type=str,
default=None,
help='hostname (or IP) published for accessing resources (defaults to the system hostname)'
help='hostname (or IP) published for accessing resources (defaults to the system FQDN)'
)
parser.add_argument(
'-d',
Expand Down Expand Up @@ -943,7 +943,7 @@ def main():

extra = {
'name': args.name or gethostname(),
'hostname': args.hostname or gethostname(),
'hostname': args.hostname or getfqdn(),
'resources': args.resources,
'isolated': args.isolated
}
Expand Down

0 comments on commit a6c7230

Please sign in to comment.