Project

General

Profile

Bug #16269

Could not get Group tree details through API

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

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

Associated revisions

Revision d4f10d81 (diff)
Added by Nicolas CHARLES 2 months ago

Fixes #16269: Could not get Group tree details cause is: Could not find Group tree.

History

#2

Updated by Nicolas CHARLES 2 months ago

  • Assignee set to Nicolas CHARLES

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

#3

Updated by Nicolas CHARLES 2 months ago

  • Status changed from New to In progress
#4

Updated by Jérémy HOCDÉ 2 months ago

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

#5

Updated by Nicolas CHARLES 2 months 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
#6

Updated by Nicolas CHARLES 2 months ago

I fixed also the listing of pending nodes

#7

Updated by Jérémy HOCDÉ 2 months ago

  • Category deleted (API)

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

#8

Updated by Nicolas CHARLES 2 months ago

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

Updated by Nicolas CHARLES 2 months ago

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

#10

Updated by Nicolas CHARLES 2 months ago

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

#11

Updated by Alexis MOUSSET 2 months 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
#13

Updated by Jérémy HOCDÉ about 2 months 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 :)

#15

Updated by Vincent MEMBRÉ about 2 months ago

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

#16

Updated by Jérémy HOCDÉ about 2 months ago

Thks guys
I'll upgrade and test :)

#17

Updated by Jérémy HOCDÉ about 2 months 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

#18

Updated by Jérémy HOCDÉ about 2 months 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 :/

#19

Updated by Jérémy HOCDÉ about 2 months 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.

#20

Updated by Jérémy HOCDÉ about 2 months 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 :)

#21

Updated by Jérémy HOCDÉ about 2 months ago

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

#22

Updated by Jérémy HOCDÉ about 2 months ago

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

#23

Updated by François ARMAND about 2 months 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.

#24

Updated by Jérémy HOCDÉ about 2 months ago

"ça marche vachement mieux maintenant" :þ

Thks guys !!!

#25

Updated by Vincent MEMBRÉ about 2 months ago

  • Status changed from Pending release to Released

Also available in: Atom PDF