Project

General

Profile

Architecture #14054

Remove red button code from rudder

Added by Alexis MOUSSET 11 months ago. Updated 15 days ago.

Status:
Released
Priority:
N/A
Category:
Web - Compliance & node report
Target version:
Effort required:

Description

tests/dev/configuration.properties
599:bin.emergency.stop=/opt/rudder/bin/cfe-red-button.sh

packages/rudder-webapp/debian/rules
100:    dh_install --SOURCEDIR=$(CURDIR)/SOURCES/rudder-sources/rudder/rudder-core/src/test/resources/script/ cfe-red-button.sh /opt/rudder/bin/

packages/rudder-webapp/SPECS/rudder-webapp.spec
302:cp %{_sourcedir}/rudder-sources/rudder/rudder-core/src/test/resources/script/cfe-red-button.sh %{buildroot}%{rudderdir}/bin/

doc/10_installation/05_requirements/05_requirements.txt
49:// include::../glossary/big-red-button.txt[]

rudder/rudder-web/src/main/resources/configuration.properties.sample
551:bin.emergency.stop=/opt/rudder/bin/cfe-red-button.sh

doc/src/reference/dependencies/rudder-repo/rudder-web/src/main/resources/configuration.properties.sample
551:bin.emergency.stop=/opt/rudder/bin/cfe-red-button.sh
find . -name cfe-red-button.sh                                                                                                                                                      
./rudder/rudder-core/src/test/resources/script/cfe-red-button.sh

rudder-web/src/main/resources/configuration.properties.sample
548:#  path to the script/binary that allows emergency orchestrator stop
551:bin.emergency.stop=/opt/rudder/bin/cfe-red-button.sh

rudder-web/src/main/webapp/templates-hidden/emergency_stop.html
8:  <emergency-panel>
10:      <button id="openAlert"><emergency-images></emergency-images></button>
16:            <h1><emergency-title></emergency-title></h1>
20:            <emergency-body></emergency-body>
29:                  <emergency-button></emergency-button>
39:  </emergency-panel>

rudder-web/src/main/scala/bootstrap/liftweb/RudderConfig.scala
238:  val BIN_EMERGENCY_STOP = config.getString("bin.emergency.stop")

rudder-web/src/main/scala/com/normation/rudder/web/snippet/EmergencyStop.scala
55:      List("templates-hidden", "emergency_stop")
56:    , "emergency-panel" 
76:      case ButtonReleased => //show the emergency stop
78:            "emergency-button" #> SHtml.submit("Confirm", () => stop)
79:          & "emergency-body"   #> <h2>This button can be used to force a shutdown of the whole Rudder infastructure. Please use with caution.</h2>
80:          & "emergency:img"    #> <img src={"/" + StaticResourceRewrite.prefix + "/images/btnAlert.jpg"}/>
81:          & "emergency-title"  #> Text("Emergency system shutdown")
86:            "emergency-button" #> SHtml.submit("Start", () => start,
87:                      ("id", "emergencyStartButton"),
88:                      ("class", "emergencyButton"),
90:          & "emergency-body"   #> <h2>Restart the Rudder Infrastructure.</h2>
91:          & "emergency:img"    #> <img src={"/" + StaticResourceRewrite.prefix + "/images/btnAccept.jpg"}/>
92:          & "emergency-title"  #> Text("Unlock and restart the orchestrator")


Related issues

Related to Rudder - Architecture #12525: Remove big red button code from techniquesReleasedActions
Has duplicate Rudder - Bug #14112: Error in rudder webapp runRejectedActions
Has duplicate Rudder - Architecture #2062: Clean up "big red button" code ?RejectedActions

Associated revisions

Revision 3a2d2566 (diff)
Added by François ARMAND 9 months ago

Fixes #14054: Remove red button code from rudder

History

#1

Updated by Alexis MOUSSET 11 months ago

  • Description updated (diff)
#2

Updated by Alexis MOUSSET 11 months ago

#3

Updated by Alexis MOUSSET 11 months ago

  • Has duplicate Bug #14112: Error in rudder webapp run added
#4

Updated by Alexis MOUSSET 11 months ago

  • Assignee set to François ARMAND

This generates errors in webapp logs since the script has been removed.

[2019-01-08 16:37:49] ERROR application - The 'red button' program is not present at: '/opt/rudder/bin/cfe-red-button.sh'. You will experience error when trying to use that functionnality
#5

Updated by Alexis MOUSSET 11 months ago

  • Subject changed from remove red button code from rudder to Remove red button code from rudder
#6

Updated by François ARMAND 9 months ago

  • Status changed from New to In progress
#7

Updated by François ARMAND 9 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder/pull/2138
#8

Updated by Rudder Quality Assistant 9 months ago

  • Status changed from Pending technical review to Discussion
  • Assignee changed from Alexis MOUSSET to François ARMAND
#9

Updated by François ARMAND 9 months ago

  • Status changed from Discussion to Pending release
#10

Updated by Alexis MOUSSET 7 months ago

#11

Updated by Vincent MEMBRÉ 15 days ago

  • Status changed from Pending release to Released

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

Also available in: Atom PDF