Below error was observed in the machine nodepolicy.
reason: >-
vmconfig status is Normal, nodeconfig status is Normal. vmconfig CR
wc-tah-test/wc-tah-test-np1-66666ffss4-v11nx does not exist and
nodepolicy CR wc-tah-test/wc-tah-test-np1 does not exist.
3.2
Nodepolicy creation is failing as the vsphereJobs on TCA-CP Compute was not consumed by the tca-app service from kafka which resulted in kafka message lag.
Follow below steps to check the issue:
admin@dual-tca-cp1 [ ~ ]$ kubectexec -it -n tca-cp-cn edge-kafka-0 /bin/bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] – [COMMAND] instead.
kafka [ /opt/kafka ]$ cd bin
kafka [ /opt/kafka/bin ]$ ./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group vsphereJobs-0-TopologyService
Consumer group 'vsphereJobs-0-TopologyService' has no active members.
GROUP TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG CONSUMER-ID HOST CLIENT-ID
vsphereJobs-0-TopologyService vsphereJobs 0 156916 157073 157 - - -
Note: The difference between LOG-END-OFFSET and CURRENT-OFFSET is called LAG which should be zero. If its not zero the service is not consuming messages from the Kafka topic. Issue is likely with Service.