ISO image file ownership changed

Bug #1026071 reported by Javier Collado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
Fix Released
Low
Unassigned

Bug Description

When an ISO that is already available in the filesystem is used, the ownership is changed to libvirt-qemu:kvm. This is not a big problem, but ISO files should preserve their ownership as it's before launching utah.

An example about why do I feel this is wrong is that I ran zsync to update the download of the daily image and got an error because I didn't have permissions to modify the file that I downloaded the day before.

Related branches

Revision history for this message
Max Brustkern (nuclearbob) wrote :

I agree with this, it's caused me problems before as well. Really, I feel like it's poor behavior on the part of libvirt, but I'm not sure we can get that fixed easily. One reason I haven't fixed it so far is that I can't think of a way to do it without elevated privileges. If you want to write up a fix for this, go ahead, otherwise I'll try to get to it once we have some more functionality in place.

Revision history for this message
Javier Collado (javier.collado) wrote :

In /etc/libvirt/qemu.conf I found a parameter that looked promising:

# Whether libvirt should dynamically change file ownership
# to match the configured user/group above. Defaults to 1.
# Set to 0 to disable file ownership changes.
# dynamic_ownership = 1

Unfortunately, after removing the leading comment and setting it to zero I still see the same behavior. Could it be that utah is somehow bypassing this configuration?

Revision history for this message
Javier Collado (javier.collado) wrote :

This bug actually seems a duplicate of this one bug#691590

If I'm not successful with the configuration file changes, I think I'll just mark it as a duplicate.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

That one's currently wontfix. Making it a duplicate makes sense, but I would like to keep it on our radar as something to try to get fixed at some point.

Revision history for this message
Max Brustkern (nuclearbob) wrote :

A fix for this is in progress as part of the automatic image download update.

Changed in utah:
status: New → In Progress
Revision history for this message
Max Brustkern (nuclearbob) wrote :

I'm currently testing a branch that implements this.

Changed in utah:
importance: Undecided → Low
Revision history for this message
Javier Collado (javier.collado) wrote :

Max, could you link that branch to the bug? Thanks.

Changed in utah:
status: In Progress → 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.