Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1243652

Summary: Client has missing dependency on memcache
Product: Red Hat Enterprise Linux 7 Reporter: Jamie Lennox <jlennox>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.2CC: ksiddiqu, nkinder, pvoborni, rcritten, spoore, tbabej
Target Milestone: rcKeywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.2.0-3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 12:04:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jamie Lennox 2015-07-16 03:00:31 UTC
Running ipa-client-install on nightly rhel 7.2 builds tries to import memcache after the certificate has been downloaded. 

Command: "ipa-client-install", "-U", "--principal", "admin", "--password", "password", "--domain", "fedtest.org", "--force", "--force-ntpd"

Discovery was successful!
Client hostname: openstack.fedtest.org
Realm: FEDTEST.ORG
DNS Domain: fedtest.org
IPA Server: ipa.fedtest.org
BaseDN: dc=fedtest,dc=org
Synchronizing time with KDC...
Attempting to sync time using ntpd.  Will timeout after 15 seconds
Successfully retrieved CA cert
    Subject:     CN=Certificate Authority,O=FEDTEST.ORG
    Issuer:      CN=Certificate Authority,O=FEDTEST.ORG
    Valid From:  Wed Jul 15 07:21:57 2015 UTC
    Valid Until: Sun Jul 15 07:21:57 2035 UTC

Enrolled in IPA realm FEDTEST.ORG
Created /etc/ipa/default.conf
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 2981, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 2962, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 2592, in install
    api.finalize()
  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 651, in finalize
    self.__do_if_not_done('load_plugins')
  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 365, in __do_if_not_done
    getattr(self, name)()
  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 529, in load_plugins
    self.import_plugins(module)
  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 567, in import_plugins
    module = importlib.import_module(name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/site-packages/ipalib/plugins/session.py", line 7, in <module>
    from ipalib.session import session_mgr
  File "/usr/lib/python2.7/site-packages/ipalib/session.py", line 19, in <module>
    import memcache
ImportError: No module named memcache


Packages: 

ipa-client-4.2.0-1.el7.x86_64
ipa-python-4.2.0-1.el7.x86_64

Comment 2 Petr Vobornik 2015-07-16 07:42:09 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5133

Comment 3 Petr Vobornik 2015-07-16 08:07:11 UTC
Client should not depend on memcache. ipalib/plugins/session.py will be changed to not use the invalid import on client.

Comment 5 Scott Poore 2015-07-22 17:54:42 UTC
Adding TestBlocker since this is holding up testing.

Also note that we saw the same here:

cmdline:        /usr/bin/python2 -E /sbin/ipa-client-automount --uninstall --debug

:session.py:19:<module>:ImportError: No module named memcache
:
:Traceback (most recent call last):
:  File "/sbin/ipa-client-automount", line 486, in <module>
:    sys.exit(main())
:  File "/sbin/ipa-client-automount", line 376, in main
:    api.finalize()
:  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 651, in finalize
:    self.__do_if_not_done('load_plugins')
:  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 365, in __do_if_not_done
:    getattr(self, name)()
:  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 529, in load_plugins
:    self.import_plugins(module)
:  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 567, in import_plugins
:    module = importlib.import_module(name)
:  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
:    __import__(name)
:  File "/usr/lib/python2.7/site-packages/ipalib/plugins/session.py", line 7, in <module>
:    from ipalib.session import session_mgr
:  File "/usr/lib/python2.7/site-packages/ipalib/session.py", line 19, in <module>
:    import memcache
:ImportError: No module named memcache

Comment 8 Scott Poore 2015-08-06 16:48:20 UTC
Verified.

Version ::

ipa-client-4.2.0-3.el7.x86_64


Results ::

[root@client3 yum.repos.d]# ipa-client-install -p admin -w Secret123 -U
Using existing certificate '/etc/ipa/ca.crt'.
Discovery was successful!
Client hostname: client3.testrelm.test
Realm: TESTRELM.TEST
DNS Domain: testrelm.test
IPA Server: master.testrelm.test
BaseDN: dc=testrelm,dc=test

Synchronizing time with KDC...
Attempting to sync time using ntpd.  Will timeout after 15 seconds
Enrolled in IPA realm TESTRELM.TEST
Created /etc/ipa/default.conf
New SSSD config will be created
Configured sudoers in /etc/nsswitch.conf
Configured /etc/sssd/sssd.conf
Configured /etc/krb5.conf for IPA realm TESTRELM.TEST
trying https://master.testrelm.test/ipa/json
Forwarding 'ping' to json server 'https://master.testrelm.test/ipa/json'
Forwarding 'ca_is_enabled' to json server 'https://master.testrelm.test/ipa/json'
Systemwide CA database updated.
Added CA certificates to the default NSS database.
Hostname (client3.testrelm.test) not found in DNS
DNS server record set to: client3.testrelm.test -> 192.168.122.75
Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub
Adding SSH public key from /etc/ssh/ssh_host_ecdsa_key.pub
Adding SSH public key from /etc/ssh/ssh_host_ed25519_key.pub
Forwarding 'host_mod' to json server 'https://master.testrelm.test/ipa/json'
SSSD enabled
Configured /etc/openldap/ldap.conf
NTP enabled
Configured /etc/ssh/ssh_config
Configured /etc/ssh/sshd_config
Configuring testrelm.test as NIS domain.
Client configuration complete.


I also checked ipa-automount-install where we also saw it:

[root@client3 yum.repos.d]# ipa-client-automount --server=master.testrelm.test
IPA server: master.testrelm.test
Location: default
Continue to configure the system with these values? [no]: yes
Configured /etc/sysconfig/nfs
Configured /etc/idmapd.conf
Started rpcidmapd
Started rpcgssd
Restarting sssd, waiting for it to become available.
Started autofs

[root@client3 yum.repos.d]# ipa-client-automount --uninstall -U
Restoring configuration
[root@client3 yum.repos.d]#

Comment 10 errata-xmlrpc 2015-11-19 12:04:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2362.html