Bug 2267018

Summary: Migration controller failing to install due velero unsupported value error
Product: Migration Toolkit for Containers Reporter: mohamed <midays>
Component: ControllerAssignee: Dylan Murray <dymurray>
Status: CLOSED ERRATA QA Contact: mohamed <midays>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 1.8.3CC: rjohnson
Target Milestone: ---   
Target Release: 1.8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: OADP 1.3.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-18 12:41:17 UTC 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 mohamed 2024-02-29 10:46:22 UTC
Description of problem:
MigrationController fails to install due to 


Error:
TASK [Set up velero controller] ******************************** 
fatal: [localhost]: FAILED! => {"changed": false, "error": 422, "msg": "Failed to apply object: b'{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"DataProtectionApplication.oadp.openshift.io \\\\\"velero\\\\\" is invalid: spec.unsupportedOverrides: Unsupported value: map[string]interface {}{\\\\\"operator-type\\\\\":\\\\\"mtc\\\\\"}: supported values: \\\\\"veleroImageFqin\\\\\", \\\\\"awsPluginImageFqin\\\\\", \\\\\"openshiftPluginImageFqin\\\\\", \\\\\"azurePluginImageFqin\\\\\", \\\\\"gcpPluginImageFqin\\\\\", \\\\\"csiPluginImageFqin\\\\\", \\\\\"resticRestoreImageFqin\\\\\", \\\\\"kubevirtPluginImageFqin\\\\\", \\\\\"operator-type\\\\\"\",\"reason\":\"Invalid\",\"details\":{\"name\":\"velero\",\"group\":\"oadp.openshift.io\",\"kind\":\"DataProtectionApplication\",\"causes\":[{\"reason\":\"FieldValueNotSupported\",\"message\":\"Unsupported value: map[string]interface {}{\\\\\"operator-type\\\\\":\\\\\"mtc\\\\\"}: supported values: \\\\\"veleroImageFqin\\\\\", \\\\\"awsPluginImageFqin\\\\\", \\\\\"openshiftPluginImageFqin\\\\\", \\\\\"azurePluginImageFqin\\\\\", \\\\\"gcpPluginImageFqin\\\\\", \\\\\"csiPluginImageFqin\\\\\", \\\\\"resticRestoreImageFqin\\\\\", \\\\\"kubevirtPluginImageFqin\\\\\", \\\\\"operator-type\\\\\"\",\"field\":\"spec.unsupportedOverrides\"}]},\"code\":422}\\n'", "reason": "Unprocessable Entity", "status": 422}

----------------------




Formated error:

Failed to apply object:
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "DataProtectionApplication.oadp.openshift.io \"velero\" is invalid:
    spec.unsupportedOverrides: Unsupported value: 
    {
      "operator-type": "mtc"
    }: 
    supported values: 
    \"veleroImageFqin\",
    \"awsPluginImageFqin\",
    \"openshiftPluginImageFqin\",
    \"azurePluginImageFqin\",
    \"gcpPluginImageFqin\",
    \"csiPluginImageFqin\",
    \"resticRestoreImageFqin\",
    \"kubevirtPluginImageFqin\",
    \"operator-type\"",
  "reason": "Invalid",
  "details": {
    "name": "velero",
    "group": "oadp.openshift.io",
    "kind": "DataProtectionApplication",
    "causes": [
      {
        "reason": "FieldValueNotSupported",
        "message": "Unsupported value: 
        {
          \"operator-type\": \"mtc\"
        }: 
        supported values: 
        \"veleroImageFqin\",
        \"awsPluginImageFqin\",
        \"openshiftPluginImageFqin\",
        \"azurePluginImageFqin\",
        \"gcpPluginImageFqin\",
        \"csiPluginImageFqin\",
        \"resticRestoreImageFqin\",
        \"kubevirtPluginImageFqin\",
        \"operator-type\"",
        "field": "spec.unsupportedOverrides"
      }
    ]
  },
  "code": 422
}

Comment 11 errata-xmlrpc 2024-04-18 12:41:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Migration Toolkit for Containers (MTC) 1.8.3 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:1925