RFE: Skip building images that have already been built

Bug #1694302 reported by David Moreau Simard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Wishlist
Martin André

Bug Description

kolla-build has a parameter 'skip_parents' that will effectively skip all parent layers, regardless if they have been built or not, and only build the specified image.

However, if the parent layers have not been built prior, the build for the specified image will fail because it is missing it's parent layers.

The behavior I'd like to achieve is to get kolla-build to skip containers (parent layers) *only* if they have already been built.
This is in the context of a use case where I specify a list of "end" images to build, ex:
- aodh-api
- aodh-evaluator:
- aodh-listener
- aodh-notifier

But I don't want kolla-build to try to rebuild binary-base/binary-openstack-base/binary-aodh-base for each of those builds.

This would end up being a parameter, something like "skip_existing" which would build the images if they have not been built yet but otherwise skip the build.

Revision history for this message
Surya Prakash Singh (confisurya) wrote :

Adding this importance to the wishlist, as this is not affecting any exiting functionality, it can be consider as a an enhancement.

Changed in kolla:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Martin André (mandre) wrote :

I'll give it a try next week.

Changed in kolla:
assignee: nobody → Martin André (mandre)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

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

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

Reviewed: https://review.openstack.org/479881
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=78bbd8fd0d54c8203ced7d81c32bdd421849ceee
Submitter: Jenkins
Branch: master

commit 78bbd8fd0d54c8203ced7d81c32bdd421849ceee
Author: Martin André <email address hidden>
Date: Mon Jul 3 18:02:35 2017 +0200

    Add new --skip-existing option to kolla-build

    This new option allows to skip images that are already present in the
    docker cache.

    Change-Id: I202c70864f8aa86abd882240beb7f6525963e625
    Closes-Bug: #1694302

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 5.0.0.0b3

This issue was fixed in the openstack/kolla 5.0.0.0b3 development milestone.

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.