[Engine-devel] simulating > 100 hypervisors

Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed) -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

On 10/28/2013 04:16 PM, Sandro Bonazzola wrote:
Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed)
just add 101 hosts to the engine?

Il 28/10/2013 15:52, Itamar Heim ha scritto:
On 10/28/2013 04:16 PM, Sandro Bonazzola wrote:
Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed)
just add 101 hosts to the engine?
Yes. But can't do that using the UI: it fails with "Error while executing action: Cannot add Host. Connecting to host via SSH has failed, verify that the host is reachable (IP address, routable address etc.) You may refer to the engine.log file for further details." So I need a way for bypassing it. Is it enough to add them somewhere in the DB? -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

On 10/28/2013 04:59 PM, Sandro Bonazzola wrote:
Il 28/10/2013 15:52, Itamar Heim ha scritto:
On 10/28/2013 04:16 PM, Sandro Bonazzola wrote:
Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed)
just add 101 hosts to the engine?
Yes. But can't do that using the UI: it fails with "Error while executing action: Cannot add Host. Connecting to host via SSH has failed, verify that the host is reachable (IP address, routable address etc.) You may refer to the engine.log file for further details."
So I need a way for bypassing it. Is it enough to add them somewhere in the DB?
try setting the config InstallVds to false.

----- Original Message -----
From: "Sandro Bonazzola" <sbonazzo@redhat.com> To: "engine-devel" <engine-devel@ovirt.org> Sent: Monday, October 28, 2013 4:16:13 PM Subject: [Engine-devel] simulating > 100 hypervisors
Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed)
check this out: http://www.ovirt.org/VDSM_Fake
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel

On 10/28/2013 03:16 PM, Sandro Bonazzola wrote:
Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed)
I have used the attached insert_many_hosts function in the past, you may find it useful. However the InsertVds function that it uses is currently broken, so it wont work without the attached patch (the InsertVds function isn't currently used, should probably be removed). -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

Il 28/10/2013 16:29, Juan Hernandez ha scritto:
On 10/28/2013 03:16 PM, Sandro Bonazzola wrote:
Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed)
I have used the attached insert_many_hosts function in the past, you may find it useful. However the InsertVds function that it uses is currently broken, so it wont work without the attached patch (the InsertVds function isn't currently used, should probably be removed).
it fails saying ds_group_id column doesn't exist in vds_static. -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

On 10/28/2013 04:38 PM, Sandro Bonazzola wrote:
Il 28/10/2013 16:29, Juan Hernandez ha scritto:
On 10/28/2013 03:16 PM, Sandro Bonazzola wrote:
Hi, I need to do some testing on log-collector for solving Bug 1014379 - When calling the API the LC does not provide a max value, limiting the returned results to 100 by default. How may I have the engine listing more than 100 hypervisors? (I don't really need them to be up, just need them to be listed)
I have used the attached insert_many_hosts function in the past, you may find it useful. However the InsertVds function that it uses is currently broken, so it wont work without the attached patch (the InsertVds function isn't currently used, should probably be removed).
it fails saying ds_group_id column doesn't exist in vds_static.
Yes, that is one of the things currently broken in the InsertVds function. The name of the column is "vds_group_id" not "ds_group_id". The patch that I attached fixes that. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
participants (4)
-
Itamar Heim
-
Juan Hernandez
-
Omer Frenkel
-
Sandro Bonazzola