The Wayback Machine - https://web.archive.org/web/20160309234501/https://kushaldas.in/
State of tests for Fedora Cloud and Atomic in March 2016
Posted: 2016-03-03T17:20:43+05:30

Till Fedora 22 release we have tested our Cloud images only with manual help. The amazing Fedora QA team organized test days, and also published detailed documentation on the wiki about how to test the images. People tried to help as when possible, as not having access to a Cloud was a problem for many. The images are also big in size (than any random RPM), so that also meant only people with enough bandwidth can help.

During Fedora 23 release cycle, we worked on a change for Automated Two Week Atomic release. A part of it was about having automated testing, which we enabled using Autocloud project. This automatically tests every Cloud Base and Atomic qcow2 images, and libvirt, and Virtualbox based Vagrant images.

This post will explain the state of currently activated tests for the same. These tests are written as Python3 unittest cases.

At first we run 5 non-gating tests, failing any of these will not do a release blocking, but at the end of each run we get the summary for all of these non-gating tests. These include bzip2, cpio, diffutils, Audit.

Then we go ahead in testing the basics test cases, things like journald logging, package install (only on base image), SELinux should be enforcing, and no service should fail during startup of the image.

The next test is about checking that /tmp should be world writable. We then move into testing the mount status of the /tmp filesystem. If it is a link, then also it should behave properly. Our next test checks that for Vagrant images we are using predictable naming convention of network devices, basically checking the existing of eth0.

We then disable crond service, after a reboot we make sure that the service is still in disabled state, and do the rest of service manipulations. We also check that the user journald log file exists on that reboot, this comes from a regression test. Then we reboot the instance again.

After this second reboot, we test the status of the crond service once again, and then we move to our special tests cases related to Atomic host. Means these tests will run only on Atomic hosts (both cloud, and Vagrant ones).

In the first test we check if the package docker is at all installed or not. Yes, if you guessed that this is a regression test, then you are correct. We once had an image without the docker package inside :) Next, we test the docker storage setup, that should be up, and in running state. We then run the busybox image, and see that it should be able to run properly. The atomic command is used next to start the same container. Pulling in the latest Fedora image, and running it is the next test. As our next test, we try to mount / as /host in the container. The next test is about having /bin, /sbin, and /usr mounted as read only in the Atomic host. In our final test, we check that a privileged container should be able to talk to the host docker daemon.

We also have a github wiki page explaining how to write any new test case. Feel free to ping if you want to contribute, and make Fedora flying high in the Cloud.

Comments

dgplug summer training student Trishna Guha
Posted: 2016-03-02T13:30:11+05:30

This is the third post in this series.

Image

  • Your name (blog/twitter) and what do you do

I am Trishna Guha (trishnag), a 6th semester B.Tech student with Computer Science and Engineering branch.

  • How did you learn about the training?

I have learned about the training from my brother Suman Guha https://twitter.com/sumanguha.

  • How this training changed (if at all) your life?

This training has changed my life entirely. I started the training as a newbie. I took part in the training attentively and tried to learn and implement what all have been taught in the summer training. After few months I really could feel the change. I jotted down the skills those I didn’t used to have before the training and it felt so awesome. Finally this training has turned me into an Open Source Contributor :). I am learning a lot contributing to opensource.

  • Have you contributed to any upstream project(s)? If yes, then details

I have started contributing to upstream projects after the training. I have contributed to Fedora-Cloud testing Tunirtests and various projects of Fedora-Infra like bodhi, pkgdb2, tahrir.

  • Any tips for the next batch of participants.

This is the place to learn everything from scratch if anyone wants to get started with open source contributions and learn about various tools. So don’t miss the training because it is one of the steps to change your life for the better.

Thank you DGPLUG.

Comments

dgplug summer training student Farhaan Bukhsh
Posted: 2016-03-01T18:22:06+05:30

This is the second post in the series, the first post was on Sanyam Khurana.

Image

  • Your name (blog/twitter) and what do you do

Farhaan Bukhsh

