Repository navigation
Conversation
maximthomas
left a comment
There was a problem hiding this comment.
praise: The REST walkthrough uses curl --cacert to verify the local HTTPS listener certificate.
issue (blocking): Verify every affected base DN before clearing .upgrade-pending.
Upgrade writes buildinfo before running post-upgrade tasks, and UpgradeTasks checks and logs each base DN in turn. If the container stops mid-run, later base DNs can be absent from upgrade.log. Rebuilding only the listed indexes and clearing the marker can make the container report healthy while indexed searches still miss entries in other suffixes. Explain how to verify all remaining base DNs and rebuild their indexes as needed before clearing the marker, or restore the backup. Upgrade task order Base DN verification loop Marker check
issue (blocking): Restart the server when moving an active JMX listener to loopback.
JmxConnectionHandler keeps its previous listen address when the configuration changes. If JMX was listening on all interfaces, it continues to do so until restart even though the configuration now specifies 127.0.0.1. Add a restart step for an already enabled handler, as in the JMX connection handler procedure. JMX configuration change handling JMX restart instructions
issue (non-blocking): Set the WAR context path before testing the gateways.
Tomcat auto-deployment derives the context path from the WAR filename. Deploying the DSML WAR under its published name leaves the example request to /dsml/DSMLServlet returning 404 unless /dsml is configured separately. The REST to LDAP example similarly assumes /rest2ldap. Show how to set the context paths, for example by renaming the WAR files before deployment. REST to LDAP deployment example Tomcat context naming
issue (non-blocking): Label SASLAuth.java as a local test example.
The SDK 5.2.0 sample enables StartTLS with TrustManagers.trustAll() and then sends the password using SASL PLAIN. Copying the full setup into an application sends credentials without verifying the server certificate or identity. Point readers to SASLAuth.java for constructing the bind request and to SimpleAuth.java for configuring certificate and hostname verification. SASLAuth TLS setup SimpleAuth certificate and hostname verification
issue (non-blocking): Require a successful backup before replacing files during a ZIP upgrade.
The example uses plain newlines between the backup, file copy, and upgrade commands. Bash continues after a nonzero tar exit by default, so a full disk can leave the operator upgrading with an incomplete backup. Require the stop, backup, and extraction steps to succeed before replacing files, either by chaining them with && or by adding an explicit checkpoint. A Bash check with stubbed commands confirmed that the current sequence continues after tar fails.
issue (non-blocking): Clarify when Docker retries bootstrap after a setup failure.
run.sh opens an existing server for recovery if the volume already contains data/config. After an earlier failure, the next start retries bootstrap. Document both cases so operators apply manual recovery and remove .bootstrap-pending only for a partially configured instance. Startup with an existing configuration Bootstrap path
issue (non-blocking): Remove monitor-read from the JMX setup example.
OpenDJ ignores the unknown monitor-read value when computing user privileges. The JMX authenticator checks jmx-read, and LDAP access to cn=monitor is governed by ACIs. Keep jmx-read in the prose and the LDIF. User privilege handling JMX privilege check
issue (non-blocking): Document that group _id values come from the LDAP cn attribute.
The built-in example-v1.json sets dnAttribute: uid for /api/users and dnAttribute: cn for /api/groups. The new summary attributes uid to the entire mapping, which can lead clients to construct incorrect group URLs. Scope the uid rule to user collections and give the cn rule for groups. User mapping Group mapping
|
@maximthomas I addressed all eight points in c5d133c36c.
The follow-up passed 36 documentation tests, the AsciiDoc attribute check, and 643 file cross-reference checks. I also verified the offline index commands in the OpenDJ 5.2.0 Docker image and exercised the ZIP failure paths. |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The ZIP example stops before replacing files when shutdown, backup, or extraction fails.
issue (blocking): Use the instance schema to identify every affected DN equality index.
config.ldif lists equality indexes, but the attribute's effective matching rule comes from the instance schema. For example, the upgrade's myManager test uses an attribute that inherits its rule from distinguishedName. If the upgrade stops before logging that suffix, an operator can miss the custom index, clear .upgrade-pending, and bring the server back with stale equality keys. Document how to match each enabled backend's equality indexes against distinguishedNameMatch or uniqueMemberMatch in the effective schema, including inherited rules. Upgrade index selection Custom-schema test
issue (blocking): Require a valid index before clearing .upgrade-pending.
An interrupted rebuild can leave an index empty and marked untrusted. In a populated 5.2.0 backend, verify-index --countErrors exited 0 for a degraded owner index while backendstat show-index-status showed Index Valid=false. Clearing the marker after that result can return the container to service while equality searches that fall back to an unindexed scan fail for ordinary clients. Require checking index status, rebuilding affected degraded indexes, then rechecking validity and verification before clearing the marker. Rebuild trust transitions Index status Unindexed-search privilege check
suggestion (non-blocking): Track a separate verify-index issue for checks on degraded indexes.
Named verification accepts an untrusted index, and missing keys can be counted as entry-limit statistics rather than errors. This behavior predates the guide changes and also affects calls outside Docker. Report degraded indexes as unverified and preserve legitimate entry-limit overflow behavior, with coverage for both cases and for the upgrade caller's interpretation of the result. Index read Upgrade caller
issue (non-blocking): Cover bootstrap recovery when the container exits.
Setup can create data/config before writing a usable config.ldif. Startup then takes the recovery branch, and the 5.2.0 foreground server exits when config.ldif is missing. A stopped container cannot run the guide's docker exec command. In the installation guide and Docker README, condition docker exec on the container staying up and point readers with a stopped container to a temporary shell from the same image with the existing volume mounted. Setup copies the template Recovery branch Docker exec reference
suggestion (non-blocking): Pin the ZIP example's stop command to the local instance.
The bare stop-ds invocation predates the && chain. In OpenDJ 5.1.2, a tools.properties profile that supplies connection options selects the protocol shutdown path, which may target a different server and allow the local backup to proceed while the intended instance is still running. Add --noPropertiesFile to the local UNIX example. The 5.1.2 stoppability check selected the protocol path with the profile and the local path with the flag. Property argument handling Stop mode selection
suggestion (non-blocking): Document the standalone REST gateway's exploded deployment requirement.
The rest2ldap.war naming example works with Tomcat's default unpackWARs=true. On a host configured to keep WARs packed, the gateway uses new File(configUrl.toURI()) for /config.json and fails when that URL has a non-file scheme. Track the existing deployment requirement separately and document using an exploded WAR on such hosts. Gateway configuration loading Tomcat Host configuration
|
@maximthomas I updated the guides in 1258102725.
The documentation build passed 36 tests, the AsciiDoc attribute check, and 643 cross-reference checks. On OpenDJ 5.2.0 I exercised recovery with the original Docker volume and verified the |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The upgrade procedure now checks index trust and contents for every affected base DN and repeats both checks after a rebuild.
issue (blocking): Make stopped-container recovery operate on the original instance.
The README's startup examples leave /opt/opendj/data in the container's writable layer. --volumes-from shares mounted storage, so the helper sees a fresh instance directory and changes made there never reach the original container. A Docker fixture confirmed that the helper could see the pending marker only with an instance mount. Mount a named volume in the startup examples, state the mount prerequisite before opening the helper, and point operators with existing mountless instances to the data-copy procedure. README startup examples Docker volume sharing Copying an unmounted instance
issue (non-blocking): Keep the packed WAR out of webapps when deploying the exploded gateway.
The preceding automatic deployment step tells readers to copy rest2ldap.war into webapps. With unpackWARs=false, Tomcat gives the WAR priority over the same-named directory, so the gateway still receives a non-file URL for config.json and fails to initialize. Make the two deployment paths explicit and tell readers using the exploded path to keep the WAR outside webapps. Tomcat automatic deployment Gateway configuration loader
issue (non-blocking): Stop the server cleanly before exiting the bootstrap recovery shell.
CLI setup starts OpenDJ in the background by default. If the operator starts it while completing setup, exiting the helper shell terminates the container and kills the JVM before it can shut down cleanly. If OpenDJ was started in the helper, require a successful local ./bin/stop-ds --noPropertiesFile before clearing .bootstrap-pending and exiting. Apply the same step in the Docker README. CLI setup default Normal Docker bootstrap shutdown Linux PID namespaces Docker README recovery step
suggestion (non-blocking): Track extensible-only DN indexes in a separate upgrade issue.
An extensible index configured with distinguishedNameMatch or uniqueMemberMatch uses the same DN-normalized index keys as an equality index. The existing upgrade task selects only configurations with ds-cfg-index-type: equality, so an index configured only as extensible can retain stale keys even after a successful upgrade. Extend selection to those explicitly configured matching rules and document manual verification for releases affected by the gap. Index configuration and rule lookup Exact-match physical index selection DN upgrade advisory
|
@maximthomas I updated the Docker and REST gateway instructions in cdfdd57.
The documentation build passed 36 tests, the AsciiDoc attribute check, and 644 cross-reference checks. I exercised the copy-and-replace recovery on OpenDJ 5.2.0 and verified the WAR and directory deployment behavior on Tomcat 10.1.59. The extensible DN-index gap belongs in a separate upgrade issue. |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The Docker instructions preserve the original instance in both recovery paths and require a clean local shutdown before clearing the bootstrap marker.
Summary
Review follow-up
.upgrade-pending. Align the Docker README and upgrade startup message with the recovery guide, including when to restore the backup..bootstrap-pending.stop-ds --noPropertiesFileand require a successful local stop, backup, and extraction before replacing files.jmx-readin the monitoring example.unpackWARs=false, deploy the exploded REST gateway directory and keep the archive outsideappBase. Identify the SASL sample's test-only TLS settings and document_idfor users (uid) and groups (cn).Verification
mvn verifywith theman-pagesprofile, including 36 tests, the AsciiDoc attribute check, and 644 file cross-references across 77 pages.stop-ds --noPropertiesFileshut down the server in the recovery shell before the repaired volume was attached to a replacement container. Checked index validity and offline verification before and after rebuilding theownerand inheritedmyManagerDN equality indexes.unpackWARs=false, confirmed that Tomcat selects the WAR when both artifacts are present and that deploying the exploded directory alone exposesconfig.jsonas a file on disk.