Project

General

Profile

Bug #12229

API failing on root node

Added by Félix DALLIDET about 1 year ago. Updated 9 months ago.

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

Description

I tried to use the API to apply policies from the root server to the root server with the following command on the
virtual training course's machine. => with the right token

curl -k -H "X-API-Token: mytoken" -X POST -H "Content-Type: application/json" https://localhost/rudder/api/latest/nodes/root/applyPolicy

the result was like the default sudo message:

root:
root:We trust you have received the usual lecture from the local System
root:Administrator. It usually boils down to these three things:
root:
root:    #1) Respect the privacy of others.
root:    #2) Think before you type.
root:    #3) With great power comes great responsibility.
root:
root:sudo: no tty present and no askpass program specified


Not sure if it is a bug or a bad machine configuration. It worked well for other rudder nodes.

Associated revisions

Revision f4d6e0b1 (diff)
Added by Alexis MOUSSET about 1 year ago

Fixes #12229: API failing on root node

History

#1

Updated by Alexis MOUSSET about 1 year ago

  • Description updated (diff)
#2

Updated by Alexis MOUSSET about 1 year ago

  • Status changed from New to In progress
  • Assignee set to Alexis MOUSSET
#3

Updated by Alexis MOUSSET about 1 year ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1524
#4

Updated by Rudder Quality Assistant about 1 year ago

  • Assignee changed from Benoît PECCATTE to Alexis MOUSSET
#5

Updated by Alexis MOUSSET about 1 year ago

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

Updated by Alexis MOUSSET about 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.11, 4.2.5 and 4.3.0~rc3 which were released today.

#7

Updated by Vincent MEMBRÉ 9 months ago

  • Category changed from 102 to Packaging

Also available in: Atom PDF