Sahara image builder should execute 'yum update' during the build image

Bug #1396214 reported by Timur Nurlygayanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Nikolay Starodubtsev

Bug Description

Now we have issue with Sahara image builder: when we build centos image, we don't execute yum update && yum upgrade, in the result we have no the lates security fixes in all centos images for Sahara.

Need to add these commands to image builder and update system packages when we will build new image.

Revision history for this message
Michael McCune (mimccune) wrote :

i can confirm that images are not being updated on creation. here are my steps to reproduce:

1. create a centos image with sahara-image-elements
2. start instance
3. login and check the openssl package version

when i did this i saw that the openssl version was behind the official centos repository version. i'm not sure if adding the yum update to the image creation will help with the ultimate problem of an image being out of date, but it will get us closer.

Changed in sahara:
status: New → Confirmed
Changed in sahara:
importance: Undecided → High
assignee: nobody → Nikolay Starodubtsev (starodubcevna)
milestone: none → kilo-3
Revision history for this message
Nikolay Starodubtsev (starodubcevna) wrote :

do we have the same problems with other OS?

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Looks like we have no this issue for Ubuntu images, only for CentOS.

Revision history for this message
Nikolay Starodubtsev (starodubcevna) wrote :

okay, we don't have this problem with Ubuntu images, because Ubuntu images are generated everyday.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara-image-elements (master)

Fix proposed to branch: master
Review: https://review.openstack.org/155347

Changed in sahara:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara-image-elements (master)

Reviewed: https://review.openstack.org/155347
Committed: https://git.openstack.org/cgit/openstack/sahara-image-elements/commit/?id=bd2dcec868eb48f5ab35eb1d1ca030648a18622a
Submitter: Jenkins
Branch: master

commit bd2dcec868eb48f5ab35eb1d1ca030648a18622a
Author: Nikolay Starodubtsev <email address hidden>
Date: Thu Feb 12 18:09:16 2015 +0300

    Add update script for yum based images

    Our CentOS and Fedora images was outdated unlike Ubuntu one.
    Now this issue is fixed.

    Change-Id: I2b84d3e72870e84c48737e76d6104cebc7cf21db
    Closes-Bug: #1396214

Changed in sahara:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.