<div dir="ltr">I had similar problem. <div>I do not see "update" verb in zoneadm command. I think "pkg -R <zonepath>/root update" was used for upgrading detached zones.</div><div>For me it did not work initially. All detached zones had empty list of publishers. So, to workaround the problem, the needed steps were the following:</div>
<div>1. Recreate package publishers, that is, for all publishers do</div><div>---</div><div><span style="color:rgb(0,0,0)">pkg -R <zonepath>/root set-publisher -g <a href="http://pkg.omniti.com/omnios/release">http://pkg.omniti.com/omnios/release</a> omnios</span></div>
<div><span style="color:rgb(0,0,0)">---</span></div><div><span style="color:rgb(0,0,0)">2. Update zone image</span></div><div><span style="color:rgb(0,0,0)">---</span></div><div><span style="color:rgb(0,0,0)">pkg -R <zonepath>/root update</span></div>
<div><span style="color:rgb(0,0,0)">---</span></div><div><span style="color:rgb(0,0,0)">3. Attach the zone</span></div><div><span style="color:rgb(0,0,0)">---</span></div><div><span style="color:rgb(0,0,0)">zoneadm -z <zonename> attach</span></div>
<div><span style="color:rgb(0,0,0)">---</span></div><div><span style="color:rgb(0,0,0)">When I've tried after 1-st step, instead of updating packages from global zone just attaching with '-u', all publishers were unset immediately.</span></div>
<div><span style="color:rgb(0,0,0)">-- </span></div><div><span style="color:rgb(0,0,0)"> Regards, </span></div><div><span style="color:rgb(0,0,0)"> Sergey Ivanov.</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jan 7, 2014 at 7:51 AM, Steffen Kram <span dir="ltr"><<a href="mailto:sk@kram.io" target="_blank">sk@kram.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
beside this fix I’m still having problems re-attaching my zone. I just upgraded the global zone to r151008f. So I already got the fixed versions:<br>
<br>
root@hume:~# pkg info package/pkg<br>
... FMRI: pkg://omnios/package/pkg@0.5.11,5.11-0.151008:20131230T201906Z<br>
root@hume:~# pkg info system/zones/brand/ipkg<br>
... FMRI: pkg://omnios/system/zones/brand/ipkg@0.5.11,5.11-0.151008:20131230T201908Z<br>
<br>
Next I tried to update one of my non-global zones using the zoneadm attach -u command:<br>
<br>
root@hume:~# zoneadm -z telford attach -u<br>
Log File: /var/tmp/telford.attach_log.hmaqMh<br>
Attach Path: /zones/telford/root<br>
Attach ZFS Dataset: cairngorm/zones/telford/ROOT/zbe-2<br>
<div class="im"><br>
Installing: Using pre-existing data in zonepath<br>
</div><div class="im"> Global zone version: entire@11,5.11-0.151008:20131205T195242Z<br>
</div><div class="im"> Non-Global zone version: entire@11,5.11-0.151006:20130507T204959Z<br>
</div> Cache: Using /var/pkg/publisher.<br>
<div class="im"> Updating non-global zone: Output follows<br>
</div>Creating Plan<br>
<div class="im">ERROR: Could not update attaching zone<br>
</div> Result: Attach Failed.<br>
<br>
It did fail because of<br>
<br>
[ 7. Januar 2014 13:42:55 CET] Updating non-global zone: Output follows<br>
pkg set-publisher: The origin URIs for 'omnios' do not appear to point to a valid pkg repository.<br>
Please verify the repository's location and the client's network configuration.<br>
Additional details:<br>
<br>
Unable to contact valid package repository<br>
Encountered the following error(s):<br>
Unable to contact any configured publishers.<br>
This is likely a network configuration problem.<br>
Framework error: code: 7 reason: Failed connect to localhost:10000; Connection refused<br>
URL: '<a href="http://localhost:10000" target="_blank">http://localhost:10000</a>'. (happened 4 times)<br>
<br>
pkg set-publisher: The origin URIs for 'uulm.mawi' do not appear to point to a valid pkg repository.<br>
Please verify the repository's location and the client's network configuration.<br>
Additional details:<br>
<br>
Unable to contact valid package repository<br>
Encountered the following error(s):<br>
Unable to contact any configured publishers.<br>
This is likely a network configuration problem.<br>
Framework error: code: 7 reason: Failed connect to localhost:10000; Connection refused<br>
URL: '<a href="http://localhost:10000" target="_blank">http://localhost:10000</a>'. (happened 4 times)<br>
<br>
<br>
pkg install: The following pattern(s) did not match any allowable packages. Try<br>
using a different matching pattern, or refreshing publisher information:<br>
<br>
entire@11,5.11-0.151008:20131205T195242Z<br>
[ 7. Januar 2014 13:43:05 CET] ERROR: Could not update attaching zone<br>
[ 7. Januar 2014 13:43:08 CET] Result: Attach Failed.<br>
<br>
However, there was never a pkg publisher configured on localhost:10000 for this zone.<br>
<br>
I am able to upgrade and boot the zone when preforming the update from the global zone using<br>
<br>
zoneadm -R /zones/telford/root update<br>
<br>
and attaching the zone afterwards. In this case the publisher information in the non-global zone is empty and I have to re-add the omnios default publisher manually.<br>
<br>
Cheers,<br>
Steffen<br>
<br>
<br>
Am 06.01.2014 um 16:49 schrieb Dale Ghent <<a href="mailto:daleg@omniti.com">daleg@omniti.com</a>>:<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> There's a fix out now for this, released on friday. New packages for:<br>
><br>
> package/pkg<br>
> system/zones/brand/ipkg<br>
><br>
> Update these before you do your zone-related work and it should work as expected.<br>
><br>
> /dale<br>
><br>
> On Jan 5, 2014, at 8:17 AM, Matthias Teege <<a href="mailto:matthias-omn-discuss@mteege.de">matthias-omn-discuss@mteege.de</a>> wrote:<br>
><br>
>> On Sat, Dec 07, 2013 at 06:52:59PM +0200, Lauri Tirkkonen wrote:<br>
>><br>
>> Hi,<br>
>><br>
>>> I noticed that I could not attach my non-global zones under r151008<br>
>>> after upgrading from r151006. I made a couple VMs to reproduce, and it<br>
>><br>
>> I run in the same issue. Can I attach the r151006 zones without "-u"<br>
>> and update later?<br>
>><br>
>> Many Thanks<br>
>> Matthias<br>
>> _______________________________________________<br>
>> OmniOS-discuss mailing list<br>
>> <a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
>> <a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
><br>
> _______________________________________________<br>
> OmniOS-discuss mailing list<br>
> <a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
> <a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
><br>
<br>
</div></div><br>_______________________________________________<br>
OmniOS-discuss mailing list<br>
<a href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a><br>
<a href="http://lists.omniti.com/mailman/listinfo/omnios-discuss" target="_blank">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Sergey Ivanov | <a href="mailto:sergey57@gmail.com" target="_blank">sergey57@gmail.com</a><br><a href="http://www.linkedin.com/pub/sergey-ivanov/8/270/a09" target="_blank">http://www.linkedin.com/pub/sergey-ivanov/8/270/a09</a></div>
</div>