OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » indiana » discuss

Thread: pkg.opensolaris.org repository update: snv_90

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 63 - Last Post: Jul 22, 2008 12:43 PM by: joshc
alanst

Posts: 98
From: US

Registered: 3/6/06
pkg.opensolaris.org repository update: snv_90
Posted: Jun 6, 2008 10:46 PM

  Click to reply to this thread Reply

The pkg.opensolaris.org repository has been updated to the snv_90 level.
This update also includes snv_89 packages.

PAY ATTENTION TO THE ATTACHED UPDATE PROCEDURE!!! Failure to do so will
prevent your system from rebooting.

Please see the attached for instructions for updating from OpenSolaris
2008.05, as well as a list of changes incorporated into the snv_90 update.

-- Alan Steinberg
OpenSolaris Release Engineering

Known issues in this repository update
======================================
2119 pidgin(1) is unable to find libnspr4.so

When executed, pidgin(1) will eventually terminate with an
error such as

ld.so.1: pidgin: fatal: libnspr4.so: open failed:
No such file or directory
ld.so.1: pidgin: fatal: relocation error:
file /usr/lib/purple-2/ssl-nss.so:
symbol PR_Init: referenced symbol not found

Workaround:

Set the LD_LIBRARY_PATH environment variable to
/usr/lib/mps before executing the command.

New packages in this repository update
======================================
SUNWcups CUPS
SUNWdcraw dcraw - Decoding RAW digital photos in Linux
SUNWdesktop-other-l10n-cs Desktop other message files for Czech
SUNWdesktop-other-l10n-de Desktop other message files for German
SUNWdesktop-other-l10n-es Desktop other message files for Spanish
SUNWdesktop-other-l10n-extra Desktop other message files for extra languages
SUNWdesktop-other-l10n-fr Desktop other message files for French
SUNWdesktop-other-l10n-hu Desktop other message files for Hungarian
SUNWdesktop-other-l10n-it Desktop other message files for Italian
SUNWdesktop-other-l10n-ja Desktop other message files for Japanese
SUNWdesktop-other-l10n-ko Desktop other message files for Korean
SUNWdesktop-other-l10n-noinst Desktop other message files for extra languages
SUNWdesktop-other-l10n-pl Desktop other message files for Polish
SUNWdesktop-other-l10n-ptBR Desktop other message files for Portugese
SUNWdesktop-other-l10n-rtl Desktop other message files for RTL languages
SUNWdesktop-other-l10n-ru Desktop other message files for Russian
SUNWdesktop-other-l10n-sv Desktop other message files for Swedish
SUNWdesktop-other-l10n-zhCN Desktop other message files for Simplified
SUNWdesktop-other-l10n-zhHK Desktop other message files for Hong Kong
SUNWdesktop-other-l10n-zhTW Desktop other message files for Traditional
SUNWdiffstat diffstat - displays a histogram from diff
SUNWfetchmail Fetchmail Mail Retrieval and Forwarding Utility
SUNWgnome-l10ndocument-noinst GNOME document files for extra languages
SUNWgnome-l10nmessages-noinst GNOME software message files for extra
SUNWgnu-gperf GNU gperf - perfect hash function generator
SUNWgnu-mc The GNU Midnight Commander file manager
SUNWhxge SUN 10Gb hxge NIC Driver
SUNWixgbe Intel 10GbE PCIE NIC Driver
SUNWlcms Little Color Management System
SUNWlibmemcached libmemcached
SUNWlibmng Multiple Image Network Graphics Library
SUNWmegasas LSI MegaSAS RAID Controller HBA Driver
SUNWmemcached-java memcached client for the java platform
SUNWmutt Mutt E-Mail Client (1.5.17)
SUNWnethack Nethack
SUNWpgbouncer-pg83 pgBouncer connection pool config
SUNWpostgr-83-client PostgreSQL client tools
SUNWpostgr-83-contrib PostgreSQL community contributed tools not part
SUNWpostgr-83-devel PostgreSQL development tools and header files
SUNWpostgr-83-docs PostgreSQL documentation and man pages
SUNWpostgr-83-libs PostgreSQL client libraries
SUNWpostgr-83-pl PostgreSQL additional Perl, Python & TCL server
SUNWpostgr-83-server PostgreSQL database server
SUNWpostgr-83-tcl Tcl binding library for PostgreSQL
SUNWpostgr-upgrade Tools to upgrade from older PostgreSQL versions
SUNWprocmail Procmail Mail Processing Program (3.22)
SUNWpycups Python language bindings for CUPS
SUNWpysqlite Python DB-API 2.0 interface for the SQLite
SUNWsane-backend SANE library and backends
SUNWsane-frontend SANE frontends
SUNWscsip SCSI/SES plugins
SUNWslang S-Lang Library (2.1.3)
SUNWsqlite3 SQLite3
SUNWsqlite3docs SQLite3 Documentation
SUNWsqlite3tcl Tcl Bindings for SQLite3
SUNWstmf Sun Common Multipotocol SCSI Target
SUNWtcltls Tcl binding to openssl toolkit
SUNWtvnc TurboVNC server and client
SUNWvgl VirtualGL server, client, and diagnostic
SUNWvirt-manager Virtual Machine Manager
SUNWvscankr Virus Scan Service Kernel

Distribution specific bugs addressed in this repository update
==============================================================
1683 Cleanup in some of the clusters
1598 webstackui has broken dependencies
1710 One missing package for Sun Studio IPS images
1714 Test harness should support an arbitrary number of depots
1772 Add SUNWaclg to the redist_cluster
1338 traceback when installing a package with a dependency that can not be
1755 Add Visual Panels package to repo
1711 SUNWcacaort, SUNWcacaowsvr are missing dependencies, files
1749 Need a cluster for AMP stack only
1779 nuke redundant refresh, and other miscellaneous cleanup in pkgcreatezone
1778 pkgcreatezone is sloppy with file perms
1756 IPS Zone creation includes shadow entry for jack
225 unneeded backtrace in server log on broken pipe
1876 operations on in-flight transactions will fail after depot restart
1752 depot must strip leading slashes from requests
1773 Want tool to obtain contents of packages
1962 Import process update from one build to the next is too complicated
1996 PostgreSQL root packages can be combined into their bases
1995 resync repository to snv_89
1993 supplied versions of ksh.1 and rksh.1 are incorrect
1877 SUNWckr delivering boot/solaris/filelist.ramdisk in non-global zones
1740 beadm needs to be in an RBAC profile
2043 additional minor changes for build 89 resync
2041 client performance hampered by unnecessary getpwuid/getgrgid calls


Instructions to update OpenSolaris 2008.05 to build 89 or later
================================================================

The command "pkg image-update" can be used to update an OpenSolaris
2008.05 system to build 89 or later. However due to changes in the
GRUB boot system, one must manually update the Master Boot Record (MBR)
to include these latest changes.

When "pkg image-update" completes successfully, it will print a message
of the form

A clone of opensolaris exists and has been updated and
activated. On next boot the Boot Environment opensolaris-1 will
be mounted on '/'. Reboot when ready to switch to this updated
BE.

The name of the newly created clone can also be seen by looking for the
"Active on reboot" entry in the output of the "beadm list" command

$ beadm list
BE Active Active on Mountpoint Space
Name reboot Used
---- ------ --------- ---------- -----
opensolaris-1 no yes - 17.06M
opensolaris yes no - 33.92M

First, mount the clone under the /mnt directory

$ pfexec mount -F zfs rpool/ROOT/opensolaris-1 /mnt

Next, update the GRUB configuration on your ZFS boot device(s) using

$ pfexec /mnt/boot/solaris/bin/update_grub -R /mnt

When you're ready to boot into the updated boot environment, you can
reboot(1M) or init(1M) as usual.

_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


loomy

Posts: 567
From:

Registered: 3/17/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 6, 2008 11:50 PM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

One thing that surprised me was the size of the update. I expected less because of the space-saving attributes of pkg I thought I read about on a blog at one point. And given the size of the install CD, I expected the download to be compressed more than is.

> The command "pkg image-update"

It was working for me until it failed. The error, in the virtualbox machine:

DOWNLOAD PKGS FILES XFER (MB)
SUNWroute 401/533 8428/13882 825.02/1172.63pkg: An unexpected error happened during image-update: timed out
The running system has not been modified. Modifications were only made to a clone of the running system. This clone is mounted at /tmp/tmpnmUq-n should you wish to inspect it.
Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1404, in main_func
return image_update(img, pargs)
File "/usr/bin/pkg", line 391, in image_update
img.imageplan.execute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 394, in execute
p.preexecute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 262, in preexecute
flist.get_files()
File "/usr/lib/python2.4/vendor-packages/pkg/client/filelist.py", line 176, in get_files
tar_stream.extract_to(info, path, filename)
File "/usr/lib/python2.4/vendor-packages/pkg/pkgtarfile.py", line 86, in extract_to
self._extract_member(tarinfo, os.path.join(
File "/usr/lib/python2.4/tarfile.py", line 1423, in _extract_member
self.makefile(tarinfo, targetpath)
File "/usr/lib/python2.4/tarfile.py", line 1461, in makefile
copyfileobj(source, target)
File "/usr/lib/python2.4/tarfile.py", line 158, in copyfileobj
shutil.copyfileobj(src, dst)
File "/usr/lib/python2.4/shutil.py", line 22, in copyfileobj
buf = fsrc.read(length)
File "/usr/lib/python2.4/tarfile.py", line 558, in _readnormal
return self.__read(bytestoread)
File "/usr/lib/python2.4/tarfile.py", line 504, in __read
return self.fileobj.read(size)
File "/usr/lib/python2.4/tarfile.py", line 437, in read
buf = self._read(size)
File "/usr/lib/python2.4/tarfile.py", line 445, in _read
return self.__read(size)
File "/usr/lib/python2.4/tarfile.py", line 467, in __read
buf = self.fileobj.read(self.bufsize)
File "/usr/lib/python2.4/socket.py", line 295, in read
data = self._sock.recv(recv_size)
File "/usr/lib/python2.4/httplib.py", line 480, in read
s = self.fp.read(amt)
File "/usr/lib/python2.4/socket.py", line 295, in read
data = self._sock.recv(recv_size)
timeout: timed out


The only unusual thing I noticed was that the screen saver / locked screen display popped up as soon as I focused the mouse on the vm. Maybe the screen saver did something funky to the connection. It worked fine right afterwards to do a pkg refresh and to post this, though.

comay

Posts: 962
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 11:31 AM   in response to: loomy
To: Projects » indiana » discuss
Cc: OpenSolaris » help
  Click to reply to this thread Reply

With respect to the size of the update, remember it does reflect four Nevada builds worth of updates.

For those seeing timeouts, I would suggest setting the environment variable PKG_CLIENT_TIMEOUT to something larger than 30. I've found sometimes it necessary to set it as high as 90 in order to avoid timeouts.

seb

Posts: 2,142
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 2:24 PM   in response to: comay

  Click to reply to this thread Reply


On Sat, 2008-06-07 at 11:31 -0700, David Comay wrote:
> For those seeing timeouts, I would suggest setting the environment variable PKG_CLIENT_TIMEOUT to something larger than 30. I've found sometimes it necessary to set it as high as 90 in order to avoid timeouts.

That worked, thanks.
-Seb


_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


thommym

Posts: 168
From: SE

Registered: 6/18/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 8, 2008 9:47 PM   in response to: comay

  Click to reply to this thread Reply

David Comay wrote:
> With respect to the size of the update, remember it does reflect four Nevada builds worth of updates.
>
> For those seeing timeouts, I would suggest setting the environment variable PKG_CLIENT_TIMEOUT to something larger than 30. I've found sometimes it necessary to set it as high as 90 in order to avoid timeouts.

I've tried 4 times with PKG_CLIENT_TIMEOUT=90 but no luck. Should I try
with an even higher value? I'm on a 8Mbps line in Sweden... (Running
image-update within VirtualBox 1.6 on XP)

DOWNLOAD PKGS FILES XFER (MB)
SUNWthunderbird-calendar 488/581 9689/14846
1290.10/1551.96pkg: An unexpected error happened during image-update:
timed out
The running system has not been modified. Modifications were only made
to a clone of the running system. This clone is mounted at
/tmp/tmpXjTA6o should you wish to inspect it.
Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1404, in main_func

_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


ormandj

Posts: 192
From:

Registered: 2/21/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 12:03 AM   in response to: alanst

  Click to reply to this thread Reply

Out of curiosity, will these steps always be required, or is this a symptom of a now-resolved bug in image-update? I don't recall having to do this during the last update:

" First, mount the clone under the /mnt directory

       $ pfexec mount -F zfs rpool/ROOT/opensolaris-1 /mnt

Next, update the GRUB configuration on your ZFS boot device(s) using

       $ pfexec /mnt/boot/solaris/bin/update_grub -R /mnt"

Thanks,
David



On Sat, Jun 7, 2008 at 12:46 AM, Alan Steinberg <Alan dot Steinberg at sun dot com> wrote:
The pkg.opensolaris.org repository has been updated to the snv_90 level. This update also includes snv_89 packages.

PAY ATTENTION TO THE ATTACHED UPDATE PROCEDURE!!! Failure to do so will prevent your system from rebooting.

Please see the attached for instructions for updating from OpenSolaris 2008.05, as well as a list of changes incorporated into the snv_90 update.

-- Alan Steinberg
OpenSolaris Release Engineering


Known issues in this repository update
======================================
2119 pidgin(1) is unable to find libnspr4.so

       When executed, pidgin(1) will eventually terminate with an
       error such as

               ld.so.1: pidgin: fatal: libnspr4.so: open failed:
               No such file or directory
               ld.so.1: pidgin: fatal: relocation error:
               file /usr/lib/purple-2/ssl-nss.so:
               symbol PR_Init: referenced symbol not found

       Workaround:

               Set the LD_LIBRARY_PATH environment variable to
               /usr/lib/mps before executing the command.

New packages in this repository update
======================================
SUNWcups                        CUPS
SUNWdcraw                       dcraw - Decoding RAW digital photos in Linux
SUNWdesktop-other-l10n-cs       Desktop other message files for Czech
SUNWdesktop-other-l10n-de       Desktop other message files for German
SUNWdesktop-other-l10n-es       Desktop other message files for Spanish
SUNWdesktop-other-l10n-extra    Desktop other message files for extra languages
SUNWdesktop-other-l10n-fr       Desktop other message files for French
SUNWdesktop-other-l10n-hu       Desktop other message files for Hungarian
SUNWdesktop-other-l10n-it       Desktop other message files for Italian
SUNWdesktop-other-l10n-ja       Desktop other message files for Japanese
SUNWdesktop-other-l10n-ko       Desktop other message files for Korean
SUNWdesktop-other-l10n-noinst   Desktop other message files for extra languages
SUNWdesktop-other-l10n-pl       Desktop other message files for Polish
SUNWdesktop-other-l10n-ptBR     Desktop other message files for Portugese
SUNWdesktop-other-l10n-rtl      Desktop other message files for RTL languages
SUNWdesktop-other-l10n-ru       Desktop other message files for Russian
SUNWdesktop-other-l10n-sv       Desktop other message files for Swedish
SUNWdesktop-other-l10n-zhCN     Desktop other message files for Simplified
SUNWdesktop-other-l10n-zhHK     Desktop other message files for Hong Kong
SUNWdesktop-other-l10n-zhTW     Desktop other message files for Traditional
SUNWdiffstat                    diffstat - displays a histogram from diff
SUNWfetchmail                   Fetchmail Mail Retrieval and Forwarding Utility
SUNWgnome-l10ndocument-noinst   GNOME document files for extra languages
SUNWgnome-l10nmessages-noinst   GNOME software message files for extra
SUNWgnu-gperf                   GNU gperf - perfect hash function generator
SUNWgnu-mc                      The GNU Midnight Commander file manager
SUNWhxge                        SUN 10Gb hxge NIC Driver
SUNWixgbe                       Intel 10GbE PCIE NIC Driver
SUNWlcms                        Little Color Management System
SUNWlibmemcached                libmemcached
SUNWlibmng                      Multiple Image Network Graphics Library
SUNWmegasas                     LSI MegaSAS RAID Controller HBA Driver
SUNWmemcached-java              memcached client for the java platform
SUNWmutt                        Mutt E-Mail Client (1.5.17)
SUNWnethack                     Nethack
SUNWpgbouncer-pg83              pgBouncer connection pool config
SUNWpostgr-83-client            PostgreSQL client tools
SUNWpostgr-83-contrib           PostgreSQL community contributed tools not part
SUNWpostgr-83-devel             PostgreSQL development tools and header files
SUNWpostgr-83-docs              PostgreSQL documentation and man pages
SUNWpostgr-83-libs              PostgreSQL client libraries
SUNWpostgr-83-pl                PostgreSQL additional Perl, Python & TCL server
SUNWpostgr-83-server            PostgreSQL database server
SUNWpostgr-83-tcl               Tcl binding library for PostgreSQL
SUNWpostgr-upgrade              Tools to upgrade from older PostgreSQL versions
SUNWprocmail                    Procmail Mail Processing Program (3.22)
SUNWpycups                      Python language bindings for CUPS
SUNWpysqlite                    Python DB-API 2.0 interface for the SQLite
SUNWsane-backend                SANE library and backends
SUNWsane-frontend               SANE frontends
SUNWscsip                       SCSI/SES plugins
SUNWslang                       S-Lang Library (2.1.3)
SUNWsqlite3                     SQLite3
SUNWsqlite3docs                 SQLite3 Documentation
SUNWsqlite3tcl                  Tcl Bindings for SQLite3
SUNWstmf                        Sun Common Multipotocol SCSI Target
SUNWtcltls                      Tcl binding to openssl toolkit
SUNWtvnc                        TurboVNC server and client
SUNWvgl                         VirtualGL server, client, and diagnostic
SUNWvirt-manager                Virtual Machine Manager
SUNWvscankr                     Virus Scan Service Kernel

Distribution specific bugs addressed in this repository update
==============================================================
1683 Cleanup in some of the clusters
1598 webstackui has broken dependencies
1710 One missing package for Sun Studio IPS images
1714 Test harness should support an arbitrary number of depots
1772 Add SUNWaclg to the redist_cluster
1338 traceback when installing a package with a dependency that can not be
1755 Add Visual Panels package to repo
1711 SUNWcacaort, SUNWcacaowsvr are missing dependencies, files
1749 Need a cluster for AMP stack only
1779 nuke redundant refresh, and other miscellaneous cleanup in pkgcreatezone
1778 pkgcreatezone is sloppy with file perms
1756 IPS Zone creation includes shadow entry for jack
225 unneeded backtrace in server log on broken pipe
1876 operations on in-flight transactions will fail after depot restart
1752 depot must strip leading slashes from requests
1773 Want tool to obtain contents of packages
1962 Import process update from one build to the next is too complicated
1996 PostgreSQL root packages can be combined into their bases
1995 resync repository to snv_89
1993 supplied versions of ksh.1 and rksh.1 are incorrect
1877 SUNWckr delivering boot/solaris/filelist.ramdisk in non-global zones
1740 beadm needs to be in an RBAC profile
2043 additional minor changes for build 89 resync
2041 client performance hampered by unnecessary getpwuid/getgrgid calls



Instructions to update OpenSolaris 2008.05 to build 89 or later
================================================================

The command "pkg image-update" can be used to update an OpenSolaris
2008.05 system to build 89 or later.  However due to changes in the
GRUB boot system, one must manually update the Master Boot Record (MBR)
to include these latest changes.

When "pkg image-update" completes successfully, it will print a message
of the form

       A clone of opensolaris exists and has been updated and
       activated. On next boot the Boot Environment opensolaris-1 will
       be mounted on '/'. Reboot when ready to switch to this updated
       BE.

The name of the newly created clone can also be seen by looking for the
"Active on reboot" entry in the output of the "beadm list" command

       $ beadm list
       BE            Active Active on Mountpoint     Space
       Name                 reboot                   Used
       ----          ------ --------- ----------     -----
       opensolaris-1 no     yes       -              17.06M
       opensolaris   yes    no        -              33.92M

First, mount the clone under the /mnt directory

       $ pfexec mount -F zfs rpool/ROOT/opensolaris-1 /mnt

Next, update the GRUB configuration on your ZFS boot device(s) using

       $ pfexec /mnt/boot/solaris/bin/update_grub -R /mnt

When you're ready to boot into the updated boot environment, you can
reboot(1M) or init(1M) as usual.


_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


_______________________________________________ indiana-discuss mailing list indiana-discuss at opensolaris dot org http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


jbeck

Posts: 94
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 7:29 AM   in response to: ormandj

  Click to reply to this thread Reply

David> Out of curiosity, will these steps always be required, or is this a
David> symptom of a now-resolved bug in image-update?

No, and No. This is a one-time flag-day to get past the ZFS Boot project
integration, which changed GRUB in such a way to make this necessary; once
you get past this flag-day, you won't have to do this again.

-- John

http://blogs.sun.com/jbeck
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


jurikm

Posts: 581
From: CZ

Registered: 3/21/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 8, 2008 1:00 PM   in response to: jbeck

  Click to reply to this thread Reply

Hi,

John Beck píše v so 07. 06. 2008 v 07:29 -0700:
> David> Out of curiosity, will these steps always be required, or is this a
> David> symptom of a now-resolved bug in image-update?
>
> No, and No. This is a one-time flag-day to get past the ZFS Boot project
> integration, which changed GRUB in such a way to make this necessary; once
> you get past this flag-day, you won't have to do this again.
>

Will these steps be needed also by upgrade from 2008.05 to future
200X.XX?

I broke one my setup (the only one which wasn't in VM...) because I just
made image-upgrade before I read this list. Shouldn't IPS to support
such "flag-day" somehow? Or should we read the list/wiki/webpage before
every image-upgrade?

Best regards,

Milan

_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


phigamma

Posts: 560
From: GB

Registered: 11/6/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 3:57 AM   in response to: jurikm
To: Projects » indiana » discuss
  Click to reply to this thread Reply

What I don't understand is this: Is it expected that everyone who installed 2008.05 knows about indiana-discuss ? It would seems rather natural to update your system once an update is available, and if most of the ones who installed 2008.05 don't know about indiana-discuss they will end up with a system that doesn't work. I know I probably wouldn't bother with sequential installs if that were my first OpenSolaris experience.

loomy

Posts: 567
From:

Registered: 3/17/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 11:56 AM   in response to: phigamma
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> What I don't understand is this: Is it expected that
> everyone who installed 2008.05 knows about
> indiana-discuss ? It would seems rather natural to
> update your system once an update is available, and
> if most of the ones who installed 2008.05 don't know
> about indiana-discuss they will end up with a system
> that doesn't work. I know I probably wouldn't bother
> with sequential installs if that were my first
> OpenSolaris experience.

Erg, good point. Apt in Ubuntu doesn't let you kill your OS like that because they use different repositories, and by default apt doesn't point to an unstable repository that would break stuff.

Opensolaris needs stable and testing repositories, stat :)

phigamma

Posts: 560
From: GB

Registered: 11/6/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 12:25 PM   in response to: loomy
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> Opensolaris needs stable and testing repositories,
> stat :)
+1

