Project

General

Profile

Bug #6669

Detached zone can not be attached (-u)

Added by Nikola M. over 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-02-23
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Detached zone (linked image zone is now default in OI hipster) and I can not detach it, not even using -u opetion to update zone.
In log it is saying:
Reject: pkg::20160126T115902Z
Reason: No version matching 'require' dependency consolidation/userland/userland-incorporation can be installed

  1. zoneadm -z zone1 attach -u
    Password:
    Log File: /var/tmp/zone1.attach_log.7xaW.h
    Attach Path: /zones/build/zone1/root
    Attach ZFS Dataset: rpool/zones/build/zone1/ROOT/zbe-66

    Installing: Using pre-existing data in zonepath
    Global zone version: :20160126T115902Z
    Non-Global zone version: :20150331T180757Z
    Cache: Using /var/pkg/publisher.
    Updating non-global zone: Output follows
    Creating Plan (Running solver): |ERROR: Could not update attaching zone
    Result: Attach Failed.

History

#1

Updated by Alexander Pyhalov over 3 years ago

What publishers did zone have?
Can you pkg -R /path/to/zone install ?

#2

Updated by Nikola M. over 3 years ago

$ pkg publisher
PUBLISHER TYPE STATUS P LOCATION
openindiana.org origin online F http://pkg.openindiana.org/hipster-2015/
hipster-encumbered origin online F http://pkg.openindiana.org/hipster-encumbered/
localhostoih origin online F http://sfe.opencsw.org/localhostoih/

$ sudo pkg -R /zones/build/zone1/root publisher
Password:
PUBLISHER TYPE STATUS P LOCATION
openindiana.org origin online F http://pkg.openindiana.org/hipster-2015/
hipster-encumbered origin online F http://pkg.openindiana.org/hipster-encumbered/
localhostoih origin online F http://sfe.opencsw.org/localhostoih/

$ sudo pkg -R /zones/build/zone1/root install
Creating Plan (Running solver): -
pkg install: No matching version of entire can be installed:
Reject: pkg::20151003T221212Z
to
pkg::20160126T115902Z
Reason: No version matching 'require' dependency consolidation/userland/userland-incorporation can be installed

#3

Updated by Nikola M. over 3 years ago

Just tried and it can attach/detach (and with -u) if zone's entire and global zone entire are the same. (pkg update -r to update zones together with global zone).

Yet to see about when they do not match..

$ sudo zoneadm -z bz1 detach
Password:
$ sudo zoneadm -z bz1 attach
Log File: /var/tmp/bz1.attach_log.EUaOAv
Attach Path: /zones/build/bz1/root
Attach ZFS Dataset: rpool/zones/build/bz1/ROOT/zbe

Installing: Using pre-existing data in zonepath
Global zone version: :20160421T190147Z
Non-Global zone version: :20160421T190147Z
Cache: Using /var/pkg/publisher.
Updating non-global zone: Output follows
No updates necessary for this image.
Result: Attach Succeeded.

$ sudo zoneadm -z bz1 detach
$ sudo zoneadm -z bz1 attach -u
Log File: /var/tmp/bz1.attach_log.C2ay5v
Attach Path: /zones/build/bz1/root
Attach ZFS Dataset: rpool/zones/build/bz1/ROOT/zbe

Installing: Using pre-existing data in zonepath
Global zone version: :20160421T190147Z
Non-Global zone version: :20160421T190147Z
Cache: Using /var/pkg/publisher.
Updating non-global zone: Output follows
No updates necessary for this image.
Updating non-global zone: Zone updated.
Result: Attach Succeeded.
#4

Updated by Alexander Pyhalov over 3 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF