freeipa team mailing list archive
-
freeipa team
-
Mailing list archive
-
Message #00214
[Bug 1282818] Re: 14.04 freeipa ipa-client-install fails
Here's the fix for the final error in
"ipapython/platform/debian/auth.py". After applying this patch, the
whole installation process works like a charm.
Changes:
* Need to import ipautil
* Use continue to remove extra '--package ' args from empty strings
* Need to return args at the end of the function. args was always 'None' before this change
* The correct env var is DEBIAN_FRONTEND, the debian docs were incorrect for a while
* ipautil.run call was incorrect, the second function argument is "stdin", not "env".
diff --git a/ipapython/platform/debian/auth.py b/ipapython/platform/debian/auth.py
index 020a949..ac168f1 100644
--- a/auth-orig.py
+++ b/auth.py
@@ -1,4 +1,5 @@
from ipapython.platform import base
+from ipapython import ipautil
class DebianAuthConfig(base.AuthConfig):
"""
@@ -21,7 +22,7 @@ class DebianAuthConfig(base.AuthConfig):
option = "sss"
# only sssd supported, filter the dupe
elif option in ["sssd", "krb5", "ldap", "update"]:
- option = ""
+ continue
if type(value) is bool:
if value:
if not "package" in args:
@@ -33,10 +34,11 @@ class DebianAuthConfig(base.AuthConfig):
args.append("--remove %s" % (option))
else:
args.append("%s" % (option))
+ return args
def execute(self):
- env = "DEBCONF_FRONTEND=noninteractive"
+ env = {"DEBIAN_FRONTEND": "noninteractive"}
args = self.__build_args()
- ipautil.run(["/usr/sbin/pam-auth-update"]+args,env)
+ ipautil.run(["/usr/sbin/pam-auth-update"] + args, env = env)
--
You received this bug notification because you are a member of FreeIPA,
which is subscribed to freeipa in Ubuntu.
https://bugs.launchpad.net/bugs/1282818
Title:
14.04 freeipa ipa-client-install fails
Status in “freeipa” package in Ubuntu:
Triaged
Bug description:
Running ipa-client-install --mkhomedir --enable-dns-updates -d
--force-join ran as previous install had partially failed on install
and rollback. Had to manually delete some files to get installer to
run again, --uninstall option did not work.
-----------------------------------------------------------------------------------
This sections seems to be the main point of failure:
failed to find session_cookie in persistent storage for principal 'host/1404t430.domain.name@xxxxxxxxxx'
trying https://ipa2.domain.name/ipa/xml
Connection to https://ipa2.domain.name/ipa/xml failed with argument 2 must be string or None, not int
trying https://ipa1.domain.name/ipa/xml
Connection to https://ipa1.domain.name/ipa/xml failed with argument 2 must be string or None, not int
Cannot connect to the server due to generic error: cannot connect to 'Gettext('any of the configured servers', domain='ipa', localedir=None)': https://ipa2.domain.name/ipa/xml, https://ipa1.domain.name/ipa/xml
Installation failed. Rolling back changes.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeipa/+bug/1282818/+subscriptions
References