Uploaded image for project: 'Migration Toolkit for Red Hat Openshift Project Lead'
  1. Migration Toolkit for Red Hat Openshift Project Lead
  2. MTRHO-68

[BUG] transform trying to transform failures

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • No

      After running in dev sandbox I have failures like these:
      ```
      $ cat failures/rhn-engineering-jmontleo-dev/backups.yaml
      APIResource:
      kind: Backup
      name: backups
      namespaced: true
      singularName: backup
      storageVersionHash: eSTCs+S6z7U=
      verbs:

      • delete
      • deletecollection
      • get
      • list
      • patch
      • create
      • update
      • watch
        error:
        ErrStatus:
        apiVersion: v1
        code: 403
        details:
        group: velero.io
        kind: backups
        kind: Status
        message: 'backups.velero.io is forbidden: User "rhn-engineering-jmontleo" cannot
        list resource "backups" in API group "velero.io" in the namespace "rhn-engineering-jmontleo-dev"'
        metadata: {}
        reason: Forbidden
        status: Failure
        ```
        I would not consider these unexpected.

      But then transform fails trying to transform them...
      ```
      + /usr/bin/crane transform --ignored-patches-dir= --flags-file= --export-dir=/var/crane/export --transform-dir=/var/crane/transform
      Error: Object 'Kind' is missing in '{"APIResource":

      {"kind":"Backup","name":"backups","namespaced":true,"singularName":"backup","storageVersionHash":"eSTCs+S6z7U=","verbs":["delete","deletecollection","get","list","patch","create","update","watch"]}

      ,"error":{"ErrStatus":{"apiVersion":"v1","code":403,"details":

      {"group":"velero.io","kind":"backups"}

      ,"kind":"Status","message":"backups.velero.io is forbidden: User \"rhn-engineering-jmontleo\" cannot list resource \"backups\" in API group \"velero.io\" in the namespace \"rhn-engineering-jmontleo-dev\"","metadata":{},"reason":"Forbidden","status":"Failure"}}}'
      Usage:
      crane transform [flags]
      crane transform [command]
      ```

            jgabani@redhat.com Jaydipkumar Gabani (Inactive)
            rh-ee-dzager David Zager
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: