From fca47596c427fca1c6b7029fbbe1c80b52a46d59 Mon Sep 17 00:00:00 2001 From: freedisch Date: Tue, 13 Feb 2024 12:30:45 +0200 Subject: [PATCH] LFX mentorship task Signed-off-by: freedisch --- agent1.txt | 11 +++++++++++ angent2.txt | 11 +++++++++++ antrea-version.txt | 2 ++ cmd/antrea-agent/agent.go | 2 ++ cmd/antrea-controller/controller.go | 1 + controller.txt | 11 +++++++++++ ovs-version.txt | 2 ++ pkg/util/env/env.go | 1 + 8 files changed, 41 insertions(+) create mode 100644 agent1.txt create mode 100644 angent2.txt create mode 100644 antrea-version.txt create mode 100644 controller.txt create mode 100644 ovs-version.txt diff --git a/agent1.txt b/agent1.txt new file mode 100644 index 00000000000..8a57a99d8cd --- /dev/null +++ b/agent1.txt @@ -0,0 +1,11 @@ +I0212 14:39:33.624528 1 log_file.go:93] Set log file max size to 104857600 +I0212 14:39:33.624987 1 agent.go:104] GithubID="Freedisch" podname="antrea-agent-rxpj9" +I0212 14:39:33.625433 1 agent.go:104] "Starting Antrea agent" version="v2.0.0-dev-84e23bc" +I0212 14:39:33.625475 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config +I0212 14:39:33.627183 1 prometheus.go:189] Initializing prometheus metrics +I0212 14:39:33.630847 1 ovs_client.go:71] Connecting to OVSDB at address /var/run/openvswitch/db.sock +I0212 14:39:34.631721 1 ovs_client.go:90] Not connected yet, will try again in 2s +I0212 14:39:34.632712 1 agent.go:412] Setting up node network +I0212 14:39:34.632942 1 discoverer.go:82] Starting ServiceCIDRDiscoverer +I0212 14:39:34.646000 1 agent.go:1023] "Got Interface MTU" MTU=65485 +I0212 14:39:34.647025 1 ovs_client.go:122] Created bridge: b2072b5e-8123-4112-bcf4-00eca372b5dd diff --git a/angent2.txt b/angent2.txt new file mode 100644 index 00000000000..b5bf99556e8 --- /dev/null +++ b/angent2.txt @@ -0,0 +1,11 @@ +I0212 14:39:35.732897 1 log_file.go:93] Set log file max size to 104857600 +I0212 14:39:35.733664 1 agent.go:104] GithubID="Freedisch" podname="antrea-agent-tpsfb" +I0212 14:39:35.734584 1 agent.go:104] "Starting Antrea agent" version="v2.0.0-dev-84e23bc" +I0212 14:39:35.734651 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config +I0212 14:39:35.737862 1 prometheus.go:189] Initializing prometheus metrics +I0212 14:39:35.738054 1 ovs_client.go:71] Connecting to OVSDB at address /var/run/openvswitch/db.sock +I0212 14:39:36.738781 1 ovs_client.go:90] Not connected yet, will try again in 2s +I0212 14:39:36.739521 1 agent.go:412] Setting up node network +I0212 14:39:36.739791 1 discoverer.go:82] Starting ServiceCIDRDiscoverer +I0212 14:39:36.747142 1 agent.go:1023] "Got Interface MTU" MTU=65485 +I0212 14:39:36.747992 1 ovs_client.go:122] Created bridge: de3edc24-cf58-4958-9025-babb05a93948 diff --git a/antrea-version.txt b/antrea-version.txt new file mode 100644 index 00000000000..e5132bd7817 --- /dev/null +++ b/antrea-version.txt @@ -0,0 +1,2 @@ +antctlVersion: v1.15.0 +controllerVersion: v2.0.0-dev-84e23bc7.dirty \ No newline at end of file diff --git a/cmd/antrea-agent/agent.go b/cmd/antrea-agent/agent.go index dbefa8530ba..475a9f4a972 100644 --- a/cmd/antrea-agent/agent.go +++ b/cmd/antrea-agent/agent.go @@ -78,6 +78,7 @@ import ( "antrea.io/antrea/pkg/ovs/ovsctl" "antrea.io/antrea/pkg/signals" "antrea.io/antrea/pkg/util/channel" + "antrea.io/antrea/pkg/util/env" "antrea.io/antrea/pkg/util/k8s" "antrea.io/antrea/pkg/util/lazy" "antrea.io/antrea/pkg/util/podstore" @@ -101,6 +102,7 @@ var ipv4Localhost = net.ParseIP("127.0.0.1") // run starts Antrea agent with the given options and waits for termination signal. func run(o *Options) error { + klog.InfoS("GithubID", env.GithubID, "podname", env.GetPodName()) klog.InfoS("Starting Antrea agent", "version", version.GetFullVersion()) // Create K8s Clientset, CRD Clientset, Multicluster CRD Clientset and SharedInformerFactory for the given config. diff --git a/cmd/antrea-controller/controller.go b/cmd/antrea-controller/controller.go index 36390568d09..09cc302fe0a 100644 --- a/cmd/antrea-controller/controller.go +++ b/cmd/antrea-controller/controller.go @@ -121,6 +121,7 @@ var allowedPaths = []string{ // run starts Antrea Controller with the given options and waits for termination signal. func run(o *Options) error { + klog.InfoS("GithubID", env.GithubID, "podname", env.GetPodName()) klog.Infof("Starting Antrea Controller (version %s)", version.GetFullVersion()) // Create K8s Clientset, Aggregator Clientset, CRD Clientset and SharedInformerFactory for the given config. // Aggregator Clientset is used to update the CABundle of the APIServices backed by antrea-controller so that diff --git a/controller.txt b/controller.txt new file mode 100644 index 00000000000..8d1f4cb646d --- /dev/null +++ b/controller.txt @@ -0,0 +1,11 @@ +I0212 14:40:04.513831 1 log_file.go:93] Set log file max size to 104857600 +I0212 14:40:04.514123 1 controller.go:124] GithubID="Freedisch" podname="antrea-controller-5dd5c48988-nlfbg" +I0212 14:40:04.514589 1 controller.go:124] Starting Antrea Controller (version v2.0.0-dev-84e23bc) +I0212 14:40:04.514623 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config +E0212 14:40:04.523061 1 selfsignedcert_provider.go:231] "Didn't get valid certificate and key from Secret, will generate a new one" err="secrets \"antrea-controller-tls\" is forbidden: User \"system:serviceaccount:kube-system:antrea-controller\" cannot get resource \"secrets\" in API group \"\" in the namespace \"kube-system\"" secret="antrea-controller-tls" +I0212 14:40:04.524321 1 selfsignedcert_provider.go:235] "Generating self-signed cert" +I0212 14:40:04.939082 1 selfsignedcert_provider.go:251] "Writing certificate and key to the cert directory" +I0212 14:40:05.543562 1 prometheus.go:124] Initializing prometheus metrics +I0212 14:40:05.543691 1 controller.go:152] "Starting" controller="EgressController" +I0212 14:40:05.543712 1 shared_informer.go:270] Waiting for caches to sync for EgressController +I0212 14:40:05.543731 1 group_entity_index.go:668] Starting GroupEntityIndex diff --git a/ovs-version.txt b/ovs-version.txt new file mode 100644 index 00000000000..68c085bb56e --- /dev/null +++ b/ovs-version.txt @@ -0,0 +1,2 @@ +ovs-vsctl (Open vSwitch) 2.17.7 +DB Schema 8.3.0 diff --git a/pkg/util/env/env.go b/pkg/util/env/env.go index 882f76f92ab..c48c6fe53a9 100644 --- a/pkg/util/env/env.go +++ b/pkg/util/env/env.go @@ -25,6 +25,7 @@ import ( ) const ( + GithubID = "Freedisch" NodeNameEnvKey = "NODE_NAME" podNameEnvKey = "POD_NAME" podNamespaceEnvKey = "POD_NAMESPACE"