[one-users] running OpenNebula as nonroot user

makhanmail makhanmail at gmail.com
Wed Jan 20 03:19:25 PST 2010


Hi Tres,

Yeah, you were right, I didn't.
Now it's much better, but still not quite right.

I keep getting following error in oned.log

Wed Jan 20 12:13:53 2010 [InM][I]: Monitoring host host1 (3)
Wed Jan 20 12:13:57 2010 [InM][I]: Command execution fail: 'mkdir -p  
/tmp/one-im/; cat > /tmp/one-im//one_im-0ed949a4bd6f9d3a8e845559ac44e11f;  
if [ "x$?" != "x0" ]; then exit -1; fi; chmod +x  
/tmp/one-im//one_im-0ed949a4bd6f9d3a8e845559ac44e11f;  
/tmp/one-im//one_im-0ed949a4bd6f9d3a8e845559ac44e11f'
Wed Jan 20 12:13:57 2010 [InM][I]: STDERR follows.
Wed Jan 20 12:13:57 2010 [InM][I]: Password:
Wed Jan 20 12:13:57 2010 [InM][I]: Password:
Wed Jan 20 12:13:57 2010 [InM][I]:  
/tmp/one-im//one_im-0ed949a4bd6f9d3a8e845559ac44e11f:70: undefined method  
`-' for nil:NilClass (NoMethodError)
Wed Jan 20 12:13:57 2010 [InM][I]: ExitCode: 1
Wed Jan 20 12:13:57 2010 [InM][D]: Host 3 successfully monitored.

Do you know what that means?

Regards,
Maciej

Dnia 20-01-2010 o 04:06:46 Tres Wong-Godfrey <tres at blas.phemo.us>  
napisał(a):

>
> Hi Maciej,
>
> Did you start oned as the oneadmin user?
>
> su -c "oned start" oneadmin
>
> (you'll need to stop the process running under root first).
>
> You could always set up an alias in your .bashrc. Something like this  
> might work:
>
> alias onestart='su -c "oned start" oneadmin'
> alias onestop='su -c "oned stop" oneadmin'
>
> Regards,
> Tres
>
> Tres Wong-Godfrey
>
> On Jan 19, 2010, at 6:18 PM, Maciej Kruk wrote:
>
>> Hi,
>>
>> I'm trying to run OpenNebula with xen hypervisor as 'oneadmin' user.
>> I installed it with "./install.sh -d /srv/cloud/one -u oneadmin -g  
>> cloud" command and I added oneadmin to sudoers so it can run xm  
>> commands. I also set up passwordless ssh from front end to host (and  
>> the other way around, just to be sure)
>> But it seems OpenNebula doesn't know it's supposed to run as oneadmin.  
>> When I try to add host on the front-end, it stays for a while in an  
>> INIT state and then it goes to ERROR state. In the meantime it prompts  
>> multiple times for the root at host1 password in the background.
>> Is there a way to tell OpenNebula to connect to other hosts as oneadmin?
>>
>> Thanks,
>> Maciej
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>




More information about the Users mailing list