Project

General

Profile

Actions

Bug #16269

closed

Could not get Group tree details through API

Bug #16269: Could not get Group tree details through API

Added by Jérémy HOCDÉ about 6 years ago. Updated about 6 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

Updated by Nicolas CHARLES about 6 years ago Actions #2

  • Assignee set to Nicolas CHARLES

Thank you Jeremy, this looks very much like https://issues.rudder.io/issues/16164

Updated by Nicolas CHARLES about 6 years ago Actions #3

  • Status changed from New to In progress

Updated by Jérémy HOCDÉ about 6 years ago Actions #4

Hi Nicolas ;p
actually it looks like the same but on rules tree ;p
maybe a similar bug

Updated by Nicolas CHARLES about 6 years ago Actions #5

  • 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 6 years ago Actions #6

I fixed also the listing of pending nodes

Updated by Jérémy HOCDÉ about 6 years ago Actions #7

  • Category deleted (API)

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

Updated by Nicolas CHARLES about 6 years ago Actions #8

  • Status changed from Pending technical review to Pending release

Updated by Nicolas CHARLES about 6 years ago Actions #9

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

Updated by Nicolas CHARLES about 6 years ago Actions #10

  • 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 6 years ago Actions #11

  • 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 6 years ago Actions #12

  • Fix check changed from Error - Blocking to Error - Fixed

Updated by Jérémy HOCDÉ about 6 years ago Actions #13

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 6 years ago Actions #14

  • Name check changed from To do to Reviewed

Updated by Vincent MEMBRÉ about 6 years ago Actions #15

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

Updated by Jérémy HOCDÉ about 6 years ago Actions #16

Thks guys
I'll upgrade and test :)

Updated by Jérémy HOCDÉ about 6 years ago Actions #17

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 6 years ago Actions #18

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 6 years ago Actions #19

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 6 years ago Actions #20

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 6 years ago Actions #21

maybe it's not just me, all my nodes can't get the 5.0.15 :/

Updated by Jérémy HOCDÉ about 6 years ago Actions #22

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

Updated by François ARMAND about 6 years ago Actions #23

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 6 years ago Actions #24

"ça marche vachement mieux maintenant" :þ

Thks guys !!!

Updated by Vincent MEMBRÉ about 6 years ago Actions #25

  • Status changed from Pending release to Released
Actions

Also available in: PDF Atom