[one-users] onehost sync throws error

Javier Fontan jfontan at opennebula.org
Thu Feb 20 03:27:14 PST 2014


We have an off by one problem here. Change the line
/usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:310 from:

str=str+" "*(79-str.length)

to

str=str+" "*(80-str.length)

Should work with that patch


On Wed, Feb 19, 2014 at 5:29 PM, Javier Fontan <jfontan at opennebula.org> wrote:
> Can you send me the database or the output of "onehost list -x"? Send
> it to me, not the list. I'll try to figure out what happens.
>
> On Wed, Feb 19, 2014 at 1:31 PM, Jörg Mauer <mauer at ign.de> wrote:
>> Hi,
>>
>> I get the same error when doing a onehostsync after updating to 4.4.1
>> (from 4.4, from 4.2) in our dev environment.
>>
>> We are running 2 hosts in this environment.
>> Please let me know if you need any specific information to investigate
>> this problem.
>>
>>
>> #####################################
>> /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:310:in `*':
>> negative argument (ArgumentError)
>>         from /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:278:in
>> `join'
>>         from /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:278:in
>> `sync'
>>         from /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:278:in
>> `each'
>>         from /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:278:in
>> `sync'
>>         from /usr/bin/onehost:192
>>         from /usr/lib/one/ruby/cli/command_parser.rb:449:in `call'
>>         from /usr/lib/one/ruby/cli/command_parser.rb:449:in `run'
>>         from /usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize'
>>         from /usr/bin/onehost:36:in `new'
>>         from /usr/bin/onehost:36
>>
>>
>>
>> regards,
>>
>> Joerg
>>
>> Am 14.02.2014 11:13, schrieb Javier Fontan:
>>> That's really strange. Do you still have the database so we can
>>> check what it happens? How many hosts do you have?
>>>
>>> On Thu, Feb 6, 2014 at 5:16 PM, Stefan Kooman <stefan at bit.nl>
>>> wrote:
>>>> Hi list,
>>>>
>>>> If I run a "onehost sync" it throws the following error (one
>>>> 4.4):
>>>>
>>>> onehost sync * Adding hypervisor1 to upgrade * Adding hypervisor2
>>>> to upgrade
>>>> /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:310:in `*':
>>>> negative argument (ArgumentError) from
>>>> /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:310:in
>>>> `print_update_info' from
>>>> /usr/lib/one/ruby/cli/one_helper/onehost_helper.rb:254:in `block
>>>> (2 levels) in sync'
>>>>
>>>> It does trigger a config sync:
>>>>
>>>> Thu Feb  6 17:06:09 2014 [ReM][D]: Req:2400 UID:0 SystemConfig
>>>> invoked Thu Feb  6 17:06:09 2014 [ReM][D]: Req:2400 UID:0
>>>> SystemConfig result SUCCESS, "<TEMPLATE><AUTH_MAD>..." Thu Feb  6
>>>> 17:06:09 2014 [ReM][D]: Req:3520 UID:0 HostPoolInfo invoked Thu
>>>> Feb  6 17:06:09 2014 [ReM][D]: Req:3520 UID:0 HostPoolInfo
>>>> result SUCCESS, "<HOST_POOL><HOST><ID..."
>>>>
>>>> A clean install of one 4.4.1 on Ubuntu Precise 12.04.4, with one
>>>> dummy kvm host does not throw any errors. Might this error be
>>>> related to an upgrade from one 4.2 -> 4.4?
>>>>
>>>> Gr. Stefan
>>>>
>>>>
>>>> -- | BIT BV  http://www.bit.nl/        Kamer van Koophandel
>>>> 09090351 | GPG: 0xD14839C6                   +31 318 648 688 /
>>>> info at bit.nl _______________________________________________ Users
>>>> mailing list Users at lists.opennebula.org
>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>
>>>
>>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
>
> --
> Javier Fontán Muiños
> Developer
> OpenNebula - The Open Source Toolkit for Data Center Virtualization
> www.OpenNebula.org | @OpenNebula | github.com/jfontan



-- 
Javier Fontán Muiños
Developer
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | @OpenNebula | github.com/jfontan



More information about the Users mailing list