oracle / cluster-api-provider-oci

Kubernetes Cluster API Provider for Oracle Cloud Infrastructure
https://oracle.github.io/cluster-api-provider-oci/
Apache License 2.0
40 stars 22 forks source link

treat "Moving" pca compute instance as ready/active #366

Closed QiangZhangO closed 5 months ago

QiangZhangO commented 5 months ago

What would you like to be added: For C3/PCA compute instance in "Moving" status, please treat the same as "Active" or "Ready" status.

Why is this needed: During C3/PCA rack upgrade, compute instances may be temporarily in "Moving" status, which seems not recognizable to CAPOCI, and it marks the machine as "Failed". These "Moving" instances will be eventually back to "Active"/"Ready" status after rack upgrade. But CAPOCI marks the machine as "Failed", and leads to inconsistency or even instance termination.

The error message from machine object as follows: Failure detected from referenced resource infrastructure.cluster.x-k8s.io/v1beta1, Kind=OCIMachine with name "oke-a343f7f2958b40a59b3094484015528b-8j6kc": Instance status "MOVING" is unexpected