Bug #6669
Detached zone can not be attached (-u)
0%
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://openindiana.org/entire@0.5.11-2015.0.2.1:20160126T115902Z
Reason: No version matching 'require' dependency consolidation/userland/userland-incorporation can be installed
- 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-66Installing: Using pre-existing data in zonepath
Global zone version: entire@0.5.11-2015.0.2.1:20160126T115902Z
Non-Global zone version: entire@0.5.11-2015.0.1.1: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.
Updated by Alexander Pyhalov about 5 years ago
What publishers did zone have?
Can you pkg -R /path/to/zone install entire@0.5.11-2015.0.2.1 ?
Updated by Nikola M. about 5 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 entire@0.5.11-2015.0.2.1
Creating Plan (Running solver): -
pkg install: No matching version of entire can be installed:
Reject: pkg://openindiana.org/entire@0.5.11-2015.0.2.1:20151003T221212Z
to
pkg://openindiana.org/entire@0.5.11-2015.0.2.1:20160126T115902Z
Reason: No version matching 'require' dependency consolidation/userland/userland-incorporation can be installed
Updated by Nikola M. almost 5 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: entire@0.5.11-2016.0.0.0:20160421T190147Z
Non-Global zone version: entire@0.5.11-2016.0.0.0: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: entire@0.5.11-2016.0.0.0:20160421T190147Z
Non-Global zone version: entire@0.5.11-2016.0.0.0: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.