I am a 6th semester student in an engg. college in Bangalore. I attend college during day and contribute to fedora-infra rest of the time. I also intern for a company called Jnaapti. http://github.com/farhaanbukhsh

  • How did you learn about the training?

I met Sayan during a Bangpyper meet up and I saw him wearing a dgplug t-shirt, I went home and googled about it, this is how I got to know about it. Apart from that I was following Vignesh and Bhibhas on twitter and this is how I got to know that training was going to start and I enrolled in.

  • How this training changed (if at all) your life?

It has changed the way I think about technology, I made a lot of friends, this training has given me mentors which is required for personal and technical growth.Now I don’t see technologies as challenge I see them as a tool to solve problem. Dgplug has given me the confidence to be proud of who I am. Being a Geek is generally not accepted but Dgplug is a place where I am accepted for who I am. It has changed my life by 360 degrees. I am really happy that I came to know about it.

  • Have you contributed to any upstream project(s)? If yes, then details

I contribute to pagure, recently I got into the author list of pagure. I contribute to a lot of other fedora-infra projects like bodhi, nuancier etc. i have also been a contributor at Mozilla. Fedora autocloud is one of the project that I have been writing test cases for.

  • Any tips for the next batch of participants.

When going gets tough, tough gets going. Never give up, attend the training and follow what your mentor is telling you. Have faith , faith in yourself and faith in the mentor. Have a mindset of giving back to the community. Be passionate about the things you do, come with an open mind and ask as many question as you want to.Be on the channel for as long as possible. May the source be with you, Luke.

Feel free to add anything else you want to talk about.

Learn and Teach, this is what you should be taking back with you, spread the same spirit in your place, hope you have a good year

Comments

dgplug summer training student Sanyam Khurana
Posted: 2016-02-29T15:44:14+05:30

This is the first of a series of blog posts where I asked few questions to the past students of dgplug summer training in our mailing list. I am pasting their responses without any modification. I will just mark my questions in a different formating.

Image

  • Your name (blog/twitter) and what do you do

My name is Sanyam Khurana (CuriousLearner). I’m a final year student pursuing B.Tech CSE from GGSIPU, Delhi. Twitter handle: @ErSanyamKhurana Blog: ersanyamkhurana.wordpress.com (would be shifted soon to a static blog on sanyamkhurana.com/blog)

  • How did you learn about the training?

I learned about the training from Sudip, who posted a comment in one of the Python groups on Facebook, and that’s probably the best thing I’ve ever done with Facebook.

  • How this training changed (if at all) your life?

It had spinned my life 360 degrees. I made new friends, learned awesome things from communicating over mailing list/IRC to making web apps in Flask. I actually realized how few lines of code could cause a huge impact on lives of people; making it a lot better. It turned me to an Open source contributor, and trust me; when you really contribute that few lines of code in any FOSS project, that awesome feeling cannot be expressed in words!

  • Have you contributed to any upstream project(s)? If yes, then details.

I’ve been contributing to Mozilla. Here is my Mozillian’s profile: https://mozillians.org/en-US/u/CuriousLearner/. I recently got my name is Mozilla about:credits. Also I’ve been contributing to various repositories of local open source groups such as Mozilla Delhi (Mozpacers) and PyDelhi (Python Delhi Users Group).

  • Any tips for the next batch of participants.

My college timings often clashed with training timings; so, mostly I reached late, and used to read the logs and carry on stuff. Now I think, if I’ve probably left the last lecture in college and carried on this training, it would be much more beneficial. But yes, you should definitely try to be there on IRC at the training time, I’m sure it would be a lot more beneficial for you. DGPLUG would serve as a ladder if you ever wanted to contributed to FOSS. Make sure you complete each home task and once you learn, you also teach others whatever you know :)

PFA my recent photo with this mail.

Thanks & Regards,

Sanyam Khurana

www.SanyamKhurana.com Github: CuriousLearner

Comments

Contents © 2004-2015 Kushal Das - Powered by Shonku