phigamma

Posts: 560
From: GB

Registered: 11/6/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 12:18 AM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Woah! SUNWgnu-mc is in, awesome! Thanks.

sparcdr

Posts: 1,032
From: US

Registered: 3/24/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 5:49 AM   in response to: phigamma

  Click to reply to this thread Reply

Indeed. I voted it as the most useful tool for SysAdmins at the
current sourceforge Community Choice Awards nomination web site.

James
On Jun 7, 2008, at 2:18 AM, Lurie wrote:

> Woah! SUNWgnu-mc is in, awesome! Thanks.
> --
>
> This message posted from opensolaris.org
>
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris dot org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


waynel

Posts: 2,175
From: US

Registered: 6/24/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 12:43 PM   in response to: phigamma
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> Woah! SUNWgnu-mc is in, awesome! Thanks.

Also, the -z option is available in "tar", in case anyone hasn't noticed.

waynel

Posts: 2,175
From: US

Registered: 6/24/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 1:17 PM   in response to: waynel
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> > Woah! SUNWgnu-mc is in, awesome! Thanks.
>
> Also, the -z option is available in "tar", in case
> anyone hasn't noticed.

Oops, this was available b/4 the update. 'pologize!

loomy

Posts: 567
From:

Registered: 3/17/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 12:39 AM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> The pkg.opensolaris.org repository has been updated to the snv_90 level.

Disabled screensaver, tried again. Another failure. This was run as user "admin" after a su to root:

...
Completed 533/533 13882/13882 1172.63/1172.63

PHASE ACTIONS
Removal Phase 3109/3109
Update Phase 1256/13792 Action upgrade failed for 'etc' (pkg:/SUNWcfcl):
KeyError: 'user name not found: root'
pkg: An unexpected error happened during image-update: 'user name not found: root'
The running system has not been modified. Modifications were only made to a clone of the running system. This clone is mounted at /tmp/tmpbXK0Up should you wish to inspect it.
Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1404, in main_func
return image_update(img, pargs)
File "/usr/bin/pkg", line 391, in image_update
img.imageplan.execute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 452, in execute
p.execute_update(src, dest)
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 297, in execute_update
dest.install(self, src)
File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py", line 59, in install
owner = pkgplan.image.get_user_by_name(self.attrs["owner"])
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 994, in get_user_by_name
self.type != IMG_USER)
File "/usr/lib/python2.4/vendor-packages/pkg/portable/os_unix.py", line 92, in get_user_by_name
raise KeyError, "user name not found: %s" % name
KeyError: 'user name not found: root'

loomy

Posts: 567
From:

Registered: 3/17/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 5:21 PM   in response to: loomy
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Third try worked. This time I made root NOT a role (rolemod -K type=normal root) and logged in as root to do the update, in case the root role had something to do with the error below.

Note that the "KeyError: 'user name not found: root' " error below is the same one that I saw when I thought the problem was caused by using only 256mb ram ( http://defect.opensolaris.org/bz/show_bug.cgi?id=2149 ), yet this time I was using 512mb in the virtualbox 1.6 vm.

> > The pkg.opensolaris.org repository has been updated
> to the snv_90 level.
>
> Disabled screensaver, tried again. Another failure.
> This was run as user "admin" after a su to root:
>
> ...
> Completed 533/533
> 13882/13882 1172.63/1172.63
>
> PHASE ACTIONS
> Removal Phase 3109/3109
>
> Update Phase 1256/13792
> Action upgrade failed for 'etc' (pkg:/SUNWcfcl):
> KeyError: 'user name not found: root'
> kg: An unexpected error happened during image-update:
> 'user name not found: root'
> The running system has not been modified.
> Modifications were only made to a clone of the
> running system. This clone is mounted at
> /tmp/tmpbXK0Up should you wish to inspect it.
> raceback (most recent call last):
> File "/usr/bin/pkg", line 1440, in ?
> ret = main_func()
> File "/usr/bin/pkg", line 1404, in main_func
> return image_update(img, pargs)
> le "/usr/bin/pkg", line 391, in image_update
> img.imageplan.execute()
> le
> "/usr/lib/python2.4/vendor-packages/pkg/client/imagepl
> an.py", line 452, in execute
> p.execute_update(src, dest)
> le
> "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan
> .py", line 297, in execute_update
> dest.install(self, src)
> le
> "/usr/lib/python2.4/vendor-packages/pkg/actions/direct
> ory.py", line 59, in install
> owner =
> pkgplan.image.get_user_by_name(self.attrs["owner"])
> File
> "/usr/lib/python2.4/vendor-packages/pkg/client/image.
> y", line 994, in get_user_by_name
> self.type != IMG_USER)
> le
> "/usr/lib/python2.4/vendor-packages/pkg/portable/os_un
> ix.py", line 92, in get_user_by_name
> raise KeyError, "user name not found: %s" % name
> rror: 'user name not found: root'

