-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed system update API and added maintenance view with system upda…
…te functionality into GUI **API changes** - Refactored system_update and system_node_update API views to be asynchronous: - system_update creates a mgmt task, which runs the esdc-git-update command - system_node_update create an execute task (with implicit log callback), which runs the esdc-git-update command - Added esdc-service-control script responsible for restarting all Danube Cloud services - Added ``--force`` and ``--esdc-service-restart`` options into esdc-git-update - Added locking into esdc-git-update - Changed temp location for esdc-docs in ctl.sh gendoc command **GUI changes** A new GUI (URL) namespace was created - /system, which will provide views for the whole Danube Cloud management system available only to a SuperAdmin. 3 views have been added: - /system/maintenance -> used for system/node updates - /system/overview -> a dashboard-like view - /system/settings -> system settings view
- Loading branch information
Showing
57 changed files
with
1,573 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
from api.system.update.events import BaseUpdateEvent | ||
from api.event import Event | ||
from que import TT_DUMMY, TG_DC_UNBOUND | ||
from que.utils import DEFAULT_DC, task_id_from_string | ||
|
||
|
||
class NodeUpdateStarted(BaseUpdateEvent): | ||
class NodeSystemRestarted(Event): | ||
""" | ||
Called from the NodeUpdateView. | ||
Called from node_sysinfo_cb after erigonesd:fast is restarted on a compute node. | ||
""" | ||
_name_ = 'node_update_started' | ||
_name_ = 'node_system_restarted' | ||
|
||
|
||
class NodeUpdateFinished(BaseUpdateEvent): | ||
""" | ||
Called from the NodeUpdateView. | ||
""" | ||
_name_ = 'node_update_finished' | ||
def __init__(self, node, **kwargs): | ||
# Create such a task_id that info is send to SuperAdmins and node owner | ||
task_id = task_id_from_string(node.owner.id, dummy=True, dc_id=DEFAULT_DC, tt=TT_DUMMY, tg=TG_DC_UNBOUND) | ||
kwargs['node_hostname'] = node.hostname | ||
super(NodeSystemRestarted, self).__init__(task_id, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.