Uploaded image for project: 'OpenStack as Infra'
  1. OpenStack as Infra
  2. OSASINFRA-3972

GH-orc-589: [UX] Controller error for wrong cloud name is misleading

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • ORC
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected

      Originally posted on Github: https://github.com/k-orc/openstack-resource-controller/issues/589

      Problem description
      When using an unexpected cloud name in the clouds.yaml configuration the controller throws a misleading error saying that the auth_url is not set instead of raising a proper error saying the cloud name is unexpected or can't be found in the file.
      ORC version
      690b760
      Additional information
      No response
      Relevant log output
      -doe"}, "namespace": "kuttl-test-light-doe", "name": "volumetype-update", "reconcileID": "abb199d3-6af9-43e2-bab9-2738a31ad68d"}
      2025-11-26T14:25:27+02:00 ERROR Reconciler error {"controller": "volumetype", "controllerGroup": "openstack.k-orc.cloud", "controllerKind": "VolumeType", "VolumeType":

      {"name":"volumetype-update","namespace":"kuttl-test-light-doe"}

      , "namespace": "kuttl-test-light-doe", "name": "volumetype-update", "reconcileID": "abb199d3-6af9-43e2-bab9-2738a31ad68d", "error": "auth option failed for cloud : Missing input for argument [auth_url]\nauth option failed for cloud : Missing input for argument [auth_url]"}
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
      /home/eshulman/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.22.4/pkg/internal/controller/controller.go:474
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
      /home/eshulman/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.22.4/pkg/internal/controller/controller.go:421
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func1.1
      /home/eshulman/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.22.4/pkg/internal/controller/controller.go:296

              Unassigned Unassigned
              shiftstack OpenShift On OpenStack
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: