Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-02-02 Thread ovirt

Hi Alona,

thank you for the information. I'm currently traveling but will update 
you later this week.


Best regards
Christoph

Am 02.02.2016 um 08:33 schrieb Alona Kaplan:


- Original Message -

From: "Alona Kaplan" <alkap...@redhat.com>
To: ov...@timmi.org
Cc: users@ovirt.org
Sent: Monday, February 1, 2016 6:27:15 PM
Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host 
Networks"

Hi Christoph,

I think that I know what happened on your environment.
Since, as you said, the names of the nics were changed after reboot. Nic
names that previously were used for sriov nics, are now used for a regular
nics.

As I see from looking at the results of your queries-
Previously - eth2, eth3, eth4 and eth5 were sriov nics.
Now after the reboot - eth1, eth3, eth4 and eth6 are sriov nics.

Due to a bug (https://bugzilla.redhat.com/1303640), currently the engine
doesn't know how to deal with this situation and the data in the db gets
corrupted.
Until the bug is fixed, the way to fix it manually is to clean the host's
data from some tables and then refreshing the capabilities of the host.

Please do the following -


If you didn't do the steps from the previous mail.
Before doing the deleting step, please stop the VMs that run on this host 
(lxedna.voipfuture.com).
If you already done the delete, anyway, please stop the VMs that run on this 
host (lxedna.voipfuture.com).

You can re-run them only after you finish all the steps from the previous mail.


1. delete from host_device where
host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
2. delete from host_nic_vfs_config where nic_id in (select id from
vds_interface where vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4');

After it, please do -
1. select from host_device where
host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
2. select from host_nic_vfs_config where nic_id in (select id from
vds_interface where vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4');

Make sure both of the queries return empty values.

Then click on the 'refresh host's capabilities' button.

Please let me know if after doing so you manage to open the host's setup
network dialog.

Thanks,
Alona.

- Original Message -

From: ov...@timmi.org
To: "Alona Kaplan" <alkap...@redhat.com>
Cc: "Martin Mucha" <mmu...@redhat.com>, users@ovirt.org
Sent: Sunday, January 31, 2016 4:47:36 PM
Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host
Networks"

Hi Alona,

please find the requested output in the attachment.

Best regards
Christoph

Am 31.01.2016 um 15:09 schrieb Alona Kaplan:

Hi Christoph,

Please send me also the output of the following-

On the host (The problematic host is - 'lxedna.voipfuture.com', right?)-
1. vdsClient -s 0 getVdsCapabilities
2. vdsClient -s 0 hostdevListByCaps

On the DB-
1. select * from vds_interface where
vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
2. select * from host_device where
host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
3. select * from host_nic_vfs_config;

Thanks,
Alona.

- Original Message -

From: ov...@timmi.org
To: "Alona Kaplan" <alkap...@redhat.com>, "Martin Mucha"
<mmu...@redhat.com>
Cc: users@ovirt.org
Sent: Friday, January 29, 2016 9:25:53 AM
Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup
Host Networks"

Hi Alona,

here are my answers.

1. no, but I did that just now and it does not change the behavior.
2. the host is up
3. it is in the attachment

Best regards
Christoph

Am 28.01.2016 um 15:47 schrieb Alona Kaplan:

Hi Christoph,

I have some questions/requests-

1. After the reboot and the rewiring you did- did you press manually on
the
Host's 'Refresh Capabilities' button (it is part of the Host's actions
in
the host's main tab)?
If not, please do it and let me know if after doing it you manage to
open
the 'setup networks' dialog or still get the same error.
2. What is the status of your host? Up/Maintenance/some thing else?
3. Please attach the full log of your engine.

Thanks,
Alona.

- Original Message -

From: "Martin Mucha" <mmu...@redhat.com>
To: ov...@timmi.org
Cc: users@ovirt.org
Sent: Thursday, January 28, 2016 11:46:30 AM
Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup
Host Networks"

ok, thanks. Just o inform you — so far it seems there is inconsistency
in
assumptions of what can be nullable and what can not. We just need to
decide
which approach is correct and fix rest.
M.

- Original Message -

Hi Martin,

please let me know I can help.

Best regards
Christoph

Am 28.01.2016 um 09:04 schrieb Martin Mucha:

I think this issue is real and it seems to be caused by unboxing of
nullvalued integer obtained from function
org.ovirt.engine.core.common.businessentities.HostDevice#getTotalVirtualFunctions

M.

- Original Message -

Hi List,

I update my OVirt 3.6.1 i

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-02-01 Thread Alona Kaplan
Hi Christoph,

I think that I know what happened on your environment.
Since, as you said, the names of the nics were changed after reboot. Nic names 
that previously were used for sriov nics, are now used for a regular nics.

As I see from looking at the results of your queries-
Previously - eth2, eth3, eth4 and eth5 were sriov nics.
Now after the reboot - eth1, eth3, eth4 and eth6 are sriov nics.

Due to a bug (https://bugzilla.redhat.com/1303640), currently the engine 
doesn't know how to deal with this situation and the data in the db gets 
corrupted.
Until the bug is fixed, the way to fix it manually is to clean the host's data 
from some tables and then refreshing the capabilities of the host.

Please do the following -

1. delete from host_device where host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
2. delete from host_nic_vfs_config where nic_id in (select id from 
vds_interface where vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4');

After it, please do -
1. select from host_device where host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
2. select from host_nic_vfs_config where nic_id in (select id from 
vds_interface where vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4');

Make sure both of the queries return empty values.

Then click on the 'refresh host's capabilities' button.

Please let me know if after doing so you manage to open the host's setup 
network dialog.

Thanks,
Alona.

- Original Message -
> From: ov...@timmi.org
> To: "Alona Kaplan" <alkap...@redhat.com>
> Cc: "Martin Mucha" <mmu...@redhat.com>, users@ovirt.org
> Sent: Sunday, January 31, 2016 4:47:36 PM
> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host 
> Networks"
> 
> Hi Alona,
> 
> please find the requested output in the attachment.
> 
> Best regards
> Christoph
> 
> Am 31.01.2016 um 15:09 schrieb Alona Kaplan:
> > Hi Christoph,
> >
> > Please send me also the output of the following-
> >
> > On the host (The problematic host is - 'lxedna.voipfuture.com', right?)-
> > 1. vdsClient -s 0 getVdsCapabilities
> > 2. vdsClient -s 0 hostdevListByCaps
> >
> > On the DB-
> > 1. select * from vds_interface where
> > vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
> > 2. select * from host_device where
> > host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
> > 3. select * from host_nic_vfs_config;
> >
> > Thanks,
> > Alona.
> >
> > - Original Message -----
> >> From: ov...@timmi.org
> >> To: "Alona Kaplan" <alkap...@redhat.com>, "Martin Mucha"
> >> <mmu...@redhat.com>
> >> Cc: users@ovirt.org
> >> Sent: Friday, January 29, 2016 9:25:53 AM
> >> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup
> >> Host Networks"
> >>
> >> Hi Alona,
> >>
> >> here are my answers.
> >>
> >> 1. no, but I did that just now and it does not change the behavior.
> >> 2. the host is up
> >> 3. it is in the attachment
> >>
> >> Best regards
> >> Christoph
> >>
> >> Am 28.01.2016 um 15:47 schrieb Alona Kaplan:
> >>> Hi Christoph,
> >>>
> >>> I have some questions/requests-
> >>>
> >>> 1. After the reboot and the rewiring you did- did you press manually on
> >>> the
> >>> Host's 'Refresh Capabilities' button (it is part of the Host's actions in
> >>> the host's main tab)?
> >>> If not, please do it and let me know if after doing it you manage to open
> >>> the 'setup networks' dialog or still get the same error.
> >>> 2. What is the status of your host? Up/Maintenance/some thing else?
> >>> 3. Please attach the full log of your engine.
> >>>
> >>> Thanks,
> >>> Alona.
> >>>
> >>> - Original Message -
> >>>> From: "Martin Mucha" <mmu...@redhat.com>
> >>>> To: ov...@timmi.org
> >>>> Cc: users@ovirt.org
> >>>> Sent: Thursday, January 28, 2016 11:46:30 AM
> >>>> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup
> >>>> Host Networks"
> >>>>
> >>>> ok, thanks. Just o inform you — so far it seems there is inconsistency
> >>>> in
> >>>> assumptions of what can be nullable and what can not. We just need to
> >>>> decide
> >>>> which approach is correct and fix rest.
> >>>> M.
> >>>>
> >>>> - Original Message -
> &

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-02-01 Thread Alona Kaplan


- Original Message -
> From: "Alona Kaplan" <alkap...@redhat.com>
> To: ov...@timmi.org
> Cc: users@ovirt.org
> Sent: Monday, February 1, 2016 6:27:15 PM
> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host 
> Networks"
> 
> Hi Christoph,
> 
> I think that I know what happened on your environment.
> Since, as you said, the names of the nics were changed after reboot. Nic
> names that previously were used for sriov nics, are now used for a regular
> nics.
> 
> As I see from looking at the results of your queries-
> Previously - eth2, eth3, eth4 and eth5 were sriov nics.
> Now after the reboot - eth1, eth3, eth4 and eth6 are sriov nics.
> 
> Due to a bug (https://bugzilla.redhat.com/1303640), currently the engine
> doesn't know how to deal with this situation and the data in the db gets
> corrupted.
> Until the bug is fixed, the way to fix it manually is to clean the host's
> data from some tables and then refreshing the capabilities of the host.
> 
> Please do the following -
> 

If you didn't do the steps from the previous mail.
Before doing the deleting step, please stop the VMs that run on this host 
(lxedna.voipfuture.com).
If you already done the delete, anyway, please stop the VMs that run on this 
host (lxedna.voipfuture.com).

You can re-run them only after you finish all the steps from the previous mail.

> 1. delete from host_device where
> host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
> 2. delete from host_nic_vfs_config where nic_id in (select id from
> vds_interface where vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4');
> 
> After it, please do -
> 1. select from host_device where
> host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
> 2. select from host_nic_vfs_config where nic_id in (select id from
> vds_interface where vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4');
> 
> Make sure both of the queries return empty values.
> 
> Then click on the 'refresh host's capabilities' button.
> 
> Please let me know if after doing so you manage to open the host's setup
> network dialog.
> 
> Thanks,
> Alona.
> 
> - Original Message -
> > From: ov...@timmi.org
> > To: "Alona Kaplan" <alkap...@redhat.com>
> > Cc: "Martin Mucha" <mmu...@redhat.com>, users@ovirt.org
> > Sent: Sunday, January 31, 2016 4:47:36 PM
> > Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host
> > Networks"
> > 
> > Hi Alona,
> > 
> > please find the requested output in the attachment.
> > 
> > Best regards
> > Christoph
> > 
> > Am 31.01.2016 um 15:09 schrieb Alona Kaplan:
> > > Hi Christoph,
> > >
> > > Please send me also the output of the following-
> > >
> > > On the host (The problematic host is - 'lxedna.voipfuture.com', right?)-
> > > 1. vdsClient -s 0 getVdsCapabilities
> > > 2. vdsClient -s 0 hostdevListByCaps
> > >
> > > On the DB-
> > > 1. select * from vds_interface where
> > > vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
> > > 2. select * from host_device where
> > > host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
> > > 3. select * from host_nic_vfs_config;
> > >
> > > Thanks,
> > > Alona.
> > >
> > > - Original Message -
> > >> From: ov...@timmi.org
> > >> To: "Alona Kaplan" <alkap...@redhat.com>, "Martin Mucha"
> > >> <mmu...@redhat.com>
> > >> Cc: users@ovirt.org
> > >> Sent: Friday, January 29, 2016 9:25:53 AM
> > >> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup
> > >> Host Networks"
> > >>
> > >> Hi Alona,
> > >>
> > >> here are my answers.
> > >>
> > >> 1. no, but I did that just now and it does not change the behavior.
> > >> 2. the host is up
> > >> 3. it is in the attachment
> > >>
> > >> Best regards
> > >> Christoph
> > >>
> > >> Am 28.01.2016 um 15:47 schrieb Alona Kaplan:
> > >>> Hi Christoph,
> > >>>
> > >>> I have some questions/requests-
> > >>>
> > >>> 1. After the reboot and the rewiring you did- did you press manually on
> > >>> the
> > >>> Host's 'Refresh Capabilities' button (it is part of the Host's actions
> > >>> in
> > >>> the host's main tab)?
> > >>> If not, please do it and let me know

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-01-31 Thread Alona Kaplan
Hi Christoph,

Please send me also the output of the following-

On the host (The problematic host is - 'lxedna.voipfuture.com', right?)-
1. vdsClient -s 0 getVdsCapabilities
2. vdsClient -s 0 hostdevListByCaps

On the DB-
1. select * from vds_interface where 
vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
2. select * from host_device where 
host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
3. select * from host_nic_vfs_config;

Thanks,
Alona.

- Original Message -
> From: ov...@timmi.org
> To: "Alona Kaplan" <alkap...@redhat.com>, "Martin Mucha" <mmu...@redhat.com>
> Cc: users@ovirt.org
> Sent: Friday, January 29, 2016 9:25:53 AM
> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host 
> Networks"
> 
> Hi Alona,
> 
> here are my answers.
> 
> 1. no, but I did that just now and it does not change the behavior.
> 2. the host is up
> 3. it is in the attachment
> 
> Best regards
> Christoph
> 
> Am 28.01.2016 um 15:47 schrieb Alona Kaplan:
> > Hi Christoph,
> >
> > I have some questions/requests-
> >
> > 1. After the reboot and the rewiring you did- did you press manually on the
> > Host's 'Refresh Capabilities' button (it is part of the Host's actions in
> > the host's main tab)?
> > If not, please do it and let me know if after doing it you manage to open
> > the 'setup networks' dialog or still get the same error.
> > 2. What is the status of your host? Up/Maintenance/some thing else?
> > 3. Please attach the full log of your engine.
> >
> > Thanks,
> > Alona.
> >
> > ----- Original Message -----
> >> From: "Martin Mucha" <mmu...@redhat.com>
> >> To: ov...@timmi.org
> >> Cc: users@ovirt.org
> >> Sent: Thursday, January 28, 2016 11:46:30 AM
> >> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup
> >> Host Networks"
> >>
> >> ok, thanks. Just o inform you — so far it seems there is inconsistency in
> >> assumptions of what can be nullable and what can not. We just need to
> >> decide
> >> which approach is correct and fix rest.
> >> M.
> >>
> >> - Original Message -
> >>> Hi Martin,
> >>>
> >>> please let me know I can help.
> >>>
> >>> Best regards
> >>> Christoph
> >>>
> >>> Am 28.01.2016 um 09:04 schrieb Martin Mucha:
> >>>> I think this issue is real and it seems to be caused by unboxing of
> >>>> nullvalued integer obtained from function
> >>>> org.ovirt.engine.core.common.businessentities.HostDevice#getTotalVirtualFunctions
> >>>>
> >>>> M.
> >>>>
> >>>> - Original Message -
> >>>>> Hi List,
> >>>>>
> >>>>> I update my OVirt 3.6.1 installation to 3.6.2 this morning.
> >>>>> After the reboot of the server the interface numbering wasn't the same
> >>>>> so I had to change some cable to have them connected to the right
> >>>>> configuration.
> >>>>>
> >>>>> Everything looks OK but I receive a null pointer exception while
> >>>>> clicking on "Setup Host Networks" of my engine/host server.
> >>>>>
> >>>>> Any help is more then welcome!!
> >>>>>
> >>>>> Best regards
> >>>>> Christoph
> >>>>>
> >>>>> 2016-01-27 19:04:47,738 ERROR
> >>>>> [org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery]
> >>>>> (default task-482) [] Exception: java.lang.NullPointerException
> >>>>>at
> >>>>> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getMaxNumOfVfs(NetworkDeviceHelperImpl.java:172)
> >>>>> [bll.jar:]
> >>>>>at
> >>>>> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.updateVfsConfigWithNumOfVfsData(NetworkDeviceHelperImpl.java:136)
> >>>>> [bll.jar:]
> >>>>>at
> >>>>> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getHostNicVfsConfigsWithNumVfsDataByHostId(NetworkDeviceHelperImpl.java:121)
> >>>>> [bll.jar:]
> >>>>>at
> >>>>> org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery.executeQueryCommand(GetAllVfsConfigByHostIdQuery.java:19)
> >>>

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-01-31 Thread ovirt

Hi Alona,

please find the requested output in the attachment.

Best regards
Christoph

Am 31.01.2016 um 15:09 schrieb Alona Kaplan:

Hi Christoph,

Please send me also the output of the following-

On the host (The problematic host is - 'lxedna.voipfuture.com', right?)-
1. vdsClient -s 0 getVdsCapabilities
2. vdsClient -s 0 hostdevListByCaps

On the DB-
1. select * from vds_interface where 
vds_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
2. select * from host_device where 
host_id='b3b01963-caf8-4f01-bfcc-57e6d33e7dc4';
3. select * from host_nic_vfs_config;

Thanks,
Alona.

- Original Message -

From: ov...@timmi.org
To: "Alona Kaplan" <alkap...@redhat.com>, "Martin Mucha" <mmu...@redhat.com>
Cc: users@ovirt.org
Sent: Friday, January 29, 2016 9:25:53 AM
Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host 
Networks"

Hi Alona,

here are my answers.

1. no, but I did that just now and it does not change the behavior.
2. the host is up
3. it is in the attachment

Best regards
Christoph

Am 28.01.2016 um 15:47 schrieb Alona Kaplan:

Hi Christoph,

I have some questions/requests-

1. After the reboot and the rewiring you did- did you press manually on the
Host's 'Refresh Capabilities' button (it is part of the Host's actions in
the host's main tab)?
If not, please do it and let me know if after doing it you manage to open
the 'setup networks' dialog or still get the same error.
2. What is the status of your host? Up/Maintenance/some thing else?
3. Please attach the full log of your engine.

Thanks,
Alona.

- Original Message -

From: "Martin Mucha" <mmu...@redhat.com>
To: ov...@timmi.org
Cc: users@ovirt.org
Sent: Thursday, January 28, 2016 11:46:30 AM
Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup
Host Networks"

ok, thanks. Just o inform you — so far it seems there is inconsistency in
assumptions of what can be nullable and what can not. We just need to
decide
which approach is correct and fix rest.
M.

- Original Message -

Hi Martin,

please let me know I can help.

Best regards
Christoph

Am 28.01.2016 um 09:04 schrieb Martin Mucha:

I think this issue is real and it seems to be caused by unboxing of
nullvalued integer obtained from function
org.ovirt.engine.core.common.businessentities.HostDevice#getTotalVirtualFunctions

M.

- Original Message -

Hi List,

I update my OVirt 3.6.1 installation to 3.6.2 this morning.
After the reboot of the server the interface numbering wasn't the same
so I had to change some cable to have them connected to the right
configuration.

Everything looks OK but I receive a null pointer exception while
clicking on "Setup Host Networks" of my engine/host server.

Any help is more then welcome!!

Best regards
Christoph

2016-01-27 19:04:47,738 ERROR
[org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery]
(default task-482) [] Exception: java.lang.NullPointerException
at
org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getMaxNumOfVfs(NetworkDeviceHelperImpl.java:172)
[bll.jar:]
at
org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.updateVfsConfigWithNumOfVfsData(NetworkDeviceHelperImpl.java:136)
[bll.jar:]
at
org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getHostNicVfsConfigsWithNumVfsDataByHostId(NetworkDeviceHelperImpl.java:121)
[bll.jar:]
at
org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery.executeQueryCommand(GetAllVfsConfigByHostIdQuery.java:19)
[bll.jar:]
at
org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:82)
[bll.jar:]
at
org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
[dal.jar:]
at
org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:537)
[bll.jar:]
at
org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:511)
[bll.jar:]
at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown
Source)
[:1.8.0_71]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_71]
at java.lang.reflect.Method.invoke(Method.java:497)
[rt.jar:1.8.0_71]
at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-01-28 Thread ovirt

Hi Martin,

please let me know I can help.

Best regards
Christoph

Am 28.01.2016 um 09:04 schrieb Martin Mucha:

I think this issue is real and it seems to be caused by unboxing of nullvalued 
integer obtained from function 
org.ovirt.engine.core.common.businessentities.HostDevice#getTotalVirtualFunctions

M.

- Original Message -

Hi List,

I update my OVirt 3.6.1 installation to 3.6.2 this morning.
After the reboot of the server the interface numbering wasn't the same
so I had to change some cable to have them connected to the right
configuration.

Everything looks OK but I receive a null pointer exception while
clicking on "Setup Host Networks" of my engine/host server.

Any help is more then welcome!!

Best regards
Christoph

2016-01-27 19:04:47,738 ERROR
[org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery]
(default task-482) [] Exception: java.lang.NullPointerException
  at
org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getMaxNumOfVfs(NetworkDeviceHelperImpl.java:172)
[bll.jar:]
  at
org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.updateVfsConfigWithNumOfVfsData(NetworkDeviceHelperImpl.java:136)
[bll.jar:]
  at
org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getHostNicVfsConfigsWithNumVfsDataByHostId(NetworkDeviceHelperImpl.java:121)
[bll.jar:]
  at
org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery.executeQueryCommand(GetAllVfsConfigByHostIdQuery.java:19)
[bll.jar:]
  at
org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:82)
[bll.jar:]
  at
org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
[dal.jar:]
  at
org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:537) [bll.jar:]
  at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:511)
[bll.jar:]
  at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
[:1.8.0_71]
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_71]
  at java.lang.reflect.Method.invoke(Method.java:497)
