Project

General

Profile

Actions

Architecture #14054

closed

Remove red button code from rudder

Added by Alexis Mousset almost 6 years ago. Updated about 5 years ago.

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

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 3 (0 open3 closed)

Related to Rudder - Architecture #12525: Remove big red button code from techniquesReleasedBenoît PECCATTEActions
Has duplicate Rudder - Bug #14112: Error in rudder webapp runRejectedFrançois ARMANDActions
Has duplicate Rudder - Architecture #2062: Clean up "big red button" code ?RejectedFrançois ARMANDActions
Actions #1

Updated by Alexis Mousset almost 6 years ago

  • Description updated (diff)
Actions #2

Updated by Alexis Mousset almost 6 years ago

Actions #3

Updated by Alexis Mousset almost 6 years ago

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

Updated by Alexis Mousset almost 6 years 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
Actions #5

Updated by Alexis Mousset almost 6 years ago

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

Updated by François ARMAND almost 6 years ago

  • Status changed from New to In progress
Actions #7

Updated by François ARMAND almost 6 years 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
Actions #8

Updated by Rudder Quality Assistant almost 6 years ago

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

Updated by François ARMAND almost 6 years ago

  • Status changed from Discussion to Pending release
Actions #10

Updated by Alexis Mousset over 5 years ago

Actions #11

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF