Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTF K8S module tests failing as ‘show kubernetes server status’ returning “Kubernetes server has no status info” #6279

Open
kbabujp opened this issue Sep 2, 2022 · 2 comments

Comments

@kbabujp
Copy link
Contributor

kbabujp commented Sep 2, 2022

Description: ‘show kubernetes server status’ command used in K8S module PTF test to check the status is failing.
It returns “Kubernetes server has no status info”
Below message seen in syslog while executing the show command
Aug 22 00:12:43.735833 sonic WARNING show: :- operator(): Key '{KUBERNETES_MASTER|SERVER}' unavailable in database '{STATE_DB}'

Steps to reproduce – run K8S module PTF tests and all fails
Manual verification:
Create Kubernetes HA topology as given in https://github.com/sonic-net/sonic-mgmt/blob/master/docs/testbed/README.testbed.k8s.Setup.md
Run below steps,
root@sonic:# config kubernetes server disable on
root@sonic:
# config kubernetes server ip
root@sonic:# config kubernetes server disable off
root@sonic:
# show kubernetes server config
ip port insecure disable


10.112.157.37 6443 False False
root@sonic:# show kubernetes server status
Kubernetes server has no status info
root@sonic:
#

In syslog - Aug 16 23:22:56.666204 sonic WARNING show: :- operator(): Key '{KUBERNETES_MASTER|SERVER}' unavailable in database '{STATE_DB}'

Snippet of PTF test run log:
=========================== short test summary info ============================
FAILED k8s/test_config_reload.py::test_config_reload_no_toggle - Failed: DUT ...
FAILED k8s/test_config_reload.py::test_config_reload_toggle_join - Failed: Un...
FAILED k8s/test_config_reload.py::test_config_reload_toggle_reset - Failed: D...
FAILED k8s/test_disable_flag.py::test_disable_flag - Failed: DUT failed to su...
FAILED k8s/test_join_available_master.py::test_join_available_master - Failed...
========================== 5 failed in 776.00 seconds ==========================

  pytest_assert(server_connect_exp_status == server_connect_act_status, "DUT shows unexpected kubernetes server connected status, Expected server connected status: {}, Found server connected status: {}".format(server_connect_exp_status, server_connect_act_status))

E Failed: DUT shows unexpected kubernetes server connected status, Expected server connected status: False, Found server connected status: None

Show version info is given below.

SONiC Software Version: SONiC.202111.Innovium.3.0.0.20220816.015358
Distribution: Debian 11.4
Kernel: 5.10.0-8-2-amd64
Marvell SAI version: T2.0.1
Build commit: 003c8dfde

Expected - ‘show kubernetes server status’ should return correct status

@yxieca
Copy link
Collaborator

yxieca commented Sep 7, 2022

@zhangyanzhao who is feature owner of Kubernetes? Can you help ping the feature owner to triage this issue? This might be an image issue?

@Doxakis1
Copy link

Doxakis1 commented Feb 3, 2025

Greetings friend,

Might be worth looking into #16617 (It is a different problem but...)

There appears to be some discussion about k8s availability in public branches.

Are you running on a public branch build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants