[openstack-dev] [TripleO] Installing from packages in tripleo-image-elements
clint at fewbar.com
Tue Jan 7 22:18:26 UTC 2014
Excerpts from James Slagle's message of 2014-01-07 12:53:57 -0800:
> On Tue, Jan 7, 2014 at 3:23 PM, Clint Byrum <clint at fewbar.com> wrote:
> > What would be the benefit of using packages?
> We're building images on top of different distributions of Linux.
> Those distributions themselves offer packaged and supported OpenStack
> components. So, one benefit is that you'd be using what's "blessed"
> by your distro if you chose to. I think that's a farily common way
> people are going to be used to installing components. The OpenStack
> Installation guide says to install from packages, fwiw.
Indeed, this is how many people deploy traditional applications.
However, what we're doing is intended to be a real, consumable deployment
of OpenStack. Specifically one that is in the gate and scales out to
any reasonable production load necessary.
One problem with scaling out to many nodes is that the traditional
application deployment patterns introduce too much entropy. This is really
hard to patch out later. We are designing the software distribution system
to avoid those problems from the beginning. Packages do the opposite,
and encourage entropy by promising to try and update software with
minimal invasion, thus enabling users to introduce one-off machines.
> > We've specifically avoided packages because they complect configuration
> > and system state management with software delivery. The recent friction
> > we've seen with MySQL is an example where the packages are not actually
> > helping us, they're hurting us because they encode too much configuration
> > instead of just delivering binaries.
> We're trying to do something fairly specific with the read only /
> partition. You're right, most packages aren't going to handle that
> well. So, yes you have a point from that perspective.
Readonly / is a really important feature of the deployment we're aiming
at. Doing it with packages is quite possible. My point in asking why
bother with packages is that when you have an entire image that has been
verified and is known to work, what advantage does having a package for
everything actually bring.
> However, there are many examples of when packages help you.
> Dependency resolution, version compatibility, methods of verification,
> knowing what's installed, etc. I don't think that's really an
> argument or discussion worth having, because you either want to use
> packages or you want to build it all from source. There are
> advantages/disadvantages to both methods, and what I'm proposing is
> that we support both methods, and not require everyone to only be able
> to install from source.
"Install from source" is probably not the right way to put this. We're
installing the virtualenvs from tarballs downloaded from pypi. We're
also installing 99.9% python, so we're not really going "from source",
we're just going "from git".
But anyway, I see your point and will capitulate that it is less weird
for people and thus may make the pill a little easier to swallow. But if
I could have it my way, I'd suggest that the packages be built to mirror
the structure of the element end-products as much as possible so that
they can be used with minimal change to elements.
> > Perhaps those of us who have been involved a bit longer haven't done
> > a good job of communicating our reasons. I for one believe in the idea
> > that image based updates eliminate a lot of the entropy that comes along
> > with a package based updating system. For that reason alone I tend to
> > look at any packages that deliver configurable software as potentially
> > dangerous (note that I think they're wonderful for libraries, utilities,
> > and kernels. :)
> Using packages wouldn't prevent you from using the image based update
> mechanism. Anecdotally, I think image based updates could be a bit
> heavy handed for something like picking up a quick security or bug fix
> or the like. That would be a scenario where a package update could
> really be handy. Especially if someone else (e.g., your distro) is
> maintaining the package for you.
> For this proposal though, I was only talking about installation of the
> components at image build time.
The entire point of image based updates is that they are heavy handed.
The problem we're trying to solve is that you have a data center of (n)
machines and you don't want (n) unique sets of software, where each
machine might have some hot fixes and not others. At 1000 machines it
becomes critical. At 10000 machines, the entropy matrix starts to get
More information about the OpenStack-dev