Found the reason why distro_const would not find the packages.
This may be interesting for anyone using distro_const.
I use two pkg repos, a main one with few specific packages of distro I am 
building (e.g. storage components) and one with standard xstreamos base release.
The distro_const xml is configurde with main repo on first, and addl repo on 
second.
Looks like a library in osol_install uses a wrong option on "pkg 
set-publisher", causing the second to overcome the first, removing all first 
discovered packages, so the additional becomes the one and only repo used.
Look @ /usr/lib/python2.6/vendor-packages/osol_install/transfer_mod.py and 
search for set-publisher, you will find one call with "-O", that is not even a 
mentioned option for pkg on the manual (but probably accepted secretly!).
Just changed "-O" with "-g" and everything works like a charm.
Gabriele
----------------------------------------------------------------------------------------
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
discuss@lists.illumos.org
Cc:
Alexander Pyhalov
Data:
9 maggio 2016 18.36.16 CEST
Oggetto:
Re: [discuss] pkg list not showing some packages
Hi, still trying to guess this stupid problem, and now I have more clear infos.
I have two small userlands for our commercial packages, each containing its own 
i386/repo.
So I created both i386/repo from scratch, empty, with pkgrepo create.
Both userslands have a small component to install the release version file.
I did a gmake publish on both and got it installed each in its i386/repo
Still, one does not list anything with pkg list -g path, the other lists the 
new and only published package correctly.
I also tried to duplicate the component on the other userland and publish it 
there, still it does not appear, so it must be something in the p5m file, I 
can't see any other reason.
Here are the two published manifests:
== appears only with pkg list -af -g path ===
set name=pkg.fmri 
value=pkg:/system/install/xstream/version/storage@5.11,5.11-1.154.1.0.0
set name=pkg.summary value="XStream Storage install version file"
set name=pkg.description value="XStream Storage install version file"
set name=info.classification 
value=org.opensolaris.category.2008:System/Libraries
set name=variant.arch value=i386
link path=etc/xstream-install-version target=xstream-install-version.storage 
mediator=xstream mediator-version=4
file sonicle/xstream-install-version.storage 
path=etc/xstream-install-version.storage owner=root group=bin mode=0444
license license license=Commercial
== appears with a normal pkg list -g path ===
set name=pkg.fmri
value=pkg:/system/install/xstream/version/server@5.11,5.11-1.154.1.0.0
set name=pkg.summary value="XStream Server install version file"
set name=pkg.description value="XStream Server install version file"
set name=info.classification
value=org.opensolaris.category.2008:System/Libraries
set name=variant.arch value=i386
link path=etc/xstream-install-version target=xstream-install-version.server
mediator=xstream mediator-version=3
file sonicle/xstream-install-version.server
path=etc/xstream-install-version.server owner=root group=bin mode=0444
license license license=Commercial
...any idea?...
Gabriele
----------------------------------------------------------------------------------------
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
Da:
Gabriele Bulfon
A:
discuss@lists.illumos.org
Cc:
Alexander Pyhalov
Data:
5 maggio 2016 17.07.06 CEST
Oggetto:
Re: [discuss] pkg list not showing some packages
Here you go, output from pkgrepo list and pkg list, then the same packages as 
they are installed on the system from cd install:
sonicle@xstreamdev:~$ pkgrepo list -s 
/data/sources/sonicle/xstream-storage-gate/i386/repoPUBLISHER   NAME            
                              O VERSIONsonicle.com sonicle/xstream/storage      
                   5.11-1.154.1.0.0:20160504T122349Zsonicle.com 
system/install/xstream/version/storage          
5.11-1.154.1.0.0:20160504T120801Zsonicle@xstreamdev:~$ pkg list -g 
/data/sources/sonicle/xstream-storage-gate/i386/repono packages installed or 
available for installationsonicle@xstreamdev:~$ pkg list | grep xstream | grep 
storagesonicle/xstream/storage                           5.11-1.154.0.0.0       
    i--system/install/xstream/version/storage            5.11-1.154.0.0.0       
    i--
----------------------------------------------------------------------------------------
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
----------------------------------------------------------------------------------
Da: Alexander Pyhalov
A: discuss@lists.illumos.org
Cc: Gabriele Bulfon
Data: 5 maggio 2016 11.43.41 CEST
Oggetto: Re: [discuss] pkg list not showing some packages
On 05/04/2016 21:58, Gabriele Bulfon wrote:
Let's see if this helps to find a reason.
Here's some output from pkg history on that repo, during test install (-nv) of 
that package:
Operation: install
Outcome: Failed
Reason: Bad Request
Client: pkg
Version: e0fb847
User: sonicle (501)
Boot Env.: xstreamos-1
Boot Env. UUID: 659e8788-4c84-6455-9830-bc1b0421e20a
New Boot Env.: None
New Boot Env. UUID: (None)
Snapshot: (None)
Start Time: 2016-05-04T16:19:20
End Time: 2016-05-04T16:19:21
Total Time: 0:00:01
Command: /usr/bin/pkg install -nv 
pkg:/sonicle/xstream/storage@5.11,5.11-1.154.1.0.0
Release Notes: No
Start State:
None
End State:
None
Errors:
Traceback (most recent call last):
File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 1451, in 
__plan_op
self._img.make_install_plan(**kwargs)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 4320, in 
make_install_plan
reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 4275, in 
__make_plan_common
ip.plan_install(**kwargs)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 730, in 
plan_install
reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 688, in 
__plan_install
reject_list=reject_list)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 593, in 
__plan_install_solver
reject_set=reject_set)
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 5381, 
in __match_user_fmris
rejected_pats=exclpats)
PlanCreationException: The following pattern(s) did not match any allowable 
packages.  Try
using a different matching pattern, or refreshing publisher information:
pkg:/sonicle/xstream/storage@5.11,5.11-1.154.1.0.0
Essentially this says "we can't do this..."  Do you see the package in
the repository with pkgrepo list?
--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department
illumos-discuss
|
Archives
|
Modify
Your Subscription



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to