[ovirt-devel] [ OST Failure Report ] [ oVirt master ] [ 2017-09-07 ] [import_template_from_glance]

2017-09-07 Thread Evgheni Dereveanchin
Test failed: [ import_template_from_glance ]

Link to suspected patches:
https://gerrit.ovirt.org/#/c/80450/

Link to Job:
http://jenkins.ovirt.org/job/ovirt-master_change-queue-tester/2397/

Link to logs:
http://jenkins.ovirt.org/job/ovirt-master_change-queue-tester/2397/artifact/exported-artifacts/basic-suit-master-el7/test_logs/basic-suite-master/post-002_bootstrap.py/lago-basic-suite-master-engine/_var_log/ovirt-engine/engine.log

Error snippet from log:



2017-09-07 08:21:48,657-04 INFO
[org.ovirt.engine.core.bll.AddVmTemplateCommand]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb] Lock
Acquired to object
'EngineLock:{exclusiveLocks='[2c2b56b5-cac6-469d-b0e0-9744309ca8c1=TEMPLATE,
CirrOS_0.3.5_for_x86_64_glance_template=TEMPLATE_NAME]',
sharedLocks='[]'}'
2017-09-07 08:21:48,675-04 INFO
[org.ovirt.engine.core.bll.AddVmTemplateCommand]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb] Running
command: AddVmTemplateCommand internal: true. Entities affected :  ID:
d279c4e9-09e7-4dd9-9eff-10b31ee2adfc Type: StoragePoolAction group
CREATE_TEMPLATE with role type USER
2017-09-07 08:21:48,695-04 INFO
[org.ovirt.engine.core.bll.storage.disk.CreateAllTemplateDisksCommand]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb] Running
command: CreateAllTemplateDisksCommand internal: true.
2017-09-07 08:21:48,722-04 INFO
[org.ovirt.engine.core.utils.transaction.TransactionSupport]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb]
transaction rolled back
2017-09-07 08:21:48,722-04 ERROR
[org.ovirt.engine.core.bll.AddVmTemplateCommand]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb] Command
'org.ovirt.engine.core.bll.AddVmTemplateCommand' failed: null
2017-09-07 08:21:48,722-04 ERROR
[org.ovirt.engine.core.bll.AddVmTemplateCommand]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb]
Exception: java.lang.NullPointerException
at 
org.ovirt.engine.core.bll.utils.VgamemVideoSettings.getVramMultiplier(VgamemVideoSettings.java:63)
[bll.jar:]
at 
org.ovirt.engine.core.bll.utils.VgamemVideoSettings.getQxlVideoDeviceSettings(VgamemVideoSettings.java:40)
[bll.jar:]
at 
org.ovirt.engine.core.bll.utils.VideoDeviceSettings.getVideoDeviceSettings(VideoDeviceSettings.java:34)
[bll.jar:]
at 
org.ovirt.engine.core.bll.utils.VideoDeviceSettings.getVideoDeviceSpecParams(VideoDeviceSettings.java:49)
[bll.jar:]
at 
org.ovirt.engine.core.bll.utils.VmDeviceUtils.getVideoDeviceSpecParams(VmDeviceUtils.java:586)
[bll.jar:]
at 
org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices(VmDeviceUtils.java:1435)
[bll.jar:]
at 
org.ovirt.engine.core.bll.utils.VmDeviceUtils.copyVmDevices(VmDeviceUtils.java:1559)
[bll.jar:]

...

2017-09-07 08:21:48,739-04 INFO
[org.ovirt.engine.core.bll.AddVmTemplateCommand]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb] Command
[id=3d633182-982a-46f2-b4f1-27c5d04397a7]: Compensating NEW_ENTITY_ID
of org.ovirt.engine.core.common.businessentities.VmTemplate; snapshot:
2c2b56b5-cac6-469d-b0e0-9744309ca8c1.
2017-09-07 08:21:48,813-04 ERROR
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb]
EVENT_ID: USER_ADD_VM_TEMPLATE_FAILURE(36), Failed creating Template
CirrOS_0.3.5_for_x86_64_glance_template.
2017-09-07 08:21:48,834-04 INFO
[org.ovirt.engine.core.bll.AddVmTemplateCommand]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb] Lock
freed to object
'EngineLock:{exclusiveLocks='[2c2b56b5-cac6-469d-b0e0-9744309ca8c1=TEMPLATE,
CirrOS_0.3.5_for_x86_64_glance_template=TEMPLATE_NAME]',
sharedLocks='[]'}'
2017-09-07 08:21:48,848-04 DEBUG
[org.ovirt.engine.core.dal.dbbroker.CustomSQLErrorCodeSQLExceptionTranslator]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb]
Translating SQLException with SQL state '23503', error code '0',
message [ERROR: insert or update on table "disk_vm_element" violates
foreign key constraint "fk_disk_vm_element_vm_static"
  Detail: Key (vm_id)=(2c2b56b5-cac6-469d-b0e0-9744309ca8c1) is not
present in table "vm_static".
  Where: SQL statement "INSERT INTO disk_vm_element (
disk_id,
vm_id,
is_boot,
pass_discard,
disk_interface,
is_using_scsi_reservation)
VALUES (
v_disk_id,
v_vm_id,
v_is_boot,
v_pass_discard,
v_disk_interface,
v_is_using_scsi_reservation)"
PL/pgSQL function
insertdiskvmelement(uuid,uuid,boolean,boolean,character
varying,boolean) line 3 at SQL statement]; SQL was [{call
insertdiskvmelement(?, ?, ?, ?, ?, ?)}] for task
[CallableStatementCallback]
2017-09-07 08:21:48,850-04 INFO
[org.ovirt.engine.core.utils.transaction.TransactionSupport]
(EE-ManagedThreadFactory-engineScheduled-Thread-21) [74b41edb]
transaction rolled back
2017-09-07 08:21:48,877-04 INFO
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
(EE-Manag

Re: [ovirt-devel] [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to Engine database using existing credentials: engine@localhost:5432

2017-09-07 Thread Simone Tiraboschi
On Thu, Sep 7, 2017 at 3:59 PM, Miroslava Voglova 
wrote:

> It's because upgrade to Postgres 9.5. There is patch that edit README with
> more instructions how to proceed [1].
>
> [1] https://gerrit.ovirt.org/#/c/81536/
>

I'm trying to improve that patch to have it handled almost fully
automatically by make install-dev


>
>
> On Thu, Sep 7, 2017 at 3:12 PM, Greg Sheremeta 
> wrote:
>
>> Just in case it helps:
>> greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) % noglob rpm
>> -qa postgres*
>> postgresql-server-9.6.3-1.fc26.x86_64
>> postgresql-9.6.3-1.fc26.x86_64
>> postgresql-libs-9.6.3-1.fc26.x86_64
>>
>>
>> On Thu, Sep 7, 2017 at 9:10 AM, Jakub Niedermertl 
>> wrote:
>>
>>> I have the same issue.
>>>
>>> On Thu, Sep 7, 2017 at 2:40 PM, Greg Sheremeta 
>>> wrote:
>>>
 I just rebased and engine wouldn't serve the UI (404) although it
 looked like it started. I tried to run engine setup, and getting:

 greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) %
 ovirt_engine_setup
 [ INFO  ] Stage: Initializing
   Setup was run under unprivileged user this will produce
 development installation do you wish to proceed? (Yes, No) [No]: yes
 [ INFO  ] Stage: Environment setup
   Configuration files: ['/home/greg/ovirt-engine/etc/
 ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
   Log file: /home/greg/ovirt-engine/var/lo
 g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
   Version: otopi-1.7.2_master (otopi-1.7.2-0.0.master.201707
 25101901.git770a428.fc25)
 [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect
 to Engine database using existing credentials: engine@localhost:5432
 [ INFO  ] Stage: Clean up
   Log file is located at /home/greg/ovirt-engine/var/lo
 g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
 [ INFO  ] Generating answer file '/home/greg/ovirt-engine/var/l
 ib/ovirt-engine/setup/answers/20170907083128-setup.conf'
 [ INFO  ] Stage: Pre-termination
 [ INFO  ] Stage: Termination
 [ ERROR ] Execution of setup failed


 Anyone else seen this or know a fix?

 Best wishes,
 Greg


 --

 GREG SHEREMETA

 SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX

 Red Hat

 

 gsher...@redhat.comIRC: gshereme
 

 ___
 Devel mailing list
 Devel@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel

>>>
>>>
>>
>>
>> ___
>> Devel mailing list
>> Devel@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
>>
>
>
> ___
> Devel mailing list
> Devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
>
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel

Re: [ovirt-devel] [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to Engine database using existing credentials: engine@localhost:5432

2017-09-07 Thread Miroslava Voglova
It's because upgrade to Postgres 9.5. There is patch that edit README with
more instructions how to proceed [1].

[1] https://gerrit.ovirt.org/#/c/81536/

On Thu, Sep 7, 2017 at 3:12 PM, Greg Sheremeta  wrote:

> Just in case it helps:
> greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) % noglob rpm
> -qa postgres*
> postgresql-server-9.6.3-1.fc26.x86_64
> postgresql-9.6.3-1.fc26.x86_64
> postgresql-libs-9.6.3-1.fc26.x86_64
>
>
> On Thu, Sep 7, 2017 at 9:10 AM, Jakub Niedermertl 
> wrote:
>
>> I have the same issue.
>>
>> On Thu, Sep 7, 2017 at 2:40 PM, Greg Sheremeta 
>> wrote:
>>
>>> I just rebased and engine wouldn't serve the UI (404) although it looked
>>> like it started. I tried to run engine setup, and getting:
>>>
>>> greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) %
>>> ovirt_engine_setup
>>> [ INFO  ] Stage: Initializing
>>>   Setup was run under unprivileged user this will produce
>>> development installation do you wish to proceed? (Yes, No) [No]: yes
>>> [ INFO  ] Stage: Environment setup
>>>   Configuration files: ['/home/greg/ovirt-engine/etc/
>>> ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
>>>   Log file: /home/greg/ovirt-engine/var/lo
>>> g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
>>>   Version: otopi-1.7.2_master (otopi-1.7.2-0.0.master.201707
>>> 25101901.git770a428.fc25)
>>> [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to
>>> Engine database using existing credentials: engine@localhost:5432
>>> [ INFO  ] Stage: Clean up
>>>   Log file is located at /home/greg/ovirt-engine/var/lo
>>> g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
>>> [ INFO  ] Generating answer file '/home/greg/ovirt-engine/var/l
>>> ib/ovirt-engine/setup/answers/20170907083128-setup.conf'
>>> [ INFO  ] Stage: Pre-termination
>>> [ INFO  ] Stage: Termination
>>> [ ERROR ] Execution of setup failed
>>>
>>>
>>> Anyone else seen this or know a fix?
>>>
>>> Best wishes,
>>> Greg
>>>
>>>
>>> --
>>>
>>> GREG SHEREMETA
>>>
>>> SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
>>>
>>> Red Hat
>>>
>>> 
>>>
>>> gsher...@redhat.comIRC: gshereme
>>> 
>>>
>>> ___
>>> Devel mailing list
>>> Devel@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/devel
>>>
>>
>>
>
>
> ___
> Devel mailing list
> Devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
>
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel

Re: [ovirt-devel] [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to Engine database using existing credentials: engine@localhost:5432

2017-09-07 Thread Greg Sheremeta
Just in case it helps:
greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) % noglob rpm
-qa postgres*
postgresql-server-9.6.3-1.fc26.x86_64
postgresql-9.6.3-1.fc26.x86_64
postgresql-libs-9.6.3-1.fc26.x86_64


On Thu, Sep 7, 2017 at 9:10 AM, Jakub Niedermertl 
wrote:

> I have the same issue.
>
> On Thu, Sep 7, 2017 at 2:40 PM, Greg Sheremeta 
> wrote:
>
>> I just rebased and engine wouldn't serve the UI (404) although it looked
>> like it started. I tried to run engine setup, and getting:
>>
>> greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) %
>> ovirt_engine_setup
>> [ INFO  ] Stage: Initializing
>>   Setup was run under unprivileged user this will produce
>> development installation do you wish to proceed? (Yes, No) [No]: yes
>> [ INFO  ] Stage: Environment setup
>>   Configuration files: ['/home/greg/ovirt-engine/etc/
>> ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
>>   Log file: /home/greg/ovirt-engine/var/lo
>> g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
>>   Version: otopi-1.7.2_master (otopi-1.7.2-0.0.master.201707
>> 25101901.git770a428.fc25)
>> [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to
>> Engine database using existing credentials: engine@localhost:5432
>> [ INFO  ] Stage: Clean up
>>   Log file is located at /home/greg/ovirt-engine/var/lo
>> g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
>> [ INFO  ] Generating answer file '/home/greg/ovirt-engine/var/l
>> ib/ovirt-engine/setup/answers/20170907083128-setup.conf'
>> [ INFO  ] Stage: Pre-termination
>> [ INFO  ] Stage: Termination
>> [ ERROR ] Execution of setup failed
>>
>>
>> Anyone else seen this or know a fix?
>>
>> Best wishes,
>> Greg
>>
>>
>> --
>>
>> GREG SHEREMETA
>>
>> SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
>>
>> Red Hat
>>
>> 
>>
>> gsher...@redhat.comIRC: gshereme
>> 
>>
>> ___
>> Devel mailing list
>> Devel@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
>>
>
>
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel

Re: [ovirt-devel] [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to Engine database using existing credentials: engine@localhost:5432

2017-09-07 Thread Jakub Niedermertl
I have the same issue.

On Thu, Sep 7, 2017 at 2:40 PM, Greg Sheremeta  wrote:

> I just rebased and engine wouldn't serve the UI (404) although it looked
> like it started. I tried to run engine setup, and getting:
>
> greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) %
> ovirt_engine_setup
> [ INFO  ] Stage: Initializing
>   Setup was run under unprivileged user this will produce
> development installation do you wish to proceed? (Yes, No) [No]: yes
> [ INFO  ] Stage: Environment setup
>   Configuration files: ['/home/greg/ovirt-engine/etc/
> ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
>   Log file: /home/greg/ovirt-engine/var/
> log/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
>   Version: otopi-1.7.2_master (otopi-1.7.2-0.0.master.
> 20170725101901.git770a428.fc25)
> [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to
> Engine database using existing credentials: engine@localhost:5432
> [ INFO  ] Stage: Clean up
>   Log file is located at /home/greg/ovirt-engine/var/
> log/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
> [ INFO  ] Generating answer file '/home/greg/ovirt-engine/var/
> lib/ovirt-engine/setup/answers/20170907083128-setup.conf'
> [ INFO  ] Stage: Pre-termination
> [ INFO  ] Stage: Termination
> [ ERROR ] Execution of setup failed
>
>
> Anyone else seen this or know a fix?
>
> Best wishes,
> Greg
>
>
> --
>
> GREG SHEREMETA
>
> SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
>
> Red Hat
>
> 
>
> gsher...@redhat.comIRC: gshereme
> 
>
> ___
> Devel mailing list
> Devel@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel
>
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel

[ovirt-devel] [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to Engine database using existing credentials: engine@localhost:5432

2017-09-07 Thread Greg Sheremeta
I just rebased and engine wouldn't serve the UI (404) although it looked
like it started. I tried to run engine setup, and getting:

greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) %
ovirt_engine_setup
[ INFO  ] Stage: Initializing
  Setup was run under unprivileged user this will produce
development installation do you wish to proceed? (Yes, No) [No]: yes
[ INFO  ] Stage: Environment setup
  Configuration files:
['/home/greg/ovirt-engine/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
  Log file:
/home/greg/ovirt-engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
  Version: otopi-1.7.2_master
(otopi-1.7.2-0.0.master.20170725101901.git770a428.fc25)
[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to
Engine database using existing credentials: engine@localhost:5432
[ INFO  ] Stage: Clean up
  Log file is located at
/home/greg/ovirt-engine/var/log/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
[ INFO  ] Generating answer file
'/home/greg/ovirt-engine/var/lib/ovirt-engine/setup/answers/20170907083128-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed


Anyone else seen this or know a fix?

Best wishes,
Greg


-- 

GREG SHEREMETA

SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX

Red Hat



gsher...@redhat.comIRC: gshereme

___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel

Re: [ovirt-devel] [devel] ovirt-engine NFE on master

2017-09-07 Thread Milan Zamazal
Piotr Kliczewski  writes:

> On Thu, Sep 7, 2017 at 11:32 AM, Milan Zamazal  wrote:
>> Piotr Kliczewski  writes:
>>
>
>>> There few ways I could get there:
>>> 1. Testing some code and creating vdsm and later dropping db and
>>> reinstalling the host with "new db"
>>> 2. Vms provisioned manually.
>>
>> I.e. outside oVirt?  If they are external VMs then it explains why you
>> get the tracebacks and we have a fix posted
>> (https://gerrit.ovirt.org/81529).  I was worried that the tracebacks
>> could be caused by oVirt VMs.
>
> Not in this case.

Great, thank you, then the fix above should be enough (and sorry for the
error).

>>> At this time it seems to be option #2 and I see:
>>>
>>> [root@f20 ~]# virsh -r list --all
>>>  IdName   State
>>> 
>>>  - centos7shut off
>>>  - rhel7.0-devshut off
>>>
>>> which are machines where I test el7 compatibility of my changes (I use
>>> fedora25 on bare metal).
>>>
>>> I see the failure every time I run the engine now since I sent the
>>> email to this thread. It started
>>> to occur recently event though I have those vms there for really long time.
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] [devel] ovirt-engine NFE on master

2017-09-07 Thread Piotr Kliczewski
On Thu, Sep 7, 2017 at 11:32 AM, Milan Zamazal  wrote:
> Piotr Kliczewski  writes:
>
>> There few ways I could get there:
>> 1. Testing some code and creating vdsm and later dropping db and
>> reinstalling the host with "new db"
>> 2. Vms provisioned manually.
>
> I.e. outside oVirt?  If they are external VMs then it explains why you
> get the tracebacks and we have a fix posted
> (https://gerrit.ovirt.org/81529).  I was worried that the tracebacks
> could be caused by oVirt VMs.

Not in this case.

>
>> At this time it seems to be option #2 and I see:
>>
>> [root@f20 ~]# virsh -r list --all
>>  IdName   State
>> 
>>  - centos7shut off
>>  - rhel7.0-devshut off
>>
>> which are machines where I test el7 compatibility of my changes (I use
>> fedora25 on bare metal).
>>
>> I see the failure every time I run the engine now since I sent the
>> email to this thread. It started
>> to occur recently event though I have those vms there for really long time.
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] [devel] ovirt-engine NFE on master

2017-09-07 Thread Milan Zamazal
Piotr Kliczewski  writes:

> There few ways I could get there:
> 1. Testing some code and creating vdsm and later dropping db and
> reinstalling the host with "new db"
> 2. Vms provisioned manually.

I.e. outside oVirt?  If they are external VMs then it explains why you
get the tracebacks and we have a fix posted
(https://gerrit.ovirt.org/81529).  I was worried that the tracebacks
could be caused by oVirt VMs.

> At this time it seems to be option #2 and I see:
>
> [root@f20 ~]# virsh -r list --all
>  IdName   State
> 
>  - centos7shut off
>  - rhel7.0-devshut off
>
> which are machines where I test el7 compatibility of my changes (I use
> fedora25 on bare metal).
>
> I see the failure every time I run the engine now since I sent the
> email to this thread. It started
> to occur recently event though I have those vms there for really long time.
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] [devel] ovirt-engine NFE on master

2017-09-07 Thread Piotr Kliczewski
On Thu, Sep 7, 2017 at 10:58 AM, Milan Zamazal  wrote:
> Piotr Kliczewski  writes:
>
>> On Wed, Sep 6, 2017 at 6:35 PM, Milan Zamazal  wrote:
>>> Piotr Kliczewski  writes:
>>>
>>
 I pulled the latest engine master [1] and I see following exception
 below. Is it known issue?
>>>
>>> Piotr, what's the libvirt version on your host?  Is the cluster version
>>> 4.2?  And did you migrate some VM?
>>
>> I am using:
>>
>> Name: libvirt
>> Arch: x86_64
>> Epoch   : 0
>> Version : 3.2.1
>> Release : 3.fc25
>>
>> My cluster version is: 4.2
>>
>> I haven't performed any migrations in this environment.
>
> Thank you for info.  There should be a VM unknown to Engine on one of
> your hosts, either an external VM (that would be OK) or a VM remnant in
> DOWN status, visible in `virsh -r list --all'.  If the latter then I'm
> very interested in how you got it.  You can get rid of it with
> `virsh undefine', Vdsm restart may be additionally needed.  If you
> happen to get it again, could you please tell me what you did and
> provide Vdsm logs (preferably with DEBUG level) and `virsh -r list --all'
> from the host?

There few ways I could get there:
1. Testing some code and creating vdsm and later dropping db and
reinstalling the host with "new db"
2. Vms provisioned manually.

At this time it seems to be option #2 and I see:

[root@f20 ~]# virsh -r list --all
 IdName   State

 - centos7shut off
 - rhel7.0-devshut off

which are machines where I test el7 compatibility of my changes (I use
fedora25 on bare metal).

I see the failure every time I run the engine now since I sent the
email to this thread. It started
to occur recently event though I have those vms there for really long time.


>
 [1] Based on 34f4d69117d916e52a7b2d5032d64b8d1185448c

 2017-09-01 13:35:38,829+02 ERROR
 [org.ovirt.engine.core.bll.AddUnmanagedVmsCommand]
 (DefaultQuartzScheduler10) [353095e7] Command
 'org.ovirt.engine.core.bll.AddUnmanagedVmsCommand' failed: null
 2017-09-01 13:35:38,829+02 ERROR
 [org.ovirt.engine.core.bll.AddUnmanagedVmsCommand]
 (DefaultQuartzScheduler10) [353095e7] Exception:
 java.lang.NumberFormatException: null
 at java.lang.Integer.parseInt(Integer.java:542) [rt.jar:1.8.0_141]
 at java.lang.Integer.parseInt(Integer.java:615) [rt.jar:1.8.0_141]
 at
 org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.parseIntVdsProperty(VdsBrokerObjectsBuilder.java:775)
 [vdsbroker.jar:]
 at 
 org.ovirt.engine.core.bll.AddUnmanagedVmsCommand.convertVm(AddUnmanagedVmsCommand.java:119)
 [bll.jar:]
 at 
 org.ovirt.engine.core.bll.AddUnmanagedVmsCommand.executeCommand(AddUnmanagedVmsCommand.java:96)
 [bll.jar:]
 at 
 org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1202)
 [bll.jar:]
 at 
 org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1342)
 [bll.jar:]
 at 
 org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1984)
 [bll.jar:]
 at 
 org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:164)
 [utils.jar:]
 at 
 org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:103)
 [utils.jar:]
 ___
 Devel mailing list
 Devel@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/devel
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] [devel] ovirt-engine NFE on master

2017-09-07 Thread Milan Zamazal
Piotr Kliczewski  writes:

> On Wed, Sep 6, 2017 at 6:35 PM, Milan Zamazal  wrote:
>> Piotr Kliczewski  writes:
>>
>
>>> I pulled the latest engine master [1] and I see following exception
>>> below. Is it known issue?
>>
>> Piotr, what's the libvirt version on your host?  Is the cluster version
>> 4.2?  And did you migrate some VM?
>
> I am using:
>
> Name: libvirt
> Arch: x86_64
> Epoch   : 0
> Version : 3.2.1
> Release : 3.fc25
>
> My cluster version is: 4.2
>
> I haven't performed any migrations in this environment.

Thank you for info.  There should be a VM unknown to Engine on one of
your hosts, either an external VM (that would be OK) or a VM remnant in
DOWN status, visible in `virsh -r list --all'.  If the latter then I'm
very interested in how you got it.  You can get rid of it with
`virsh undefine', Vdsm restart may be additionally needed.  If you
happen to get it again, could you please tell me what you did and
provide Vdsm logs (preferably with DEBUG level) and `virsh -r list --all'
from the host?

>>> [1] Based on 34f4d69117d916e52a7b2d5032d64b8d1185448c
>>>
>>> 2017-09-01 13:35:38,829+02 ERROR
>>> [org.ovirt.engine.core.bll.AddUnmanagedVmsCommand]
>>> (DefaultQuartzScheduler10) [353095e7] Command
>>> 'org.ovirt.engine.core.bll.AddUnmanagedVmsCommand' failed: null
>>> 2017-09-01 13:35:38,829+02 ERROR
>>> [org.ovirt.engine.core.bll.AddUnmanagedVmsCommand]
>>> (DefaultQuartzScheduler10) [353095e7] Exception:
>>> java.lang.NumberFormatException: null
>>> at java.lang.Integer.parseInt(Integer.java:542) [rt.jar:1.8.0_141]
>>> at java.lang.Integer.parseInt(Integer.java:615) [rt.jar:1.8.0_141]
>>> at
>>> org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.parseIntVdsProperty(VdsBrokerObjectsBuilder.java:775)
>>> [vdsbroker.jar:]
>>> at 
>>> org.ovirt.engine.core.bll.AddUnmanagedVmsCommand.convertVm(AddUnmanagedVmsCommand.java:119)
>>> [bll.jar:]
>>> at 
>>> org.ovirt.engine.core.bll.AddUnmanagedVmsCommand.executeCommand(AddUnmanagedVmsCommand.java:96)
>>> [bll.jar:]
>>> at 
>>> org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1202)
>>> [bll.jar:]
>>> at 
>>> org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1342)
>>> [bll.jar:]
>>> at 
>>> org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1984)
>>> [bll.jar:]
>>> at 
>>> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:164)
>>> [utils.jar:]
>>> at 
>>> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:103)
>>> [utils.jar:]
>>> ___
>>> Devel mailing list
>>> Devel@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/devel
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] [devel] ovirt-engine NFE on master

2017-09-07 Thread Piotr Kliczewski
On Wed, Sep 6, 2017 at 6:35 PM, Milan Zamazal  wrote:
> Piotr Kliczewski  writes:
>
>> I pulled the latest engine master [1] and I see following exception
>> below. Is it known issue?
>
> Piotr, what's the libvirt version on your host?  Is the cluster version
> 4.2?  And did you migrate some VM?

I am using:

Name: libvirt
Arch: x86_64
Epoch   : 0
Version : 3.2.1
Release : 3.fc25

My cluster version is: 4.2

I haven't performed any migrations in this environment.

>
> Thanks,
> Milan
>
>> [1] Based on 34f4d69117d916e52a7b2d5032d64b8d1185448c
>>
>> 2017-09-01 13:35:38,829+02 ERROR
>> [org.ovirt.engine.core.bll.AddUnmanagedVmsCommand]
>> (DefaultQuartzScheduler10) [353095e7] Command
>> 'org.ovirt.engine.core.bll.AddUnmanagedVmsCommand' failed: null
>> 2017-09-01 13:35:38,829+02 ERROR
>> [org.ovirt.engine.core.bll.AddUnmanagedVmsCommand]
>> (DefaultQuartzScheduler10) [353095e7] Exception:
>> java.lang.NumberFormatException: null
>> at java.lang.Integer.parseInt(Integer.java:542) [rt.jar:1.8.0_141]
>> at java.lang.Integer.parseInt(Integer.java:615) [rt.jar:1.8.0_141]
>> at
>> org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.parseIntVdsProperty(VdsBrokerObjectsBuilder.java:775)
>> [vdsbroker.jar:]
>> at 
>> org.ovirt.engine.core.bll.AddUnmanagedVmsCommand.convertVm(AddUnmanagedVmsCommand.java:119)
>> [bll.jar:]
>> at 
>> org.ovirt.engine.core.bll.AddUnmanagedVmsCommand.executeCommand(AddUnmanagedVmsCommand.java:96)
>> [bll.jar:]
>> at 
>> org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1202)
>> [bll.jar:]
>> at 
>> org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1342)
>> [bll.jar:]
>> at 
>> org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1984)
>> [bll.jar:]
>> at 
>> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInSuppressed(TransactionSupport.java:164)
>> [utils.jar:]
>> at 
>> org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:103)
>> [utils.jar:]
>> ___
>> Devel mailing list
>> Devel@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/devel
___
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


