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 1482776 - ipa upgrade fails with error message "RuntimeError: attribute "allowWeakCipher" not allowed" for older builds
Summary: ipa upgrade fails with error message "RuntimeError: attribute "allowWeakCiphe...
Keywords:
Status: CLOSED DUPLICATE of bug 1412530
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-Linux_Domain_Identity_Management_Guide
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Aneta Šteflová Petrová
QA Contact: ipa-qe
URL:
Whiteboard:
: 1615305 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-18 05:49 UTC by Nikhil Dehadrai
Modified: 2019-03-06 01:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-29 00:37:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nikhil Dehadrai 2017-08-18 05:49:46 UTC
Description of problem:
ipa upgrade fails with error message "RuntimeError: attribute "allowWeakCipher" not allowed" when upgraded from rhel 7.0 to Rhel 7.4.1.2

Version-Release number of selected component (if applicable):
4.5.0.21.el7_4.1.2

How reproducible:
Always

Steps to Reproduce:
1. Setup IPA server on RHEL 7.0 (ipa-server-3.3.3-28.el7.x86_64)
2. Configure latest repo to this IPA server.
3. Update this IPA server using command 'yum -y update 'ipa*' sssd'


Actual results:
After step 3, upgrade fails
# yum -y update 'ipa*' sssd
Upgrade failed with attribute "allowWeakCipher" not allowed
IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually.
('IPA upgrade failed.', 1)

# tail -50 /var/log/ipaupgrade.log

2017-08-07T08:33:25Z DEBUG Destroyed connection context.ldap2_108199568
2017-08-07T08:33:25Z ERROR Upgrade failed with attribute "allowWeakCipher" not allowed
2017-08-07T08:33:25Z DEBUG Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipaserver/install/upgradeinstance.py", line 220, in __upgrade
    self.modified = (ld.update(self.files) or self.modified)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py", line 911, in update
    self._run_updates(all_updates)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py", line 885, in _run_updates
    self._update_record(update)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ldapupdate.py", line 807, in _update_record
    self.conn.update_entry(entry)
  File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 1553, in update_entry
    self.conn.modify_s(str(entry.dn), modlist)
  File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib/python2.7/site-packages/ipapython/ipaldap.py", line 990, in error_handler
    raise errors.ObjectclassViolation(info=info)
ObjectclassViolation: attribute "allowWeakCipher" not allowed

2017-08-07T08:33:25Z DEBUG Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 504, in start_creation
    run_step(full_msg, method)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/service.py", line 494, in run_step
    method()
  File "/usr/lib/python2.7/site-packages/ipaserver/install/upgradeinstance.py", line 228, in __upgrade
    raise RuntimeError(e)
RuntimeError: attribute "allowWeakCipher" not allowed

2017-08-07T08:33:25Z DEBUG   [error] RuntimeError: attribute "allowWeakCipher" not allowed
2017-08-07T08:33:25Z DEBUG   [cleanup]: stopping directory server
2017-08-07T08:33:25Z DEBUG Destroyed connection context.ldap2_76635792
2017-08-07T08:33:25Z DEBUG Starting external process
2017-08-07T08:33:25Z DEBUG args=/bin/systemctl stop dirsrv
2017-08-07T08:33:27Z DEBUG Process finished, return code=0
2017-08-07T08:33:27Z DEBUG stdout=
2017-08-07T08:33:27Z DEBUG stderr=
2017-08-07T08:33:27Z DEBUG   duration: 1 seconds
2017-08-07T08:33:27Z DEBUG   [cleanup]: restoring configuration
2017-08-07T08:33:27Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2017-08-07T08:33:27Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2017-08-07T08:33:27Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state'
2017-08-07T08:33:27Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2017-08-07T08:33:27Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2017-08-07T08:33:27Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state'
2017-08-07T08:33:27Z DEBUG Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'
2017-08-07T08:33:27Z DEBUG   duration: 0 seconds
2017-08-07T08:33:27Z ERROR IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually.
2017-08-07T08:33:27Z DEBUG   File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 172, in execute
    return_value = self.run()
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_upgrade.py", line 48, in run
    raise admintool.ScriptError(str(e))

2017-08-07T08:33:27Z DEBUG The ipa-server-upgrade command failed, exception: ScriptError: ('IPA upgrade failed.', 1)
2017-08-07T08:33:27Z ERROR ('IPA upgrade failed.', 1)
2017-08-07T08:33:27Z ERROR The ipa-server-upgrade command failed. See /var/log/ipaupgrade.log for more information
[root@auto-hv-01-guest07 ~]#


Expected results:
Ipa upgrade should be successful from RHEL 7.0 to latest package.

Additional info:
If we upgrade RHEL 7.0 to RHEL 7.1.z and then upgrade to latest package, then  upgrade is successful.

Comment 2 Petr Vobornik 2017-08-28 11:05:28 UTC
This bug happens if admin upgrades directly from RHEL 7.0 to RHEL 7.4. If the admin upgrades e.g. to RHEL 7.1 first and then to RHEL 7.0 then it doesn't happen. 

It should be documented to advise to update to lesser version first if upgrading to from RHEL 7.0.

Comment 3 Aneta Šteflová Petrová 2017-08-28 11:13:13 UTC
I think we might already have this covered -- see 8.1.1. Considerations for Updating Identity Management in the description for updating IdM:

----
Red Hat recommends upgrading to the next version only. For example, if you want to upgrade to Identity Management for Red Hat Enterprise Linux 7.4, we recommend upgrading from Identity Management for Red Hat Enterprise Linux 7.3. Upgrading from earlier versions can cause problems.
----

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Linux_Domain_Identity_Authentication_and_Policy_Guide/updating-migrating.html#update-ipa-prereqs

Petr, does this cover the situation in this bug report? Would you change or add anything? If not, can I close this BZ?

Comment 4 Petr Vobornik 2017-08-28 15:33:35 UTC
I think it covers it well. Please close it.

Comment 5 Aneta Šteflová Petrová 2017-08-29 00:37:00 UTC
Ok, thanks! I'll just close this as a duplicate of the BZ for which we added the paragraph.

*** This bug has been marked as a duplicate of bug 1412530 ***

Comment 6 Florence Blanc-Renaud 2018-08-13 12:28:45 UTC
*** Bug 1615305 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.