Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Vish :

1) is it possible to chown files on your nfs mount?

Not sure whom should I give the ownership to ? As the dir listing shows above, the files are created with correct owner/group settings. These files were created by nova-compute process.

I "touch"ed a file for testing - which was created with "mandar:mandar" - I tried changing the ownership, but I keep getting "invalid" argument - not sure if that is what you were referring to ..

mandar@ubuntu-dev-mandar:~/nfs_shared_instances_path$ touch x mandar@ubuntu-dev-mandar:~/nfs_shared_instances_path$ ll total 16 drwxrwxrwx 4 root root 4096 2012-04-04 03:46 ./ drwxr-xr-x 15 mandar mandar 4096 2012-04-04 03:39 ../ drwxrwxr-x 2 mandar libvirtd 4096 2012-04-04 02:18 _base/ drwxr-xr-x 2 mandar libvirtd 4096 2012-04-04 03:41 instance-0000000f/ -rw-rw-r-- 1 mandar mandar 0 2012-04-04 03:46 x mandar@ubuntu-dev-mandar:~/nfs_shared_instances_path$ chown root x chown: changing ownership of x': Invalid argument mandar@ubuntu-dev-mandar:~/nfs_shared_instances_path$ ll total 16 drwxrwxrwx 4 root root 4096 2012-04-04 03:46 ./ drwxr-xr-x 15 mandar mandar 4096 2012-04-04 03:39 ../ drwxrwxr-x 2 mandar libvirtd 4096 2012-04-04 02:18 _base/ drwxr-xr-x 2 mandar libvirtd 4096 2012-04-04 03:41 instance-0000000f/ -rw-rw-r-- 1 mandar mandar 0 2012-04-04 03:46 x mandar@ubuntu-dev-mandar:~/nfs_shared_instances_path$ sudo chown root x chown: changing ownership ofx': Invalid argument mandar@ubuntu-dev-mandar:~/nfs_shared_instances_path$ chgrp libvirtd x chgrp: changing group of x': Invalid argument mandar@ubuntu-dev-mandar:~/nfs_shared_instances_path$ sudo chgrp libvirtd x chgrp: changing group ofx': Invalid argument

I also debugged the "_chown_console_log_for_instance" in "nova/virt/libvirt/connection.py" and with breakpoint before "if os.path.exists(console_log)" - I touched "console.log" at the appropriate path from another terminal.

Over there also I am getting the same error:

2012-04-04 03:56:55 TRACE nova.rpc.amqp Command: sudo /usr/local/bin/nova-rootwrap chown 1000 /home/mandar/nfs_shared_instances_path/instance-00000010/console.log 2012-04-04 03:56:55 TRACE nova.rpc.amqp Exit code: 1 2012-04-04 03:56:55 TRACE nova.rpc.amqp Stdout: '' 2012-04-04 03:56:55 TRACE nova.rpc.amqp Stderr: "/bin/chown: changing ownership of `/home/mandar/nfs_shared_instances_path/instance-00000010/console.log': Invalid argument\n"

So what is the fix for this ?