Re: [ovirt-devel] failed to run JsonRpcIntegrationTest independecy

2017-09-07 Thread Piotr Kliczewski
Tests are not meant to talk to vdsm. You can try this [1]. I wrote it
some time ago but I think that it should work for you.
It is able to use engine's or vdsm's certificates.

Thanks,
Piotr

[1] https://github.com/pkliczewski/vdsm-smoke

On Thu, Sep 7, 2017 at 8:54 AM, pengyixiang  wrote:
> hello, everyone!
> I try to run JsonRpcClient to call "Host.getCapabilities" without a
> running ovirt engine but with a running vdsm, so I write a case to run this
> file:
> backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/jsonrpc/JsonRpcIntegrationTest.java
>
>  but it's seems failed, logs follows:
>
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file
> '/home/pencc/eclipse-workspace/engine_rpc_test/src/main/resources/engine.conf.defaults'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file
> '/etc/ovirt-engine/engine.conf' doesn't exist or isn't readable. Will return
> an empty set of properties.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file
> '/etc/ovirt-engine/engine.conf.d/10-setup-database.conf' doesn't exist or
> isn't readable. Will return an empty set of properties.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file
> '/etc/ovirt-engine/engine.conf.d/10-setup-java.conf'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file
> '/etc/ovirt-engine/engine.conf.d/10-setup-jboss.conf'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file
> '/etc/ovirt-engine/engine.conf.d/10-setup-pki.conf' doesn't exist or isn't
> readable. Will return an empty set of properties.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file
> '/etc/ovirt-engine/engine.conf.d/10-setup-protocols.conf'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file
> '/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf' doesn't exist or isn't
> readable. Will return an empty set of properties.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file
> '/etc/ovirt-engine/engine.conf.d/20-setup-jboss-overlay.conf'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_AJP_ENABLED' is 'false'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_AJP_PORT' is 'None'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_DB_CHECK_INTERVAL' is '0'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_DB_CONNECTION_TIMEOUT' is '0'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_DEBUG_ADDRESS' is '127.0.0.1:8787'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_DEPLOYMENT_SCANNER' is 'true'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_ETC' is './'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_FQDN' is 'ovirt.linx.com'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_HEAP_MAX' is '3979M'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_HEAP_MIN' is '3979M'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_HTTPS_ENABLED' is 'true'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_HTTPS_PORT' is '8443'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_HTTP_ENABLED' is 'true'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_HTTP_PORT' is '8080'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_JAVA_MODULEPATH' is
> '/usr/share/ovirt-engine-wildfly-overlay/modules:'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_LOG_TO_CONSOLE' is 'true'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_PKI_ENGINE_STORE' is 'src/main/resources/key.p12'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_PKI_ENGINE_STORE_ALIAS' is '1'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_PKI_ENGINE_STORE_PASSWORD' is 'NoSoup4U'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_PKI_ENGINE_STORE_TYPE' is 'PKCS12'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_PKI_TRUST_STORE' is 'src/main/resources/truststore'.
> [main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of
> property 'ENGINE_PKI_TRUST_STORE_PASSWORD' is ''.
> [main] INFO org.ovirt.engine.core.uutils.conf

[ovirt-devel] failed to run JsonRpcIntegrationTest independecy

2017-09-07 Thread pengyixiang
hello, everyone!
I try to run JsonRpcClient to call "Host.getCapabilities" without a running 
ovirt engine but with a running vdsm, so I write a case to run this file:

backend/manager/modules/vdsbroker/src/test/java/org/ovirt/engine/core/vdsbroker/jsonrpc/JsonRpcIntegrationTest.java
 
 but it's seems failed, logs follows:
 
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file 
'/home/pencc/eclipse-workspace/engine_rpc_test/src/main/resources/engine.conf.defaults'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file 
'/etc/ovirt-engine/engine.conf' doesn't exist or isn't readable. Will return an 
empty set of properties.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file 
'/etc/ovirt-engine/engine.conf.d/10-setup-database.conf' doesn't exist or isn't 
readable. Will return an empty set of properties.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file 
'/etc/ovirt-engine/engine.conf.d/10-setup-java.conf'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file 
'/etc/ovirt-engine/engine.conf.d/10-setup-jboss.conf'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file 
'/etc/ovirt-engine/engine.conf.d/10-setup-pki.conf' doesn't exist or isn't 
readable. Will return an empty set of properties.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file 
'/etc/ovirt-engine/engine.conf.d/10-setup-protocols.conf'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - The file 
'/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf' doesn't exist or isn't 
readable. Will return an empty set of properties.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Loaded file 
'/etc/ovirt-engine/engine.conf.d/20-setup-jboss-overlay.conf'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_AJP_ENABLED' is 'false'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_AJP_PORT' is 'None'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_DB_CHECK_INTERVAL' is '0'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_DB_CONNECTION_TIMEOUT' is '0'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_DEBUG_ADDRESS' is '127.0.0.1:8787'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_DEPLOYMENT_SCANNER' is 'true'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_ETC' is './'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_FQDN' is 'ovirt.linx.com'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_HEAP_MAX' is '3979M'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_HEAP_MIN' is '3979M'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_HTTPS_ENABLED' is 'true'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_HTTPS_PORT' is '8443'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_HTTP_ENABLED' is 'true'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_HTTP_PORT' is '8080'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_JAVA_MODULEPATH' is 
'/usr/share/ovirt-engine-wildfly-overlay/modules:'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_LOG_TO_CONSOLE' is 'true'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PKI_ENGINE_STORE' is 'src/main/resources/key.p12'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PKI_ENGINE_STORE_ALIAS' is '1'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PKI_ENGINE_STORE_PASSWORD' is 'NoSoup4U'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PKI_ENGINE_STORE_TYPE' is 'PKCS12'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PKI_TRUST_STORE' is 'src/main/resources/truststore'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PKI_TRUST_STORE_PASSWORD' is ''.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PKI_TRUST_STORE_TYPE' is 'JKS'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PROXY_ENABLED' is 'false'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property 'ENGINE_PROXY_HTTPS_PORT' is '443'.
[main] INFO org.ovirt.engine.core.uutils.config.ShellLikeConfd - Value of 
property