<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I've been working on bringing up Ubuntu Core on some new hardware targets - network switch whiteboxes.</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">Very recently, the first boot of Ubuntu Core has added a Profile Setup step.  I'm stuck in this step and can't get out.  My target is now a brick...</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">My Xenial Desktop development system is up to date as of this morning.</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">I built the kernel snap for the target using snapcraft 2.15.1.</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">I then use ubuntu-device-flash (Version 7 Rev 7 from the edge channel) to build an image for the target using the following command. </div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">ubuntu-device-flash core 16 --channel=edge --kernel=$snap --gadget=pc --os=ubuntu-core -o $IMG</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div style="font-family:tahoma,sans-serif;font-size:small">I then create an ONIE NOS Installer from the resulting image and install it on my target switch.</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div style="font-family:tahoma,sans-serif;font-size:small">Here's where the fun begins...</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div style="font-family:tahoma,sans-serif;font-size:small">While the target is booting, it gets to the following and just sits there forever with no indication that it is waiting for manual intervention - requiring manual intervention during a boot is problematic for network switches in any case.</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div style="font-family:tahoma,sans-serif;font-size:small">===================================</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div style="font-family:tahoma,sans-serif;font-size:small">...</div><div><div><font face="tahoma, sans-serif">[   24.633353] cloud-init[2405]: Cloud-init v. 0.7.7 running 'modules:config' at Thu, 01 Sep 2016 09:43:05 +0000. Up 24.04 seconds.</font></div><div><font face="tahoma, sans-serif">[   24.652503] cloud-init[2405]: 2016-09-01 09:43:06,375 - util.py[WARNING]: Running module snappy (<module 'cloudinit.config.cc_snappy' from '/usr/lib/python3/distd</font></div><div><font face="tahoma, sans-serif">[FAILED] Failed to start Apply the settings specified in cloud-config.</font></div><div><font face="tahoma, sans-serif">See 'systemctl status cloud-config.service' for details.</font></div><div><font face="tahoma, sans-serif">         Starting Execute cloud user/final scripts...</font></div><div><font face="tahoma, sans-serif">ci-info: no authorized ssh keys fingerprints found for user ubuntu.</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: </font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: #############################################################</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: 1024 SHA256:TrfoEO2enrY3+HYlcxtKDV6MZjRSDvxwmdLaf07mEOI root@localhost.localdomain (DSA)</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: 256 SHA256:C0jrA04aKDV+z56ftvVNvd+NhUMf1zUncqpQPVSUnLg root@localhost.localdomain (ECDSA)</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: 256 SHA256:8t9b4izHmXc/RPKekQ6qP3yQM6icVOgrQgPLJ9d+XB8 root@localhost.localdomain (ED25519)</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: 2048 SHA256:a2eY2+sMacC5UUy3k3hYGbXXP4KSJVhqYLu6vAu7xIw root@localhost.localdomain (RSA)</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: -----END SSH HOST KEY FINGERPRINTS-----</font></div><div><font face="tahoma, sans-serif"><14>Sep  1 09:43:09 ec2: #############################################################</font></div><div><font face="tahoma, sans-serif">-----BEGIN SSH HOST KEY KEYS-----</font></div><div><font face="tahoma, sans-serif">ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBATz2hu5/KC3AMAbx5ngRj+pzcaqntJ2Vu+YG3fk21MCJy0RwyorZWpcfJmRYu9YsWExNNLqI3ibkG4pe06MeCo= roon</font></div><div><font face="tahoma, sans-serif">ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICcyf82/UPZsuSzegwFjpegDn4l0jTW8ydd1/gtlGdqh root@localhost.localdomain</font></div><div><font face="tahoma, sans-serif">ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4XYVVMexJ4gISwT5/GpiAZ/p2aPKJ9mHNq7bDUhSnNqGd++j5n9LbX8AeZSWJrvfXNI4h9HpEoc2Fcisp3xxGO/J+FeZXbkA5TTRtzLhi3AbPDbRA7ptEU3/xMhwIn</font></div><div><font face="tahoma, sans-serif">-----END SSH HOST KEY KEYS-----</font></div><div><font face="tahoma, sans-serif">[   27.730512] cloud-init[2461]: Cloud-init v. 0.7.7 running 'modules:final' at Thu, 01 Sep 2016 09:43:08 +0000. Up 27.21 seconds.</font></div><div><font face="tahoma, sans-serif">[   27.748699] cloud-init[2461]: ci-info: no authorized ssh keys fingerprints found for user ubuntu.</font></div><div><font face="tahoma, sans-serif">[   27.764506] cloud-init[2461]: Cloud-init v. 0.7.7 finished at Thu, 01 Sep 2016 09:43:09 +0000. Datasource DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-nets</font></div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div></div><div><div style="font-family:tahoma,sans-serif;font-size:small">===================================</div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div><div><font face="tahoma, sans-serif">At this point, I happened to hit <ENTER> on the console keyboard, and a new screen came up to</font></div><div><font face="tahoma, sans-serif"><br></font></div><div><font face="tahoma, sans-serif">"Configure the network and setup an administrator account on </font><span style="font-family:tahoma,sans-serif">this all-snap Ubuntu Core system.  After this setup process you </span><span style="font-family:tahoma,sans-serif">will have secure web or command access to the system."</span></div></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">I followed the instructions and took default values for the network setup since the switch gets everything from DHCP.  All good so far as it sets up the network configuration.</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">At this point, it asks me to "</span><font face="tahoma, sans-serif">Enter an email address from your account in the store. ".</font></div><div><font face="tahoma, sans-serif"><br></font></div><div><font face="tahoma, sans-serif">I enter the e-mail address I use whenever I log into 'Ubuntu One'.</font></div><div><font face="tahoma, sans-serif"><br></font></div><div><font face="tahoma, sans-serif">At this point, I get one of two results.</font></div><div><font face="tahoma, sans-serif"><br></font></div><div><font face="tahoma, sans-serif">1. I see a message saying 'Contacting the Store', then get the error "Creating user failed:  </font><span style="font-family:tahoma,sans-serif">error: bad user result: cannot create user for <e-mail address>: no </span><span style="font-family:tahoma,sans-serif">ssh keys found"</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">-- OR --</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">2. I immediately see the error "</span><font face="tahoma, sans-serif">Creating user failed: </font><span style="font-family:tahoma,sans-serif">error: bad user result: cannot create user "<e-mail address>": Get  </span><span style="font-family:tahoma,sans-serif"><a href="https://login.ubuntu.com/api/v2/keys/">https://login.ubuntu.com/api/v2/keys/</a><email-address>: dial tcp: </span><span style="font-family:tahoma,sans-serif">lookup <a href="http://login.ubuntu.com">login.ubuntu.com</a> on [::1]:53: read udp [::1]:40286->[::1]:53: </span><span style="font-family:tahoma,sans-serif">read: connection refused</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">I'l usually see the first error on the first try and the second error on subsequent tries until I power-cycle the target switch.</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">In either case, I can never get past this setup, so as I said above, my target switch is now a brick.</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">Can someone tell me how to get past this screen so that the boot completes and I can get back to work?</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div><span style="font-family:tahoma,sans-serif">Thanks, Mike</span></div><div><span style="font-family:tahoma,sans-serif"><br></span></div><div style="font-family:tahoma,sans-serif;font-size:small"><br></div></div></div>