# [OmniOS-discuss] ipkg zone update after global update

PÁSZTOR György pasztor at sagv5.gyakg.u-szeged.hu
Sun May 13 12:04:48 UTC 2018

- Previous message: [OmniOS-discuss] MEDIA: Initial OmniOS impressions by a BSD user
- Next message: [OmniOS-discuss] CIFS access denied to some users from AD
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    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 at 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: entire at 11-0.151026:20180504T112744Z
       Non-Global zone version: entire at 11-0.151024: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 entire at 11-0.151026: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/entire@11-0.151026
      Reason:  No version matching 'require' dependency SUNWcs at 0.5.11-0.151026
    can be installed
        ----------------------------------------
        Reject:  pkg://omnios/SUNWcs@0.5.11-0.151026
        Reason:  This version is excluded by installed incorporation
    consolidation/osnet/osnet-incorporation at 0.5.11-0.151024
        ----------------------------------------
    ...

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

    But, boot didn't succeeded:

    root at 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 at 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 at 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 at 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 at nas-omni:~# zoneadm -z rt detach
    root at 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: entire at 11-0.151026:20180504T112744Z
       Non-Global zone version: entire at 11-0.151026: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 at nas-omni:~# zoneadm -z rt boot

    Step n+1, just because I'm paranoid / like to dobulecheck:
    pasztor at rt:~$ sudo pkg refresh
    pasztor at 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

- Previous message: [OmniOS-discuss] MEDIA: Initial OmniOS impressions by a BSD user
- Next message: [OmniOS-discuss] CIFS access denied to some users from AD
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the OmniOS-discuss mailing list