Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBMPowerVSmachine controller ignores serviceinstance id #1651

Closed
Karthik-K-N opened this issue Mar 8, 2024 · 2 comments
Closed

IBMPowerVSmachine controller ignores serviceinstance id #1651

Karthik-K-N opened this issue Mar 8, 2024 · 2 comments
Labels
area/provider/ibmcloud Issues or PRs related to ibmcloud provider kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@Karthik-K-N
Copy link
Contributor

Karthik-K-N commented Mar 8, 2024

/kind bug
/area provider/ibmcloud

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

Example machine spec

apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: IBMPowerVSMachine
metadata:
  creationTimestamp: null
  labels:
    cluster.x-k8s.io/control-plane: ""
  name: rdr-hamzy-test-wdc06-4btmf-master-0
spec:
  imageRef:
    name: rdr-hamzy-test-wdc06-4btmf-image
  memoryGiB: 32
  network: {}
  processorType: Shared
  processors: "0.5"
  serviceInstance:
    id: 984d148e-f7b0-4994-aa27-143753f863ef
  serviceInstanceID: ""
  systemType: s922
status:
  ready: false

Currently code only checks for service instanceid or name

if params.IBMPowerVSMachine.Spec.ServiceInstanceID != "" {
serviceInstanceID = params.IBMPowerVSMachine.Spec.ServiceInstanceID
} else {
serviceInstanceName = fmt.Sprintf("%s-%s", params.IBMPowerVSCluster.GetName(), "serviceInstance")
if params.IBMPowerVSCluster.Spec.ServiceInstance != nil && params.IBMPowerVSCluster.Spec.ServiceInstance.Name != nil {
serviceInstanceName = *params.IBMPowerVSCluster.Spec.ServiceInstance.Name
}
}

its leading to machine reconcilation error

E0307 15:02:44.774996 4044579 controller.go:329]  "msg"="Reconciler error" "error"="failed to create scope: service instance rdr-hamzy-test-wdc06-vjnpj-serviceInstance is not yet created" 

What did you expect to happen:

Support checking for service instance id.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api version:
  • Minikube/KIND version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. area/provider/ibmcloud Issues or PRs related to ibmcloud provider labels Mar 8, 2024
@Karthik-K-N
Copy link
Contributor Author

/close

@k8s-ci-robot
Copy link
Contributor

@Karthik-K-N: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mkumatag mkumatag added this to the v0.8 milestone Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/ibmcloud Issues or PRs related to ibmcloud provider kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants