This file is indexed.

/usr/share/pcsd/views/nodes.erb is in pcs 0.9.149-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
  <table id="main">
    <tr id="node_title_row" {{bind-attr style="Pcs.node_page"}}><td id="page_header" colspan=3>
	NODES
      </td>
    </tr>
    <tr id="node_header_row" {{bind-attr style="Pcs.node_page"}}>
      <td id="remove_add" class="borderbottom">
	<div>
	  <input type="checkbox" onchange="checkBoxToggle($(this), true);">
	</div>
	<div id="no_coro_support">
	  <div class="x sprites"></div><div class="link" onclick="verify_remove_nodes(); return false;">&nbsp;Remove&nbsp;&nbsp;&nbsp;&nbsp;</div>
	  <div class="plus sprites"></div><div class="link" onclick="add_node_dialog(); return false;">&nbsp;Add</div>
	</div>
      </td>
      <td class="borderbottom">&nbsp;</td>
      <td id="tab_name" width="85">
	<div style="float: left">&nbsp;Edit Node&nbsp;</div><div class="check sprites"></div>
      </td>
    </tr>
    <tr id="node_list_row" {{bind-attr style="Pcs.node_page"}}>
      <td id="node_list" class="node_list">
	<table cellpadding=0 cellspacing=0 style="float:left;">
	  {{#each Pcs.nodesController}}
	    <tr {{bind-attr onmouseover="onmouseover"}} {{bind-attr onmouseout="onmouseout"}} {{bind-attr class="trclass"}} {{bind-attr nodeID="name"}} onclick='Pcs.nodesController.load_node(this);'>
	    <td class="node_list_check">
	      {{view Ember.Checkbox checkedBinding="checked" onclick="checked" class="node_list_check"}}
	    </td>
	    <td class="node_list_sprite">
	      <div class="check sprites"></div>
	    </td>
	    <td class="node_name" {{bind-attr style="node_name_style"}}>
		 {{name}}
	    </td>
	    <td>
	      <div {{bind-attr style="showArrow"}} class="arrow sprites"></div>
	    </td>
	  </tr>
        {{/each}}
	</table>
      </td>
      <td id="node_info" colspan=2>
        <div id="node_info_div" style="opacity: 0;">
          <div id="test">
            <div id="node_info_header">
              <div id="node_info_header_title" class="node_info_header_title">Edit Node&nbsp;</div>
              <div id="node_info_header_title_name">
                {{Pcs.nodesController.cur_node.name}}
              </div>
            </div>

            <div id="node_sub_info">
              <table>
                <tr>
                  <td rowspan=2>
                    <input disabled style="margin-right: 50px;" type="text" {{bind-attr value="Pcs.nodesController.cur_node.name"}} size="35" class="text_field">
                  </td>
                  <td><div style="margin-right: 8px;" class="check sprites"></div></td>
                  <td>
                    {{#if Pcs.nodesController.cur_node.pacemaker}}
                    {{#unless Pcs.nodesController.cur_node.pacemaker_standby}}
                    {{#if Pcs.nodesController.cur_node.pacemaker_maintenance}}
                    <div id="pacemaker_online_status" class="status-standby">
                      Pacemaker Maintanence
                    </div>
                    {{else}}
                    <div id="pacemaker_online_status" class="status">
                      Pacemaker Connected
                    </div>
                    {{/if}}
                    {{else}}
                    <div id="pacemaker_online_status" class="status">
                      Pacemaker Connected
                    </div>
                    {{/unless}}
                    {{else}}
                    {{#if Pcs.nodesController.cur_node.pacemaker_standby}}
                    <div id="pacemaker_online_status" class="status-standby">
                      Pacemaker Standby
                    </div>
                    {{else}}
                    {{#if Pcs.nodesController.cur_node.pacemaker_maintenance}}
                    <div id="pacemaker_online_status" class="status-standby">
                      Pacemaker Maintanence
                    </div>
                    {{else}}
                    <div id="pacemaker_online_status" class="status-offline">
                      Pacemaker Not Connected
                    </div>
                    {{/if}}
                    {{/if}}
                    {{/if}}
                  </td>
                </tr>
                <tr>
                  <td><div style="margin-right: 8px;" class="check sprites"></div></td>
                  <td>
                    {{#if Pcs.nodesController.cur_node.corosync}}
                    <div id="corosync_online_status" class="status">
                      Corosync Connected
                    </div>
                    {{else}}
                    <div id="corosync_online_status" class="status-offline">
                      Corosync Not Connected
                    </div>
                    {{/if}}
                  </td>
                </tr>
              </table>
            </div>

            <div id="node_options_buttons">
              <div id="node_start" class="link">
                <div class="restart sprites" style="float: left"></div>
                &nbsp;Start
              </div>
              <div id="node_stop" class="link">
                <div class="cancel sprites" style="float: left"></div>
                &nbsp;Stop
              </div>
              <div id="node_restart" class="link">
                <div class="restart sprites" style="float: left"></div>
                &nbsp;Restart
              </div>
              <div id="node_unstandby" class="link" {{bind-attr style="Pcs.nodesController.cur_node.unstandby_style"}}>
                <div class="unstandby sprites" style="float: left"></div>
                &nbsp;Unstandby
              </div>
              <div id="node_standby" class="link" {{bind-attr style="Pcs.nodesController.cur_node.standby_style"}}>
                <div class="standby sprites" style="float: left"></div>
                &nbsp;Standby
              </div>
              {{#if Pcs.nodesController.cur_node.is_in_maintenance}}
              <div id="node_unmaintenance" class="link" onclick="fade_in_out('#node_unmaintenance');node_unmaintenance(Pcs.nodesController.cur_node.get('name'));">
                <div class="unstandby sprites" style="float: left"></div>
                &nbsp;Unmaintenance
              </div>
              {{else}}
              <div id="node_maintenance" class="link" onclick="fade_in_out('#node_maintenance');node_maintenance(Pcs.nodesController.cur_node.get('name'));">
                <div class="standby sprites" style="float: left"></div>
                &nbsp;Maintenance
              </div>
              {{/if}}
              <div class="configure sprites" style="float: left"></div>
              <div class="link"><a href="#/fencedevices" onclick="select_menu('FENCE DEVICES');return true;">Configure Fencing</a></div>
            </div>

            <div id="node_details">
              {{#unless Pcs.nodesController.cur_node.status_unknown}}
              <table><tr>
                <td><div class="reg">Node ID:</div></td>
                <td><div class="bold">{{Pcs.nodesController.cur_node.node_id}}</div></td>
                <td><div class="reg"> Uptime:</div></td>
                <td><div class="bold" id="uptime">{{Pcs.nodesController.cur_node.uptime}}</div></td>
              </tr>
              </table>
              {{/unless}}
            </div>

            <table style="float:left;margin-top:25px">
              <tr><td class="datatable_header">Cluster Daemons</td></tr>
              <tr><td>
                <div id="clusterdaemons">
                  <table class="datatable">
                    <tr><th>NAME</th><th>STATUS</th></tr>
                    <tr><td>pacemaker</td><td><div style="float:left;margin-right:6px;" class="check sprites"></div>
                      {{#if Pcs.nodesController.cur_node.pacemaker_daemon}}
                      <span id="pacemaker_status" style="float:left" class="status">Running ({{Pcs.nodesController.cur_node.pacemaker_startup}})</span>
                      {{else}}
                      {{#if Pcs.nodesController.cur_node.pcsd}}
                      <span id="pacemaker_status" style="float:left" class="status-offline">Stopped ({{Pcs.nodesController.cur_node.pacemaker_startup}})</span>
                      {{else}}
                      <span id="pacemaker_status" style="float:left" class="status-unknown">Unknown ({{Pcs.nodesController.cur_node.pacemaker_startup}})</span>
                      {{/if}}
                      {{/if}}
                    </td></tr>
                    <tr><td>corosync</td><td><div style="float:left;margin-right:6px;" class="check sprites"></div>
                      {{#if Pcs.nodesController.cur_node.corosync_daemon}}
                      <span id="corosync_status" style="float:left" class="status">Running ({{Pcs.nodesController.cur_node.corosync_startup}})</span>
                      {{else}}
                      {{#if Pcs.nodesController.cur_node.pcsd}}
                      <span id="corosync_status" style="float:left" class="status-offline">Stopped ({{Pcs.nodesController.cur_node.corosync_startup}})</span>
                      {{else}}
                      <span id="corosync_status" style="float:left" class="status-unknown">Unknown ({{Pcs.nodesController.cur_node.corosync_startup}})</span>
                      {{/if}}
                      {{/if}}
                    </td></tr>
                    <tr><td>pcsd</td><td><div style="float:left;margin-right:6px;" class="check sprites"></div>
                      {{#if Pcs.nodesController.cur_node.pcsd}}
                      <span id="pcsd_status" style="float:left" class="status">Running ({{Pcs.nodesController.cur_node.pcsd_startup}})</span>
                      {{else}}
                      {{#if Pcs.nodesController.cur_node.authorized}}
                      <span id="pcsd_status" style="float:left" class="status-offline">Stopped ({{Pcs.nodesController.cur_node.pcsd_startup}})</span>
                      {{else}}
                      <span id="pcsd_status" style="float:left" class="status-offline">Running (not Authorized) ({{Pcs.nodesController.cur_node.pcsd_startup}})</span>
                      {{/if}}
                      {{/if}}
                    </td></tr>
                  </table>
                </div>
              </td>
              </tr>
            </table>
            <table style="clear:left;float:left;margin-top:25px;">
              <tr><td class="datatable_header">Running Resources</td></tr>
              <tr><td>
                <div id="resources_running">
                  <table class="datatable">
                    <tr><th>NAME</th></tr>
                    {{#if Pcs.nodesController.cur_node.running_resources}}
                    {{#each res in Pcs.nodesController.cur_node.running_resources}}
                    <tr><td>
                      {{#unless res.stonith}}
                      {{#link-to 'Resources.index' res}}{{res.name}} ({{res.res_type}}){{/link-to}}
                      {{/unless}}
                    </td></tr>
                    {{/each}}
                    {{else}}
                    <tr><td style="color: gray;">NONE</td></tr>
                    {{/if}}
                  </table>
                </div>
              </td>
              </tr>
            </table>
            <table style="clear:left;float:left;margin-top:25px;">
              <tr><td class="datatable_header">Resource Location Preferences</td></tr>
              <tr><td>
                <div id="locationdep">
                  <table class="datatable">
                    <tr><th>NAME</th><th>Score</th></tr>
                    {{#if Pcs.nodesController.cur_node.location_constraints}}
                    {{#each Pcs.nodesController.cur_node.location_constraints}}
                    <tr><td>{{rsc}}</td><td>{{score}}</td><td></td></tr>
                    {{/each}}
                    {{else}}
                    <tr><td style="color: gray;">NONE</td><td></td></tr>
                    {{/if}}
                  </table>
                </div>
              </td>
              </tr>
            </table>
            <table style="clear:left;float:left;margin-top:25px;">
              <tr><td onclick="show_hide_constraints(this)" class="datatable_header hover-pointer">Node Attributes ({{#if Pcs.nodesController.cur_node_attr.length}}{{Pcs.nodesController.cur_node_attr.length}}{{else}}0{{/if}})<span style="" class="downarrow sprites"></span><span style="display: none;" class="rightarrow sprites"></span></td></tr>
              <tr><td>
                <div id="node_attributes">
                  <table class="datatable">
                    <tr><th>Attribute</th><th>Value</th><th>Remove</th></tr>
                    {{#each attr in Pcs.nodesController.cur_node_attr}}
                    <tr><td>{{attr.name}}</td>
                      <td>{{attr.value}}</td>
                      <td {{bind-attr node_attr_key=attr.name}} {{bind-attr node_attr_parent=attr.parent}} style="text-align:center">
                        <a onclick="remove_node_attr($(this).parent());return false;" href="#" class="remove">X</a>
                      </td>
                    </tr>
                    {{else}}
                    <tr><td style="color: gray;">NONE</td><td></td><td></td></tr>
                    {{/each}}
                    <tr id="new_node_attr_col">
                      <td><input type="text" name="new_node_attr_key" size="20"></td>
                      <td><input type="text" name="new_node_attr_value" size="20"></td>
                      <td><button type="button" onclick="add_node_attr('#new_node_attr_col');" name="add">Add</button></td>
                    </tr>
                  </table>
                </div>
              </td>
              </tr>
            </table>
            <table style="clear:left;float:left;margin-top:25px;">
              <tr><td onclick="show_hide_constraints(this)" class="datatable_header hover-pointer">Fence Levels ({{#if Pcs.nodesController.cur_node_fence_levels.length}}{{Pcs.nodesController.cur_node_fence_levels.length}}{{else}}0{{/if}})<span style="" class="downarrow sprites"></span><span style="display: none;" class="rightarrow sprites"></span></td></tr>
              <tr><td>
                <div id="fencelevels">
                  <table class="datatable">
                    <tr><th>Level</th><th>Fence Devices</th><th>Remove</th></tr>
                    {{#each Pcs.nodesController.cur_node_fence_levels}}
                    <tr>
                      <td>{{this.level}}</td>
                      <td>{{this.devices}}</td>
                      <td {{bind-attr fence_level="this.level" fence_devices="this.devices"}}  style="text-align:center">
                        <a onclick="add_remove_fence_level($(this).parent(),true);return false;" href="#" class="remove">X</a>
                      </td>
                    </tr>
                    {{/each}}
                    {{#unless Pcs.nodesController.cur_node_fence_levels}}
                    <tr><td style="color: gray;">NONE</td><td></td><td></td></tr>
                    {{/unless}}
                    <tr id="new_fence_level_col">
                      <td><input type="text" name="new_level_level" size="2"></td>
                      <td><select name="new_level_value">
                        <option></option>
                        {{#each Pcs.resourcesContainer.fence_list}}
                        <option {{bind-attr value="this.id"}}>{{this.id}}</option>
                        {{/each }}
                      </select></td>
                      <td><button type="button" onclick="add_remove_fence_level($(this).parent());" name="add">Add</button></td>
                    </tr>
                  </table>
                </div>
              </td>
              </tr>
            </table>
            {{#if Pcs.nodesController.utilization_support}}
            <table style="clear:left; float:left; margin-top: 25px;"><tr><td>
            {{utilization-table entity=Pcs.nodesController.cur_node utilization=Pcs.nodesController.cur_node.utilization}}
            </td></tr></table>
            {{/if}}
    </div>
    </div>
    </td>
    </tr>
<%= erb :_configure %>
<%= erb :_acls %>
<%= erb :_wizards %>
<% @myView = "stonith" %>
<%= erb :_resource %>
<% @myView = "resource" %>
<%= erb :_resource %>
</table>
<%= erb :_dialogs %>
<div id="add_node" style="display: none;">
  <form method=POST action="/add_node_all">
    <table id="add_node_selector">
      <tr>
        <td>Node Name:</td>
        <td><input type=text name=new_nodename></td>
      </tr>
      {{#if Pcs.need_ring1_address}}
      <tr>
        <td>Ring1 address:</td>
        <td><input type=text name=new_ring1addr></td>
      </tr>
      {{/if}}
      <tr>
        <td>Auto Start/Enable:</td>
        <td><input type="checkbox" name="auto_start" value="1" checked></td>
      </tr>
      {{#if Pcs.is_cman_with_udpu_transport}}
      <tr>
        <td colspan="2" style="color: orange">This is a CMAN cluster with UDPU transport,<br>cluster restart is required to apply node addition.</td>
      </tr>
      {{/if}}
    </table>
  </form>
</div>