Project

General

Profile

Actions

Feature #13642

closed

onu could support updating on OmniOS

Added by Andy Fiddaman about 2 months ago. Updated 2 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

When using onu to create an illumos-gate boot environment on a running OmniOS system, there is an extra required step:

pkg -R $root change-facet -r onu.ooceonly=false

This removes files from the new BE image which conflict with those delivered from illumos-gate.

We should consider updating the gate onu to detect the situation and perform the additional step.

(Note that the onu utility shipped with OmniOS does this and also makes some additional changes to ensure that zones can be booted in the new boot environment - those pieces are probably not suitable for adding to the gate onu utility)


Related issues

Related to illumos gate - Bug #13646: onu fails if the system being updated has linked image zonesClosedAndy Fiddaman

Actions
Related to illumos gate - Bug #13647: onu does not work with python3.xClosedAndy Fiddaman

Actions
Actions #1

Updated by Electric Monk about 2 months ago

  • Gerrit CR set to 1350
Actions #2

Updated by Andy Fiddaman about 2 months ago

  • Related to Bug #13646: onu fails if the system being updated has linked image zones added
Actions #3

Updated by Andy Fiddaman about 2 months ago

  • Related to Bug #13647: onu does not work with python3.x added
Actions #4

Updated by Andy Fiddaman about 2 months ago

I tested this change in conjunction with #13646 and #13647

onu is now successful on both OmniOS and OpenIndiana with non-global zones of various brands, including non-linked and linked images and, as a double check, with no zones installed.

Example output from OmniOS:

% zoneadm list -vc
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              ipkg     shared
   - lx               installed  /zones/lx                      lx       excl
   - ipkg             installed  /zones/ipkg                    ipkg     excl
   - lipkg            installed  /zones/lipkg                   lipkg    excl

% pfexec usr/src/tools/scripts/onu -t xxxx -d packages/i386/nightly-nd

Created successfully
Mounted successfully on: '/tmp/onu.DHaGx1'
Packages to remove: 1

Planning linked: 0/1 done; 1 working: zone:lipkg
Linked image 'zone:lipkg' output:
`
Planning linked: 1/1 done
Downloading linked: 0/1 done; 1 working: zone:lipkg
Downloading linked: 1/1 done
PHASE                                          ITEMS
Removing old actions                         279/279
Updating package state database                 Done
Updating package cache                           1/1
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Updating search index                            1/1
Executing linked: 0/1 done; 1 working: zone:lipkg
Executing linked: 1/1 done
**
** Preparing for ONU from omnios
**
       Packages to change: 5
      Mediators to change: 1
Variants/Facets to change: 1
       Services to change: 1

Planning linked: 0/1 done; 1 working: zone:lipkg
Linked image 'zone:lipkg' output:
|        Packages to change: 4
|       Mediators to change: 1
| Variants/Facets to change: 1
`
Planning linked: 1/1 done
Downloading linked: 0/1 done; 1 working: zone:lipkg
Downloading linked: 1/1 done
PHASE                                          ITEMS
Removing old actions                           95/95
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Updating search index                            5/5
Executing linked: 0/1 done; 1 working: zone:lipkg
Executing linked: 1/1 done
 Packages to remove:   1
Packages to install:   1
 Packages to update: 335
 Services to change:   2

