On Tue, Mar 11, 2014 at 9:33 AM, James Slagle <jslagle@redhat.com> wrote:
There are 2 image upgrade paths being pursued by TripleO. In both cases, the end goal is to have your instances running with a read-only root partition and your stateful data you need preserved mounted on a separate partition.
The first upgrade path is updating your image id's in your heat template and then doing a "heat stack-update" on a deployed TripleO stack. Heat sees that you're requesting a new image, and triggers a Nova rebuild[1]. After the reboot, the ephemeral partition is preserved for your stateful data.
The second path is for upgrades where you don't want to have to reboot, or rebuild the whole instance to pick up a small change. You update the image id in the heat template (somewhere, probably not the same spot as for the case above). os-refresh-config, which actually runs every 5 minutes in the instance, sees the Heat metadata change. It then operates on that change, by pulling down the new image from glance, cracking it open, remounting root as rw, then rsyncing the changes to the root partition, remounting root as ro, etc.
For ostree, I believe you can host the ostree repositories via http? I'm probably reaching here, but I suppose it might be possible for Nova to have a rebuild implementation that used ostree, or even some type of glance backend or "image type" that used ostree.
and not really using TripleO at that point, since you wouldn't be using OpenStack services directly to do the upgrades.