Hi,

I've just followed the directions of the update procedure described here:
https://omniosce.org/upgrade.html

It seems, the update of the ipkg zones doesn't work that smooth, how the
docs says.
After the reboot, I tried to reattach the zone but without any success.
I usually got this:
root@nas-omni:~# zoneadm -z rt attach -u
Log File: /var/tmp/rt.attach_log.ZqaOCf
               Attach Path: /zones/rt/root
        Attach ZFS Dataset: stash/zones/rt/ROOT/zbe-2

                Installing: Using pre-existing data in zonepath
       Global zone version: [email protected]:20180504T112744Z
   Non-Global zone version: [email protected]:20171030T140754Z
                     Cache: Using /var/pkg/publisher.
  Updating non-global zone: Output follows
Creating Plan (Solver setup): -ERROR: Could not update attaching zone
                    Result: Attach Failed.

In the logfile, afther the same pre-task information, I can see this:
PKG: install --accept --no-refresh [email protected]:20180504T112744Z 
pkg://omnios/system/library/gcc-5-runtime 
pkg://omnios/system/library/g++-5-runtime 
pkg://omnios/system/library/gcc-6-runtime 
pkg://omnios/system/library/g++-6-runtime

pkg install: No matching version of entire can be installed:
  Reject:  pkg://omnios/[email protected]
  Reason:  No version matching 'require' dependency [email protected]
can be installed
    ----------------------------------------
    Reject:  pkg://omnios/[email protected]
    Reason:  This version is excluded by installed incorporation
consolidation/osnet/[email protected]
    ----------------------------------------
...

I tried to force-attach it:
root@nas-omni:~# zoneadm -z rt attach -F

But, boot didn't succeeded:

root@nas-omni:~# zoneadm -z rt boot
zone 'rt': ERROR: Unable to mount the zone's ZFS dataset.
zone 'rt': 
zoneadm: zone 'rt': call to zoneadmd failed

So, to actually fix it, I needed to do the following:
root@nas-omni:~# zfs mount stash/zones/rt/ROOT/zbe-2 

It was weird, since it seems, the publisher was successfully updated,
just the upgrade procedure didn't went that smooth somehow:

root@nas-omni:~# pkg -R /zones/rt/root publisher
PUBLISHER                   TYPE     STATUS P LOCATION
omnios                      origin   online F 
https://pkg.omniosce.org/r151026/core/
niksula.hut.fi              origin   online F http://pkg.niksula.hut.fi/
extra.omnios                origin   online F 
https://pkg.omniosce.org/r151026/extra/
root@nas-omni:~# pkg -R /zones/rt/root update
 Packages to remove:   8
Packages to install:   7
 Packages to update: 396
 Packages to change:   2
Mediators to change:   3
 Services to change:   3

DOWNLOAD                                PKGS         FILES    XFER (MB)
SPEED
Completed                            413/413   14808/14808  186.0/186.0
635k/s

PHASE                                          ITEMS
Removing old actions                     12646/12646
Installing new actions                     9065/9065
Updating modified actions                10734/10734
Updating package state database                 Done 
Updating package cache                       404/404 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           3/3 

-------------------------------------------------------------------------------
Find release notes:
https://omniosce.org/releasenotes
-------------------------------------------------------------------------------
Get a support contract:                    https://omniosce.org/invoice
Sponsor OmniOS development:                https://omniosce.org/patron
Contribute to OmniOS:                      https://omniosce.org/joinus
-------------------------------------------------------------------------------

Now, at this point, let's try an detach&attach cycle:
root@nas-omni:~# zoneadm -z rt detach
root@nas-omni:~# zoneadm -z rt attach
Log File: /var/tmp/rt.attach_log.SQa42g
               Attach Path: /zones/rt/root
        Attach ZFS Dataset: stash/zones/rt/ROOT/zbe-2

                Installing: Using pre-existing data in zonepath
       Global zone version: [email protected]:20180504T112744Z
   Non-Global zone version: [email protected]:20180504T112744Z
                     Cache: Using /var/pkg/publisher.
  Updating non-global zone: Output follows
No updates necessary for this image.

                    Result: Attach Succeeded.


Step n-1: fingers crossed!
Step n:
root@nas-omni:~# zoneadm -z rt boot

Step n+1, just because I'm paranoid / like to dobulecheck:
pasztor@rt:~$ sudo pkg refresh
pasztor@rt:~$ sudo pkg update
No updates available for this image.

Maybe, it could be useful to extend the upgrade instructions with some kind
of extra hints, like this, how can someone fix the upgrade of an ipkg zone
if that fails.

Cheers,
Gyu
_______________________________________________
OmniOS-discuss mailing list
[email protected]
http://lists.omniti.com/mailman/listinfo/omnios-discuss

Reply via email to