<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">This is a new error...</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><div class="gmail_default">mberger@bldecos-1:/builds2/mberger/superbee/snappy-ecos$ snapcraft clean && rm -rf parts/kernel && rm -rf parts/plugins/__pycache__ && rm -f *.snap && snapcraft</div><div class="gmail_default">Searching for local plugin for x-kernel</div><div class="gmail_default">Skipping cleaning priming area for kernel (already clean)</div><div class="gmail_default">Skipping cleaning staging area for kernel (already clean)</div><div class="gmail_default">Skipping cleaning build for kernel (already clean)</div><div class="gmail_default">Skipping cleaning pulled source for kernel (already clean)</div><div class="gmail_default">Searching for local plugin for x-kernel</div><div class="gmail_default">Preparing to pull kernel </div><div class="gmail_default">Pulling kernel </div><div class="gmail_default">Cloning into '/builds2/mberger/superbee/snappy-ecos/parts/kernel/src'...</div><div class="gmail_default">remote: Counting objects: 56837, done.</div><div class="gmail_default">remote: Compressing objects: 100% (53458/53458), done.</div><div class="gmail_default">remote: Total 56837 (delta 5176), reused 20474 (delta 2543)</div><div class="gmail_default">Receiving objects: 100% (56837/56837), 157.59 MiB | 4.69 MiB/s, done.</div><div class="gmail_default">Resolving deltas: 100% (5176/5176), done.</div><div class="gmail_default">Checking connectivity... done.</div><div class="gmail_default">Checking out files: 100% (53696/53696), done.</div><div class="gmail_default">Getting details for ubuntu-core</div><div class="gmail_default">Downloading ubuntu-core</div><div class="gmail_default">401 Client Error: UNAUTHORIZED for url: <a href="https://public.apps.ubuntu.com/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_524.snap">https://public.apps.ubuntu.com/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_524.snap</a></div><div class="gmail_default">mberger@bldecos-1:/builds2/mberger/superbee/snappy-ecos$ </div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 8, 2016 at 6:58 PM, Luke Williams <span dir="ltr"><<a href="mailto:luke.williams@canonical.com" target="_blank">luke.williams@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Wow, I hate typing on my phone. Corrected email below so it actually makes sense:<div><br></div><div><span class=""><div><font size="2"><span style="background-color:rgba(255,255,255,0)">One thing I noticed is that if you build your kernel snap with confinement: strict </span></font></div></span><div><font size="2"><span style="background-color:rgba(255,255,255,0)">It will build your image with the three snaps showing in the snap list command, so that when you add other snaps, it does not download the Ubuntu-core snap and make the system 100% unstable. </span></font></div><div><font size="2"><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font size="2"><span style="background-color:rgba(255,255,255,0)">I've also been using the stable channel instead of edge because with the edge channel I have not been able to get the device to detect the network properly on many devices mainly because it's looking for network, and it being a switch, relies on the network drivers to be loaded before the cloud init runs <span></span>which has lead to a boot up time of 5 minutes on initial boot. </span></font></div><div><div class="h5"><br>On Thursday, September 8, 2016, Luke Williams <<a href="mailto:luke.williams@canonical.com" target="_blank">luke.williams@canonical.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike,<div><br></div><div>One thing I noticed is that if you build your kernel snap with confinement: strict </div><div>It will build your image with the three snaps showing in the snap list command, so that when you add other snaps, Jr. Does not download the Ubuntu-core snap and make the system 100% unstable. </div><div><br></div><div>I've also been using the stable channel instead of edge since the edge channel I have not been able to get the device to detect the network properly on many devices mainly because it's looking for network, and it being a switch, relies on the network drivers to be loaded before the cloud unit rubs, which has lead to a boot up time of 5 minutes on initial boot. </div><div><br></div><div><br>On Thursday, September 8, 2016, MikeB <<a>mabnhdev@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><div class="gmail_default"><div class="gmail_default"><br></div><div class="gmail_default">I'm looking to run OpenSwitch on several new whitebox switch platforms with Snappy/Ubuntu-Core as the native OS.</div><div class="gmail_default"><br></div><div class="gmail_default">Each of these platforms requires a custom kernel in order to boot.</div><div class="gmail_default">Each of these platforms requires at least one custom kernel driver to access the network ASIC.</div><div class="gmail_default">Each of these platforms is initially loaded using ONIE.</div><div class="gmail_default"><br></div><div class="gmail_default">I currently use snapcraft and the kernel plugin to create a custom kernel snap for each platform. I apply any necessary kernel patches during the pull stage through a custom plugin. I inject the custom .ko driver files into the parts/kernel/install between the build and stage phases of snapcraft.</div><div class="gmail_default"><br></div><div class="gmail_default">I then use 'ubuntu-device-flash core 16 --channel=edge --kernel=$snap --gadget=pc --os=ubuntu-core -o $IMG' to create an image.</div><div class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default">I then use kpartx and ONIE scripts to create an ONIE NOS Installer from the image I created.</div><div><br></div></div><div class="gmail_default">The most critical problem I have now is that snapd fails to start on my target systems. No snapd, no snaps. I assume it is because 'Sep 8 10:56:02 localhost snap[853]: error: cannot read assert seed dir: open /var/lib/snapd/seed/assertions<wbr>: no such file or directory'. However, I also see many instances of the following message: 'Sep 8 11:06:34 localhost snapd[1689]: error: cannot downgrade: snapd is too old for the current system state (patch level 3)'.</div><div><br></div></div><div class="gmail_default">Regards, Mike</div></div></div>
</blockquote></div><br><br>-- <br><div dir="ltr">Thanks,<br><br><br>Luke Williams - Technical Partner Manager, Network Switches and Ubuntu-Core<div><a>luke.williams@canonical.com</a></div><div><a href="http://www.canonical.com" target="_blank">www.canonical.com</a> || <a href="http://www.ubuntu.com" target="_blank">www.ubuntu.com</a></div><div><br></div></div><br>
</blockquote></div></div></div><div class="HOEnZb"><div class="h5"><br><br>-- <br><div dir="ltr">Thanks,<br><br><br>Luke Williams - Technical Partner Manager, Network Switches and Ubuntu-Core<div><a href="mailto:luke.williams@canonical.com" target="_blank">luke.williams@canonical.com</a></div><div><a href="http://www.canonical.com" target="_blank">www.canonical.com</a> || <a href="http://www.ubuntu.com" target="_blank">www.ubuntu.com</a></div><div><br></div></div><br>
</div></div></blockquote></div><br></div>