Project

General

Profile

Actions

Bug #16269

closed

Could not get Group tree details through API

Added by Jérémy HOCDÉ about 5 years ago. Updated about 5 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Error - Fixed
Regression:

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 :)


Subtasks 2 (0 open2 closed)

Bug #16281: API query to get group tree fetch groupReleasedFrançois ARMANDActions
Bug #16286: Upmerge breaks 6.0ReleasedFrançois ARMANDActions
Actions #2

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

Actions #3

Updated by Nicolas CHARLES about 5 years ago

  • Status changed from New to In progress
Actions #4

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

Actions #5

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
Actions #6

Updated by Nicolas CHARLES about 5 years ago

I fixed also the listing of pending nodes

Actions #7

Updated by Jérémy HOCDÉ about 5 years ago

  • Category deleted (API)

Thks a lot you're a killer !!! :]

Actions #8

Updated by Nicolas CHARLES about 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Nicolas CHARLES about 5 years ago

somehow, it didn't fix fetching the group tree ...

Actions #10

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...

Actions #11

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
Actions #12

Updated by Nicolas CHARLES about 5 years ago

  • Fix check changed from Error - Blocking to Error - Fixed
Actions #13

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 :)

Actions #14

Updated by Alexis Mousset about 5 years ago

  • Name check changed from To do to Reviewed
Actions #15

Updated by Vincent MEMBRÉ about 5 years ago

This bug has been fixed in Rudder 5.0.15 which was released today.

Actions #16

Updated by Jérémy HOCDÉ about 5 years ago

Thks guys
I'll upgrade and test :)

Actions #17

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

Actions #18

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 :/

Actions #19

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.

Actions #20

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 :)

Actions #21

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 :/

Actions #22

Updated by Jérémy HOCDÉ about 5 years ago

after upgrading server to 5.0.15 I can get groups tree !!!! :)
thanks again

Actions #23

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.

Actions #24

Updated by Jérémy HOCDÉ about 5 years ago

"ça marche vachement mieux maintenant" :þ

Thks guys !!!

Actions #25

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF