[pkg-discuss] Unable to install .p5p package in global zones in Solaris 11

936 views
Skip to first unread message

Sudhir Harikant

unread,
Mar 1, 2012, 9:40:19 AM3/1/12
to pkg-d...@opensolaris.org
Hello All,

I have few zones configured on my Solaris 11 node which are up and running. Our product is provided in a .p5p archive package which i need to install in my global zone as well as the non-global zones. I dont want to use a network based repository for the installation.

When i try to install the package it gives me the below error

"pkg install: The proposed operation on this parent image can not be performed because
temporary origins were specified and this image has children. Please either
retry the operation again without specifying any temporary origins, or if
packages from additional origins are required, please configure those origins
persistently."

1. How to install a .p5p package without a network based repository ?
2. Is it possible to install packages from the global zone to non-global zones without having to log on to each of the zones ?

TIA,
Sudhir

_______________________________________________
pkg-discuss mailing list
pkg-d...@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Tim Foster

unread,
Mar 1, 2012, 6:40:49 PM3/1/12
to Sudhir Harikant, pkg-d...@opensolaris.org
On 03/ 2/12 03:40 AM, Sudhir Harikant wrote:
> I dont want to use a network based repository for the installation.

Why?

> "pkg install: The proposed operation on this parent image can not be performed because
> temporary origins were specified and this image has children. Please either
> retry the operation again without specifying any temporary origins, or if
> packages from additional origins are required, please configure those origins
> persistently."

> 1. How to install a .p5p package without a network based repository ?

Temporary origins are not supported with zones, as the error message
mentioned. Furthermore, p5p files are also not yet supported with zones.

If you convert the p5p file to a file-based repository first, then add
it as a persistent publisher to your system in the global zone eg.

$ pkgrepo create filerepo
$ pkgrecv -s file.p5p -d filerepo

# pkg set-publisher -p ./filerepo

it will work. The file repository will automatically be made available
to all non-global zones.

> 2. Is it possible to install packages from the global zone to
> non-global zones without having to log on to each of the zones ?

Currently, no. It is possible to ensure that the version of a package
in the global zone is the same as the one in each non-global zone
however, which is probably worth doing

See
http://hub.opensolaris.org/bin/download/Project+pkg/files/ipsdevguide.pdf

cheers,
tim

Brock Pytlik

unread,
Mar 1, 2012, 6:38:55 PM3/1/12
to pkg-d...@opensolaris.org
On 03/01/12 06:40, Sudhir Harikant wrote:
> Hello All,
>
> I have few zones configured on my Solaris 11 node which are up and running. Our product is provided in a .p5p archive package which i need to install in my global zone as well as the non-global zones. I dont want to use a network based repository for the installation.
Unfortunately, zones and archive packages, and zones and temporary
origins don't currently work together. The current workaround is to
unpack the archive package and set it up as a permanently configured
file repo in the global zone instead. There are bugs filed on both these
issues.

>
> When i try to install the package it gives me the below error
>
> "pkg install: The proposed operation on this parent image can not be performed because
> temporary origins were specified and this image has children. Please either
> retry the operation again without specifying any temporary origins, or if
> packages from additional origins are required, please configure those origins
> persistently."
>
> 1. How to install a .p5p package without a network based repository ?
> 2. Is it possible to install packages from the global zone to non-global zones without having to log on to each of the zones ?

Not at this time as far as I know. Depending on how desperate you are to
have this, and as long as you want to install the same packages in all
the zones, I think there's a way you could do things so that you only
had to log into each zone once to set things up. If you're interested
let me know and I'll sketch out what I have in mind.

Brock

David Sechrest

unread,
Mar 1, 2012, 7:10:16 PM3/1/12
to Tim Foster, pkg-d...@opensolaris.org, Sudhir Harikant

On Mar 1, 2012, at 3:40 PM, Tim Foster wrote:

> On 03/ 2/12 03:40 AM, Sudhir Harikant wrote:
> > I dont want to use a network based repository for the installation.
>
> Why?
>
>> "pkg install: The proposed operation on this parent image can not be performed because
>> temporary origins were specified and this image has children. Please either
>> retry the operation again without specifying any temporary origins, or if
>> packages from additional origins are required, please configure those origins
>> persistently."
>
>> 1. How to install a .p5p package without a network based repository ?
>
> Temporary origins are not supported with zones, as the error message mentioned. Furthermore, p5p files are also not yet supported with zones.

Do you have a bug number for this? Any idea when this is targeted to be fixed?

thanks
Dave


>
> If you convert the p5p file to a file-based repository first, then add it as a persistent publisher to your system in the global zone eg.
>
> $ pkgrepo create filerepo
> $ pkgrecv -s file.p5p -d filerepo
>
> # pkg set-publisher -p ./filerepo
>
> it will work. The file repository will automatically be made available to all non-global zones.
>
>> 2. Is it possible to install packages from the global zone to
>> non-global zones without having to log on to each of the zones ?
>
> Currently, no. It is possible to ensure that the version of a package in the global zone is the same as the one in each non-global zone however, which is probably worth doing
>
> See
> http://hub.opensolaris.org/bin/download/Project+pkg/files/ipsdevguide.pdf
>
> cheers,
> tim
> _______________________________________________
> pkg-discuss mailing list
> pkg-d...@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

