<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I _think_ the issue is going to be related to how "pkg image-update" deals with conflicts (i.e. siliently), coupled with the fact that the image I'm upgrading is from the 2017.10 Hipster ISO and hasn't been updated to any recent Hipster packages (i.e. no "pkg image-update" run).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">As you might have seen in the openzfs PR I'm using to test, I've created a new AMI that's a Hipster system updated last night. I have a feeling things will work with the updated system, which would lead me to believe I "simply" need to continually update (e.g. weekly) the base image that I use to do the build and upgrade. i.e. this is an inherent issue with IPS packages and how "pkg image-update" deals with conflicts, which is disappointing, but not something I intend to solve (or expect to be solved).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">With all that said, I left some output that I got from trying to "pkg install osnet-incorporation@MY_VERSION" below, in case it's helpful.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 27, 2018 at 2:30 AM, Alexander Pyhalov <span dir="ltr"><<a href="mailto:alp@rsu.ru" target="_blank">alp@rsu.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 02/26/18 08:48 PM, Prakash Surya wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br>
I'm having a problem using ONU to upgrade an OI Hipster system to a nightly<br>
build of the illumos-gate. Basically, after I upgrade via ONU and reboot,<br>
the system is running the new BE, but the new kernel (and other packages)<br>
aren't running (i.e. they're not part of the new BE).<br>
<br>
I'm guessing this is a result of how I'm setting the PKGVERS_BRANCH<br>
illumos.sh variable, where I set it like so:<br>
<br>
PKGVERS_BRANCH=$(pkg info -r pkg://<a href="http://openindiana.org/SUNWcs" rel="noreferrer" target="_blank">openindiana.org/SUNWcs</a> | awk '$1 ==<br>
"Branch:" {print $2}')<br>
<br>
Is this how I should be setting this variable? How do others upgrade OI to<br>
a nightly build of illumos-gate?<br>
</blockquote>
<br></span>
Hi.<br>
I usually set PKGVERS_BRACNH to RELEASE_MAJOR.RELEASE_MINOR+1.<wbr>0.0 (where RELEASE_MAJOR and RELEASE_MINOR matches OI versions). </blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I'm updating the script I use to build, to do this. It still didn't solve my issue, but this matches the "how to build illumos docs" so it should be good to do none-the-less.</div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">To find out what is going on, it would be interesting to see the output of pkg update -vv osnet-incorporation@YOUR_VERSI<wbr>ON.</blockquote><div><br></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Here's what I see when trying to install to a new BE I created to try and debug this:</div><br><div>delphix@openindiana:~/openzfs$ sudo pkg -R /mnt/adsf install osnet-incorporation@0.5.11-2018.0.0.17099</div><div>Creating Plan (Solver setup): /</div><div>pkg install: Package system/library/install must be uninstalled before the requested operation can be performed.</div><div> Reject: pkg://<a href="http://openindiana.org/system/library/install@0.5.11-2017.0.0.1014">openindiana.org/system/library/install@0.5.11-2017.0.0.1014</a></div><div> Reason: All acceptable versions of 'require' dependency on system/boot/wanboot@0.5.11-2017.0.0.16778 are obsolete</div><div>Package consolidation/install/install-incorporation must be uninstalled before the requested operation can be performed.</div><div> Reject: pkg://<a href="http://openindiana.org/consolidation/install/install-incorporation@0.5.11-2017.0.0.1014">openindiana.org/consolidation/install/install-incorporation@0.5.11-2017.0.0.1014</a></div><div> Reason: No version matching 'incorporate' dependency system/install@0.5.11-2017.0.0.1014 can be installed</div><div> ----------------------------------------</div><div> Reject: pkg://<a href="http://openindiana.org/system/install@0.5.11-2017.0.0.1014">openindiana.org/system/install@0.5.11-2017.0.0.1014</a></div><div> Reason: No version matching 'require' dependency consolidation/install/install-incorporation can be installed</div><div> ----------------------------------------</div><div> Reason: No version matching 'incorporate' dependency system/library/install@0.5.11-2017.0.0.1014 can be installed</div><div>Package metapackages/build-essential must be uninstalled before the requested operation can be performed.</div><div> Reject: pkg://<a href="http://openindiana.org/metapackages/build-essential@1.0-2017.0.0.9">openindiana.org/metapackages/build-essential@1.0-2017.0.0.9</a></div><div> Reason: No version matching 'require' dependency developer/opensolaris/osnet can be installed</div><div> ----------------------------------------</div><div> Reject: pkg://on-nightly/developer/opensolaris/osnet@0.5.11-2018.0.0.17099</div><div> Reason: No version matching 'require' dependency system/library/install can be installed</div><div> ----------------------------------------</div><div>Package consolidation/userland/userland-incorporation must be uninstalled before the requested operation can be performed.</div><div> Reject: pkg://<a href="http://openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2017.0.0.9826">openindiana.org/consolidation/userland/userland-incorporation@0.5.11-2017.0.0.9826</a></div><div> Reason: No version matching 'incorporate' dependency consolidation/install/install-incorporation@0.5.11-2017.0.0.1014 can be installed</div><div>Package system/install must be uninstalled before the requested operation can be performed.</div><div> Reject: pkg://<a href="http://openindiana.org/system/install@0.5.11-2017.0.0.1014">openindiana.org/system/install@0.5.11-2017.0.0.1014</a></div><div> Reason: [already rejected; see above]</div><div>Package developer/opensolaris/osnet must be uninstalled before the requested operation can be performed.</div><div> Reject: pkg://on-nightly/developer/opensolaris/osnet@0.5.11-2018.0.0.17099</div> Reason: [already rejected; see above] <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
Best regards,<br>
Alexander Pyhalov,<br>
system administrator of Southern Federal University IT department<br>
</font></span></blockquote></div><br></div></div>