On Tue 08 Mar 2011 at 03:00PM, Brock Pytlik wrote:
> On 03/ 8/11 12:34 PM, Mike Gerdts wrote:
> >Is there any ongoing work that will do any of the following during zone
> >attach?
> >
> > - Change origins of publishers so that they align with those found in
> > the global zone
> > - Change origins based on some other mapping mechanism
> > - Delete, disable, or make publishers non-sticky
> >
> >I ask because in doing some work with p2v, I went to attach an archive
> >of a Solaris 11 Express global zone. The "local" publisher in that
> >archive was set to a host in .sun.com that no longer exists. The
> >"local" publisher in the global zone points to the .oracle.com
> >replacement for the missing .sun.com host.
> >
> >If this problem just goes away with system repo, linked images, or other
> >related work I won't spend a lot of time addressing it. On the other
> >hand, if it is something that those efforts won't take care of, I'll
> >probably add this to my {p,v}2v todo list.
> >
> The system repo work introduces a distinction between user
> configured publishers and publishers which the system provided for
> the zone.
> In the specific case of p2v, the following will happen. On attach,
> the (now) zone, will be told to use the system repo to get its
> publisher configuration. The publishers it finds there will be (as a
> group) higher ranked than the publishers previously configured for
> the image. The system publishers will also be in the same ranked
> order as the global zone is. The user configured publishers (ie,
> those that were configured in the physical image prior to the p2v)
> will remain, but will be ranked behind all system publishers. If any
> publisher is in both the system publishers and the user publishers,
> the origins will be merged and the publisher will be at the system
> publisher rank.
>
> So, in your example, zone would end up with a "local" publisher with
> two origins, one .sun.com and one .oracle.com.
>
> The sysrepo will not disable publishers except in the case where a
> publisher was previous a system publisher has disappeared from the
> GZ, but packages were installed from that publisher.
>
> The sysrepo will delete system publishers when they're removed from
> the GZ, unless packages are installed from them.
>
> The sysrepo will make enforce that publishers match on stickiness
> between the GZ and NGZ.
>
> The sysrepo will not change or remap origins of any user publishers
> as I can't imagine how this could be done safely and regularly
> without user intervention. The sysrepo will change, remove, and add
> origins to any system publishers in order to make them match the
> GZ's configuration.
>
The zoneadm p2v and v2v process is a non-interactive process and we have
no way to allow the sysadmin to "fix" anything with the image between
extracting it from an archive and the actual attach process. If the
attach process fails, it deletes everything that was extracted and tells
the user that the install/attach failed. Thus, the options for getting
past this are limited and non-trivial.
Given the situation that I ran into, I'm imagining that customers will
come up with other scenarious where they need to alter the
publisher/origin config to allow the attach to succeed. Initially I was
thinking that being able to provide some sort of a mapping file that
would be used by zoneadm attach would be helpful. The more I think
about it, I think that a more general solution may be to add an
install/attach option that says "extract the archive in the right place,
mount the active BE, but leave it as detached".
> I think that covers everything asked about, but please let me know
> what I missed or needs clarification.
Very helpful, thanks.
>
> Thanks,
> Brock
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
--
Mike Gerdts
Solaris Core OS / Zones
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss