Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-39396

HCP CLI not honoring setting multi-arch flag to false

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.17.0, 4.18.0
    • HyperShift
    • None
    • None
    • Proposed
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          When using an amd64 release image and setting the multi-arch flag to false, HCP CLI cannot create a HostedCluster. The following error happens:
      /tmp/hcp create cluster aws --role-arn arn:aws:iam::460538899914:role/cc1c0f586e92c42a7d50 --sts-creds /tmp/secret/sts-creds.json --name cc1c0f586e92c42a7d50 --infra-id cc1c0f586e92c42a7d50 --node-pool-replicas 3 --base-domain origin-ci-int-aws.dev.rhcloud.com --region us-east-1 --pull-secret /etc/ci-pull-credentials/.dockerconfigjson --namespace local-cluster --release-image registry.build01.ci.openshift.org/ci-op-0bi6jr1l/release@sha256:11351a958a409b8e34321edfc459f389058d978e87063bebac764823e0ae3183
      2024-08-29T06:23:25Z	ERROR	Failed to create cluster	{"error": "release image is not a multi-arch image"}
      github.com/openshift/hypershift/product-cli/cmd/cluster/aws.NewCreateCommand.func1
      	/remote-source/app/product-cli/cmd/cluster/aws/create.go:35
      github.com/spf13/cobra.(*Command).execute
      	/remote-source/app/vendor/github.com/spf13/cobra/command.go:983
      github.com/spf13/cobra.(*Command).ExecuteC
      	/remote-source/app/vendor/github.com/spf13/cobra/command.go:1115
      github.com/spf13/cobra.(*Command).Execute
      	/remote-source/app/vendor/github.com/spf13/cobra/command.go:1039
      github.com/spf13/cobra.(*Command).ExecuteContext
      	/remote-source/app/vendor/github.com/spf13/cobra/command.go:1032
      main.main
      	/remote-source/app/product-cli/main.go:59
      runtime.main
      	/usr/lib/golang/src/runtime/proc.go:271
      Error: release image is not a multi-arch image
      release image is not a multi-arch image

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

          

      How reproducible:

          Every time

      Steps to Reproduce:

          1. Try to create a HC with an amd64 release image and multi-arch flag set to false
          

      Actual results:

         HC does not create and this error is displayed:
      Error: release image is not a multi-arch image release image is not a multi-arch image 

      Expected results:

          HC should create without errors

      Additional info:

        This bug seems to have occurred as a result of HOSTEDCP-1778 and this line:  https://github.com/openshift/hypershift/blob/e2f75a7247ab803634a1cc7f7beaf99f8a97194c/cmd/cluster/aws/create.go#L520

            rhn-support-liangli Liangquan Li
            rh-ee-brcox Bryan Cox
            Liangquan Li Liangquan Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: