virsh completion only works at the shell prompt

Bug #219249 reported by Mathias Gug
2
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

file completion works from the shell prompt, but not when loading the file:

virsh # define ~/vm/images/test-install-virtio/libvirt.xml
error: Failed to open '~/vm/images/test-install-virtio/libvirt.xml': No such file or directory

virsh # define /home/mathiaz/vm/images/test-install-virtio/libvirt.xml
Domain test-install-virtio defined from /home/mathiaz/vm/images/test-install-virtio/libvirt.xml

Revision history for this message
Chuck Short (zulcss) wrote :

Hey Mathias,

Can you re-test this in karmic?

Thanks
chuck

Changed in libvirt (Ubuntu):
status: New → Incomplete
Changed in libvirt (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Tested in Lucid, works for me...

virsh
# virsh define ~/<tab><tab>

And I see a list of files.

Changed in libvirt (Ubuntu):
status: Incomplete → Fix Released
status: Fix Released → Confirmed
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Sorry, just talked to Mathias in IRC where he clarified this bug, and I was able to reproduce it in Lucid.

virsh # define ~/foo2.<tab>xml
error: Failed to open file '~/foo2.xml': No such file or directory

Tab completion works, but virsh isn't able to load the file that it tab completed. Looks like it's not interpreting ~ probably.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I've just retested this in oneiric, and it worked fine for me. Marking fix released

Changed in libvirt (Ubuntu):
status: Confirmed → 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.