---
David Sechrest Phone: (408) 276-5800 x15800
Systems Management Email: david.s...@oracle.com
Oracle Corporation

Tim Foster

unread,
Mar 1, 2012, 7:18:23 PM3/1/12
to David Sechrest, pkg-d...@opensolaris.org, Sudhir Harikant
On 03/ 2/12 01:10 PM, David Sechrest wrote:
> On Mar 1, 2012, at 3:40 PM, Tim Foster wrote:
> Furthermore, p5p files are also not yet supported with zones.

> Do you have a bug number for this? Any idea when this is targeted to be fixed?

Yep, it's 7140764 pkg.sysrepo should support p5p files

Much of the work on the IPS side is done, I'm mostly waiting on
paperwork at this stage.

Shawn Walker

unread,
Mar 1, 2012, 7:24:14 PM3/1/12
to David Sechrest, pkg-d...@opensolaris.org, Sudhir Harikant
On 03/01/12 16:10, David Sechrest wrote:
>
> On Mar 1, 2012, at 3:40 PM, Tim Foster wrote:
>
>> On 03/ 2/12 03:40 AM, Sudhir Harikant wrote:
>>> I dont want to use a network based repository for the installation.
>>
>> Why?
>>
>>> "pkg install: The proposed operation on this parent image can not be performed because
>>> temporary origins were specified and this image has children. Please either
>>> retry the operation again without specifying any temporary origins, or if
>>> packages from additional origins are required, please configure those origins
>>> persistently."
>>
>>> 1. How to install a .p5p package without a network based repository ?
>>
>> Temporary origins are not supported with zones, as the error message mentioned. Furthermore, p5p files are also not yet supported with zones.
>
> Do you have a bug number for this? Any idea when this is targeted to be fixed?

There is currently no set target for supporting temporary origins when
zones are present. That was a known limitation going in and that is why
the client exits gracefully with a specific message.

However, as Tim pointed out, p5p support is in progress already, so
you'll be able to configure those as a persistent source.

-Shawn

David Sechrest

unread,
Mar 1, 2012, 7:24:52 PM3/1/12
to Shawn Walker, pkg-d...@opensolaris.org, Sudhir Harikant

On Mar 1, 2012, at 4:24 PM, Shawn Walker wrote:

> On 03/01/12 16:10, David Sechrest wrote:
>>
>> On Mar 1, 2012, at 3:40 PM, Tim Foster wrote:
>>
>>> On 03/ 2/12 03:40 AM, Sudhir Harikant wrote:
>>>> I dont want to use a network based repository for the installation.
>>>
>>> Why?
>>>
>>>> "pkg install: The proposed operation on this parent image can not be performed because
>>>> temporary origins were specified and this image has children. Please either
>>>> retry the operation again without specifying any temporary origins, or if
>>>> packages from additional origins are required, please configure those origins
>>>> persistently."
>>>
>>>> 1. How to install a .p5p package without a network based repository ?
>>>
>>> Temporary origins are not supported with zones, as the error message mentioned. Furthermore, p5p files are also not yet supported with zones.
>>
>> Do you have a bug number for this? Any idea when this is targeted to be fixed?
>
> There is currently no set target for supporting temporary origins when zones are present.

What if you don't consider your p5ps to be temporary? :-)
(I'm not really expecting an answer to this!)

thanks for the info
Dave


> That was a known limitation going in and that is why the client exits gracefully with a specific message.
>
> However, as Tim pointed out, p5p support is in progress already, so you'll be able to configure those as a persistent source.
>
> -Shawn

---


David Sechrest Phone: (408) 276-5800 x15800
Systems Management Email: david.s...@oracle.com
Oracle Corporation

Sudhir Harikant

unread,
Mar 2, 2012, 4:35:46 AM3/2/12
to Tim Foster, pkg-d...@opensolaris.org
Thanks Tim for your quick response.

1. This is the first time our product is getting shipped for Solaris 11 support and we wanted to ship our product with our existing installer so that uses DVD location for source. We are already talking internally on how we can use the network based repository in our coming releases.

2. The steps that you have provided to create a file based repository works fine, but I still cannot install packages in the non-global as the publisher is not seen in the non-global zone.
The repository and proxy service is running in the global zone.

Non-Global zone
root@ldom5:~# pkg publisher
PUBLISHER TYPE STATUS URI
solaris (syspub) origin online proxy://http://pkg.oracle.com/solaris/release/

Global Zone
root@sfqasol67:~# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online http://pkg.oracle.com/solaris/release/
Symantec origin online file:///tmp/tmprepo/
root@sfqasol67:~# svcs -a | grep repo
online 14:58:42 svc:/application/pkg/system-repository:default
root@sfqasol67:~# svcs -a | grep proxy
online 14:56:13 svc:/application/pkg/zones-proxyd:default

Thanks & Regards,
Sudhir

Reply all
Reply to author
Forward
0 new messages