Week Off From Class

Even though we did not have class last week due to the holiday, I still did a lot of reading up on the Eucalyptus software and the eutester code. I am very interested in looking into the testing package and hopefully contributing to it throughout the semester. I installed euca2ools and I think I learned how to run the software locally, though I am not sure how to use it yet.

Additionally, I got more comfortable with downloading the eutester repo and building/installing that code locally. I think that if I can learn to combine these tools and apply them to our server, we can begin testing and developing. I plan to spend this week and next week looking into how this works and hopefully I’ll be able to get some test code running by the end of the week.

From the blog trevorhodde by Trevor and used with permission of the author. All other rights reserved by the author.

Week of 20 Feb 2012

We had Monday off, which meant no CS401 this week. I spent my free time going over the Eucalyptus wiki. In particular, I studied the Eucalyptus Administrator guide at http://open.eucalyptus.com/wiki/EucalyptusAdministratorGuide_v2.0

This covered much of the terminology, as well as how to install Eucalyptus fro source, and from binary packages. The latter option looks much easier. There are packages for all the major Linux/Unix-base operating systems.

Setting up all the prerequisites to make it run looks like a challenge, as Dave pointed out in class. There are Java and Perl dependencies, as well as specific network configurations that have to be followed. After that, the components must be registered, and the hypervisor must be configured.

When all this is done, it is recommended that you run some test VM’s before loading your own images.

This has been a fantastic education in cloud computing, as well as virtual machines. I set up Virtual box and loaded an Ubuntu ISO to get the feel for VM image files. I am looking forward to seeing the first VM running on the cluster

I look forward to seeing a

From the blog danspc.net Blog » wsucs by danspc.net Blog » wsucs and used with permission of the author. All other rights reserved by the author.

Week 4 and 5 Infrastructure Continued.

These last two weeks reading the Eucalyptus documentation has been my primary focus. Also I have been picking the brains of various IRC users in the Eucalyptus channel. Thanks to their help we chose the right distro of CentOS which is 6.1 instead of 6.2. However, had we not learned about IRC in class that same day I would not have known to have asked that question. The reason we don’t use 6.2 is that there were some Eucalyptus developers present in IRC warned me and saved me some time just use 6.1 due to the bugs being experienced with CentOS 6.2.

 I spend time working on the servers twice a week for about 3-4 hours prepping the systems for the cluster build. Reading through the documentation for Eucalyptus I wanted to work on the cluster without skewing the progress that Dave has been making. To stay out of his way and to move the project forward I have been taking care of the little things to prepare the servers for the Eucalyptus software.

For example, the documentation includes a step to sync the time on all NC’s, CC’s, and CLC’s before a successful install can be completed. Therefore, I installed NTP if not previously on the OS and synced it for our timezone and to the same server for each computer. Now all the computers in our cluster have identical times. NTP is the acronym for Network Time Protocol.

This picture is to show how simple a task this is to do once…and then remember to use the same settings on all 8 machines.

From the blog Mike's Blog. [ CS 401 ] by Michael Iudiciani and used with permission of the author. All other rights reserved by the author.

Getting Euca2ools

While we wait for the Eucalyptus cluster to get up and running, I started to get the euca2ools package installed and working on my laptop. At first I was going to try and get the package installed on my Mac, it turns out that it is possible to get euca2ools on Mac, but you have to play around with the dependencies and build scripts from what I found; but after doing some research, playing around with the source, and getting frustrated, I decided to just create a virtual machine running Ubuntu (since it was the only OS image I had at the time). Once got Ubuntu working, It was pretty straight forward to get euca2ools installed. The documentation was pretty straight forward.

From the blog nathandoe » WSU CS by nathandoe and used with permission of the author. All other rights reserved by the author.

Week 4

During the fourth meeting, professor Wurst began with a brief introduction on GIT, which is a core essential tool in OSS. He played a video that demonstrated how to install GIT to Linux/Unix system, and how to use it.  GIT was designed and developed by Linus Trovalds, it was for Linux Kernel development. Its directory is a full-fledge respiratory with complete history and full revision tracking capabilities, which is independent on network access, in other words central server.

