Digging deeper into ready.py, wait_for_statefulset_complete has this condition:

===
        s = response.status
        if (s.updated_replicas == response.spec.replicas and
                s.replicas == response.spec.replicas and
                s.ready_replicas == response.spec.replicas and
                s.current_replicas == response.spec.replicas and
                s.observed_generation == response.metadata.generation):
            log.info("Statefulset " + statefulset_name + "  is ready")
            return True
===

but when I check on the info provided by kubectl:

===
# kubectl -n onap get statefulset/dev-cassandra-cassandra -o yaml
...
status:
  collisionCount: 0
  currentReplicas: 3
  currentRevision: dev-cassandra-cassandra-84f4d86c9f
  observedGeneration: 1
  readyReplicas: 3
  replicas: 3
  updateRevision: dev-cassandra-cassandra-84f4d86c9f

===

The status section does not include an "updated replicas" value. Does that mean 
it would be null in the ready.py script?
Should the readiness-check fail when 4 out of 5 conditions are met and the 
other condition is null?

This issue appears to be related to 
https://github.com/kubernetes/kubernetes/issues/52653

So, does anyone know how to get an "updated replicas" value in the status?
I am guessing that a spurious kubectl scale command would be enough of an 
update, but is there any better recommendation?

Thanks,
Keong

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18558): https://lists.onap.org/g/onap-discuss/message/18558
Mute This Topic: https://lists.onap.org/mt/32859796/21656
Mute #aai: https://lists.onap.org/mk?hashtag=aai&subid=2740164
Mute #oom: https://lists.onap.org/mk?hashtag=oom&subid=2740164
Mute #dublin: https://lists.onap.org/mk?hashtag=dublin&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to