parent
d384c746ca
commit
7885e1e6e7
@ -11,6 +11,7 @@
|
||||
- [Kubernetes] *Search domains* field is now optional [#7028](https://github.com/vatesfr/xen-orchestra/pull/7028)
|
||||
- [Patches] Support new XenServer Updates system. See [our documentation](https://xen-orchestra.com/docs/updater.html#xenserver-updates). (PR [#7044](https://github.com/vatesfr/xen-orchestra/pull/7044))
|
||||
- [REST API] Hosts' audit and system logs can be downloaded [#3968](https://github.com/vatesfr/xen-orchestra/issues/3968) (PR [#7048](https://github.com/vatesfr/xen-orchestra/pull/7048))
|
||||
- [Host/Advanced] New button to download system logs [#3968](https://github.com/vatesfr/xen-orchestra/issues/3968) (PR [#7048](https://github.com/vatesfr/xen-orchestra/pull/7048))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
@ -987,6 +987,7 @@ const messages = {
|
||||
hardwareHostSettingsLabel: 'Hardware',
|
||||
hyperThreading: 'Hyper-threading (SMT)',
|
||||
hyperThreadingNotAvailable: 'HT detection is only available on XCP-ng 7.6 and higher',
|
||||
hostDownloadLogs: 'Download system logs',
|
||||
hostAddress: 'Address',
|
||||
hostStatus: 'Status',
|
||||
hostBuildNumber: 'Build number',
|
||||
|
@ -62,6 +62,10 @@ const SCHED_GRAN_TYPE_OPTIONS = [
|
||||
},
|
||||
]
|
||||
|
||||
const downloadLogs = uuid => {
|
||||
window.open(`./rest/v0/hosts/${uuid}/logs.tar`)
|
||||
}
|
||||
|
||||
const forceReboot = host => restartHost(host, true)
|
||||
|
||||
const smartReboot = ALLOW_SMART_REBOOT
|
||||
@ -259,6 +263,13 @@ export default class extends Component {
|
||||
) : (
|
||||
telemetryButton
|
||||
)}
|
||||
<TabButton
|
||||
btnStyle='warning'
|
||||
handler={downloadLogs}
|
||||
handlerParam={host.uuid}
|
||||
icon='logs'
|
||||
labelId='hostDownloadLogs'
|
||||
/>
|
||||
{host.power_state === 'Running' && [
|
||||
<TabButton
|
||||
key='smart-reboot'
|
||||
|
Loading…
Reference in New Issue
Block a user