In addition, we had an assignment, which covered the basics of GIT. The assignment included GIT installation basics, and its configurations. This worked quite well despite a few problems with configuration; worked after a few trials. I look forward on working with GIT, as it is mostly used in Open Source Software contribution.

From the blog Dnjoroge by Dnjoroge and used with permission of the author. All other rights reserved by the author.

Week 4: Git great tool for a developer

This week in class we did talked about Git, which it is a great tool in Free Open Source Software world. We did watched tutorial videos about what is Git, and how to work with the Git.  Git like most of the open source software’s is free. It is a distributed version control system, which it is designed to handle with speed and efficiency every kind of projects from small to very large scale. We did watch the videos that why it was so important to use a version control system, and why it is better to learn and use the Git as a distributed version control system.

Git is build to work on Linux basically but it can run also on Mac OS X, Windows, and other operating systems. We can clone the source code of a project to our local hard driver with Git. With Git we can make much faster most operations, and it can allow us to work offline. Working offline it is very convenient thing about a developer when there is not any network access. Before going offline we can ‘fetch’ all the server data to do logs, merges, and comparison that are on server only. Another feature of the Git is that we can have the copy of everyone’s branches that are working with us in our Git repository also. This it means that we do not mess up our own material. Git is easy to learn, and some of the commands for the Git are:

  1. add              Add file contents to the index
  2. bisect          Find by binary search the change that introduced a bug
  3. branch         List, create, or delete branches
  4. checkout     Checkout a branch or paths to the working tree
  5. clone            Clone a repository into a new directory
  6. commit        Record changes to the repository
  7. diff                Show changes to between commits, commit and working tree, etc
  8. fetch             Download objects and refs from another repository
  9. grep              Print lines matching a pattern
  10. init                Create an empty git repository or reinitialize an existing one
  11. log                 Show commit logs
  12. merge           Join two or more development histories together
  13. mv                 Move or rename a file, a directory, or a symlink
  14. pull                Fetch from and more merge with another repository or a local branch
  15. push              Update remote refs along with associated objects
  16. rebase           Forward-port local commits to the updated upstream head
  17. reset              Reset current HEAD to the specified state
  18. rm                  Remove files from the working tree and from the index
  19. show              Show various types of objects
  20. status             Show the working tree status
  21. tag                  Create, list, delete or verify a tag object signed with GPG

In class we had to do an exercise about how to work on git. We did install the git to our Linux OS, and the other part of the exercise it was how to config the git and how to create RSA key-pair. After creating the RSA key-pair we had to connect with our groups branches. Many of the students had success on the connection but for me and some of other students had issues on connection. I have spent time with this issue but I didn’t find the solution for it. The good thing is that even though I didn’t connect with my class branch, I did have the opportunity to test Git differently. Git has an option of the “Git Quick Start” which it gives the chance to the new beginners to test it how works on cloning and how to create a patch. Also in “Git Quick Start” is another option about how to create and commit. I did try all this option and I did love the way how the git was working and how fast and easy it was. Because I did like it, I did use git in another class “Operating System” to clone the source code of the Linux kernel and the Linux utilities. I believe that I will use the Git more frequently in the future not because of the CS401 but because it will make my work more easy.

From the blog E. Lekdushi CS401 by elekdushi and used with permission of the author. All other rights reserved by the author.

Getting Started

Now that we have the cluster setup and ready for Eucalyptus installs, I have been anxious to help out and get this part of the project closer to completion. After seeing that there is now some documentation available for Eucalyptus installs, I quickly took a look at that to see what we were up against. It was a very long and detailed document which could mean two things: they did a good job at documenting it and we shouldn’t have too many problems, or it is a very complicated process and we’re going to hit some speed bumps(most likely the latter).

As far as helping out with the installs goes, I was able to SSH into the cluster controller(morpheus) and all of the nodes in the cluster and do some work. The firewalls were disabled on all of these machines in order to give us less of a headache with configuring ports for each of them individually. Selinux was also disabled because it isn’t compatible with Eucalyptus.

