We're updating the issue view to help you get more done. 

Document how to override FQDN for stashcache authfile lookups

Description

The stashcache authfile generation looks at hostname -f by default. In certain cases (e.g. with LVS), the hostname may not be the FQDN registered in topology, causing the authfile generation to fail.

You can override the hostname that gets looked up by setting either CACHE_FQDN or ORIGIN_FQDN (as appropriate) in the environment when the script is done. This needs to be done as a systemd unit override, as follows\:

For a cache, create /etc/systemd/system/stash-cache-authfile.service.d/override.conf with the contents

1 2 [Service] Environment=CACHE_FQDN=<the FQDN registered in topology>

For an origin, create /etc/systemd/system/stash-origin-authfile.service.d/override.conf with the contents

1 2 [Service] Environment=ORIGIN_FQDN=<the FQDN registered in topology>

Environment

None

Target metrics

None

Personnel

None

Freshdesk Tickets

None

Status

Assignee

Mat Selmeci

Reporter

Mat Selmeci

Priority

Major

Labels

None

Components

Fix versions

None

Epic Link

None

Sprint

None