After upgrade to version 4.1.1 of the engine, the following query no longer returns the storage domains that are attached to a data center: GET /ovirt-engine/api/storagedomains?search=+datacenter%3D%22mydc%22 This is the query sent by Foreman to find the storage domains.
I have discussed this with Juan and we figure out it happened on my upgrade from: 4.0.6 to 4.1.1 The same Foreman version (1.14.2) was working good on oVirt 4.0.6 so I doubt if this is an issue on the Foreman side. I can see if I can so some tests for some log output but there are no errors here during the API calls.
Juan - is this an infrastructural issue, or something the Storage team shoudl take?
Allon, I don't know yet. If someone in your team has an upgraded/upgradable environment where to test this then I would appreciate if you can take it, as otherwise it will take a long time for me to make that environment to check it. I verified with the reporter that the data center name was correct, and that it didn't appear in the result of the search query. But other than that I didn't do any analysis yet.
I can't reproduce this. Going through the commit history I can't see anything related, but we need to check deeper. We'll take the lead, and in the worst case, if we find an infra issue, we'll move it back there. Maor, can you take a look please?
Can you please add the engine logs from the problematic environment?
I've queries the reporter DB and it seems to work well, it could not reproduced on my env. Yamakasi, Does other search queries using DC name works? (For example from VMs) What about search other attributes instead of DC? Is there any chance to look into the engine Host or use it.
Moar as discussed on IRC, PM me there so we can update this BZ
I'm pushing this out to 4.1.2 ATM (so 4.1.1 can be pushed forwards), as it doesn't reproduce in the general case.
The problem is with the underscore of the DC name. The DC name of the reporter contains underscore which makes the search look for 'AMS-01\_STRING-01\_STRING' instead of 'AMS-01_STRING-01_STRING' There is already an open bug on that in: https://bugzilla.redhat.com/1409849 Yamakasi, can you please build oVirt with https://gerrit.ovirt.org/#/c/69926/ and see if that fixes the problem?
Hi Moar, I saw your message on IRC, thanks great progress! I need to find out if I can build it, I never builded it before myself.
Actually, you can simply change the DC name to be without underscore and check if the search works. If it does, I think it is safe to close this bug as duplicate of BZ1409849
This is indeed temporary fixed with replacing the underscore with a dash. I think I created a duplicate as described above.
Thanks for the update Yamakasi, closing this as dup *** This bug has been marked as a duplicate of bug 1409849 ***