| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Preselect the most used repository among the selected clients
for the view Commands -> Setup -> Set repository
Change get_clients_oglive() into def get_client_list_by_key()
to obtain a dictionary with the list of ips of the clients with
the same value in the field of the client payload passed as key.
For example for the key 'repo_id' it would return a dictionary
{repo_id: [ips of the clients with that repo_id]}
|
|
|
|
|
|
|
| |
Use "Edit" instead of "Update" for every menu except Update image
in Commands view.
Use "Command" instad of "Cmd" for shell run menu in Commands view.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add specific error messages for each http status code in the
function ogserver_error(). Pass the request object to obtain the
status code.
Standarize the error handling code for every get(), delete() and
post() as:
r = server.get('/scopes')
if not r:
return ogserver_down('scopes')
if r.status_code != requests.codes.ok:
return ogserver_error(r, 'scopes')
|
|
|
|
|
| |
Check form.validate() for errors at the begining of the view
handler for an early return in case of error.
|
|
|
|
|
|
|
| |
Add Lives view and show the lives installed in each server in the
sidebar.
Add view to set a new default live image in the Lives view.
|
|
|
|
|
| |
Select the default live entry instead of the entry of the live
that corresponds to the default live in the "Set ogLive" view.
|
| |
|
|
|
|
| |
Use the correct livedir when the most used live is "ogLive"
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reorganize "Run" section of Commands view as follows:
Commands
└── Run
├── Script: run script from folder
├── Cmd: direct command execution
└── Display output: results of last execution
Adapt API REST call to the new interface. Remove strange legacy
;|\n\r terminator. Remove "echo" field and add "inline" field.
|
|
|
|
|
|
|
| |
Show the latest lines of the log first as they contain the
information relevant to the latest operations.
Show the logs inside an scrollable widget.
|
|
|
|
|
| |
Set the most used oglive as the first element of the <select>
form component containing the list of available oglives.
|
|
|
|
| |
Fix the JQuery selector to properly filter checboxes in the sidebar
|
|
|
|
|
| |
Add code to handle the consumption of the new GET /session payload
from ogServer and ignore partitions with 'unknown' content.
|
|
|
|
|
| |
Add check to skip unregistered clients in get_server_data_from_scopes
to prevent KeyError exception.
|
|
|
|
|
| |
Restrict the <pre> component where the logs are contained to
prevent text overflow from happening.
|
|
|
|
|
|
|
|
| |
Add view to provide information before a restore operation where
the selected clients have a not uniform partition setup.
Show the view if only clients with not partition valid for a
restore operation are selected.
|
|
|
|
|
|
| |
Rename part_choices variable to reference_patitioning to improve
readability and intent in the code that checks the uniformity of
the client's partitions.
|
|
|
|
|
| |
Evaluate only the viable partitions for a restore operation
during checks for partition uniformity.
|
|
|
|
|
| |
Report clients without cache partition inthe decks of the target
clients with enough cache to fit the target image.
|
|
|
|
|
|
| |
Use "Cache size" instead of "Disk size" in cache inspector.
Inform that the missing space when the image does not fit in cache
is additional space on top of the available space.
|
|
|
|
| |
Use real free and available cache in cache_inspector.html
|
|
|
|
|
| |
Check if the image fits in cache before a /cache/fetch request.
Report the clients unable to store the image.
|
|
|
|
|
|
| |
Use the new "free_cache" field in GET /cache/list to check
against the real available space to check if an image fits in
cache.
|
|
|
|
|
| |
Add column with available space in partitions only in the client
details views.
|
|
|
|
|
| |
Reduce the size of the tittle message containing "Selected clients"
in the bock showing the client pills.
|
|
|
|
| |
Disable sidebar interaction in Images and Repos views.
|
|
|
|
|
|
|
|
|
|
|
| |
Define ogStorage class to manage the localStorage operations.
The new keys are constructed with the following structure:
"group-context-id"
Where group is either "show" for the collapsed items in the
sidebar, or "check" for the selected checkboxes of the sidebar.
Add sotrage versioning to delete obsolete localStorage when a
new design for the storage is included in ogCP.
|
|
|
|
|
|
| |
Remove the invalid keys from local storage when the page loads.
Creating and deleting elements from the sidebar accumulates
dead entries in the local storage.
|
|
|
|
|
| |
Store the checked checkboxes of the sidebar in Images and Repos.
Autoselect the correct server after updating the checkboxes.
|
|
|
|
| |
Prevent accidental processing of checkboxes outside the sidebar.
|
|
|
|
| |
Remove dead code.
|
|
|
|
|
| |
Consolidate all the sidebar collapse persistence logic.
Implement a single function to handle all the views.
|
|
|
|
|
| |
Show the proper state of the disclosure widget when a repo starts
as collapsed.
|
|
|
|
|
|
|
| |
Remove the line reporting the IP of the selected client. No other
view does that and that information is already available in the
client pills.
Add client pills widget.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a client name column to the client list view accessed through
the Dashboard.
Add status column to the client list.
Move client status leyend into a separate file.
Show the client status leyend in client list.
Fix the 0 link speed conditional.
Reuse the data returned by get_scopes() to reduce the number of
requests.
|
|
|
|
|
|
|
|
|
| |
Add /action/repo/set in Commands to assign a repository to
multiple clients.
The view includes the actual repo assigned in the client pills
and shows a table with the clients grouped by repo when multiple
repos are assigned among the selected clients.
|
|
|
|
| |
Show EFI info obtained through GET /efi.
|
|
|
|
| |
Allow up to 128 IP addresses for repositories.
|
|
|
|
|
|
|
| |
Show repositories sorted in an alphanumeric fashion inside the
sidebar of /images and the respective child views.
Sort repositories in the sidebar of /repos.
|
|
|
|
| |
Add image name to the title in the view image/config.
|
|
|
|
| |
Remove sidebar from the client/list view.
|
|
|
|
|
|
|
|
|
|
| |
Enable server view in the main toolbar.
Hide Add server and Delete server buttons.
Add Update server button.
Add server/update view to edit the server addresses.
|
|
|
|
|
| |
Remove unwanted witespace caused by tabs and spaces.
Add margin to the ip card style to define an explicit spacing.
|
|
|
|
|
| |
Show the list of IPs of the clients withut the selected disk to
partition in the partition and format form.
|
|
|
|
|
|
| |
Keep restore update and create image operations restricted to the
first disk as enabling it for multiple disk is untested and
requires more work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for selecting different disks in the disk inspector.
Add disk_inspector.html as a template to show the disk contents of
a client. The view can define the variable readonly_disk_inspector
to make the view non editable.
Use disk_inspector.html in the following views:
- client details
- partition and format
Update code to obtain the partitions of a client to better fit the
requirements of disk_inspector.html
Remove code to setup the SetupForm as the contents of the disks
are now dynamically loaded through javascript.
|
|
|
|
|
| |
Use "Fetch image" as text for the button to access the view
where the user selects images to add to cache.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for the new API REST for repository management where
the address is a list of ips instead of a single string.
Add dynamic address creation in /action/repo/update and
/action/repo/add forms through delete and add buttons in the form.
Update /image/restore and /cache/fetch to use repository_id.
Add additional repository form validations.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use common disk space across all the selected clients.
Show dynamic disk partition graph in the partition view.
Limit partition sizes dynamically in the form.
Move js code to handle the addition and removal of
partitions into the html file to debloat ogcp.js and keep
the functions local to the only file they manipulate.
|
|
|
|
|
| |
Remove accents in image name string. Special characters are not
supported for image names.
|