Project

General

Profile

Actions

Bug #16269

closed

Could not get Group tree details through API

Added by Jérémy HOCDÉ over 1 year ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

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 over 1 year 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 over 1 year ago

  • Status changed from New to In progress
Actions #4

Updated by Jérémy HOCDÉ over 1 year 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 over 1 year 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 over 1 year ago

I fixed also the listing of pending nodes

Actions #7

Updated by Jérémy HOCDÉ over 1 year ago

  • Category deleted (API)

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

Actions #8

Updated by Nicolas CHARLES over 1 year ago

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

Updated by Nicolas CHARLES over 1 year ago

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

Actions #10

Updated by Nicolas CHARLES over 1 year ago

it did fix getting the pending nodes, but not the group tree...

Actions #11

Updated by Alexis MOUSSET over 1 year 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 #13

Updated by Jérémy HOCDÉ over 1 year 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 #15

Updated by Vincent MEMBRÉ over 1 year ago

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

Actions #16

Updated by Jérémy HOCDÉ over 1 year ago

Thks guys
I'll upgrade and test :)

Actions #17

Updated by Jérémy HOCDÉ over 1 year 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É over 1 year 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É over 1 year 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É over 1 year 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É over 1 year 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É over 1 year ago

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

Actions #23

Updated by François ARMAND over 1 year 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É over 1 year ago

"ça marche vachement mieux maintenant" :þ

Thks guys !!!

Actions #25

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF