Hi Jaime,

That's exactly it. Thanks for filing the bug report. I have applied the 
workaround by manually doing a chown and restarting the upgrade.

Regards,
ML




On Thursday, February 6, 2014 3:46 PM, Jaime Melis <[email protected]> 
wrote:
 
Hi ML,

I've created a bug report to fix this for future releases: 
http://dev.opennebula.org/issues/2715

You are probably seeing this error because your /var/lib/one/datastores is 
mounted by NFS (or other network file system) and the OpenNebula has no root 
privileges on those files. Can you try to reconfigure the NFS server that is 
exporting the share mounted on /var/lib/one/datastores and add the 
no_root_squash option to the /etc/exports [1] file?

Please take into account that this is just a workaround, you can revert to 
root_squash after the upgrade and this will be fixed for future OpenNebula 
releases.

[1] http://linux.die.net/man/5/exports


Cheers,
Jaime



On Thu, Feb 6, 2014 at 2:15 PM, ML mail <[email protected]> wrote:

Hello,
>
>I am upgrading from ONE 4.4 to 4.4.1 on Debian 7 using the official ONE 
>package repository for Debian packages. So for that purpose I ran "sudo 
>apt-get upgrade" but it looks like one of the upgrade scripts wants to do a 
>chown on my datastores which are mounted through NFS, as such the upgrade 
>fails (only the user oneadmin has permissions on the NFS datastore). 
>
>Here would be the output:
>
>Installing new version of config file /etc/one/vmm_exec/vmm_exec_vmware.conf 
>...
>Installing new version of config file /etc/one/vmm_exec/vmm_exec_xen3.conf ...
>chown: changing ownership of 
>`/var/lib/one/datastores/100/6f3d3a9e784b79a09455dbbb985c246b': Operation not 
>permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/100/88988fd1f4394f2fe9f9ea599f26d7cf': Operation
 not permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/100/8e09740c6206cb5a6c6d190cbc723e13': Operation not 
>permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/100/1bce7999b33e9af585b65ef279cc9d30': Operation not 
>permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/100/563167c9590a17acd593ec1688696c61': Operation not 
>permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/100/1cc0e0009d38d7d3ad5b55456d156277': Operation not 
>permitted
>chown: changing ownership of `/var/lib/one/datastores/100': Operation not 
>permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/1/0dd4f6e8a685d499637d5bbdd6407a96': Operation not 
>permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/1/37fea94121e4f95b2de837779cbb6529': Operation not 
>permitted
>chown: changing ownership of 
>`/var/lib/one/datastores/1/247c3855502c98df1ba05c66e21c483c': Operation not 
>permitted
>chown: changing ownership of
 `/var/lib/one/datastores/1/c9952e0792f4205f8f0749fd3564a8f6': Operation not 
permitted
>chown: changing ownership of `/var/lib/one/datastores/1': Operation not 
>permitted
>dpkg: error processing opennebula (--configure):
> subprocess installed post-installation script returned error exit status 1
>Errors were encountered while processing:
> opennebula
>E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
>As such the upgrade fails... What should I do? Change the NFS permissions to 
>allow root full access on the datastore? or manually chown the files? and btw 
>why is a chown needed on the datastore files?
>
>Regards,
>ML
>
>_______________________________________________
>Users mailing list
>[email protected]
>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 

Jaime Melis
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | [email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to