Bug 2190336

Summary: [FaaS-Migration] Migration script failed to initiate provider migration with providers in 2 different OCM account
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: suchita <sgatfane>
Component: odf-managed-serviceAssignee: Rewant <resoni>
Status: VERIFIED --- QA Contact: suchita <sgatfane>
Severity: high Docs Contact:
Priority: high    
Version: 4.13CC: nberry, odf-bz-bot, rchikatw, resoni
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description suchita 2023-04-28 01:44:45 UTC
Description of problem:
Migration script failed to initiate provider migration with providers in 2 different OCM account

$ ./migrate.sh -provider 23bqevl84nil02oqbqvah97e6qo8m49c 23br4p4r8mijt56l2nq0bhqhu03dj59u -d -dev
Cluster '23bqevl84nil02oqbqvah97e6qo8m49c' not found

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Deploy the ROSA cluster in Dev OCM account, install Faas agent provider
2. Deploy appliance mode cluster with provider and onboard 1-2 consumer
3. migrate the provider:

Actual results:
Faile to initiate migration 

Expected results:
Migration should complete successfully

Additional info:

Comment 2 Ritesh Chikatwar 2023-04-28 12:27:42 UTC
Hello,

The PR with the fix is merged https://github.com/rchikatw/odf-managed-service-migration/pull/36. Now The script will ask for 2 more inputs after script executed
1. OCM token for old/backup cluster.
2. OCM token for new/migrated cluster.

Please take the latest change and rerun the migration.

Comment 3 suchita 2023-05-05 06:51:31 UTC
Inter-OCM account Migration is completed successfully. 

more outputs captured Here in doc:https://docs.google.com/document/d/13FeKH1zImP8pMqDDlpapNDkpk3iVmBg2FcRIHLPN7Xc/edit?usp=sharing

Hence Marking this BZ as verified. 

verified with ROSA4.12 and ODF4.12.3-12 Fass Provider migration setup.