Current version: 10.1 CR03
We are looking to use the GMU tool for policy migrations from one environment to other.
We are trying to migrate this policy called 'OrdersI' which already exists in the target Gateway.
We were able to migrateOut the policy that we want to export, however we seeing an issue where we getting an error while using migrateIn - it says the entity already exists
Command we used to migrateOut
.\GatewayMigrationUtility.bat --jdk "C:\Program Files\Java\jdk-11.0.16" migrateOut --argFile gw-src.properties --serviceName /Services/Ecom/Internal/Orders.xml --dest MigrateOut_Results\Orders.xml --excludeEncryptedSecrets --trustCertificate -includeOnlyDependencies
Command we used to migrateIn:
.\GatewayMigrationUtility.bat --jdk "C:\Program Files\Java\jdk-11.0.16" migrateIn -z commonargsQAint.properties -b MigrateOut_Results\Orders.xml -destFolder '/Services/Ecom/Internal/' --results MigrateIn_Results\results.xml --trustCertificate
error:
<l7:Property key="ErrorMessage">
<l7:StringValue>Could not locate entity: Fail on new specified and could not locate existing target. Source Entity: EntityHeader. Name=null, id=00000000000000000000000000000002:SSL description=null, type = SSG_KEY_ENTRY</l7:StringValue>
Release : 10.1
Two environments gw-src & gw-dest with different service ID’s
GMU migrate out the service, in this example by service name Orders (include the folder path):
.\GatewayMigrationUtility.bat migrateOut --argFile gw-src.properties --serviceName /Services/Ecom/Internal/Orders --dest MigrateOut_Results\Orders.xml --excludeEncryptedSecrets --trustCertificate -includeOnlyServicePolicy
Test migrateIN TEST
.\GatewayMigrationUtility.bat migrateIn -z gw-dest.properties -b MigrateOut_Results\Orders.xml -destFolder '/Services/Ecom/Internal/' --results MigrateIn_Results\results.xml --trustCertificate -test
Results TEST Error on Service ID not matching
<l7:Property key="ErrorMessage">
<l7:StringValue>Error attempting to save or update the PublishedService with id = 'aa5da1158af5977d2cd6cf3c07e66232'. Constraint Violation: could not execute statement</l7:StringValue>
Used manageMappings to ignore SSG_KEY_ENTRY
.\GatewayMigrationUtility.bat manageMappings --argFile gw-src.properties -b MigrateOut_Results\Orders.xml -a ignore -t SSG_KEY_ENTRY
Used manageMappings to map the srcID to the targetID
.\GatewayMigrationUtility.bat manageMappings --argFile commonargsdev.properties -b MigrateOut_Results\Orders.xml --srcId aa5da1158af5977d2cd6cf3c07e66232 --targetId 2f6ee01a329fb938d57842058ed7c2a2 --action neworupdate
Another TEST migrateIN = successful
.\GatewayMigrationUtility.bat migrateIn -z gw-dest.properties -b MigrateOut_Results\Orders.xml -destFolder '/Services/Ecom/Internal/' --results MigrateIn_Results\results.xml --trustCertificate -test
MigrateIN without test
.\GatewayMigrationUtility.bat migrateIn -z gw-dest.properties -b MigrateOut_Results\Orders.xml -destFolder '/Services/Ecom/Internal/' --results MigrateIn_Results\results.xml --trustCertificate
Verified updates