<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Title content=""><meta name=Keywords content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:Calibri;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body bgcolor=white lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:10.5pt'>Hello All,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Version: IPAv4.4<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>OS: RHEL 7.3<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Having a python import issue during ipa-server-install here, and the internets are failing me. Please note that the urls and server names have been abstracted. During the install run, I get the following:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Forwarding 'schema' to json server 'https://ipaserver.domain.com/ipa/json'<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Traceback (most recent call last):<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/sbin/ipa-client-install", line 3128, in <module><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    sys.exit(main())<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/sbin/ipa-client-install", line 3109, in main<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    rval = install(options, env, fstore, statestore)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/sbin/ipa-client-install", line 2818, in install<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    api.finalize()<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 707, in finalize<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    self.__do_if_not_done('load_plugins')<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 422, in __do_if_not_done<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    getattr(self, name)()<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 585, in load_plugins<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    for package in self.packages:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipalib/__init__.py", line 919, in packages<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    ipaclient.remote_plugins.get_package(self),<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/__init__.py", line 118, in get_package<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    plugins = schema.get_package(server_info, client)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 543, in get_package<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    schema = Schema(client)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 387, in __init__<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    fingerprint, ttl = self._fetch(client, ignore_cache=read_failed)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", line 426, in _fetch<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    schema = client.forward(u'schema', **kwargs)['result']<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 1033, in forward<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    raise NetworkError(uri=server, error=e.errmsg)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>ipalib.errors.NetworkError: cannot connect to ''https://ipaserver.domain.com/ipa/json: Internal Server Error<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>ipa.ipapython.install.cli.install_tool(Server): ERROR    Configuration of client side components failed!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>ipa.ipapython.install.cli.install_tool(Server): ERROR    The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>The install log doesn’t really tell me whole lot, save for a full stacktrace when running “ipa-client-install”:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>2017-02-15T20:40:12Z DEBUG args=/usr/sbin/ipa-client-install --on-master --unattended --domain domain.com --server ipaserver.domain.com --realm REALM.COM --hostname ipaserver.domain.com<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>2017-02-15T20:40:13Z DEBUG Process finished, return code=1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>2017-02-15T20:40:13Z DEBUG   File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    return_value = self.run()<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>  File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line 318, in run<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>    cfgr.run()<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>…truncated…<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>However, in the httpd logs I see the following:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[Wed Feb 15 14:40:13.488496 2017] [wsgi:error] [pid 39142] [remote 172.20.151.7:58476] mod_wsgi (pid=39142): Target WSGI script '/usr/share/ipa/wsgi.py' cannot be loaded as Python module.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[Wed Feb 15 14:40:13.488546 2017] [wsgi:error] [pid 39142] [remote 172.20.151.7:58476] mod_wsgi (pid=39142): Exception occurred processing WSGI script '/usr/share/ipa/wsgi.py'.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[Wed Feb 15 14:40:13.488638 2017] [wsgi:error] [pid 39142] [remote 172.20.151.7:58476] Traceback (most recent call last):<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[Wed Feb 15 14:40:13.488664 2017] [wsgi:error] [pid 39142] [remote 172.20.151.7:58476]   File "/usr/share/ipa/wsgi.py", line 26, in <module><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[Wed Feb 15 14:40:13.488674 2017] [wsgi:error] [pid 39142] [remote 172.20.151.7:58476]     from ipalib import api<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[Wed Feb 15 14:40:13.488691 2017] [wsgi:error] [pid 39142] [remote 172.20.151.7:58476] ImportError: No module named 'ipalib'<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Along with other import errors. However, I have confirmed I am able to import these global modules:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[root@720941-ipa ~]# python<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Python 2.7.5 (default, Aug  2 2016, 04:20:16)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Type "help", "copyright", "credits" or "license" for more information.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>>>> from ipalib import api<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>>>> api<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><ipalib.API object at 0x1846650><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>I can also run the wsgi script directly without issue:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>[root@720941-ipa ~]# python /usr/share/ipa/wsgi.py<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>ipa: INFO: *** PROCESS START ***<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'>Can someone point me in the right direction here? Thank you in advance for your help! <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;color:black'>--<o:p></o:p></span></p><div><div><p class=MsoNormal><span style='font-size:10.5pt;color:black'>Ryan Hutchison, RHCE/CCNA<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.5pt;color:black'>Enterprise Support Architect<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.5pt;color:black'>Rackspace Hosting<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.5pt;color:black'>Direct: (210) 312-8157<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:10.5pt;color:black'>Mobile: (210) 452-4349<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>