Bug #8029
Unable to pkg set-authority for a locally cloned repo
Status: | New | Start date: | 2017-04-04 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | smf | |||
Target version: | - | |||
Difficulty: | Medium | Tags: | needs-triage |
Description
Basically create a zfs filesystem for the repo:
zfs create -o atime=off -o compression=gzip-9 rpool/nfs01/pkg
Then shared this NFS mount out to a zone create for pkg. Sync the repo according to the documentation here: <https://wiki.openindiana.org/oi/Making+a+LAN+mirror+of+global+package+repositories#MakingaLANmirrorofglobalpackagerepositories-rsyncthepackagerepositorycontentsandorupdates>
rsync -zavPHK pkg-origin.openindiana.org::pkgdepot-dev /export/pkg/dev/
@svccfg -s pkg/server
- setprop startd/duration = contract omitted this since startd is not recognized #
add dev
select dev
addpg pkg application
setprop pkg/inst_root = astring: "/rpool/pkg/dev/"
setprop pkg/port = count: 10002
setprop pkg/proxy_base = astring: http://pkg.internalnet.local:10002
exit@
Then on the host, try to set pkg authority:
@~# pkg set-authority -m http://pkg.scoday.local:10002
Traceback (most recent call last):
File "/usr/bin/pkg", line 5444, in handle_errors
__ret = func(*args, **kwargs)
File "/usr/bin/pkg", line 5346, in main_func
return func(api_inst, pargs)
TypeError: publisher_set() takes exactly 26 arguments (2 given)
pkg: This is an internal error in pkg(5) version d99a577. Please log a
Service Request about this issue including the information above and this
message.
@
uname -a
SunOS hndoi01 5.11 illumos-32991be i86pc i386 i86pc
cat /etc/release
OpenIndiana Hipster 2016.10 (powered by illumos)
OpenIndiana Project, part of The Illumos Foundation (C) 2010-2017
Use is subject to license terms.
Assembled 06 March 2017
**Not sure if this is filed in the right place, I will clone the repo and take a look as well. I searched the bugs for anything pkg and anything pkg set-authority
Also available in: Atom