Bug 2189409
| Summary: | [Fass- Migration] Provider migration script failed to edit correct tag key in volumes attached to old provider | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | suchita <sgatfane> |
| Component: | odf-managed-service | Assignee: | Ritesh Chikatwar <rchikatw> |
| Status: | VERIFIED --- | QA Contact: | suchita <sgatfane> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.13 | CC: | kramdoss, 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-25 07:00:21 UTC
The script fetches the aws EBS volumes key, using aws ec2 describe-volumes --volume-id $volumeID --filters Name=tag:kubernetes.io/created-for/pvc/namespace,Values=openshift-storage --region $region --query "Volumes[*].Tags" | jq .[] | jq -r '.[]| select (.Value == "owned")|.Key', if the default output is not set to json in aws configure, it will fail. We added the --output flag to each commands where we fetch the tags. That should solve the issue. PR: https://github.com/rchikatw/odf-managed-service-migration/pull/34 Suchita, PR: https://github.com/rchikatw/odf-managed-service-migration/pull/34 is merged please take the latest changes and verify the migration. In migration console logs no error was found related to the tag updated. Also, mon and osd volumes are attached to migrated cluster-> details page-> Tags 1. No entry of key with old cluster name. 2. Only one entry of the new cluster with an "owned" value. 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. |