Shawn Walker
swalker@opensolaris....
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 5:33 PM   in response to: loomy

  Click to reply to this thread Reply

2008/6/7 MC <rac at eastlink dot ca>:
> Third try worked. This time I made root NOT a role (rolemod -K type=normal root) and logged in as root to do the update, in case the root role had something to do with the error below.

I updated to 90 today using the default setup. It looks like this is
definitely timeout related.

I think the root/role thing is a "red herring."

Cheers,
--
Shawn Walker
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


che

Posts: 476
From: AU

Registered: 6/14/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 7:19 AM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

After doing all this I get:

che@ultra20:~$ evolution
ld.so.1: evolution: fatal: libdb.so.1: open failed: No such file or directory
Killed

When trying to launch Evolution :(

seb

Posts: 2,142
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 2:23 PM   in response to: che

  Click to reply to this thread Reply


On Sat, 2008-06-07 at 07:19 -0700, Ché Kristo wrote:
> After doing all this I get:
>
> che@ultra20:~$ evolution
> ld.so.1: evolution: fatal: libdb.so.1: open failed: No such file or directory
> Killed
>
> When trying to launch Evolution :(

Same here. Evolution needs the Berkeley Database, and there is no
SUNWbdb in the repository. I worked around this by installing the
SUNWbdb SYSV package from the Solaris Express build 90 media. I've
filed:

http://defect.opensolaris.org/bz/show_bug.cgi?id=2172

-Seb


_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


seb

Posts: 2,142
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 8:24 AM   in response to: alanst

  Click to reply to this thread Reply

On Fri, 2008-06-06 at 22:46 -0700, Alan Steinberg wrote:
> Instructions to update OpenSolaris 2008.05 to build 89 or later
> ================================================================
>
> The command "pkg image-update" can be used to update an OpenSolaris
> 2008.05 system to build 89 or later.

This doesn't work on my system:

seb:~# pkg image-update
Creating Plan /Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1404, in main_func
return image_update(img, pargs)
File "/usr/bin/pkg", line 366, in image_update
noexecute = noexecute)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1282, in make_install_plan
ip.evaluate()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 344, in evaluate
self.evaluate_fmri(f)
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 187, in evaluate_fmri
m = self.image.get_manifest(pfmri)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 516, in get_manifest
m = self._fetch_manifest(fmri)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 468, in _fetch_manifest
mcontent = retrieve.get_manifest(self, fmri)
File "/usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py", line 87, in get_manifest
return m.read()
File "/usr/lib/python2.4/socket.py", line 277, in read
data = self._sock.recv(recv_size)
File "/usr/lib/python2.4/httplib.py", line 480, in read
s = self.fp.read(amt)
File "/usr/lib/python2.4/socket.py", line 295, in read
data = self._sock.recv(recv_size)
timeout: timed out

Let me know what you need to debug this. It was freshly installed with 2008.05.

-Seb


_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Aubrey Li
aubrey@blastwave.org
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 8:55 AM   in response to: seb

  Click to reply to this thread Reply

On Sat, Jun 7, 2008 at 11:24 PM, Sebastien Roy <Sebastien dot Roy at sun dot com> wrote:
> On Fri, 2008-06-06 at 22:46 -0700, Alan Steinberg wrote:
>> Instructions to update OpenSolaris 2008.05 to build 89 or later
>> ================================================================
>>
>> The command "pkg image-update" can be used to update an OpenSolaris
>> 2008.05 system to build 89 or later.
>
> This doesn't work on my system:
>
> seb:~# pkg image-update
> Creating Plan /Traceback (most recent call last):
> File "/usr/bin/pkg", line 1440, in ?
> ret = main_func()
> File "/usr/bin/pkg", line 1404, in main_func
> return image_update(img, pargs)
> File "/usr/bin/pkg", line 366, in image_update
> noexecute = noexecute)
> File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1282, in make_install_plan
> ip.evaluate()
> File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 344, in evaluate
> self.evaluate_fmri(f)
> File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 187, in evaluate_fmri
> m = self.image.get_manifest(pfmri)
> File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 516, in get_manifest
> m = self._fetch_manifest(fmri)
> File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 468, in _fetch_manifest
> mcontent = retrieve.get_manifest(self, fmri)
> File "/usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py", line 87, in get_manifest
> return m.read()
> File "/usr/lib/python2.4/socket.py", line 277, in read
> data = self._sock.recv(recv_size)
> File "/usr/lib/python2.4/httplib.py", line 480, in read
> s = self.fp.read(amt)
> File "/usr/lib/python2.4/socket.py", line 295, in read
> data = self._sock.recv(recv_size)
> timeout: timed out
>
> Let me know what you need to debug this. It was freshly installed with 2008.05.
>
This is not a bug indeed. It's just a network timeout.
Try it again and again and it will be successful finally.

But it's unacceptable, unless pkg install/upgrade support downloading resume.

-Aubrey
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


seb

Posts: 2,142
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 9:08 AM   in response to: Aubrey Li

  Click to reply to this thread Reply

On Sat, 2008-06-07 at 23:55 +0800, Aubrey Li wrote:
> This is not a bug indeed. It's just a network timeout.
> Try it again and again and it will be successful finally.
>
> But it's unacceptable, unless pkg install/upgrade support downloading resume.

Indeed. The cryptic nature of the error mode is a bug, though. I've
filed:

http://defect.opensolaris.org/bz/show_bug.cgi?id=2169

A second attempt at updating yielded a different error, this time after
all of the packages had been downloaded:

-bash-3.2# pkg image-update
DOWNLOAD PKGS FILES XFER (MB)
Completed 560/560 15058/15058 1354.56/1354.56

