uvtool sync is broken

Bug #1417910 reported by Ben Howard
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
High
Unassigned

Bug Description

I am unable to follow the instructions on https://help.ubuntu.com/lts/serverguide/cloud-images-and-uvtool.html on either Trusty or Utopic.

ben@prongs:~$ uvt-simplestreams-libvirt sync arch=amd64
Traceback (most recent call last):
  File "/usr/bin/uvt-simplestreams-libvirt", line 27, in <module>
    uvtool.libvirt.simplestreams.main()
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 341, in main
    args.func(args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/simplestreams.py", line 260, in main_sync
    args.mirror_url, args.path)
  File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 560, in path_from_mirror_url
    result = re.search(path_regex, mirror)
  File "/usr/lib/python2.7/re.py", line 142, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or buffer

Revision history for this message
Robie Basak (racb) wrote :

Hi Ben,

I can't reproduce this. I've tried both Utopic and Trusty on Canonistack as follows:

sudo apt-get update
sudo apt-get -y install uvtool
newgrp libvirtd
uvt-simplestreams sync arch=amd64

The instructions don't seem to mention the newgrp; without this I get a traceback ending in "libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied" since I don't belong to the libvirtd group - not your error.

With the newgrp, it just works. I just checked the sync - I didn't attempt to create a VM (Canonistack is on a go slow so it would take too long).

This is using the Trusty cloud image release build 20141125 and the Utopic cloud image release build 20150202.

Any idea what you're doing different? Do you have unfirewalled access to cloud-images.ubuntu.com? If you can get a Python debugger to tell us what path_regex and mirror say at the point of failure, this might help.

Changed in uvtool:
status: New → Incomplete
importance: Undecided → High
Revision history for this message
Robie Basak (racb) wrote :

s/uvt-simplestreams/uvt-simplestreams-libvirt/ of course.

Revision history for this message
Robie Basak (racb) wrote :

Pierre-Andre also hit this issue, and we debugged. It seems that this is caused by the snappy PPA version of uvtool, not from the uvtool PPA or from the Ubuntu archive.

Pierre-Andre hit this bug in 0~bzr92+0~snap141205.1-0ubuntu1, and downgrading to 0~bzr92-0ubuntu2 in Vivid fixed it. So reassigning to Snappy.

affects: uvtool → snappy
Changed in snappy:
status: Incomplete → New
Revision history for this message
Robie Basak (racb) wrote :

(when we debugged, "mirror" was None)

Revision history for this message
Scott Moser (smoser) wrote :

I've fixed this in my upload of 0~bzr98-0ubuntu1~snap0 to https://launchpad.net/~snappy-dev/+archive/ubuntu/tools

Changed in snappy:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.