Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solaris11: Problem with creating 2nd repository

29 views
Skip to first unread message

Heinz Müller

unread,
Oct 17, 2012, 5:45:35 PM10/17/12
to
Hello @all,

I have 3 servers:

- Repository server ( repo-server )
- Production server
- Development server

What I want to do is to create two repositories on the repo-server,
one for our production server and one for our development server.

I've tried to install a second repository like here
http://docs.oracle.com/cd/E23824_01/html/E21803/glrai.html#scrolltoc
but with no success.

The repo directories are

- /Repo/repo ( production )
- /DEVpool/repo ( development )

I executed the following commands to create the second(!) repository
(the first for production works like a charm):

215 pkgrepo set -s /DEVpool/repo publisher/prefix=dev

217 svccfg -s pkg/server add dev
218 svccfg -s pkg/server:dev addpg pkg application
219 svccfg -s pkg/server:dev setprop pkg/port=81
220 svccfg -s pkg/server:dev setprop pkg/inst_root=/DEVpool/repo
222 svccfg -s pkg/server:dev addpg general framework
223 svccfg -s pkg/server:dev addpropvalue general/complete astring: dev
224 svccfg -s pkg/server:dev addpropvalue general/enabled boolean: true

225 svcadm refresh application/pkg/server:dev

229 pkgrepo rebuild -s /DEVpool/repo
230 pkgrepo -s /DEVpool/repo refresh

240 pkg set-publisher -g http://192.168.2.100:81/ dev

root@repo-server:/# pkg publisher
PUBLISHER TYPE STATUS URI
solaris origin online
http://192.168.2.100/
dev origin online
http://192.168.2.100:81/

With firefox on my repo-server I can access http://192.168.2.100:81/ but
no packages are shown.
On http://192.168.2.100/ everything is ok.

Here is another output which indicates that in "dev" are no packages:

root@repo-server:~# pkgrepo info -s http://192.168.2.100:81
PUBLISHER PACKAGES STATUS UPDATED
solaris 4292 online 2012-10-17T10:16:06.384247Z
dev 0 online 2012-10-17T10:20:14.969619Z


I queried both repo directories with

root@repo-server:# pkg contents -s /REPO/repo/ > repo.log
root@repo-server:# pkg contents -s /DEVpool/repo/ > devpool.log
root@repo-server:# ls -l *.log
-rwxrwxrwx 1 root vboxsf 6501058 Oct 17 13:50 devpool.log
-rwxrwxrwx 1 root vboxsf 6501058 Oct 17 13:49 repo.log

and both log files contain the same packages/files.

A quick test to retreive package information from both repositories:

root@repo-server:# pkg list -g /REPO/repo amp
NAME (PUBLISHER) VERSION
IFO
amp 0.5.11-0.133
--r
group/feature/amp
0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0
--r
root@repo-server:# pkg list -g /DEVpool/repo/ amp
NAME (PUBLISHER) VERSION
IFO
amp 0.5.11-0.133
--r
group/feature/amp
0.5.11-0.175.0.0.0.2.2576 ---
web/amp 0.5.11-0.174.0.0.0.0.0
--r


So my question is why I can't see any packages when I access
http://192.168.2.100:81/ via Browser or "pkgrepo info"??

Any hints?

Regards,
Heinz

Andrew Gabriel

unread,
Oct 18, 2012, 4:57:12 PM10/18/12
to
In article <k5n8u4$onu$1...@newsreader4.netcologne.de>,
=?ISO-8859-15?Q?Heinz_M=FCller?= <onkel...@mscologne.de> writes:
>
> So my question is why I can't see any packages when I access
> http://192.168.2.100:81/ via Browser or "pkgrepo info"??

Try
svcadm refresh svc:pkg/server:dev
or
svcadm restart svc:pkg/server:dev

I have found I had to do this after updating a repo, before the
a package was visible. I don't know if this is expected behaviour.

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]

Heinz Müller

unread,
Oct 20, 2012, 4:00:16 AM10/20/12
to
Am 18.10.2012 22:57, schrieb Andrew Gabriel:
> In article <k5n8u4$onu$1...@newsreader4.netcologne.de>,
> =?ISO-8859-15?Q?Heinz_M=FCller?= <onkel...@mscologne.de> writes:
>>
>> So my question is why I can't see any packages when I access
>> http://192.168.2.100:81/ via Browser or "pkgrepo info"??
>
> Try
> svcadm refresh svc:pkg/server:dev
> or
> svcadm restart svc:pkg/server:dev
>
> I have found I had to do this after updating a repo, before the
> a package was visible. I don't know if this is expected behaviour.
>
No, that didn't help.

I think I've got a problem to understand the documentation.
I'll read the docu again an try it once more.

In the end when everything is put together I want so see that
( I changed the "solaris" repo name to "prod" ):

On jump-server1 both repos:

root@jump-server1:/# pkg publisher
PUBLISHER TYPE STATUS URI
prod origin online http://192.168.2.100/
dev origin online
http://192.168.2.100:81/

root@jump-server1:~# pkgrepo info -s http://192.168.2.100/
PUBLISHER PACKAGES STATUS UPDATED
prod 4292 online 2012-10-17T10:16:06.384247Z


root@jump-server1:~# pkgrepo info -s http://192.168.2.100:81
PUBLISHER PACKAGES STATUS UPDATED
dev 4292 online 2012-10-17T10:20:14.969619Z


On prod-server only the prod repo:

root@prod-server:/# pkg publisher
PUBLISHER TYPE STATUS URI
prod origin online http://192.168.2.100/

root@prod-server:~# pkgrepo info -s http://192.168.2.100/
PUBLISHER PACKAGES STATUS UPDATED
prod 4292 online 2012-10-17T10:16:06.384247Z


On dev-server only the dev repo:

root@dev-server:/# pkg publisher
PUBLISHER TYPE STATUS URI
dev origin online
http://192.168.2.100:81/

root@dev-server:~# pkgrepo info -s http://192.168.2.100:81/
PUBLISHER PACKAGES STATUS UPDATED
dev 4292 online 2012-10-17T10:20:14.969619Z

Regards,
Heinz

Heinz Müller

unread,
Oct 20, 2012, 4:06:29 AM10/20/12
to
Am 20.10.2012 10:00, schrieb Heinz M�ller:
> Am 18.10.2012 22:57, schrieb Andrew Gabriel:
>> In article <k5n8u4$onu$1...@newsreader4.netcologne.de>,
>> =?ISO-8859-15?Q?Heinz_M=FCller?= <onkel...@mscologne.de> writes:
>>>
>>> So my question is why I can't see any packages when I access
>>> http://192.168.2.100:81/ via Browser or "pkgrepo info"??
>>
>> Try
>> svcadm refresh svc:pkg/server:dev
>> or
>> svcadm restart svc:pkg/server:dev
>>
>> I have found I had to do this after updating a repo, before the
>> a package was visible. I don't know if this is expected behaviour.
>>
Sorry, there was a mismatch in the name of the servers( jump-server1
should be repo-server).

So, here the corrected version:

In the end when everything is put together I want so see that
( I changed the "solaris" repo name to "prod" ):

On repo-server ( 192.168.2.100 ) both repos:

root@repo-server:/# pkg publisher
PUBLISHER TYPE STATUS URI
prod origin online http://192.168.2.100/
dev origin online
http://192.168.2.100:81/

root@repo-server:~# pkgrepo info -s http://192.168.2.100/
PUBLISHER PACKAGES STATUS UPDATED
prod 4292 online 2012-10-17T10:16:06.384247Z


root@repo-server:~# pkgrepo info -s http://192.168.2.100:81
0 new messages