Skip to content

Commit

Permalink
Task: LFX task-1 for antrea-io#5514
Browse files Browse the repository at this point in the history
Signed-off-by: Md Sahil <contact.mdsahil@gmail.com>
  • Loading branch information
ImMdsahil committed Feb 12, 2024
1 parent 84e23bc commit 6b03612
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ bin
.idea/
.vscode/
vendor
.gitpod.yml
10 changes: 10 additions & 0 deletions agent1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
I0211 08:25:14.779499 1 log_file.go:93] Set log file max size to 104857600
I0211 08:25:14.780135 1 agent.go:105] "Starting Antrea agent" version="v2.0.0-dev-84e23bc7.dirty"
I0211 08:25:14.780147 1 agent.go:106] "Applicant Github ID is ImMdsahil" Pod Name:="antrea-agent-wc6h4"
I0211 08:25:14.780161 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config
I0211 08:25:14.780625 1 prometheus.go:189] Initializing prometheus metrics
I0211 08:25:14.780751 1 ovs_client.go:71] Connecting to OVSDB at address /var/run/openvswitch/db.sock
I0211 08:25:15.780926 1 ovs_client.go:90] Not connected yet, will try again in 2s
I0211 08:25:15.781152 1 agent.go:412] Setting up node network
I0211 08:25:15.781237 1 discoverer.go:82] Starting ServiceCIDRDiscoverer
I0211 08:25:15.785239 1 agent.go:1023] "Got Interface MTU" MTU=1450
10 changes: 10 additions & 0 deletions agent2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
I0211 08:25:14.781647 1 log_file.go:93] Set log file max size to 104857600
I0211 08:25:14.782619 1 agent.go:105] "Starting Antrea agent" version="v2.0.0-dev-84e23bc7.dirty"
I0211 08:25:14.782731 1 agent.go:106] "Applicant Github ID is ImMdsahil" Pod Name:="antrea-agent-c5nvk"
I0211 08:25:14.782761 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config
I0211 08:25:14.783467 1 prometheus.go:189] Initializing prometheus metrics
I0211 08:25:14.783613 1 ovs_client.go:71] Connecting to OVSDB at address /var/run/openvswitch/db.sock
I0211 08:25:15.783970 1 ovs_client.go:90] Not connected yet, will try again in 2s
I0211 08:25:15.784173 1 agent.go:412] Setting up node network
I0211 08:25:15.784277 1 discoverer.go:82] Starting ServiceCIDRDiscoverer
I0211 08:25:15.790773 1 agent.go:1023] "Got Interface MTU" MTU=1450
2 changes: 2 additions & 0 deletions antrea-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
antctlVersion: v1.15.0
controllerVersion: v2.0.0-dev-84e23bc7.dirty
2 changes: 2 additions & 0 deletions cmd/antrea-agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -102,6 +103,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("Starting Antrea agent", "version", version.GetFullVersion())
klog.InfoS("Applicant Github ID is ImMdsahil", "Pod Name:", env.GetPodName())

// Create K8s Clientset, CRD Clientset, Multicluster CRD Clientset and SharedInformerFactory for the given config.
k8sClient, _, crdClient, _, mcClient, _, err := k8s.CreateClients(o.config.ClientConnection, o.config.KubeAPIServerOverride)
Expand Down
2 changes: 2 additions & 0 deletions cmd/antrea-controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ var allowedPaths = []string{
// run starts Antrea Controller with the given options and waits for termination signal.
func run(o *Options) error {
klog.Infof("Starting Antrea Controller (version %s)", version.GetFullVersion())
klog.InfoS("Applicant Github ID is ImMdsahil", "Pod Name:", env.GetPodName())

// 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
// the aggregator can verify its serving certificate.
Expand Down
10 changes: 10 additions & 0 deletions controller.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
I0211 08:25:21.826821 1 log_file.go:93] Set log file max size to 104857600
I0211 08:25:21.827174 1 controller.go:124] Starting Antrea Controller (version v2.0.0-dev-84e23bc7.dirty)
I0211 08:25:21.827183 1 controller.go:125] "Applicant Github ID is ImMdsahil" Pod Name:="antrea-controller-5dd5c48988-42bln"
I0211 08:25:21.827205 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config
I0211 08:25:21.832344 1 selfsignedcert_provider.go:273] "Didn't find the Secret for TLS certificate and key" secret="antrea-controller-tls"
I0211 08:25:21.832354 1 selfsignedcert_provider.go:235] "Generating self-signed cert"
I0211 08:25:21.973787 1 selfsignedcert_provider.go:251] "Writing certificate and key to the cert directory"
I0211 08:25:22.167189 1 prometheus.go:124] Initializing prometheus metrics
I0211 08:25:22.167259 1 networkpolicy_controller.go:940] Starting NetworkPolicyController
I0211 08:25:22.167284 1 shared_informer.go:270] Waiting for caches to sync for NetworkPolicyController
2 changes: 2 additions & 0 deletions ovs-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ovs-vsctl (Open vSwitch) 2.17.7
DB Schema 8.3.0

0 comments on commit 6b03612

Please sign in to comment.