Skip to content

[Infrastructure] Failure to create Infrastructure Machines using a Dedicated Host #2150

@cjschaef

Description

@cjschaef

/kind bug
/area provider/ibmcloud

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
Wanted to create an Infrastructure cluster, placing Infrastructure Machines on a Dedicated Host.
Configured the Machines to all be placed on a single Dedicated Host in one zone in IBM Cloud.
Failure reading the configured Machine occurs, preventing creating of Machines, mentioning dedicatedHostGroup, which is supposed to be an option field.

Resulting in a failure to handle the

IBMVPCMachine.infrastructure.cluster.x-k8s.io "ci-op-ddj4fjiv-89fa2-dtk2r-bootstrap" is invalid: [spec.placementTarget.dedicatedHostGroup: Invalid value: "null": spec.placementTarget.dedicatedHostGroup in body must be of type object: "null", <nil>: Invalid value: "null": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]

What did you expect to happen:
Successful creating of Infrastructure Machines on a Dedicated Host.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
I think this may be because dedicatedHostGroup is missing omitempty.

DedicatedHostGroup *VPCResource `json:"dedicatedHostGroup"`

Environment:

  • Cluster-api version: v0.9.0
  • Minikube/KIND version: N/A
  • Kubernetes version: (use kubectl version): 1.32
  • OS (e.g. from /etc/os-release): Ubuntu 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/provider/ibmcloudIssues or PRs related to ibmcloud providerkind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions