-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
Undefined
Description of problem:
Hibernating doesn't work normal for fake cluster
1. For a fake ClusterDeployment, when I set powerState=Hibernating, the status is still in Running state
$ oc get cd lwanfakecluster2 -o json | jq -r ".spec.powerState" Hibernating [lwan@lwan hive]$ oc get cd lwanfakecluster2 -o json | jq -r '.status.conditions[]| select(.type == "Hibernating")' { "lastProbeTime": "2021-07-08T08:01:28Z", "lastTransitionTime": "2021-07-08T08:01:27Z", "message": "Hibernation capable", "reason": "Running", "status": "False", "type": "Hibernating" }
2. For ClusterDeployment in clusterpool, it show Unsupported with reason "No cluster version is available yet", but there is version field in labels.
$ oc get cd lwan-pool-aws2-2sk66 -n lwan-pool-aws2-2sk66 -o json | jq -r '.status.conditions[]| select(.type == "Hibernating")' { "lastProbeTime": "2021-07-08T08:59:04Z", "lastTransitionTime": "2021-07-08T08:59:04Z", "message": "No cluster version is available yet", "reason": "Unsupported", "status": "False", "type": "Hibernating" } $ oc get cd lwan-pool-aws2-2sk66 -n lwan-pool-aws2-2sk66 -o json | jq -r '.metadata.labels' { "hive.openshift.io/cluster-platform": "aws", "hive.openshift.io/cluster-region": "us-east-2", "hive.openshift.io/version-major": "4", "hive.openshift.io/version-major-minor": "4.6", "hive.openshift.io/version-major-minor-patch": "4.6.8" }
then claim a cluster from the cluster pool, the cluster can't be hibernated again.