Bug 1975139

Summary: Upgrade error: Add failure missing required attribute "objectclass"
Product: Red Hat Enterprise Linux 9 Reporter: Florence Blanc-Renaud <frenaud>
Component: ipaAssignee: Florence Blanc-Renaud <frenaud>
Status: CLOSED CURRENTRELEASE QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: amore, ksiddiqu, rcritten, tscherf
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.9.6-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:30:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florence Blanc-Renaud 2021-06-23 07:48:58 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/8885

### Issue
Running ipa-server-upgrade, or as part of installation, an update error is displayed:

Upgrading IPA:. Estimated time: 1 minute 30 seconds
  [1/11]: stopping directory server
  [2/11]: saving configuration
  [3/11]: disabling listeners
  [4/11]: enabling DS global lock
  [5/11]: disabling Schema Compat
  [6/11]: starting directory server
  [7/11]: updating schema
  [8/11]: upgrading server
Add failure missing required attribute "objectclass"
  [9/11]: stopping directory server
  [10/11]: restoring configuration
  [11/11]: starting directory server
Done.

I've only see this with master builds from git (currently 0ebc59c26d54454a0821d64dcad1bbe7621b623c)

Comment 1 Florence Blanc-Renaud 2021-06-23 07:53:53 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/8885

Comment 2 Florence Blanc-Renaud 2021-06-23 07:54:45 UTC
Fixed upstream:
master:
    922357b Use get_replication_plugin_name in LDAP updater

ipa-4-9:
    45d8118 Use get_replication_plugin_name in LDAP updater

Comment 8 anuja 2021-07-16 06:44:22 UTC
Verified :
2021-07-15T11:38:58+0000 ok: [master.ipa.test] => (item=ipa-server) => 
2021-07-15T11:38:58+0000   msg:
2021-07-15T11:38:58+0000   - arch: x86_64
2021-07-15T11:38:58+0000     epoch: null
2021-07-15T11:38:58+0000     name: ipa-server
2021-07-15T11:38:58+0000     release: 2.el9
2021-07-15T11:38:58+0000     source: rpm
2021-07-15T11:38:58+0000     version: 4.9.6

install ipa-server
2021-07-15T11:44:35+0000 Done configuring the web interface (httpd).
2021-07-15T11:44:35+0000 Configuring Kerberos KDC (krb5kdc)
2021-07-15T11:44:35+0000   [1/1]: installing X509 Certificate for PKINIT
2021-07-15T11:44:39+0000 Done configuring Kerberos KDC (krb5kdc).
2021-07-15T11:44:39+0000 Applying LDAP updates
2021-07-15T11:44:39+0000 Upgrading IPA:. Estimated time: 1 minute 30 seconds
2021-07-15T11:44:39+0000   [1/10]: stopping directory server
2021-07-15T11:44:41+0000   [2/10]: saving configuration
2021-07-15T11:44:41+0000   [3/10]: disabling listeners
2021-07-15T11:44:41+0000   [4/10]: enabling DS global lock
2021-07-15T11:44:41+0000   [5/10]: disabling Schema Compat
2021-07-15T11:44:41+0000   [6/10]: starting directory server
2021-07-15T11:44:43+0000   [7/10]: upgrading server
2021-07-15T11:44:56+0000   [8/10]: stopping directory server
2021-07-15T11:44:58+0000   [9/10]: restoring configuration
2021-07-15T11:44:58+0000   [10/10]: starting directory server
2021-07-15T11:45:02+0000 Done.
2021-07-15T11:45:02+0000 Restarting the KDC
2021-07-15T11:45:03+0000 dnssec-validation no
2021-07-15T11:45:03+0000 Configuring DNS (named)

No error displayed in upgrade process.