-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added manager route for downloading logs (#1216)
## Problem In the Cockpit times, Agama allowed to download the logs using the web UI. However, after the switch to the HTTP/JSON API, that’s not the case anymore. Agama relied on Cockpit’s file API which, for obvious reasons, is not available anymore. Therefore the option to download the logs using our agama-web-server should be implemented bringing the functionality back. - Trello card: - https://trello.com/c/xExmF6a2/3660-3-allow-downloading-the-logs-using-the-web-ui ## Solution The agama-web-server has been adapted adding the /logs route in the manager HTTP/JSON API. The Web UI has been also adapted bringing back the fetchLogs() method. Last but not least the options for showing the logs and the terminal have been removed as them were also relying on Cockpit and therefore are currently broken.
- Loading branch information
Showing
10 changed files
with
108 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"network": { | ||
"connections": [ | ||
{ | ||
"id": "eth0", | ||
"method4": "auto", | ||
"method6": "auto", | ||
"addresses": [ | ||
"192.168.0.101/24" | ||
], | ||
"interface": "eth0", | ||
"status": "up" | ||
}, | ||
{ | ||
"id": "Wired connection 1", | ||
"method4": "auto", | ||
"method6": "auto", | ||
"interface": "enp5s0f4u2c2", | ||
"status": "up" | ||
}, | ||
{ | ||
"id": "Sarambeque", | ||
"method4": "auto", | ||
"method6": "auto", | ||
"wireless": { | ||
"password": "vikingo.pass", | ||
"security": "wpa-psk", | ||
"ssid": "Sarambeque", | ||
"mode": "infrastructure" | ||
}, | ||
"status": "up" | ||
} | ||
] | ||
} | ||
} | ||
|
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
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