COI N1KV deployment: Control Kernel Version on compute nodes to a single one.

Registered by Kiran Chunduri

Today in COI deployment, we noticed that kernel version is different across compute nodes. It picks the latest when the compute node is brought up (as on toady 3.2.51). Instead of this, we need all compute nodes to come up with a single kernel version. Please let us know if this is possible. We will let you know on the kernel version to be locked shortly.

Blueprint information

Status:
Complete
Approver:
Mark T. Voelker
Priority:
Medium
Drafter:
Kiran Chunduri
Direction:
Approved
Assignee:
Mark T. Voelker
Definition:
Approved
Series goal:
Accepted for grizzly
Implementation:
Implemented
Milestone target:
milestone icon g.2
Started by
Mark T. Voelker
Completed by
Mark T. Voelker

Related branches

Sprints

Whiteboard

I would think that the right thing to do would not be to force a particular kernel version to be loaded, but rather to allow the user to specify the kernel package he wants installed (the default being linux-image-generic). This would be far more flexible. That itself should be relatively simple to accomplish; the only tricky bit would be ensuring that the selected kernel us not only installed but is also GRUB's default choice. I think we would either need to manipulate menu.lst from late_command or ensure that all other kernel packages are installed.

The refined procedure to be added to the late_command sequence looks something like this:

in-target /usr/bin/apt-get install -y $::load_kernel_pkg
export kernel_ver=`echo '$::load_kernel_pkg'|/bin/sed 's/linux-image-//'`

IFF there is a newer kernel present on the box than the one the user wants:

in-target /bin/sed -i \"/GRUB_DEFAULT=/ s/[0-9]/\"Previous Linux versions>Ubuntu, with Linux \$kernel_ver\"/\" /etc/default/grub ;

Else:

in-target /bin/sed -i \"/GRUB_DEFAULT=/ s/[0-9]/\"Ubuntu, with Linux \$kernel_ver\"/\" /etc/default/grub ;

in-target /usr/sbin/update-grub

Pull request issued: https://github.com/CiscoSystems/grizzly-manifests/pull/140

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.