PHASE ACTIONS
Removal Phase 3235/3235
Update Phase 621/14947 Action upgrade failed for 'SUNWhwdata.copyright' (pkg:/SUNWhwdata):
NameError: could not retrieve file '4531016e969a71c851ede9fa92c41b1ec23b83c7' from 'http://pkg.opensolaris.org:80'
pkg: An unexpected error happened during image-update: could not retrieve file '4531016e969a71c851ede9fa92c41b1ec23b83c7' from 'http://pkg.opensolaris.org:80'
The running system has not been modified. Modifications were only made to a clone of the running system. This clone is mounted at /tmp/tmpSjXS6m should you wish to inspect it.
Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1404, in main_func
return image_update(img, pargs)
File "/usr/bin/pkg", line 391, in image_update
img.imageplan.execute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 452, in execute
p.execute_update(src, dest)
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 297, in execute_update
dest.install(self, src)
File "/usr/lib/python2.4/vendor-packages/pkg/actions/license.py", line 72, in install
stream = self.data()
File "/usr/lib/python2.4/vendor-packages/pkg/manifest.py", line 231, in opener
return retrieve.get_datastream(img, fmri, action.hash)
File "/usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py", line 53, in get_datastream
raise NameError, "could not retrieve file '%s' from '%s'" % \
NameError: could not retrieve file '4531016e969a71c851ede9fa92c41b1ec23b83c7' from 'http://pkg.opensolaris.org:80'

A third attempt yielded yet another timeout in another random python
library after having downloaded a few hundred packages. I have a big
fat pipe to the Internet, and I have great network connectivity at the
moment. The problem is not on my end. I'm guessing that
pkg.opensolaris.org is under-provisioned to deal with this kind of
mass-update.

-Seb


_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


amerigo5

Posts: 12
From:

Registered: 3/1/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 10, 2008 5:29 AM   in response to: seb
To: Projects » indiana » discuss
  Click to reply to this thread Reply

I have the same error as seb:

NameError: could not retrieve file '*' from 'http://pkg.opensolaris.org:80'

amerigo5

Posts: 12
From:

Registered: 3/1/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 11, 2008 8:33 AM   in response to: amerigo5
To: Projects » indiana » discuss
  Click to reply to this thread Reply

I have been trying to "pkg image-update" over and over again with no success (7 times). Each attempt...same error on different package:

......
Update Phase #/# Action upgrade failed for '*' (pkg:/*):
......
......
NameError: could not retrieve file '*' from 'http://pkg.opensolaris.org:80'
......

Anyone have a fixed for this? Thanks.

glagasse

Posts: 808
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 11, 2008 9:38 AM   in response to: amerigo5

  Click to reply to this thread Reply

* George Arellano (amerigo5 at hotmail dot com) wrote:
> I have been trying to "pkg image-update" over and over again with no success (7 times). Each attempt...same error on different package:
>
> ......
> Update Phase #/# Action upgrade failed for '*' (pkg:/*):
> ......
> ......
> NameError: could not retrieve file '*' from 'http://pkg.opensolaris.org:80'
> ......
>
> Anyone have a fixed for this? Thanks.

Have you increased the timeout for pkg:

export PKG_CLIENT_TIMEOUT=90

This changes the network timeout for the pkg client from 30s to 90s.

--
Glenn
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


imavrouk

Posts: 81
From: GB

Registered: 6/3/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 11, 2008 5:41 PM   in response to: amerigo5

  Click to reply to this thread Reply

Hi George,

Try the patch from
http://bane.chaosaltar.org/patches/retrieve-patch.diff . It should work
ok but it's been untested so please backup the original as well as
anything that is of any value :-S and let me know if it works
for you.

Thanks,

Yiannis
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


imavrouk

Posts: 81
From: GB

Registered: 6/3/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 11, 2008 4:33 PM   in response to: seb
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Hi,

http://bane.chaosaltar.org/patches/retrieve-patch.diff
Try this patch against
/usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py
set the env variable PKG_RETRIES to however many you think will be required,
the default is 5.
This is untested so please backup your file before applying :-) and let me know
if it works for you.

duey

Posts: 45
From: Colorado

Registered: 10/19/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 8:52 AM   in response to: alanst

  Click to reply to this thread Reply

On 6/6/2008 11:46 PM, Alan Steinberg wrote:
> The pkg.opensolaris.org repository has been updated to the snv_90
> level. This update also includes snv_89 packages.
>
> PAY ATTENTION TO THE ATTACHED UPDATE PROCEDURE!!! Failure to do so
> will prevent your system from rebooting.
>
> Please see the attached for instructions for updating from OpenSolaris
> 2008.05, as well as a list of changes incorporated into the snv_90
> update.
>
> -- Alan Steinberg
> OpenSolaris Release Engineering
My apologies if this is an elementary question, but is it necessary (now
an in the future) to update the installed OS to use packages in the repo
that have been updated to a level later than the OS itself? In other
words, can you install and run packages that are at a level equal to, or
less than, the build level of the OS?

Thanks,

Marty

--
_/_/_/ Marty Duey
_/ _/ _/ _/ _/ Partner Development Manager
_/_/_/ _/ _/ _/_/ _/ Partner Marketing
_/ _/ _/ _/ _/_/ Email: marty dot duey at sun dot com
_/_/_/ _/_/_/ _/ _/ Direct: 303.223.6141
Internal: x69342
M I C R O S Y S T E M S

_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


waynel

Posts: 2,175
From: US

Registered: 6/24/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 9:33 AM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> The pkg.opensolaris.org repository has been updated
> to the snv_90 level.
> This update also includes snv_89 packages.
>
> PAY ATTENTION TO THE ATTACHED UPDATE PROCEDURE!!!
> Failure to do so will
> prevent your system from rebooting.
>
> Please see the attached for instructions for updating
> from OpenSolaris
> 2008.05, as well as a list of changes incorporated
> into the snv_90 update.
>
> -- Alan Steinberg
> OpenSolaris Release Engineering
>

Wow, this is so cool! Of course, since my system was already an update from Stephen's RC2, the only change I had to make was:

$ pfexec mount -F zfs rpool/ROOT/opensolaris-2 /mnt

instead of "opensolaris-1", but this is very obvious.

Also, there was a warning message (something about HAL error) when starting GNOME. I thought that was already taken care off in SX?

Thanks again! ZFS rules!

alainkaa

Posts: 14
From:

Registered: 3/3/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 1:58 PM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

I'm not able to "pkg image-update" my installation. After downloading 100-120 mb of data error messages very similar to the ones mentioned in bug 2136 (http://defect.opensolaris.org/bz/show_bug.cgi?id=2136) show up and pkg aborts. When running truss against the pkg process, I can see that it gets stuck for a few seconds after a connect() and a pollsys() system call before the errors show up.

Until now I was not able to find a work around.

quenelle

Posts: 283
From: US

Registered: 3/9/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 7, 2008 10:41 PM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

So I used the GUI instead of the pkg command, and I didn't get any messages, and I don't see an alternate boot environment. So I assumed that doing the upgrade through the GUI didn't participate in the whole bootenv strategy, and I just ran update_grub on the main BE.

