Bug #16269
closedCould not get Group tree details through API
Description
Hello,
I can't get groups tree (with or without prettify option) when I query API
like it search a group with the id 'tree'
I tried with python script and curl
OS: Centos 7.x
rudder-server: 5.0.14
api: latest
curl -H "X-API-Token: MyToken" -X GET "https://SERVER_RUDDER/rudder/api/latest/groups/tree"
{
"action":"groupDetails",
"id":"tree",
"result":"error",
"errorDetails":"Could not get Group tree details cause is: Could not find Group tree."
}
Thanks a lot for you help :)
Updated by Jérémy HOCDÉ about 5 years ago
url documentation : https://docs.rudder.io/api/#api-Groups-GetGroupTree
Updated by Nicolas CHARLES about 5 years ago
- Assignee set to Nicolas CHARLES
Thank you Jeremy, this looks very much like https://issues.rudder.io/issues/16164
Updated by Nicolas CHARLES about 5 years ago
- Status changed from New to In progress
Updated by Jérémy HOCDÉ about 5 years ago
Hi Nicolas ;p
actually it looks like the same but on rules tree ;p
maybe a similar bug
Updated by Nicolas CHARLES about 5 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/2631
Updated by Nicolas CHARLES about 5 years ago
I fixed also the listing of pending nodes
Updated by Nicolas CHARLES about 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|d4f10d815b310376a65efa9003b11c750970315d.
Updated by Nicolas CHARLES about 5 years ago
somehow, it didn't fix fetching the group tree ...
Updated by Nicolas CHARLES about 5 years ago
- Fix check changed from To do to Error - Blocking
it did fix getting the pending nodes, but not the group tree...
Updated by Alexis Mousset about 5 years ago
- Subject changed from Could not get Group tree details cause is: Could not find Group tree. to Could not get Group tree details through API
- Category set to API
Updated by Nicolas CHARLES about 5 years ago
- Fix check changed from Error - Blocking to Error - Fixed
Updated by Jérémy HOCDÉ about 5 years ago
Nicolas CHARLES wrote:
somehow, it didn't fix fetching the group tree ...
the truth is out where ;p
in https://issues.rudder.io/issues/16164, there had been some changes into .scala file (webapp/sources/rudder/rudder-core/src/main/scala/com/normation/rudder/rule/category/RuleCategory.scala)
maybe it is necessary to do the same in this case
I don't know scala so I only suppose
thks again for the work :)
Updated by Alexis Mousset about 5 years ago
- Name check changed from To do to Reviewed
Updated by Vincent MEMBRÉ about 5 years ago
This bug has been fixed in Rudder 5.0.15 which was released today.
Updated by Jérémy HOCDÉ about 5 years ago
I have a problem :
I try to use the nightly packages and now yum doesn't want to downgrade
have you a method to do so ?
thks a lot
Updated by Jérémy HOCDÉ about 5 years ago
lorsque je tente de mettre à jour le cache de yum:
failure: repodata/c64cb84e0898698f6ce576e79082b7fd1fc1afa38c2421375dee5ebd05c87760-filelists.sqlite.bz2 from Rudder_5.0: [Errno 256] No more mirrors to try.
http://repository.rudder.io/rpm/5.0/RHEL_7/repodata/c64cb84e0898698f6ce576e79082b7fd1fc1afa38c2421375dee5ebd05c87760-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
je sais pas si ça vient de moi ou pas :/
Updated by Jérémy HOCDÉ about 5 years ago
maybe it's me, so I search
if you have an idea, I'll take it ;p
[root@rudder-test ~]# yum repolist
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.crazyfrogs.org
* extras: centos.crazyfrogs.org
* updates: centos.mirror.fr.planethoster.net
Rudder_5.0 | 2.9 kB 00:00:00
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Rudder_5.0/7/primary_db FAILED
http://repository.rudder.io/rpm/5.0/RHEL_7/repodata/5040be754410fca59c202df926c05f7b29d61b81cd80fd61d9522f4727e40ed4-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
Rudder_5.0/7/primary_db FAILED
http://repository.rudder.io/rpm/5.0/RHEL_7/repodata/5040be754410fca59c202df926c05f7b29d61b81cd80fd61d9522f4727e40ed4-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://repository.rudder.io/rpm/5.0/RHEL_7/repodata/5040be754410fca59c202df926c05f7b29d61b81cd80fd61d9522f4727e40ed4-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
Rudder_5.0/7/primary_db FAILED
http://repository.rudder.io/rpm/5.0/RHEL_7/repodata/5040be754410fca59c202df926c05f7b29d61b81cd80fd61d9522f4727e40ed4-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://repository.rudder.io/rpm/5.0/RHEL_7/repodata/5040be754410fca59c202df926c05f7b29d61b81cd80fd61d9522f4727e40ed4-primary.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
Updated by Jérémy HOCDÉ about 5 years ago
when I download the rpm files directly from the repository
and type rpm -Uvh --oldpackage *.rpm it seems downgrade
I have broken my yum but I will find a solution
Thks again for 5.0.15 release :)
Updated by Jérémy HOCDÉ about 5 years ago
maybe it's not just me, all my nodes can't get the 5.0.15 :/
Updated by Jérémy HOCDÉ about 5 years ago
after upgrading server to 5.0.15 I can get groups tree !!!! :)
thanks again
Updated by François ARMAND about 5 years ago
Hello Jérémy, is everything fine now ? The time of your messages roughtly matches the moment we did the release wity repo update etc, so perhaps you just had some old info not yet updated.
Updated by Jérémy HOCDÉ about 5 years ago
"ça marche vachement mieux maintenant" :þ
Thks guys !!!
Updated by Vincent MEMBRÉ about 5 years ago
- Status changed from Pending release to Released