Project

General

Profile

Actions

User story #17666

closed

Node status API must not return an error when the node is not here

Added by François ARMAND almost 4 years ago. Updated over 3 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
UX impact:
Suggestion strength:
Want - This would make my life a lot easier but I can manage without
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Name check:
To do
Fix check:
Checked
Regression:

Description

We don't have a good way to get a node status. If we ask for node information, we get an error:

And lots of errors if we need to wait for node to appears, like in RTF when a node is created:

while ! curl --insecure --silent --header \"X-API-Token: \$(cat /var/rudder/run/api-token)\" https://localhost/rudder//api/latest/nodes/959531df-4401-4092-8202-b8d1d5276157 | grep -q success; do sleep 1; done; curl --insecure --silent --header \"X-API-Token: \$(cat /var/rudder/run/api-token)\" --request POST https://localhost/rudder//api/latest/nodes/pending/959531df-4401-4092-8202-b8d1d5276157 --data \"status=accepted\"'" --
{"action":"changePendingNodeStatus","result":"success","data":{"nodes":[{"id":"959531df-4401-4092-8202-b8d1d5276157","status":"accepted","hostname":"agent3.rudder.local","osName":"Centos","osVersion":"[6.10]","machineType":"Virtual"}]}}Connection to 127.0.0.1 closed.

We need a "nodes/uuid/status" API that returns just node status, and "missing" is an expected result for it.


Files

clipboard-202006091003-hl2zp.png (62.5 KB) clipboard-202006091003-hl2zp.png François ARMAND, 2020-06-09 10:03

Related issues 1 (0 open1 closed)

Related to Rudder - User story #18483: Documentation for /nodes/status pageReleasedAlexis MoussetActions
Actions #1

Updated by François ARMAND almost 4 years ago

  • Tracker changed from Bug to User story
  • Subject changed from Node status API must not return an error when the node is node here to Node status API must not return an error when the node is not here
  • Target version changed from 5.0.18 to 6.1.2
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority deleted (0)
  • Suggestion strength set to Want - This would make my life a lot easier but I can manage without
Actions #2

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.1.2 to 6.1.3
Actions #3

Updated by François ARMAND over 3 years ago

  • Target version changed from 6.1.3 to 6.1.4
Actions #4

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.1.4 to 6.1.5
Actions #5

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.1.5 to 6.1.6
Actions #6

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 6.1.6 to 6.1.7
Actions #7

Updated by François ARMAND over 3 years ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #8

Updated by François ARMAND over 3 years ago

  • Target version changed from 6.1.7 to 6.2.0~beta1
Actions #9

Updated by François ARMAND over 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Elaad FURREEDAN
  • Pull Request set to https://github.com/Normation/rudder/pull/3300
Actions #10

Updated by François ARMAND over 3 years ago

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

Updated by Vincent MEMBRÉ over 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.2.0~beta1 which was released today.

Actions #12

Updated by François ARMAND over 3 years ago

Actions #13

Updated by François ARMAND over 3 years ago

  • Fix check changed from To do to Checked
Actions

Also available in: Atom PDF