← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1227820] Re: Cannot add device: device key expected before created

 

This bug was fixed in the package qtcreator-plugin-ubuntu -
2.7.2-0ubuntu5

---------------
qtcreator-plugin-ubuntu (2.7.2-0ubuntu5) saucy; urgency=low

  * Cannot add device: device key expected before created (LP: #1227820)
 -- Juhapekka Piiroinen <juhapekka.piiroinen@xxxxxxxxxxxxx>   Fri, 20 Sep 2013 11:04:13 +0300

** Changed in: qtcreator-plugin-ubuntu (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1227820

Title:
  Cannot add device: device key expected before created

Status in Qt Creator plugins for Ubuntu:
  Fix Committed
Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
  Fix Released

Bug description:
  In the Ubuntu SDK, I cannot add a device (unless I had successfully
  added one previously somehow).

  Reason: the openssh_version  script expects the ssh key for the device
  to exist before it actually does.

  That script is delivered by qtcreator-plugin-ubuntu; I have version
  2.8.1-0ubuntu1~saucy1~test4

  When you add a device with: Devices, then Detect in the SDK, this script is called:
  /usr/share/qtcreator/ubuntu/scripts/openssh_version

  BEFORE this script script is called:
  /usr/share/qtcreator/ubuntu/scripts/openssh_publickey

  The second script creates the key if it does not exist.

  But openssh_version assumes the device key is in place with this code:
   ssh-add ~/.ssh/ubuntudevice*id_rsa &> /dev/null

  If there is no such key, the Devices Detect sequence hangs on
  openssh_version stage (with no helpful data in the Log panel).

  A simple workaround (although perhaps not the right one given other
  factors), is to test for the key and generate it in openssh_version
  like this:

  if [ ! -f ~/.ssh/ubuntudevice*id_rsa ]; then
    ssh-keygen -t rsa -N '' -f $SSHIDENTITY -b 768
  fi
  ssh-add ~/.ssh/ubuntudevice*id_rsa &> /dev/null

To manage notifications about this bug go to:
https://bugs.launchpad.net/qtcreator-plugin-ubuntu/+bug/1227820/+subscriptions