Previously when I've used AI to network installs, the top of my
custom manifest has looked like this:

<ai_manifest name="install1">
<ai_pkg_repo_default_authority>
<main url="http://netinstall-osol.sfbay/"; authname="opensolaris.org"/>
</ai_pkg_repo_default_authority>

<ai_pkg_repo_addl_authority>
<main url="http://netinstall-osol:9000"; authname="local"/>
</ai_pkg_repo_addl_authority>

And everything has worked. There was one additional package, "Finish",
that came from install-osol:9000.

Because I want to add my own package, I expanded the manifest to be this:

<ai_manifest name="install1">
<ai_pkg_repo_default_authority>
<main url="http://netinstall-osol.sfbay/"; authname="opensolaris.org"/>
</ai_pkg_repo_default_authority>

<ai_pkg_repo_addl_authority>
<main url="http://netinstall-osol:9000"; authname="local"/>
</ai_pkg_repo_addl_authority>

<ai_pkg_repo_addl_authority>
<main url="http://nvtbld-x.sfbay.sun.com:45992"; authname="local"/>
</ai_pkg_repo_addl_authority>

but this made AI fail to find Finish:
...
<TRANSFER_MOD Aug 28 07:28:20> exec command: /usr/bin/pkg -R /a install babel_install Finish shell/tcsh developer/gcc-3 developer/debug/gdb install-finish diagnostic/tcpdump
<TRANSFER_MOD_E Aug 28 07:28:23>
<TRANSFER_MOD_E Aug 28 07:28:23> pkg: The following pattern(s) did not match any packages in the current catalog. <TRANSFER_MOD_E Aug 28 07:28:23> Try relaxing the pattern, refreshing and/or examining the catalogs:
<TRANSFER_MOD_E Aug 28 07:28:23>        Finish
<TRANSFER_MOD_E Aug 28 07:28:23> Unable to install babel_install Finish shell/tcsh developer/gcc-3 developer/debug/gdb install-finish diagnostic/tcpdump in /a
<OM Aug 28 07:28:23> Uninstalling pkg(5) packages...
<TRANSFER_MOD Aug 28 07:28:23> exec command: /usr/bin/pkg -R /a uninstall babel_install slim_install
...

However the pkg area configuration seemed to go smoothly:
...
<OM Aug 28 07:25:27> Creating and configuring pkg(5) image area...
<TRANSFER_MOD Aug 28 07:25:27> exec command: /usr/bin/pkg image-create -f -F -p opensolaris.org=http://netinstall-osol.sfbay/ /a <TRANSFER_MOD Aug 28 07:25:51> exec command: /usr/bin/pkg -R /a set-publisher -O http://netinstall-osol:9000 --no-refresh local <TRANSFER_MOD Aug 28 07:25:51> exec command: /usr/bin/pkg -R /a set-publisher -O http://nvtbld-x.sfbay.sun.com:45992 --no-refresh local
<OM Aug 28 07:25:52> Installing pkg(5) packages...
<TRANSFER_MOD Aug 28 07:25:52> exec command: /usr/bin/pkg -R /a install [email protected] SUNWcsd SUNWcs
<TRANSFER_MOD Aug 28 07:27:20> Download: system/library ...  Done
...

My first suspicion is that it does not like "local" being used twice and that the second "local" (for nvtbld-x.sfbay) over writes the first one (for netinstall-sca11) without any error/warning. It seems like a reasonable thing for each depotd to have a unique "authname" but strange that there's no warning/error when a duplicate occurs if so.

So I then:
* change the entry for "nvtbld-x" from 'authname="local"' to 'authname="darrenr"'
* stop the pkg.depotd, rm -rf all of the contents
* restart pkg.depotd with -d and -p
* recreate the package using "darrenr" as the publisher and not local, with the end of the output being: 10.5.235.55 - - [28/Aug/2010:00:34:45] "GET /close/0/1282980881_pkg:%2f%2fdarrenr%[email protected],5.11-1:20100828T073441Z HTTP/1.1" 200 - "" "pkg/efcfed001ec9 (sunos i86pc; 5.11 snv_145; none; pkgsend)"
PUBLISHED
pkg://darrenr/[email protected],5.11-1:20100828T073441Z

so everything looks fine so far.

Now the install proceeds:
...
<OM Aug 28 07:40:42> Set timezone
<AI Aug 28 07:40:42> installation will be performed from http://netinstall-osol.sfbay/ (opensolaris.org) <AI Aug 28 07:40:42> Using addditional repository from http://netinstall-osol:9000 (local) <AI Aug 28 07:40:42> Using addditional repository from http://nvtbld-x.sfbay.sun.com:45992 (darrenr)
<AI Aug 28 07:40:42> list of packages to be installed is:
...
<OM Aug 28 07:40:47> Creating and configuring pkg(5) image area...
<TRANSFER_MOD Aug 28 07:40:47> exec command: /usr/bin/pkg image-create -f -F -p opensolaris.org=http://netinstall-osol.sfbay/ /a <TRANSFER_MOD Aug 28 07:41:11> exec command: /usr/bin/pkg -R /a set-publisher -O http://netinstall-osol:9000 --no-refresh local <TRANSFER_MOD Aug 28 07:41:12> exec command: /usr/bin/pkg -R /a set-publisher -O http://nvtbld-x.sfbay.sun.com:45992 --no-refresh darrenr
<OM Aug 28 07:41:12> Installing pkg(5) packages...
...
<TRANSFER_MOD Aug 28 07:49:00> Install Phase ...  Done
<TRANSFER_MOD Aug 28 07:49:07> Reading Existing Index ...  Done
<TRANSFER_MOD Aug 28 07:49:07> Indexing Packages ...  Done

And we're all home and happy!

Did I miss somewhere that documents the requirements for ai_pkg_repo_addl_authority as each one having a unique authname? and/or does it need to match the publisher?

Darren

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to