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

hcp cli "--render" option should work without cluster connectivity

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Running hcp create cluster agent --render ... connects to a remote cluster to validate the existence of the agent namespace:

      $ hcp create cluster agent --render --agent-namespace example
      2023-12-06T14:30:15-05:00       INFO    detected "10.30.8.82" from node "wrk-72" as external-api-server-address
      2023-12-06T14:30:15-05:00       ERROR   Failed to create cluster        {"error": "failed to get agent namespace: namespaces \"example\" not found"}
      github.com/openshift/hypershift/product-cli/cmd/cluster/agent.NewCreateCommand.func1
              /remote-source/app/product-cli/cmd/cluster/agent/create.go:37
      github.com/spf13/cobra.(*Command).execute
              /remote-source/app/vendor/github.com/spf13/cobra/command.go:916
      github.com/spf13/cobra.(*Command).ExecuteC
              /remote-source/app/vendor/github.com/spf13/cobra/command.go:1044
      github.com/spf13/cobra.(*Command).Execute
              /remote-source/app/vendor/github.com/spf13/cobra/command.go:968
      github.com/spf13/cobra.(*Command).ExecuteContext
              /remote-source/app/vendor/github.com/spf13/cobra/command.go:961
      main.main
              /remote-source/app/product-cli/main.go:60
      runtime.main
              /usr/lib/golang/src/runtime/proc.go:250
      Error: failed to get agent namespace: namespaces "example" not found
      failed to get agent namespace: namespaces "example" not found
      
      

      hcp create cluster --render should run without requiring remote connectivity.

      Note that this behavior is different from that implemented by hcp create cluster kubevirt, which when run with --render does not make a connection to the remote cluster.

              hypershift-automation hypershift-team automation
              lkellogg@redhat.com Lars Kellogg-Stedman
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: