Commit Graph

17 Commits

Author SHA1 Message Date
francotseng a6a784c4a3 Normalize operation messages into capital case
Operation messages use sentence case in html files
(e.g. 'Create port') while capital case in js files
(e.g. 'Create Port'). Normalize them to use capital case in order
not to generate different translation items for same message.

Change-Id: I1a40859447eb6ba53eef19521e110f786380a00b
2019-04-03 14:34:48 +08:00
Peter Piela 2e9c34b4cc Added support for injecting non-maskable interrupts
A a new action 'Inject NMI' has been added to node actions dropdown
menu in the 'Node Details' page.

Closes-Bug: #1713519
Change-Id: I01e9d7f352119c201d701127bb08fa2f0607a214
2018-01-02 13:57:31 +00:00
Ramamani Yeleswarapu 5b9c6f61b7 Set target raid configuration on a node
Adds menu option to set basic target raid configuration.

Unit tests to be added in a follow-up patch.

Change-Id: I2886e5ca4e5757209ff6da5f9162f874f648e135
Partial-Bug: #1648553
2017-08-24 14:08:00 -07:00
Ramamani Yeleswarapu 41488737f6 Set current boot device on a node
This would also include collecting the possible boot devices.

Change-Id: I49c47169d5c511f992480c60f64062183064bfc6
Closes-Bug: #1671567
2017-06-30 12:05:42 -07:00
Peter Piela 669f9fa7bf Fix Javascript unassignable errors
Replaced several instances of the action directive with HTML list-item/
anchor equivalents. Because the action uses two-way bound scope
variables for "callback" and "item" arguments you cannot specify a
literal value as an argument to the callback function. Two-way bound
variables must be assignable. In my mind there is some question as
to whether the action directive should have been implemented in this
way, but for now I am proposing to use an ng-click directive within
an anchor to implement callback functionality when a literal argument
is needed.

Change-Id: I2baf17c2784faeb92da362544c53e444e6d01afc
2017-05-17 08:46:59 -04:00
Peter Piela 50ebb92e4b Eliminate unnecessary event handling code
The following changes are part of a larger cleanup/refactoring
project.
- Eliminate the use of certain event handlers in the node-list
and node-details controllers, and replace with linear promise
chaining. I believe the use of promise chaining is more performant,
and reduces code complexity.
- Provide more descriptive names for several functions
- Add documentation for several functions

Change-Id: Iba184e4aaf79c7f7c99b3012175f1d8a1bfc79f0
2017-05-03 15:31:52 +00:00
Peter Piela 47198c2af2 Add support for soft power transitions
- Add support for reboot, soft reboot, and soft power off transitions
- When appropriate node action lists will contain additional items
for soft power transitions
- The order of items in node action lists has been slightly modified,
placing a known to exist singleton "Edit" at the top of the list.
Power items are now generated as a data-driven enumeration.

Change-Id: If308539e78a7bf707304049534affaa8468fe9f0
Closes-Bug: #1663341
2017-05-01 20:07:51 -04:00
Peter Piela 6193569103 Add support for starting/stopping/accessing the serial console
- The action menu in the node-details panel has a new item
Enable|Disable console.
- The node-details/overview panel has a new "Console info." item
in the "General" section. The value of this field is dependent on
the console type. For "shellinabox" the value is an anchor with
the URL of the console and title "shellinabox". For others, the
value is a string representation of the console_info object
returned by the get_console api call.

Closes-Bug: #1655690
Change-Id: Ibfa687f50d2251987276367d743ffb2a88e52796
2017-04-17 18:00:29 -04:00
Peter Piela d6e5ab2ecb Use angular one-time-binding to improve performance
Use angular one-time-binding for static strings to improve
performance.

Change-Id: I6dcfa44460b1facc3a697c9cd8792b7311fbadb4
2017-03-01 22:47:35 +00:00
Peter Piela d92d573f54 Maintenance processing code cleanup
Made the following changes:
- Eliminate separate functions for single node processing. Functions
that set node maintenance mode now accept a list of nodes
- Eliminate service thin wrapper functions inside controllers that
dont manipulate controller state.

Change-Id: I148f965618ab43f93732ac82cd5663a76bef1b9e
2017-02-09 09:25:58 -05:00
Peter Piela dd2745f608 Changes required for updated Bootstrap version
Horizon has updated its version of Bootstrap to 0.14.0 that
introduced the uib prefix for all components.

Change-Id: I05589d38b11a3b4e40e247dfcaf0fc02deccd1b6
2017-01-03 11:56:03 -05:00
Peter Piela 58df012f66 Extend support for the Ironic state machine
The following changes have been made:
(1) Create a separate node-state-transition service that is used
to orchestrate changes in the node provision state
(2) Extend the node list and detail UIs (actions) to support
states other the manageable, available, and active
(3) It should be noted that state transition actions are rendered
as html list items as opposed to actions. The reason for this is
that the <action> tag is not compatible with the ng-repeat
directive.

Change-Id: Id6543667f944c47f8f9727c1c2f3085ae75a1625
2016-12-13 12:10:50 -05:00
Peter Piela a5220eb243 Added support for editing Ironic nodes
- Split out base-node from enroll-node and use it to implement edit-node
- Enrollemnt no longer requires that all required attributes be specified
- Edit-node functionality supports instance_info properties

Change-Id: Ied1f21c8790f0d9dc3a238defa930181789a7281
Co-Authored-By: Beth Elwell
2016-09-27 11:43:06 -05:00
Elizabeth Elwell e476fe9344 Updated to ironic API v1.11 and added manageable state
Newly registered nodes begin in the enroll provision state by default
instead of available.

Actions added to the current dropdown on node view to enable move to
manageable, available and active states. Actions are enabled and
disabled in view as the current state permits.

All necessary fields required to move a node to available state are
still required on the enroll node modal. This will be changed to only
the necessary fields to move a node to enroll state once the
functionality for editing a node is ready.

Change-Id: I349a293a1069ad01fd782d1828bad607f9b9d6b0
Co-Authored-By: Peter Piela <ppiela@cray.com>
2016-09-19 15:24:50 +01:00
Peter Piela 409fdec238 Add support for specifying a maintenance reason
Co-Authored-By: Beth Elwell <e.r.elwell@gmail.com>

Change-Id: Ie2eaf309ffbb9055afaf837c751d7898b0d9d9ee
2016-03-23 14:48:48 +00:00
Peter Piela 1bc24799b9 Don't hyperlink images that are specified as URLs
Only provide hyperlinks to Image instance pages for images specified using
a uuid.

Closes-Bug: #1548928
Change-Id: I615c3288f2ca4aa790d55b5bf2e1f4f3fd9fab5f
2016-03-12 18:50:53 -05:00
Elizabeth Elwell f230e96da5 Added node details page to the plugin
Added details page files to the plugin.

Change-Id: I17e4c749038dfa9f4a8423796186c133d248fba0
Co-Authored-By: Peter Piela <ppiela@cray.com>
2016-03-04 23:25:01 +00:00