LFX Mentorship 2025_01 test task #6975
antoninbas
started this conversation in
General
Replies: 1 comment 8 replies
-
For submissions, please reply to this thread with the requested information |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, we'd like to thank everyone who is interested in taking part to the LFX Mentorship program with us, and we are excited to welcome new contributors to Project Antrea.
We only submitted one project for this iteration of the LFX Mentorship program:
In order to help us find the right candidate, we have prepared a simple task. It's a good opportunity for you to get familiar with Antrea, and for us to ensure that you have some of the required skills for a successful mentorship. We do not expect this task to take more than a couple of hours.
Remember to apply at https://lfx.linuxfoundation.org/tools/mentorship/ in addition to completing the task.
Task details
Steps:
run(o *Options)
function.klog.InfoS
(look at the rest of the source code for examples).klog.InfoS
is a "structured logging" primitive and lets you include key-value pairs with your log message. Your log message should include the following data: 1) your Github username, and 2) the name of the K8s Pod executing the program (antrea-agent and antrea-controller are meant to be run as Pods). Hint: You will need theenv.GetPodName()
function from theantrea.io/antrea/pkg/util/env
package.make
. Again you may find it useful to refer to CONTRIBUTING.md.kubectl
, dump the logs for each antrea Pod (1 controller Pod and 2 agent Pods) and copy the first 10 lines of each log to a local file at the root of the repository: (controller.txt
,agent1.txt
,agent2.txt
). Among the log lines should be the one you added in step 3.kubectl
, exec into theantrea-ovs
container of the antrea-agent Pod (any one of them) and find out the version of OVS which is installed, using the appropriate OVS command. Write it to to a local file (ovs-version.txt
) at the root of the repository. To get the OVS version, you will need to use theovs-vsctl
command-line utility (find the documentation online).kubectl
, exec into theantrea-agent
container of the antrea-agent Pod (any one of them) and runantctl get featuregates
. Write the output to a local file (antrea-agent-features.txt
) at the root of the repository.lfx-mentorship
Namespace.kubectl
and a YAML manifest nameddeployment.yml
, create a single-replica Deployment in thelfx-mentorship
Namespace, using theantrea/toolbox:1.6
container image.PacketCapture
Custom Resource (CR) to capture all ICMP traffic from the toolbox Pod (source) created in the previous step to external IP address 8.8.8.8 (destination). Write the CR definition to a local YAML manifest file (capture.yml
) at the root of the repository and apply it usingkubectl
. You will need to refer to the Antrea documentation: https://github.com/antrea-io/antrea/blob/main/docs/packetcapture-guide.md. YourPacketCapture
should be configured as follows:kubectl
, exec into the toolbox Pod and start a ping to 8.8.8.8. After at least 10 successful ICMP requests, you can stop the ping command.kubectl
, check the status of yourPacketCapture
CR. More precisely, runkubectl get pcap <name> -o yaml
and save the result to a local file (capture-status.yml
) at the root of the repository. If everything went well, you should see thePacketCaptureComplete
condition understatus
set to"True"
. if not, figure out what went wrong and go back to step 12. The status also includes afilePath
field, which indicates the location of the pcapng file storing the results of the capture. For example:filePath: antrea-agent-8lnp8:/tmp/antrea/packetcapture/packets/pc.pcapng
. The file is currently stored in the filesystem of the antrea-agent Pod which ran the capture.kubectl cp
. Place the local file at the root of the repository and name itcapture.pcapng
.pcapng
file usingtcpdump -r
(you may have to install tcpdump first), and save the output to a local file (capture.txt
) at the root of the repository..txt
files + the 3.yml
files + the.pcapng
file) as a single commit. All the new files should be at the root of the repository. We ask that you:antrea-lfx-mentorship-2025_01-6864
.Submissions
Upon completing the task, reply to the thread below with the following information:
Make sure that your Github repository use the correct branch name, as specified above in the task description.
For any queries, please reply reply to this discussion below or post in the
#antrea
channel in the K8s Slack workspace. Do not send emails or DMs to ask for assistance, use public channels only. We are happy to provide some assistance if you get stuck or if some instructions are not clear enough.Deadlines
Task Deadline: Submissions must be completed by February 20, 5:00 PM PDT.
LFX Application Deadline: LFX applicants must submit by February 18, 5:00 PM PDT.
Beta Was this translation helpful? Give feedback.
All reactions