Project

General

Profile

Bug #6675

Fresh installed zone cannot be attached after detach without doing attach -u

Added by Olaf Bohlen over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
PKG (Image Packaging System)
Target version:
-
Start date:
2016-02-25
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

(627) oldn90700:/home/olbohlen$ zoneadm -z foo list -v
  ID NAME             STATUS     PATH                           BRAND    IP    
   - foo              configured /rpool/zones/foo               ipkg     excl  
(628) oldn90700:/home/olbohlen$ zoneadm -z foo install
zoneadm: zone 'foo': only a privileged user may install a zone.
(629) oldn90700:/home/olbohlen$ pfexec zoneadm -z foo install
A ZFS file system has been created for this zone.
   Publisher: Using openindiana.org (http://zonegw4:11160/ ).
   Publisher: Using olbohlen-extras (http://zonegw4:11700/).
   Publisher: Using localhostoih (http://zonegw4:11162/).
   Publisher: Using userland (http://zonegw4:11163/).
       Image: Preparing at /rpool/zones/foo/root.

       Cache: Using /var/pkg/publisher.
Sanity Check: Looking for 'entire' incorporation.
  Installing: Packages (output follows)
Packages to install: 120
Mediators to change:   6
 Services to change:   4

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            120/120   26694/26694  195.7/195.7    0B/s

PHASE                                          ITEMS
Installing new actions                   42155/42155
Updating package state database                 Done 
Updating package cache                           0/0 
Updating image state                            Done 
Creating fast lookup database                   Done 

        Note: Man pages can be obtained by installing pkg:/system/manual
 Postinstall: Copying SMF seed repository ... done.
 Postinstall: Applying workarounds.
        Done: Installation completed in 224.498 seconds.

  Next Steps: Boot the zone, then log into the zone console (zlogin -C)
              to complete the configuration process.
(630) oldn90700:/home/olbohlen$ zoneadm -z foo boot
zoneadm: zone 'foo': only a privileged user may boot a zone.
(631) oldn90700:/home/olbohlen$ pfexec zoneadm -z foo boot
(632) oldn90700:/home/olbohlen$ pfexec zlogin foo halt
(635) oldn90700:/home/olbohlen$    
(635) oldn90700:/home/olbohlen$ pfexec zoneadm -z foo detach
(636) oldn90700:/home/olbohlen$ pfexec zoneadm -z foo attach
Log File: /var/tmp/foo.attach_log.sNa42z
               Attach Path: /rpool/zones/foo/root
        Attach ZFS Dataset: rpool/zones/foo/ROOT/zbe

                Installing: Using pre-existing data in zonepath
       Global zone version: entire@0.5.11-2015.0.2.1:20151027T063838Z
   Non-Global zone version: entire@0.5.11-2015.0.2.1:20151027T063838Z
                     Cache: Using /var/pkg/publisher.
  Updating non-global zone: Output follows
Updating package cache                           1/1 
No updates necessary for this image.

                Evaluation: Packages in zone foo are out of sync with the global zone. To proceed, retry with the -u flag.
                    Result: Attach Failed.


It works with zoneadm -z foo attach -u

History

#1

Updated by Alexander Pyhalov over 4 years ago

  • Subject changed from Hipster, fresh installed linked-zone cannot be attached after detach, without doing attach -u to Fresh installed zone cannot be attached after detach without doing attach -u
#2

Updated by Alexander Pyhalov over 4 years ago

  • Status changed from New to Resolved
  • Assignee changed from OI PKG to Alexander Pyhalov

Should be fixed in https://github.com/OpenIndiana/pkg5/commit/e0fb8479c2783e0487810f404e09db72ce2ddce8 , which will appear in package repository in several hours.

Also available in: Atom PDF