[rt.jar:1.8.0_71]
  at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
  at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
  at
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
  at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
  at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
  at
org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)
[wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
  at
org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)
[wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
  at
org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
[wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
  at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
  at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
  at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
  at
org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerInterceptor.aroundInvoke(CorrelationIdTrackerInterceptor.java:13)
[bll.jar:]
  at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
[:1.8.0_71]
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_71]
  at java.lang.reflect.Method.invoke(Method.java:497)
[rt.jar:1.8.0_71]
  at
org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)
  at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
  at
org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
  at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
  at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
  at
org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
[wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]
  at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
  at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
  at

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-01-28 Thread Martin Mucha
I think this issue is real and it seems to be caused by unboxing of nullvalued 
integer obtained from function 
org.ovirt.engine.core.common.businessentities.HostDevice#getTotalVirtualFunctions

M.

- Original Message -
> Hi List,
> 
> I update my OVirt 3.6.1 installation to 3.6.2 this morning.
> After the reboot of the server the interface numbering wasn't the same
> so I had to change some cable to have them connected to the right
> configuration.
> 
> Everything looks OK but I receive a null pointer exception while
> clicking on "Setup Host Networks" of my engine/host server.
> 
> Any help is more then welcome!!
> 
> Best regards
> Christoph
> 
> 2016-01-27 19:04:47,738 ERROR
> [org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery]
> (default task-482) [] Exception: java.lang.NullPointerException
>  at
> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getMaxNumOfVfs(NetworkDeviceHelperImpl.java:172)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.updateVfsConfigWithNumOfVfsData(NetworkDeviceHelperImpl.java:136)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getHostNicVfsConfigsWithNumVfsDataByHostId(NetworkDeviceHelperImpl.java:121)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery.executeQueryCommand(GetAllVfsConfigByHostIdQuery.java:19)
> [bll.jar:]
>  at
> org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:82)
> [bll.jar:]
>  at
> org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
> [dal.jar:]
>  at
> org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:537) [bll.jar:]
>  at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:511)
> [bll.jar:]
>  at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
> [:1.8.0_71]
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_71]
>  at java.lang.reflect.Method.invoke(Method.java:497)
> [rt.jar:1.8.0_71]
>  at
> org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
>  at
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
>  at
> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)
> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)
> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
>  at
> org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerInterceptor.aroundInvoke(CorrelationIdTrackerInterceptor.java:13)
> [bll.jar:]
>  at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
> [:1.8.0_71]
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [rt.jar:1.8.0_71]
>  at java.lang.reflect.Method.invoke(Method.java:497)
> [rt.jar:1.8.0_71]
>  at
> org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
>  at
> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]
>  at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
>  at
> 

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-01-28 Thread Martin Mucha
ok, thanks. Just o inform you — so far it seems there is inconsistency in 
assumptions of what can be nullable and what can not. We just need to decide 
which approach is correct and fix rest. 
M.