Overall, we are definitely making some progress with the installation of Eucalyptus on our cluster, I’m pretty excited to see where this goes and how our class works together to manage this project. After talking to Dave, I think the Eucalyptus installation will be more of a headache than we originally thought. It shouldn’t be anything that our class can’t handle though!

 

From the blog clacroix12 by clacroix12 and used with permission of the author. All other rights reserved by the author.

All about git

Last week’s class was, for reasons that were made quite obvious, all about git. Just from the examples and small bit of experience we got with this tool in class, I can already tell that it will be extremely valuable for the remainder of the course, and my career as a computer scientist. Version control is a new topic to myself and going over the functionality of git made it fairly straight forward. It will take a little bit to get used to the commands to use git efficiently, but that goes without saying.

I actually think it would be a good idea to have CS students learn about git much earlier in their college careers and put it to practice in group coding assignments. This would provide students with a work environment for a project similar to the real world, long before they actually get there.

From the blog clacroix12 by clacroix12 and used with permission of the author. All other rights reserved by the author.

Git

Finally, we get to dive into some good stuff.  The Git assignment seemed pretty easy, but a lot of the commands were typos.  I guess that’s what you get for copy and pasting 😉.  I thought it was going to take me quite a bit of time to learn the ins and outs of Git, but I picked it up pretty quick.  Trevor Hodde also pointed me in the direction of GitK, which is a GUI representation of Git.  It gives a visual representation of the last time you pulled from the Git repo.  I would strongly suggest GitK to anyone who is knew to Git.  My group seems to be having some difficulty grasping Git, as two of them have yet to complete the Git assignment, but I am holding out hope.

My group also didn’t follow the details of the assignment, the purpose was to invoke a conflict when multiple people edit the same file.  Instead, they created a new file – no conflicts were made.  I finished the assignment for completeness, but I hope they understand the purpose of Git and version control.  The assignment actually had you set the user.name to “Your Name” and then color.ui, which is legal.  You can have the name variable contain multiple things.  Then, when you when to change it using git config –global user.name ‘James Forkey’ it threw an error saying multiple instances of the variable existed.  The fix I found was to edit the .gitconfig file itself and make it so there was only one name variable with the appropriate context.

I don’t really have much Git experience prior to this, but I know how it works and it’s critical role in the real world.  I can’t wait to really utilize Git to its fullest potential.  I am interested to see if there will be one person committing, or if everyone will be committing, potentially overwriting working code with either broken code, or less efficient code.  I guess this is something we should discuss in the near future.  Dave and Mike have done a great job with the infrastructure portion.  We are almost ready to get our hands dirty.  Exciting!

From the blog jforkey » wsu-cs by jforkey and used with permission of the author. All other rights reserved by the author.

CS 401 – Week 4

This week’s (actually last week now, 2/13) class was all about Git. Git is a wonderful version control system that I already use frequently for my own personal projects. Git is a distributed version control system rather than a centralized version control system like Subversion or CVS. This means that everyone that works in a code repository has a full copy of the source code history. There is often a central storage place for the “official” source code but in theory there is no central hub that is relied upon by others.

What did we learn how to do? Well, Karl Wurst made us some test repositories on the CS git server. This included a few example files that we would edit. My team “cloned” the repository and made the changes, and when some of us tried to “push” the changes back… CONFLICT! Prof. Wurst had designed the exercise in such a way that we would see a merge conflict occur. When a merge conflict happens, git alters the conflicted files by putting in both your version and the conflicts marked by special characters. I simply deleted what was unnecessary to resolve the conflict, and “committed” the changes to my repository. Now I was able to push successfully.

In System Administrator land, Mike Iudiciani and I have been working to put together a small cluster on which we will install the Eucalyptus software. We’ve run into a lot of annoying problems with OS installation and the networking configuration. We were first plagued with bad install media, and then we had trouble getting the machines online. Once we finally had good install CDs, I talked to IT about how to configure our machines network interfaces and voila, we were online. Now begins the process of installing the Eucalyptus software.

From the blog David Thompson » WSU CS by davexunit and used with permission of the author. All other rights reserved by the author.