Planning linked: 0/1 done; 1 working: zone:lipkg
Linked image 'zone:lipkg' output:
| Packages to install:   2
|  Packages to update: 286
|  Services to change:   2
`
Planning linked: 1/1 done
Building new search index                    636/636
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            337/337     5679/5679  133.9/133.9  4.1M/s

Downloading linked: 0/1 done; 1 working: zone:lipkg
Downloading linked: 1/1 done
PHASE                                          ITEMS
Removing old actions                         431/431
Installing new actions                         55/55
Updating modified actions                  6328/6328
Updating package state database                 Done
Updating package cache                       336/336
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Building new search index                    636/636
Executing linked: 0/1 done; 1 working: zone:lipkg
Executing linked: 1/1 done
Activated successfully
WARNING: Use of onu(1) will prevent use of zone attach in the new BE
See onu(1)
**
** Updating zone ipkg (brand ipkg)
**
Packages to remove: 1

PHASE                                          ITEMS
Removing old actions                         276/276
Updating package state database                 Done
Updating package cache                           1/1
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           2/2
**
** Preparing for ONU from omnios
**
       Packages to change: 4
      Mediators to change: 1
Variants/Facets to change: 1

PHASE                                          ITEMS
Removing old actions                           16/16
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           2/2
Packages to install:   2
 Packages to update: 286
 Services to change:   2

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            288/288     4416/4416    60.5/60.5      --

PHASE                                          ITEMS
Removing old actions                         337/337
Installing new actions                       237/237
Updating modified actions                  4794/4794
Updating package state database                 Done
Updating package cache                       286/286
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           2/2

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

and from OpenIndiana:

$ zoneadm list -vc
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              ipkg     shared
   - ipkg             installed  /zones/ipkg                    ipkg     excl
   - nlipkg           installed  /zones/nlipkg                  nlipkg   excl

$ pfexec usr/src/tools/scripts/onu -t xxxx -d packages/i386/nightly

Created successfully
Mounted successfully on: '/tmp/onu.itaOIy'
Packages to remove: 1

Planning linked: 0/1 done; 1 working: zone:ipkg
Linked image 'zone:ipkg' output:
|
`
Planning linked: 1/1 done
Downloading linked: 0/1 done; 1 working: zone:ipkg
Downloading linked: 1/1 done
PHASE                                          ITEMS
Removing old actions                           11/11
Updating package state database                 Done
Updating package cache                           1/1
Updating image state                            Done
Creating fast lookup database                   Done
Executing linked: 0/1 done; 1 working: zone:ipkg
Executing linked: 1/1 done
**
** Preparing for ONU from openindiana
**
Packages to install:   3
 Packages to update: 218
 Services to change:   1

Planning linked: 0/1 done; 1 working: zone:ipkg
Linked image 'zone:ipkg' output:
|
`
Planning linked: 1/1 done
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            221/221     5431/5431  112.9/112.9  5.0M/s

Downloading linked: 0/1 done; 1 working: zone:ipkg
Downloading linked: 1/1 done
PHASE                                          ITEMS
Removing old actions                       2357/2357
Installing new actions                     1017/1017
Updating modified actions                  6008/6008
Updating package state database                 Done
Updating package cache                       218/218
Updating image state                            Done
Creating fast lookup database                   Done
Executing linked: 0/1 done; 1 working: zone:ipkg
Executing linked: 1/1 done

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

https://docs.openindiana.org/release-notes/latest-changes/
---------------------------------------------------------------------------

Activated successfully
WARNING: Use of onu(1) will prevent use of zone attach in the new BE
See onu(1)
**
** Updating zone nlipkg (brand nlipkg)
**
Packages to remove: 1

PHASE                                          ITEMS
Removing old actions                           11/11
Updating package state database                 Done
Updating package cache                           1/1
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           1/1
**
** Preparing for ONU from openindiana
**
Packages to install: 79
 Packages to update: 54
 Packages to change:  5
Mediators to change:  1
 Services to change:  7

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            138/138   16674/16674  176.5/176.5  3.6M/s

PHASE                                          ITEMS
Removing old actions                       1018/1018
Installing new actions                   16153/16153
Updating modified actions                  4232/4232
Updating package state database                 Done
Updating package cache                         54/54
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           2/2

---------------------------------------------------------------------------
NOTE: Please review release notes posted at:

https://docs.openindiana.org/release-notes/latest-changes/
---------------------------------------------------------------------------
Actions #5

Updated by Electric Monk 2 days ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit b3013b70462052910fea345a14462dcaa00cf7f6

commit  b3013b70462052910fea345a14462dcaa00cf7f6
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2021-05-04T18:50:34.000Z

    13642 onu could support updating on OmniOS
    13646 onu fails if the system being updated has linked image zones
    13647 onu does not work with python3.x
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF