RSA SecurID Appliance 3.0 Service Pack 4 Migration Failure at Task 'Importing Certificates'
2 years ago
Originally Published: 2019-11-10
Article Number
000043524
Applies To
RSA Product Set: SecurID
RSA Product/Service Type: SecurID Appliance
RSA Version/Condition: 3.0.4
Platform: Linux
Issue
An RSA SecurID Appliance 3.0 Service Pack 4 deployment is listed as end of primary support (EoPS) and there is a requirement to migrate production data to a supported version of RSA Authentication Manager software, either on a hardware or virtual appliance.

During the migration the task 'Importing Certificates' failed with a task status 'Unsuccessful'.

Example:
User-added image

User-added image

Downloaded Migration Report (migrationReport.log) shows:

Migration Report - <day>, <dd/mm/yyyy> <hh:mm> AM|PM

The import of version 7.1 data was unsuccessful. Review this report for more information.



++++++++++++++++++++++++++++
Error: Failed to massage migrated data org.postgresql.util.PSQLException: ERROR: update or delete on table "ims_authn_policy" violates foreign key constraint "fk_ims_auth_pol_id_anauthpol" on table "ims_sec_domain_authn_policy"
  Detail: Key (id)=(57b2c699c802a8c002900fe94aeb5a52) is still referenced from table "ims_sec_domain_authn_policy".
----------------------------
com.rsa.ims.migration.engine.exception.MigrationTaskException: Failed to massage migrated data org.postgresql.util.PSQLException: ERROR: update or delete on table "ims_authn_policy" violates foreign key constraint "fk_ims_auth_pol_id_anauthpol" on table "ims_sec_domain_authn_policy"
  Detail: Key (id)=(57b2c699c802a8c002900fe94aeb5a52) is still referenced from table "ims_sec_domain_authn_policy".
    at com.rsa.ims.internal.migration.engine.tasks.migrate.impl.MigrationMassageMigratedDataTask.performExecuteTask(MigrationMassageMigratedDataTask.java:53)
    at com.rsa.ims.internal.migration.engine.tasks.impl.AbstractTask.executeTask(AbstractTask.java:142)
    at com.rsa.ims.internal.migration.engine.impl.MigrationEngineImpl.migrate(MigrationEngineImpl.java:108)
    at com.rsa.ims.migration.command.ImportMigrationPackageCommand.execute(ImportMigrationPackageCommand.java:125)
    at com.rsa.ims.operationsconsole.admin.migrate71.Perform71MigrationThread.run(Perform71MigrationThread.java:72)
    at java.lang.Thread.run(Thread.java:680)
Caused by: com.rsa.ims.migration.common.MigrationException: org.postgresql.util.PSQLException: ERROR: update or delete on table "ims_authn_policy" violates foreign key constraint "fk_ims_auth_pol_id_anauthpol" on table "ims_sec_domain_authn_policy"
  Detail: Key (id)=(57b2c699c802a8c002900fe94aeb5a52) is still referenced from table "ims_sec_domain_authn_policy".
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2102)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1835)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:381)
    at com.rsa.ims.migration.admin.dal.impl.MassageMultipleRealmData.deleteRealmDefaultPolicy(MassageMultipleRealmData.java:492)
    at com.rsa.ims.migration.admin.dal.impl.MassageMultipleRealmData.updateRealmPolicies(MassageMultipleRealmData.java:244)
    at com.rsa.ims.migration.admin.dal.impl.MassageMultipleRealmData.convertRealmToSecurityDomain(MassageMultipleRealmData.java:60)
    at com.rsa.ims.migration.admin.dal.impl.MassageMigratedData.massageData(MassageMigratedData.java:78)
    at com.rsa.ims.migration.admin.impl.IMSMigrationMgtImpl.massageMigrationData(IMSMigrationMgtImpl.java:1048)
    at com.rsa.ims.migration.service.impl.MigrationServiceImpl.massageMigratedData(MigrationServiceImpl.java:897)
    at com.rsa.ims.internal.migration.engine.tasks.migrate.impl.MigrationMassageMigratedDataTask.performExecuteTask(MigrationMassageMigratedDataTask.java:44)
    ... 5 more
Caused by: org.postgresql.util.PSQLException: ERROR: update or delete on table "ims_authn_policy" violates foreign key constraint "fk_ims_auth_pol_id_anauthpol" on table "ims_sec_domain_authn_policy"
  Detail: Key (id)=(57b2c699c802a8c002900fe94aeb5a52) is still referenced from table "ims_sec_domain_authn_policy".
    ... 18 more
----------------------------
NOTE: the Key (id) is likely to be different in your exception message.

An entry in the rsa_rep.ims_sec_domain_authn_policy table is causing the exception in the migration log.

Cause
The Authentication Manager deployment has a realm defined where the 'Default Authentication Grade' policy had been updated to use a policy other then a default policy called 'Always User Default (Currently:1 RSA_Password/LDAP_Password)'.
 
Example:
User-added image

NOTE: RSA recommends that you leave the Authentication Grade field set to Use the Default Policy.
Resolution
Perform the following steps to correct the policy/policies associated to the realm.
  1. Logon to the Operations Console and ensure you have a backup prior to making any change to the policy information linked to the realm.
 Operations Console > Maintenance > Backups > Backup Now
  1. After performing the backup, logon to the Security Console with an administrative account for the realm.
  2. Select Administration > Security Domains > Manage Existing
  3. Left-click the Security Domain in question and select Edit
Example:
User-added image
  1. Ensure every listed policy is using a default policy where the naming of the policy starts with 'Always Use Default'.
Example:
User-added image
  1. Plan a new test migration into a newly deployed RSA Authentication Manager 8.1 SP1 P15 primary instance using the latest RSA AM 7.1 Migration Export Utility found in the AM 8.1 SP1 Patch 15 zip file (am-update-8.1.1.15.0.zip) which is available at URL https://community.rsa.com/docs/DOC-44902.
Notes
RSA SecurID Appliance 3.0 Service Pack 4 (or RSA Authentication Manager 7.1 Service Pack 4) migrations will only work with RSA Authentication Manager 8.1 through to RSA Authentication Manager 8.1 Service Pack 1 Patch 15. There is no migration capability in RSA Authentication Manager 8.2 or later.

Product Version Life Cycle for RSA SecurID Access is provided at URL https://community.rsa.com/docs/DOC-73369.

The multiple realm feature was discontinued in RSA Authentication Manager 8.0.