Skip to content

Commit

Permalink
Add container environment check to replicainstall
Browse files Browse the repository at this point in the history
Inside the container environment master's IP address
does not resolve to its name.

Resolves: https://pagure.io/freeipa/issue/6210
Reviewed-By: Rob Crittenden <[email protected]>
  • Loading branch information
Tiboris committed Sep 16, 2019
1 parent 6064365 commit f1e20b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ipaserver/install/server/replicainstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,11 @@ def promote_check(installer):
"certificate")

installutils.verify_fqdn(config.host_name, options.no_host_dns)
installutils.verify_fqdn(config.master_host_name, options.no_host_dns)
# Inside the container environment master's IP address does not
# resolve to its name. See https://pagure.io/freeipa/issue/6210
container_environment = tasks.detect_container() is not None
installutils.verify_fqdn(config.master_host_name, options.no_host_dns,
local_hostname=not container_environment)

ccache = os.environ['KRB5CCNAME']
kinit_keytab('host/{env.host}@{env.realm}'.format(env=api.env),
Expand Down

0 comments on commit f1e20b4

Please sign in to comment.