> From: KAJUR, HARISH V [mailto:[email protected]] 
> There is another alternative if you don’t want to delete the job and run 
> deploy, you can do the following:
> kubectl -n <NAMESPACE> get job <RELEASE_NAME>-aai-graphadmin-create-db-schema 
> -o json | jq 'del(.spec.selector)' | jq 'del(.spec.template.metadata.labels)' 
> | kubectl -n onap replace --force -f – 
>
> The above command will take the current create db schema job and remove the 
> generated fields and forcefully replaces the job and it should work as well.

Thanks Harish! I used this command to recreate the job, which did start but now 
it is also stuck in Init state.
The kubectl logs command doesn't show why, but a docker logs command shows:

===
2019-08-14 05:05:22,283 - INFO - Checking if cassandra  is ready
2019-08-14 05:05:22,963 - INFO - Statefulset dev-cassandra-cassandra  is not 
ready
2019-08-14 05:05:22,971 - WARNING - timed out waiting for 'cassandra' to be 
ready
===

which is an odd error to receive because all the cassandra nodes are up and 
running now.
Looking into the readiness-check container, the 
oom/oom/kubernetes/readiness/docker/init/ready.py script appears to be checking 
for various conditions on the statefulset, mainly the number of replicas, which 
appear to be satisfied according to

===
# kubectl -n onap describe StatefulSet/dev-cassandra-cassandra
Name:               dev-cassandra-cassandra
Namespace:          onap
CreationTimestamp:  Thu, 13 Jun 2019 07:12:09 +0800
Selector:           app=cassandra,release=dev-cassandra
Labels:             app=cassandra
                    chart=cassandra-4.0.0
                    heritage=Tiller
                    release=dev-cassandra
Annotations:        <none>
Replicas:           3 desired | 3 total
Update Strategy:    RollingUpdate
Pods Status:        3 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
  Labels:  app=cassandra
           release=dev-cassandra
  Containers:
   cassandra:
    Image:       library/cassandra:2.2.14
...
===

So, not sure what else needs to be jiggled or tweaked to make the 
readiness-check pass...
Any further ideas or tips?


Thanks,
Keong

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

View/Reply Online (#18555): https://lists.onap.org/g/onap-discuss/message/18555
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