Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-11 Thread Punit Dambiwal
Hi Dan,

ThanksThe patch works for me !!![?]

Punit

On Tue, Jun 9, 2015 at 6:58 PM, Dan Kenigsberg  wrote:

> On Tue, Jun 09, 2015 at 05:10:02PM +0800, Punit Dambiwal wrote:
> > Hi Dan,
> >
> > Seems the problem is here :-
> >
> > -
> >
> > Thread-779::INFO::2015-06-09
> 09:04:05,204::hooks::100::root::(_runHooksDir)
> > Thread-779::DEBUG::2015-06-09
> > 09:04:05,205::utils::739::root::(execCmd)
> > /usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof (cwd None)
> > Thread-779::DEBUG::2015-06-09
> > 09:04:05,301::utils::759::root::(execCmd) FAILED:  = 'Traceback
> > (most recent call last):\n  File
> > "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 85, in
> > \nmain()\n  File
> > "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 52, in
> > main\ninterface, =
> > domxml.getElementsByTagName(\'interface\')\nValueError: too many
> > values to unpack\n';  = 1
> > Thread-779::INFO::2015-06-09
> > 09:04:05,301::hooks::100::root::(_runHooksDir) Traceback (most recent
> > call last):
> >   File "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line
> > 85, in 
> > main()
> >   File "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 52,
> in main
> > interface, = domxml.getElementsByTagName('interface')
> > ValueError: too many values to unpack
>
> Could you try this patch https://gerrit.ovirt.org/42078 to allow
> VMs with multiple interfaces?
>
> Dan.
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-09 Thread Dan Kenigsberg
On Tue, Jun 09, 2015 at 05:10:02PM +0800, Punit Dambiwal wrote:
> Hi Dan,
> 
> Seems the problem is here :-
> 
> -
> 
> Thread-779::INFO::2015-06-09 09:04:05,204::hooks::100::root::(_runHooksDir)
> Thread-779::DEBUG::2015-06-09
> 09:04:05,205::utils::739::root::(execCmd)
> /usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof (cwd None)
> Thread-779::DEBUG::2015-06-09
> 09:04:05,301::utils::759::root::(execCmd) FAILED:  = 'Traceback
> (most recent call last):\n  File
> "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 85, in
> \nmain()\n  File
> "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 52, in
> main\ninterface, =
> domxml.getElementsByTagName(\'interface\')\nValueError: too many
> values to unpack\n';  = 1
> Thread-779::INFO::2015-06-09
> 09:04:05,301::hooks::100::root::(_runHooksDir) Traceback (most recent
> call last):
>   File "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line
> 85, in 
> main()
>   File "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 52, in 
> main
> interface, = domxml.getElementsByTagName('interface')
> ValueError: too many values to unpack

Could you try this patch https://gerrit.ovirt.org/42078 to allow
VMs with multiple interfaces?

Dan.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-09 Thread Punit Dambiwal
Hi Dan,

Seems the problem is here :-

-

Thread-779::INFO::2015-06-09 09:04:05,204::hooks::100::root::(_runHooksDir)
Thread-779::DEBUG::2015-06-09
09:04:05,205::utils::739::root::(execCmd)
/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof (cwd None)
Thread-779::DEBUG::2015-06-09
09:04:05,301::utils::759::root::(execCmd) FAILED:  = 'Traceback
(most recent call last):\n  File
"/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 85, in
\nmain()\n  File
"/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 52, in
main\ninterface, =
domxml.getElementsByTagName(\'interface\')\nValueError: too many
values to unpack\n';  = 1
Thread-779::INFO::2015-06-09
09:04:05,301::hooks::100::root::(_runHooksDir) Traceback (most recent
call last):
  File "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line
85, in 
main()
  File "/usr/libexec/vdsm/hooks/before_vm_start/50_noipspoof", line 52, in main
interface, = domxml.getElementsByTagName('interface')
ValueError: too many values to unpack

Thread-779::DEBUG::2015-06-09
09:04:05,301::vm::2294::vm.Vm::(_startUnderlyingVm)
vmId=`600f6fa9-0c08-42ec-bbbd-939a07beb61c`::_ongoingCreations
released
Thread-779::ERROR::2015-06-09
09:04:05,302::vm::2331::vm.Vm::(_startUnderlyingVm)
vmId=`600f6fa9-0c08-42ec-bbbd-939a07beb61c`::The vm start process
failed
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 2271, in _startUnderlyingVm
self._run()
  File "/usr/share/vdsm/virt/vm.py", line 3299, in _run
domxml = hooks.before_vm_start(self._buildCmdLine(), self.conf)
  File "/usr/share/vdsm/hooks.py", line 142, in before_vm_start
return _runHooksDir(domxml, 'before_vm_start', vmconf=vmconf)
  File "/usr/share/vdsm/hooks.py", line 110, in _runHooksDir
raise HookError()
HookError
Thread-779::DEBUG::2015-06-09
09:04:05,303::vm::2786::vm.Vm::(setDownStatus)
vmId=`600f6fa9-0c08-42ec-bbbd-939a07beb61c`::Changed state to Down: VM
terminated with error (code=1)

-


On Tue, Jun 9, 2015 at 9:13 AM, Punit Dambiwal  wrote:

> Hi Dan,
>
> Please find the Vdsm logs here :-
>
> 1. With 2 NIC (VM failed to bootup) :- http://paste.ubuntu.com/11660142/
> 2. Removed the secondary NIC and run the VM againVM can bootup :-
> http://paste.ubuntu.com/11660197/
>
> Thanks,
> Punit
>
>
>
>
> On Mon, Jun 8, 2015 at 8:35 PM, Dan Kenigsberg  wrote:
>
>> On Mon, Jun 08, 2015 at 05:43:40PM +0800, Punit Dambiwal wrote:
>> > Hi Dan,
>> >
>> > Can save now the comma separate ip address...but still the problem
>> > persists
>> >
>> > 1. If one Network interface...i can add multiple ip addresses with comma
>> > separated...
>> > 2. But if i add another network interface to this VMVM cannot boot
>> up...
>> > 3. What need to do if i want to assign multiple ip address on multiple
>> > network interface ??
>>
>> Can you share your vdsm.log of this boot failure?
>>
>> Regards,
>> Dan.
>>
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-08 Thread Dan Kenigsberg
On Mon, Jun 08, 2015 at 05:43:40PM +0800, Punit Dambiwal wrote:
> Hi Dan,
> 
> Can save now the comma separate ip address...but still the problem
> persists
> 
> 1. If one Network interface...i can add multiple ip addresses with comma
> separated...
> 2. But if i add another network interface to this VMVM cannot boot up...
> 3. What need to do if i want to assign multiple ip address on multiple
> network interface ??

Can you share your vdsm.log of this boot failure?

Regards,
Dan.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-08 Thread Punit Dambiwal
Hi Dan,

Can save now the comma separate ip address...but still the problem
persists

1. If one Network interface...i can add multiple ip addresses with comma
separated...
2. But if i add another network interface to this VMVM cannot boot up...
3. What need to do if i want to assign multiple ip address on multiple
network interface ??

Thanks,
Punit

On Mon, Jun 8, 2015 at 4:54 PM, Dan Kenigsberg  wrote:

> On Mon, Jun 08, 2015 at 11:15:45AM +0800, Punit Dambiwal wrote:
> > Hi Dan,
> >
> > The results are below :-
> >
> > [root@mgmt ~]# engine-config -g UserDefinedVMProperties
> > UserDefinedVMProperties:  version: 3.0
> > UserDefinedVMProperties:  version: 3.1
> > UserDefinedVMProperties:  version: 3.2
> > UserDefinedVMProperties:  version: 3.3
> > UserDefinedVMProperties:  version: 3.4
> > UserDefinedVMProperties: noipspoof=^[0-9.]*$ version: 3.5
> > [root@mgmt ~]#
> >
> > I used the following command to set this :-
> >
> > [root@mgmt ~]# engine-config -s
> > "UserDefinedVMProperties=noipspoof=^[0-9.]*$"
>
> oops, please add a coma character inside the brackets. If it works,
> please mark
> https://gerrit.ovirt.org/42031
> as verified.
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-08 Thread Dan Kenigsberg
On Mon, Jun 08, 2015 at 11:15:45AM +0800, Punit Dambiwal wrote:
> Hi Dan,
> 
> The results are below :-
> 
> [root@mgmt ~]# engine-config -g UserDefinedVMProperties
> UserDefinedVMProperties:  version: 3.0
> UserDefinedVMProperties:  version: 3.1
> UserDefinedVMProperties:  version: 3.2
> UserDefinedVMProperties:  version: 3.3
> UserDefinedVMProperties:  version: 3.4
> UserDefinedVMProperties: noipspoof=^[0-9.]*$ version: 3.5
> [root@mgmt ~]#
> 
> I used the following command to set this :-
> 
> [root@mgmt ~]# engine-config -s
> "UserDefinedVMProperties=noipspoof=^[0-9.]*$"

oops, please add a coma character inside the brackets. If it works,
please mark
https://gerrit.ovirt.org/42031
as verified.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-07 Thread Punit Dambiwal
Hi Dan,

The results are below :-

[root@mgmt ~]# engine-config -g UserDefinedVMProperties
UserDefinedVMProperties:  version: 3.0
UserDefinedVMProperties:  version: 3.1
UserDefinedVMProperties:  version: 3.2
UserDefinedVMProperties:  version: 3.3
UserDefinedVMProperties:  version: 3.4
UserDefinedVMProperties: noipspoof=^[0-9.]*$ version: 3.5
[root@mgmt ~]#

I used the following command to set this :-

[root@mgmt ~]# engine-config -s
"UserDefinedVMProperties=noipspoof=^[0-9.]*$"


On Fri, Jun 5, 2015 at 10:16 PM, Dan Kenigsberg  wrote:

> On Fri, Jun 05, 2015 at 03:28:11PM +0800, Punit Dambiwal wrote:
> > Hi,
> >
> > I have installed noipspoof VDSM hooks...in the vdsm hooks it specify that
> > you can use multiple ip address by comma separate listbut it's not
> > working...
> >
> > single ip can work without any issue...but can not add multiple ip
> address
> > in this filed...
>
> what is your
>
>  engine-config -g UserDefinedVMProperties
>
> the regexp there should accept comas, too.
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-07 Thread Eli Mesika


- Original Message -
> From: "Dan Kenigsberg" 
> To: "Punit Dambiwal" 
> Cc: users@ovirt.org
> Sent: Friday, June 5, 2015 5:16:43 PM
> Subject: Re: [ovirt-users] Comma Seperated Value doesn't accept by custom 
> properties
> 
> On Fri, Jun 05, 2015 at 03:28:11PM +0800, Punit Dambiwal wrote:
> > Hi,
> > 
> > I have installed noipspoof VDSM hooks...in the vdsm hooks it specify that
> > you can use multiple ip address by comma separate listbut it's not
> > working...
> > 
> > single ip can work without any issue...but can not add multiple ip address
> > in this filed...
> 
> what is your
> 
>  engine-config -g UserDefinedVMProperties
> 
> the regexp there should accept comas, too.

As far as I see the separator is ";" and not "," 

packaging/etc/engine-config/engine-config.properties:UserDefinedVMProperties.description="User
 defined VM properties"
packaging/etc/engine-config/engine-config.properties:UserDefinedVMProperties.type=UserDefinedVMProperties
packaging/etc/engine-config/engine-config.properties:UserDefinedVMProperties.mergable=true
packaging/etc/engine-config/engine-config.properties:UserDefinedVMProperties.delimiter=;



> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-05 Thread Dan Kenigsberg
On Fri, Jun 05, 2015 at 03:28:11PM +0800, Punit Dambiwal wrote:
> Hi,
> 
> I have installed noipspoof VDSM hooks...in the vdsm hooks it specify that
> you can use multiple ip address by comma separate listbut it's not
> working...
> 
> single ip can work without any issue...but can not add multiple ip address
> in this filed...

what is your

 engine-config -g UserDefinedVMProperties

the regexp there should accept comas, too.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Comma Seperated Value doesn't accept by custom properties

2015-06-05 Thread Punit Dambiwal
Hi,

I have installed noipspoof VDSM hooks...in the vdsm hooks it specify that
you can use multiple ip address by comma separate listbut it's not
working...

single ip can work without any issue...but can not add multiple ip address
in this filed...



[image: Inline image 1]

Thanks,
Punit
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users