JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for MOONSHOT-COMMUNITY Archives


MOONSHOT-COMMUNITY Archives

MOONSHOT-COMMUNITY Archives


MOONSHOT-COMMUNITY@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

MOONSHOT-COMMUNITY Home

MOONSHOT-COMMUNITY Home

MOONSHOT-COMMUNITY  April 2013

MOONSHOT-COMMUNITY April 2013

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Potentially revisiting the /opt/moonshot decision for Centos packages

From:

Stuart Rankin <[log in to unmask]>

Reply-To:

Stuart Rankin <[log in to unmask]>

Date:

Mon, 29 Apr 2013 21:08:17 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (122 lines)

Hi Sam,

On 29/04/13 19:20, Sam Hartman wrote:
>>>>>> "Stuart" == Stuart Rankin <[log in to unmask]> writes:
>
> Hi.
> I'd like to better understand your needs in this area so I can evaluate
> what options we have and see if we can balance those needs.
>
> One thing to consider here is that what we do here affects only the
> binary packages we generate.
> The choice between /usr as the prefix and /opt/moonshot is 4 macros that
> get defined in the .rpmmacros of the build environment.
> So, it's very likely that someone can take our SRPMS and rebuild either
> for /opt/moonshot or /usr regardless of what we decide.

That's useful to know.

>
>
>      Stuart> I sense I may be out on my own here but I would rather that
>      Stuart> Moonshot-specific replacement packages and additional
>      Stuart> non-distribution packages were untangled as far as possible
>      Stuart> from the system directories, ideally in a nice separate
>      Stuart> directory (like /opt/moonshot) where they would be liable to
>      Stuart> create fewer dependency resolution problems during system
>      Stuart> package updates.
>
> Hi.
> I'd like to better understand this concern.
>
> How will keeping things in separate directories make dependency
> resolution easier?

Because then they could belong to new packages which would not need to carry the dependencies of the 
original distribution packages they replaced. If alternatively you were replacing distribution 
packages, e.g. if package P is replaced by P.moonshot, you might one day get the following situation:

distribution package A depends on P, and therefore now on P.moonshot

A is discovered to have a security flaw and we have to upgrade it to A.new ASAP

unfortunately Centos made A.new depend on P.new

dependency resolution requires P.moonshot to be upgraded to P.new, which (unless I'm lucky) either 
breaks moonshot or causes additional dependency errors from other moonshot packages; either way my 
options are to (i) break moonshot (ii) not install the security update (iii) do something wholly 
unnatural to try and have the update and save moonshot.

Centos/SL/RH of course can test that dependencies remain consistent when issuing an update, what 
concerns me is that it's probably not possible to guarantee that moonshot rpms will continue to have 
this property going forward, if they have it initially, but this is much more likely if there are as 
few dependencies involving system packages as possible, which in turn means leaving the system 
packages in place and putting moonshot components somewhere separate.

I accept that some sites may not need to be as aggressive when it comes to security errata as ours.

>      Stuart> As I understand it, some packages such as openssh will have
>      Stuart> to be separated in any case, so having to install both
>      Stuart> parallel versions and replacement versions (all unsupported
>      Stuart> by the distribution maintainers) strikes me as a potential
>      Stuart> headache from the maintenance point of view, and a system
>      Stuart> with moonshot installed has to be maintainable. Packages
>      Stuart> which don't conflict with anything in the distribution might
>      Stuart> go under /usr but it still seems neater to keep everything
>      Stuart> installed due to moonshot under /opt/moonshot.
>
> What benefits contribute to this neatness?

I'm not going to push this one, the benefit is mainly aesthetic. Of course you are assuming that in 
the future one won't need to install some other package that conflicts with something moonshot put 
under /usr.

>
>      Stuart> Obviously there need to be connections into the system
>      Stuart> software (and I will come clean here that I haven't had the
>      Stuart> time to try installing moonshot yet so my understanding of
>      Stuart> how everything works is still poor) but can this not be done
>      Stuart> with symbolic links and config file edits. In particular, is
>      Stuart> there no solution like that (I honestly don't know what it
>      Stuart> would be) for the dbus issue below?
>
>      Stuart> Also would changing LD_LIBRARY_PATH (e.g. via environment
>      Stuart> modules) to persuade dynamically linked applications to use
>      Stuart> libraries under /opt/moonshot not work?
>
>
> It would.  And we can certainly write instructions for people in how to
> do that.  I'm not really comfortable producing a package with
> /opt/moonshot as its prefix that touches files outside of /opt/moonshot.
> So, this sort of solution means that once you install the moonshot
> packages you need to a fair bit of work to patch it into your system.

Fair enough, and I have no feel at the moment for how much work it would actually be.

>
> Also, my assumption has been that one of the primary values of putting
> things into /opt/moonshot is to isolate them.  When you modify
> LD_LIBRARY_PATH and start creating symlinks, then I think you lose a lot
> of isolation.  Thus my interest in understanding the value you see in
> the separation to make sure that we don't produce a solution with all
> the disadvantages of separation and few advantages.

No symlinks or modifications outside /opt/moonshot would certainly be even better, but that doesn't 
seem realistic. Tricks with symlinks and LD_LIBRARY_PATH are pretty standard and seem preferable to 
not patching or fudging the rpm db. I'm happy to try things this way and provide a recipe (probably 
on SL6 as that's what we have).

Best regards

Stuart


-- 
Dr. Stuart Rankin

Senior System Administrator
High Performance Computing Service
University of Cambridge
Email: [log in to unmask]
Tel: (+)44 1223 763517

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2022
December 2021
October 2021
September 2021
August 2021
June 2021
April 2021
February 2021
January 2021
December 2020
November 2020
October 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
January 2020
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
June 2018
April 2018
November 2017
October 2017
September 2017
August 2017
July 2017
May 2017
April 2017
March 2017
February 2017
November 2016
October 2016
August 2016
July 2016
June 2016
May 2016
March 2016
February 2016
January 2016
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager