Project

General

Profile

Actions

Bug #10766

closed

rudder agent factory-reset bugs

Added by Florian Heigl almost 7 years ago. Updated over 6 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
54
Name check:
Fix check:
Regression:

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 1 (0 open1 closed)

Bug #11234: rudder agent factory-reset bugsReleasedAlexis MoussetActions
Actions

Also available in: Atom PDF