- Original Message -
> Hi Martin,
> 
> please let me know I can help.
> 
> Best regards
> Christoph
> 
> Am 28.01.2016 um 09:04 schrieb Martin Mucha:
> > I think this issue is real and it seems to be caused by unboxing of
> > nullvalued integer obtained from function
> > org.ovirt.engine.core.common.businessentities.HostDevice#getTotalVirtualFunctions
> >
> > M.
> >
> > - Original Message -
> >> Hi List,
> >>
> >> I update my OVirt 3.6.1 installation to 3.6.2 this morning.
> >> After the reboot of the server the interface numbering wasn't the same
> >> so I had to change some cable to have them connected to the right
> >> configuration.
> >>
> >> Everything looks OK but I receive a null pointer exception while
> >> clicking on "Setup Host Networks" of my engine/host server.
> >>
> >> Any help is more then welcome!!
> >>
> >> Best regards
> >> Christoph
> >>
> >> 2016-01-27 19:04:47,738 ERROR
> >> [org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery]
> >> (default task-482) [] Exception: java.lang.NullPointerException
> >>   at
> >> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getMaxNumOfVfs(NetworkDeviceHelperImpl.java:172)
> >> [bll.jar:]
> >>   at
> >> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.updateVfsConfigWithNumOfVfsData(NetworkDeviceHelperImpl.java:136)
> >> [bll.jar:]
> >>   at
> >> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getHostNicVfsConfigsWithNumVfsDataByHostId(NetworkDeviceHelperImpl.java:121)
> >> [bll.jar:]
> >>   at
> >> org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery.executeQueryCommand(GetAllVfsConfigByHostIdQuery.java:19)
> >> [bll.jar:]
> >>   at
> >> org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:82)
> >> [bll.jar:]
> >>   at
> >> org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
> >> [dal.jar:]
> >>   at
> >> org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:537)
> >> [bll.jar:]
> >>   at org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:511)
> >> [bll.jar:]
> >>   at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
> >> [:1.8.0_71]
> >>   at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> [rt.jar:1.8.0_71]
> >>   at java.lang.reflect.Method.invoke(Method.java:497)
> >> [rt.jar:1.8.0_71]
> >>   at
> >> org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> >>   at
> >> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
> >>   at
> >> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> >>   at
> >> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> >>   at
> >> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
> >>   at
> >> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
> >>   at
> >> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:70)
> >> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
> >>   at
> >> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:80)
> >> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
> >>   at
> >> org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
> >> [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]
> >>   at
> >> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> >>   at
> >> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
> >>   at
> >> org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
> >>   at
> >> org.ovirt.engine.core.bll.interceptors.CorrelationIdTrackerInterceptor.aroundInvoke(CorrelationIdTrackerInterceptor.java:13)
> >> [bll.jar:]
> >>   at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
> >> [:1.8.0_71]
> >>   at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> [rt.jar:1.8.0_71]
> >>   at java.lang.reflect.Method.invoke(Method.java:497)
> >> [rt.jar:1.8.0_71]
> >>   at
> >> org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:89)
> >>   at
> >> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
> 

Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host Networks"

2016-01-28 Thread Alona Kaplan
Hi Christoph,

I have some questions/requests-

1. After the reboot and the rewiring you did- did you press manually on the 
Host's 'Refresh Capabilities' button (it is part of the Host's actions in the 
host's main tab)?
If not, please do it and let me know if after doing it you manage to open the 
'setup networks' dialog or still get the same error.
2. What is the status of your host? Up/Maintenance/some thing else?
3. Please attach the full log of your engine.

Thanks,
Alona.

- Original Message -
> From: "Martin Mucha" <mmu...@redhat.com>
> To: ov...@timmi.org
> Cc: users@ovirt.org
> Sent: Thursday, January 28, 2016 11:46:30 AM
> Subject: Re: [ovirt-users] OVirt 3.6.2 -> NPE while clicking on "Setup Host 
> Networks"
> 
> ok, thanks. Just o inform you — so far it seems there is inconsistency in
> assumptions of what can be nullable and what can not. We just need to decide
> which approach is correct and fix rest.
> M.
> 
> - Original Message -
> > Hi Martin,
> > 
> > please let me know I can help.
> > 
> > Best regards
> > Christoph
> > 
> > Am 28.01.2016 um 09:04 schrieb Martin Mucha:
> > > I think this issue is real and it seems to be caused by unboxing of
> > > nullvalued integer obtained from function
> > > org.ovirt.engine.core.common.businessentities.HostDevice#getTotalVirtualFunctions
> > >
> > > M.
> > >
> > > - Original Message -
> > >> Hi List,
> > >>
> > >> I update my OVirt 3.6.1 installation to 3.6.2 this morning.
> > >> After the reboot of the server the interface numbering wasn't the same
> > >> so I had to change some cable to have them connected to the right
> > >> configuration.
> > >>
> > >> Everything looks OK but I receive a null pointer exception while
> > >> clicking on "Setup Host Networks" of my engine/host server.
> > >>
> > >> Any help is more then welcome!!
> > >>
> > >> Best regards
> > >> Christoph
> > >>
> > >> 2016-01-27 19:04:47,738 ERROR
> > >> [org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery]
> > >> (default task-482) [] Exception: java.lang.NullPointerException
> > >>   at
> > >> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getMaxNumOfVfs(NetworkDeviceHelperImpl.java:172)
> > >> [bll.jar:]
> > >>   at
> > >> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.updateVfsConfigWithNumOfVfsData(NetworkDeviceHelperImpl.java:136)
> > >> [bll.jar:]
> > >>   at
> > >> org.ovirt.engine.core.bll.network.host.NetworkDeviceHelperImpl.getHostNicVfsConfigsWithNumVfsDataByHostId(NetworkDeviceHelperImpl.java:121)
> > >> [bll.jar:]
> > >>   at
> > >> org.ovirt.engine.core.bll.network.host.GetAllVfsConfigByHostIdQuery.executeQueryCommand(GetAllVfsConfigByHostIdQuery.java:19)
> > >> [bll.jar:]
> > >>   at
> > >> org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:82)
> > >> [bll.jar:]
> > >>   at
> > >> org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
> > >> [dal.jar:]
> > >>   at
> > >> org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:537)
> > >> [bll.jar:]
> > >>   at
> > >>   org.ovirt.engine.core.bll.Backend.runQuery(Backend.java:511)
> > >> [bll.jar:]
> > >>   at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown
> > >>   Source)
> > >> [:1.8.0_71]
> > >>   at
> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > >> [rt.jar:1.8.0_71]
> > >>   at java.lang.reflect.Method.invoke(Method.java:497)
> > >> [rt.jar:1.8.0_71]
> > >>   at
> > >> org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> > >>   at
> > >> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
> > >>   at
> > >> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> > >>   at
> > >> org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> > >