Project

General

Profile

Bug #10766

rudder agent factory-reset bugs

Added by Florian Heigl 6 months ago. Updated 2 months ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Target version (plugin):
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
54

Description

1) The -f option is never evaluated
It's initialized to 0 but your getopts parser misses support for -f.
It was definitely not tested when the ctrl-c / -f bits were introduced.

Further, there's some more bugs / bad handling:

@[root@dhcp215 ~]# /etc/one-context.d/60-rudder-polserv
grep: /var/rudder/cfengine-community/policy_server.dat: No such file or directory
/opt/rudder/share/commands/agent-factory-reset: line 55: [: =: unary operator expected
Reinitializing a node removes its UUID, its keys and its associated directives!
Do yo really want to do it?
Type ctrl-c to abort now or enter to continue

cp: cannot stat ‘/opt/rudder/etc/uuid.hive’: No such file or directory@


Subtasks

Bug #11234: rudder agent factory-reset bugsReleasedAlexis MOUSSET

Associated revisions

Revision d59cfe49
Added by Alexis MOUSSET 4 months ago

Fixes #10766: rudder agent factory-reset bugs

History

#1 Updated by François ARMAND 6 months ago

  • Target version set to 3.1.21
  • Priority changed from 0 to 36

#2 Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 3.1.21 to 3.1.22

#3 Updated by Benoît PECCATTE 5 months ago

  • Priority changed from 36 to 51

#4 Updated by Benoît PECCATTE 5 months ago

  • Effort required set to Small
  • Priority changed from 51 to 55

#5 Updated by Alexis MOUSSET 4 months ago

  • Subject changed from rudder agent reset bugs to rudder agent factory-reset bugs
  • Target version changed from 3.1.22 to 4.1.6
  • Priority changed from 55 to 54

#6 Updated by Alexis MOUSSET 4 months ago

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

#7 Updated by Alexis MOUSSET 4 months 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-agent/pull/126

#8 Updated by Alexis MOUSSET 3 months ago

  • Status changed from Pending technical review to Pending release

#9 Updated by Vincent MEMBRÉ 3 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.6 and 4.2.0~beta3 which were released today.

Also available in: Atom PDF