OK that worked. Sorry I had missed the on-extra. Still having issues with the distro-constructor though.
> disable on-extra, too > > On 03/17/10 01:47 PM, Sunay Tripathi wrote: >> On 03/17/10 12:22, Richard Lowe wrote: >>> Sunay Tripathi wrote: >>> >>>> I did a "onu" from my nightly which changed the preferred publisher >>>> to my nightly. I fixed that but it still seems to be going to my >>>> nightly repo. any ideas? >>>> >>>> freya(20)% pkg publisher >>>> PUBLISHER TYPE STATUS URI >>>> opensolaris.org (preferred) origin online >>>> http://pkg.opensolaris.org/dev/ >>>> on-nightly origin online >>>> http://localhost:13000/ >>>> contrib origin online >>>> http://pkg.opensolaris.org/contrib/ >>>> extra origin online >>>> https://pkg.sun.com/opensolaris/extra/ >>>> on-extra origin online >>>> http://localhost:13001/ >>>> freya(21)% pkg install SUNWslim-utils >>>> pkg: 3/5 catalogs successfully updated: >>>> >>>> Framework error: code: 7 reason: couldn't connect to host >>>> URL: 'http://localhost:13000/catalog/0/'. (happened 4 times) >>>> >>>> >>>> Framework error: code: 7 reason: couldn't connect to host >>>> URL: 'http://localhost:13001/catalog/0/'. (happened 4 times) >>> >>> Your on-nightly (and on-extra) publishers are still enabled, so it's >>> attempting to use them. pkg set-publisher --disable them, if you really >>> don't want them to be used. It seems like that may be problematic >>> though, (especially as they're not marked non-sticky, so I think pkg >>> will try and avoid taking ON packages from opensolaris.org, even then.) >> >> So I made it non-sticky and then disabled it as well and still it goes >> to that. Seems like a bug or I am missing something >> >> freya(27)% pkg publisher >> PUBLISHER TYPE STATUS URI >> opensolaris.org (preferred) origin online >> http://pkg.opensolaris.org/dev/ >> on-nightly (non-sticky, disabled) origin online >> http://localhost:13000/ >> contrib origin online >> http://pkg.opensolaris.org/contrib/ >> extra origin online >> https://pkg.sun.com/opensolaris/extra/ >> on-extra origin online >> http://localhost:13001/ >> freya(28)% pkg install SUNWslim-utils >> pkg: 3/4 catalogs successfully updated: >> >> Framework error: code: 7 reason: couldn't connect to host >> URL: 'http://localhost:13001/catalog/0/'. (happened 4 times) >> >>> >>>> pkg list: no packages matching 'SUNWslim-utils, slim_install' known or >>>> installed >>>> Traceback (most recent call last): >>>> File "/usr/share/distro_const/im_pop.py", line 516, in<module> >>>> "repository") >>> >>> I think this is because it's trying to install them into the target >>> image. Which would probably be because your DC config doesn't include >>> an entry for the opensolaris.org publisher from which it would normally >>> find these packages. You need to have both an opensolaris.org publisher >>> *and* an on-nightly publisher listed in the DC manifest when building >>> media containing on-nightly bits[1]. There's not really enough info there >>> to say for sure though. >> >> I have both enabled. Sorry I should have provided a diff (see below). >> BTW, I have tried it with same diffs as in the blog you are pointed to. >> To be precise, the nightly is from a clone from yeaterday and the system >> where I am trying to build it was image-updated from opensolaris.org/dev >> yesterday and onu'd from the same nightly. >> >> freya(32)% diff -U 2 /usr/share/distro_const/slim_cd/slim_cd_x86.xml >> ./slim_cd_x86.xml >> --- /usr/share/distro_const/slim_cd/slim_cd_x86.xml Mon Mar 15 16:08:58 2010 >> +++ ./slim_cd_x86.xml Wed Mar 17 12:46:12 2010 >> @@ -193,6 +193,6 @@ >> <pkg_repo_default_authority> >> <main >> - url="http://pkg.opensolaris.org/release" >> - authname="opensolaris.org"/> >> + url="http://nvtbld-x:5500" >> + authname="on-nightly"/> >> <!-- >> If you want to use one or more mirrors that are >> @@ -230,5 +230,5 @@ >> <post_install_repo_default_authority> >> <main >> - url="http://pkg.opensolaris.org/release" >> + url="http://pkg.opensolaris.org/dev" >> authname="opensolaris.org"/> >> <!-- >> @@ -281,5 +281,4 @@ >> <pkg_name="entire at 0.5.11-0.build#/> >> --> >> - <pkg name="entire"/> >> <pkg name="SUNWcsd"/> >> <pkg name="SUNWcs"/> >> >> thanks, >> Sunay >> >>> >>> -- Rich >>> >>> [1] http://blogs.sun.com/lianep/entry/testing_on_changes_with_opensolaris >> >> _______________________________________________ >> on-ips-dev mailing list >> on-ips-dev at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/on-ips-dev -- Sunay Tripathi Distinguished Engineer Solaris Core Operating System Sun MicroSystems Inc. Solaris Networking: http://www.opensolaris.org/os/community/networking Project Crossbow: http://www.opensolaris.org/os/project/crossbow
