Upgrade Java RCS
Before you upgrade the Java RCS and any connectors running on it, you must update the connector configuration (specifically the bundleVersion
) to include the versions you’re upgrading to. The bundleVersion
defines a range of versions or a specific version.
If the bundleVersion
doesn’t include the RCS version or connector version you’re upgrading to, the new RCS or connector won’t be usable after the upgrade.
Use a range for the
|
Update connector configuration
For IDM, you can update the connector over REST or in the provisioner file. For Advanced Identity Cloud, you can only update the configuration over REST.
Update connector configuration over REST
-
Get the connector configuration:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --request GET \ "http://localhost:8080/openidm/config/provisioner.openicf/connectorName"
Keep a copy of this configuration before making changes in case you need to re-create the connector. -
Check the
bundleVersion
in the response includes the new RCS and connector versions.If the
bundleVersion
in the response includes the new RCS and connector versions, move ahead to Upgrade the RCS and connectors; otherwise, continue to the next step of this procedure. -
Update the
bundleVersion
to include the new RCS and connector versions. This example uses non-matching brackets to specify a range:"bundleVersion": "[1.5.0.0,1.6.0.0)"
For more information about version range options, refer to Connector reference properties. -
Use a PUT request to update the connector configuration previously returned with the updated
bundleVersion
:curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Accept-API-Version: resource=1.0" \ --header "Content-Type: application/json" \ --request PUT \ --data-raw '{complete-configuration}' \ "http://localhost:8080/openidm/config/provisioner.openicf/connectorName"
-
If you are using Advanced Identity Cloud, promote your connector configuration changes to staging and production.
Update connector configuration in provisioner file (IDM only)
-
Open the
project-dir/conf/provisioner.openicf-connectorName
file.If the
bundleVersion
in the file includes the new RCS and connector versions, move ahead to Upgrade the RCS and connectors; otherwise, continue to the next step of this procedure. -
Update the
bundleVersion
to include the new RCS and connector versions. This example uses non-matching brackets to specify a range:"bundleVersion": "[1.5.0.0,1.6.0.0)"
For more information about version range options, refer to Connector reference properties.
Upgrade the RCS and connectors
Upgrade the RCS and any connectors running on the RCS
You can upgrade a connector running on the RCS without upgrading the RCS if needed. |
-
Download the new Java RCS and any required connectors from BackStage download site.
-
Stop the RCS:
-
If the RCS is running in a terminal, press CTRL+C or q.
-
If the RCS is running as a service, stop the service:
sudo systemctl stop rcs.service
-
-
Rename the existing RCS directory to create a backup:
mv /path/to/openicf /path/to/openicf_old
-
Extract the downloaded Java RCS to the original directory (
/path/to/openicf
). -
Copy the downloaded connector .jar file(s) to the
/path/to/openicf/connectors
directory. -
Copy any custom connectors, such as scripted connectors from your backup to the
/path/to/openicf/connectors
directory to retain your customizations. -
Copy the following files from your backup to the new RCS directory to retain your previous settings:
-
conf/ConnectorServer.properties
-
conf/logback.xml
(if the RCS is set up for debug logging) -
Any truststores and keystores. These are typically located in the
/path/to/openicf/security
directory.
-
-
Start the RCS:
-
Terminal
-
Service
/path/to/openicf/bin/ConnectorServer.sh /run
sudo systemctl start rcs.service
-
In Advanced Identity Cloud, you must:
|
Upgrade a connector running on the RCS
You can upgrade a connector running on the RCS without upgrading the RCS itself.
-
Download the new connector version from BackStage download site.
-
Stop the RCS:
-
If the RCS is running in a terminal, press CTRL+C or q.
-
If the RCS is running as a service, stop the service:
sudo systemctl stop rcs.service
-
-
Copy the downloaded connector .jar file to the
/path/to/openicf/connectors
directory and remove the old .jar file version. -
Start the RCS:
-
Terminal
-
Service
/path/to/openicf/bin/ConnectorServer.sh /run
sudo systemctl start rcs.service
-
In Advanced Identity Cloud, you must:
|