Are there new pkg options that control whether a BE is created or not?

Which package upgrades will result in a new bootenv? Will bootenvs ever be recycled? Was there any bug/rfe filed for the BE functionality?

In the announcement, I didn't see any links to more information about this
functionality. It looks cool, but a little mysterious.

atehrani

Posts: 24
From: US

Registered: 3/3/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 10:50 AM   in response to: quenelle
To: Projects » indiana » discuss
  Click to reply to this thread Reply

I tried to upgrade and it failed on the first attempt, but succeeded on the second. However I now I have opensolaris-1 and opensolaris-2. Is there anway to "clear" older images and or packages? Perhaps a pgk -clean option?

moon_cho

Posts: 2
From:

Registered: 3/2/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 11:31 AM   in response to: atehrani
To: Projects » indiana » discuss
  Click to reply to this thread Reply

... do it by hand:

$ pfexec zfs destroy rpool/ROOT/opensolaris-1/opt
$ pfexec zfs destroy rpool/ROOT/opensolaris-1

moon_cho

Posts: 2
From:

Registered: 3/2/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 11:34 AM   in response to: moon_cho
To: Projects » indiana » discuss
  Click to reply to this thread Reply

... and further:

$ pfexec zfs destroy rpool/ROOT/opensolaris-1/opt@install
$ pfexec zfs destroy rpool/ROOT/opensolaris-1@install

$ pfexec zfs destroy rpool/ROOT/opensolaris-1/opt@static:-:2008-06-08-08:00:00
$ pfexec zfs destroy rpool/ROOT/opensolaris-1@static:-:2008-06-08-08:00:00

shaoxuan

Posts: 58
From: CN

Registered: 5/31/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 19, 2008 2:05 AM   in response to: moon_cho
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> ... do it by hand:
>
> $ pfexec zfs destroy rpool/ROOT/opensolaris-1/opt
> $ pfexec zfs destroy rpool/ROOT/opensolaris-1

Hello,

Newbie questions... How can I see a list of images I can boot from? And I want to delete entries which have 'static' in it, it's useless for me.

Thanks,
shao xuan

jxzhao

Posts: 151
From:

Registered: 4/6/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 19, 2008 2:11 AM   in response to: shaoxuan

  Click to reply to this thread Reply

Shao Xuan wrote:
>> ... do it by hand:
>>
>> $ pfexec zfs destroy rpool/ROOT/opensolaris-1/opt
>> $ pfexec zfs destroy rpool/ROOT/opensolaris-1
>>
>
> Hello,
>
> Newbie questions... How can I see a list of images I can boot from? And I want to delete entries which have 'static' in it, it's useless for me.
>
Using "beadm list -a" , you could see the status BEs in detail.

Also, you could use "beadm destroy " to destroy the 'static' stuff.

Jason\
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


shaoxuan

Posts: 58
From: CN

Registered: 5/31/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 19, 2008 2:33 AM   in response to: jxzhao
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Hello Jason,

Sorry to bother you with my another newbie question... How can I batch delete all the 'static' entries?

Thanks,
shao xuan

jxzhao

Posts: 151
From:

Registered: 4/6/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 19, 2008 4:16 AM   in response to: shaoxuan

  Click to reply to this thread Reply

You could write a simple script to do it.
Otherwise, you have to destroy them one by one.

Jason
Shao Xuan wrote:
> Hello Jason,
>
> Sorry to bother you with my another newbie question... How can I batch delete all the 'static' entries?
>
> Thanks,
> shao xuan
> --
>
> This message posted from opensolaris.org
>
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris dot org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>

_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


loomy

Posts: 567
From:

Registered: 3/17/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 11:54 AM   in response to: atehrani
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> I tried to upgrade and it failed on the first
> attempt, but succeeded on the second. However I now I
> have opensolaris-1 and opensolaris-2. Is there anway
> to "clear" older images and or packages? Perhaps a
> pgk -clean option?

That sounds like a good feature request for http://defect.opensolaris.org :)

arpunk

Posts: 94
From: CO

Registered: 12/6/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 12:33 PM   in response to: atehrani

  Click to reply to this thread Reply

On Mon, Jun 9, 2008 at 12:50 PM, Abraham Tehrani <atehrani at hotmail dot com> wrote:
> I tried to upgrade and it failed on the first attempt, but succeeded on the second.
> However I now I have opensolaris-1 and opensolaris-2. Is there anway to "clear"
> older images and or packages? Perhaps a pgk -clean option?

Yes it is, you can do it with:

% pfexec beadm destroy opensolaris-1

Refer to beadm(1M) for further info about boot environments.

--
Ricardo Lanziano
6838 E880 7CA4 D4B6 8283 8F65 96AD EC0B F113 AB62
Unix is simple. It just takes a genius to understand its simplicity.
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


morr

Posts: 1
From:

Registered: 5/7/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 1:53 PM   in response to: atehrani
To: Projects » indiana » discuss
  Click to reply to this thread Reply

What about beadm destroy?

imavrouk

Posts: 81
From: GB

Registered: 6/3/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 2:06 PM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

For those (like myself) that have issues with constant timeouts during the upgrade, try the attached patch I wrote against /usr/lib/python2.4/vendor-packages/pkg/misc.py.

Download from http://chaosaltar.org/patches/misc.diff

Apologies to all the python coders out there, this is massively inelegant, but it's my first ever stab at python code and it works for me.

All usual caveats apply, if this ends up burning your system I can't help/be held responsible blah blah blah :-)

gallatin

Posts: 27
From:

Registered: 6/2/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 10, 2008 11:57 AM   in response to: imavrouk
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Thank you! With your patch, I was finally able to upgrade my system.

Drew

imavrouk

Posts: 81
From: GB

Registered: 6/3/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 12, 2008 4:52 PM   in response to: gallatin

  Click to reply to this thread Reply

Andrew Gallatin wrote:
> Thank you! With your patch, I was finally able to upgrade my system.
>
> Drew
> --
>
> This message posted from opensolaris.org
>
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris dot org
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
>
Hi Drew,

Unfortunately I got my wrist firmly slapped for providing a fix, since
someone was apparently working on it already. Now that you have upgraded
your image, I advise you restore the original file and wait for the
official fix.

Cheers,

Yiannis
_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


loomy

Posts: 567
From:

Registered: 3/17/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 13, 2008 6:27 PM   in response to: imavrouk
To: Projects » indiana » discuss
  Click to reply to this thread Reply

> Andrew Gallatin wrote:
> > Thank you! With your patch, I was finally able to
> upgrade my system.
> >
> > Drew
> > --
> >
> > This message posted from opensolaris.org
> >
> > _______________________________________________
> > indiana-discuss mailing list
> > indiana-discuss at opensolaris dot org
> >
> http://mail.opensolaris.org/mailman/listinfo/indiana-d
> iscuss
> >
> Hi Drew,
>
> Unfortunately I got my wrist firmly slapped for
> providing a fix, since
> someone was apparently working on it already. Now
> that you have upgraded
> your image, I advise you restore the original file
> and wait for the
> official fix.
>
> Cheers,
>
> Yiannis
> _______________________________________________
> indiana-discuss mailing list
> indiana-discuss at opensolaris dot org
> http://mail.opensolaris.org/mailman/listinfo/indiana-d
> iscuss

I'm not sure what this means, but if someone chastised you for helping people then clearly you can tell them to suck it.

imavrouk

Posts: 81
From: GB

Registered: 6/3/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 20, 2008 4:27 PM   in response to: loomy
To: Projects » indiana » discuss
  Click to reply to this thread Reply

>
> I'm not sure what this means, but if someone
> chastised you for helping people then clearly you can
> tell them to suck it.

They did have a point, as someone was already assigned to work on the bug and had a much more elegant fix prepared, but it doesn't really matter :-) if it works for you great, just remember to roll it back as it will be fixed in the next release.

imavrouk

Posts: 81
From: GB

Registered: 6/3/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 2:29 PM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

In relation to the spare zfs filesystems lying about, I upgraded to the latest image and I know have these entries in zfs list

NAME USED AVAIL REFER MOUNTPOINT
rpool 9.92G 24.5G 62K /rpool
rpool@install 19.5K - 55K -
rpool/ROOT 7.92G 24.5G 18K /rpool/ROOT
rpool/ROOT@install 15K - 18K -
rpool/ROOT/opensolaris 55.7M 24.5G 2.95G legacy
rpool/ROOT/opensolaris-10 7.87G 24.5G 4.40G legacy
rpool/ROOT/opensolaris-10@install 8.56M - 2.22G -
rpool/ROOT/opensolaris-10@static:-:2008-06-01-07:14:04 4.26M - 2.36G -
rpool/ROOT/opensolaris-10@static:-:2008-06-01-08:08:11 5.35M - 2.95G -
rpool/ROOT/opensolaris-10@static:-:2008-06-07-20:01:54 97.5K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-00:28:37 56K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-00:38:34 120K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-00:56:46 76K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-01:06:44 121K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-06:00:33 3.51M - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-06:39:31 1.62M - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-07:38:23 74K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-07:55:15 59K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-08:47:22 49K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-09:35:37 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-09:47:45 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-10:33:50 2.83M - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-11:34:04 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-11:44:02 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-11:55:34 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-12:53:21 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-13:01:57 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-13:18:02 994K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-14:16:02 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-14:23:54 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-14:46:25 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-14:55:30 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-15:11:06 631K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-15:23:41 896K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-15:37:42 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-15:47:02 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-16:43:01 925K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-17:05:32 925K - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-18:00:29 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-18:32:27 0 - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-20:10:03 5.05M - 3.41G -
rpool/ROOT/opensolaris-10@static:-:2008-06-08-23:04:19 6.47M - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-12:12:05 238K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-12:58:23 160K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-13:35:41 28K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-14:33:15 224K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-15:13:10 82K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-15:32:31 98K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-15:44:04 82K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-16:11:51 108K - 4.15G -
rpool/ROOT/opensolaris-10@static:-:2008-06-09-19:25:12 7.48M - 4.15G -
rpool/ROOT/opensolaris-10/opt 1.76G 24.5G 1.76G /opt
rpool/ROOT/opensolaris-10/opt@install 72K - 3.61M -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-01-07:14:04 39K - 595M -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-01-08:08:11 48K - 622M -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-07-20:01:54 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-00:28:37 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-00:38:34 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-00:56:46 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-01:06:44 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-06:00:33 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-06:39:31 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-07:38:23 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-07:55:15 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-08:47:22 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-09:35:37 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-09:47:45 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-10:33:50 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-11:34:04 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-11:44:02 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-11:55:34 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-12:53:21 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-13:01:57 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-13:18:02 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-14:16:02 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-14:23:54 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-14:46:25 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-14:55:30 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-15:11:06 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-15:23:41 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-15:37:42 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-15:47:02 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-16:43:01 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-17:05:32 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-18:00:29 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-18:32:27 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-20:10:03 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-08-23:04:19 141K - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-12:12:05 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-12:58:23 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-13:35:41 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-14:33:15 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-15:13:10 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-15:32:31 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-15:44:04 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-16:11:51 0 - 1.76G -
rpool/ROOT/opensolaris-10/opt@static:-:2008-06-09-19:25:12 0 - 1.76G -
rpool/ROOT/opensolaris/opt 0 24.5G 622M /opt
rpool/export 2.00G 24.5G 19K /export
rpool/export@install 15K - 19K -
rpool/export/home 2.00G 24.5G 2.00G /export/home
rpool/export/home@install 18K - 21K -

Which ones are safe to destroy?

sparcdr

Posts: 1,032
From: US

Registered: 3/24/06
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 3:06 PM   in response to: imavrouk

  Click to reply to this thread Reply

With opt rpool 2008-06-07-20:01:54 to 2008-06-08-20:10:03 then rpool/
ROOT/opensolaris-10/opt@static:-:2008-06-09-12:12:05 to rpool/ROOT/
opensolaris-10/opt@static:-:2008-06-09-19:25:12 are empty, though I'd
wait for confirmation that this won't mess things up.

James
On Jun 9, 2008, at 4:29 PM, Yiannis wrote:

> 2008-06-07-20:01:54

_______________________________________________
indiana-discuss mailing list
indiana-discuss at opensolaris dot org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


imavrouk

Posts: 81
From: GB

Registered: 6/3/08
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 9, 2008 4:27 PM   in response to: sparcdr
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Thx James, I suspected the static entries could go as well, but I'll hold off for now as per your suggestion

gwb

Posts: 12
From: Alberta, Canada

Registered: 8/2/07
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 10, 2008 10:28 AM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

Successfull update!

I missed the update instructions shown in this thread, so my machine kept rebooting continuously using the snv_90 Grub menu selection. Luckily I still had snv_79a installed in the Grub menu, so selecting that dumped me into the maintenance mode (since snv_79a was broken), so I mounted rpool/ROOT/2008.05 on /mnt, then did the Grub update and it now reboots fine into snv_90. (YMMV)

icurtain

Posts: 67
From: GB

Registered: 10/26/05
Re: pkg.opensolaris.org repository update: snv_90
Posted: Jun 10, 2008 1:29 PM   in response to: alanst
To: Projects » indiana » discuss
  Click to reply to this thread Reply

I've just followed the instructions and "pkg image-update" my system, now I get an error when tying to update the grub:

# pfexec /mnt/boot/solaris/bin/update_grub -R /mnt
pfexec can't get real path of ``/mnt/boot/solaris/bin/update_grub``

running on macbook pro with fusion

any help appreciated. thanks



Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Copyright © 1995-2005 Sun Microsystems, Inc.