Compare commits

..

2 Commits

Author SHA1 Message Date
Joris-K
94bcf03d40 docs(lite): add PR number to changelog entry 2026-12-02 17:44:13 +01:00
Joris-K
87b795a231 feat(lite): add SSH enable and disable actions for XCP-ng 9 hosts 2026-12-02 17:44:05 +01:00
22 changed files with 239 additions and 90 deletions

View File

@@ -3,6 +3,7 @@
## **next**
- [VM/Network] Add possibility to delete a VIF (PR [#10726](https://github.com/vatesfr/xen-orchestra/pull/10726))
- [Host] Add possibility to enable SSH on XCP-ng 9 hosts, and to disable it with auto-enable if XAPI goes down (PR [#10974](https://github.com/vatesfr/xen-orchestra/pull/10974))
## **0.28.0** (2026/12/01)

View File

@@ -20,6 +20,10 @@ export function createHostOperations(xenApi: XenApi) {
const restartAgent = (hostRef: HostRef) => xenApi.call('host.restart_agent', [hostRef])
const enableSsh = (hostRef: HostRef) => xenApi.call('host.enable_ssh', [hostRef])
const setSshAutoMode = (hostRef: HostRef, value: boolean) => xenApi.call('host.set_ssh_auto_mode', [hostRef, value])
const clearHost = async (hostRef: HostRef, force: boolean) => {
await disable(hostRef)
@@ -41,6 +45,8 @@ export function createHostOperations(xenApi: XenApi) {
powerOn,
destroy,
restartAgent,
enableSsh,
setSshAutoMode,
cleanReboot: async (hostRef: HostRef, forceReboot: boolean) => {
await clearHost(hostRef, forceReboot)

View File

@@ -164,6 +164,7 @@ export interface XenApiHost extends XenApiRecord<'host'> {
multipathing: boolean
enabled: boolean
PGPUs: XenApiPgpu['$ref'][]
ssh_enabled?: boolean
}
export interface XenApiSr extends XenApiRecord<'sr'> {

View File

@@ -13,6 +13,10 @@
<HostRestartToolstackButton :host />
<HostDisableButton v-if="displayDisableButton" :host />
<HostEnableButton v-else :host />
<template v-if="isSshManageable">
<HostDisableSshButton v-if="host.ssh_enabled" :host />
<HostEnableSshButton v-else :host />
</template>
<HostDetachButton :host />
<HostForgetButton :host />
<VtsDivider v-if="layout !== 'sections'" type="stretch" />
@@ -23,12 +27,15 @@
import type { XenApiHost } from '@/libs/xen-api/xen-api.types.ts'
import HostDetachButton from '@/modules/host/components/actions/detach/HostDetachButton.vue'
import HostDisableButton from '@/modules/host/components/actions/disable/HostDisableButton.vue'
import HostDisableSshButton from '@/modules/host/components/actions/disable-ssh/HostDisableSshButton.vue'
import HostDownloadButton from '@/modules/host/components/actions/download/HostDownloadButton.vue'
import HostEnableButton from '@/modules/host/components/actions/enable/HostEnableButton.vue'
import HostEnableSshButton from '@/modules/host/components/actions/enable-ssh/HostEnableSshButton.vue'
import HostForgetButton from '@/modules/host/components/actions/forget/HostForgetButton.vue'
import HostPowerStateActions from '@/modules/host/components/actions/HostPowerStateActions.vue'
import HostRestartToolstackButton from '@/modules/host/components/actions/restart-toolstack/HostRestartToolstackButton.vue'
import type { HostQuickAction } from '@/modules/host/composables/host-quick-actions.composable.ts'
import { isHostSshManageable } from '@/modules/host/utils/host.util.ts'
import { useHostMetricsStore } from '@/stores/xen-api/host-metrics.store.ts'
import VtsDivider from '@core/components/divider/VtsDivider.vue'
import VtsChangeStateMenuItem from '@core/components/menu/VtsChangeStateMenuItem.vue'
@@ -54,4 +61,6 @@ const { getHostPowerState } = useHostMetricsStore().subscribe()
const isHostHalted = computed(() => getHostPowerState(host) === HOST_POWER_STATE.HALTED)
const displayDisableButton = computed(() => host.enabled || isHostHalted.value)
const isSshManageable = computed(() => isHostSshManageable(host))
</script>

View File

@@ -0,0 +1,51 @@
<template>
<MenuItem
v-tooltip="!canDisableSsh && disableSshErrorMessage"
accent="neutral"
:busy="isDisablingSsh"
:disabled="!canDisableSsh"
icon="action:disable"
@click="disableSsh()"
>
{{ t('action:disable-ssh-auto-enable-if-xapi-down') }}
</MenuItem>
</template>
<script lang="ts" setup>
import type { XenApiHost } from '@/libs/xen-api/xen-api.types.ts'
import { useHostDisableSshJob } from '@/modules/host/jobs/host-disable-ssh.job.ts'
import MenuItem from '@core/components/menu/MenuItem.vue'
import { useActionModal } from '@core/composables/modals/use-action-modal.ts'
import { vTooltip } from '@core/directives/tooltip.directive.ts'
import { useI18n } from 'vue-i18n'
const { host } = defineProps<{
host: XenApiHost
}>()
const { t } = useI18n()
const { open: openActionModal } = useActionModal()
const {
run,
canRun: canDisableSsh,
isRunning: isDisablingSsh,
errorMessage: disableSshErrorMessage,
} = useHostDisableSshJob(() => host)
function disableSsh() {
return openActionModal({
props: {
accent: 'info',
action: 'disable-ssh',
object: 'host',
hostName: host.name_label,
icon: 'status:info-picto',
},
events: {
onConfirm: () => run({ detached: true }),
},
})
}
</script>

View File

@@ -0,0 +1,51 @@
<template>
<MenuItem
v-tooltip="!canEnableSsh && enableSshErrorMessage"
accent="neutral"
:busy="isEnablingSsh"
:disabled="!canEnableSsh"
icon="status:success-circle"
@click="enableSsh()"
>
{{ t('action:enable-ssh') }}
</MenuItem>
</template>
<script lang="ts" setup>
import type { XenApiHost } from '@/libs/xen-api/xen-api.types.ts'
import { useHostEnableSshJob } from '@/modules/host/jobs/host-enable-ssh.job.ts'
import MenuItem from '@core/components/menu/MenuItem.vue'
import { useActionModal } from '@core/composables/modals/use-action-modal.ts'
import { vTooltip } from '@core/directives/tooltip.directive.ts'
import { useI18n } from 'vue-i18n'
const { host } = defineProps<{
host: XenApiHost
}>()
const { t } = useI18n()
const { open: openActionModal } = useActionModal()
const {
run,
canRun: canEnableSsh,
isRunning: isEnablingSsh,
errorMessage: enableSshErrorMessage,
} = useHostEnableSshJob(() => host)
function enableSsh() {
return openActionModal({
props: {
accent: 'info',
action: 'enable-ssh',
object: 'host',
hostName: host.name_label,
icon: 'status:info-picto',
},
events: {
onConfirm: () => run({ detached: true }),
},
})
}
</script>

View File

@@ -0,0 +1,34 @@
import { hostArg } from '@/modules/host/jobs/host-args.ts'
import { isHostSshManageable } from '@/modules/host/utils/host.util.ts'
import { useHostMetricsStore } from '@/stores/xen-api/host-metrics.store.ts'
import { useXenApiStore } from '@/stores/xen-api.store.ts'
import { defineJob, JobError, JobRunningError } from '@core/packages/job'
import { useI18n } from 'vue-i18n'
export const useHostDisableSshJob = defineJob('host.disable-ssh', [hostArg], () => {
const xapi = useXenApiStore().getXapi()
const { t } = useI18n()
const { isHostRunning } = useHostMetricsStore().subscribe()
return {
run: host => xapi.host.setSshAutoMode(host.$ref, true),
validate: (isRunning, host) => {
if (host === undefined) {
throw new JobError(t('job:host-disable-ssh:missing-host'))
}
if (isRunning) {
throw new JobRunningError(t('job:host-disable-ssh:in-progress'))
}
if (!isHostSshManageable(host)) {
throw new JobError(t('job:host-disable-ssh:unsupported-version'))
}
if (!isHostRunning(host)) {
throw new JobError(t('job:host-disable-ssh:bad-power-state'))
}
},
}
})

View File

@@ -0,0 +1,34 @@
import { hostArg } from '@/modules/host/jobs/host-args.ts'
import { isHostSshManageable } from '@/modules/host/utils/host.util.ts'
import { useHostMetricsStore } from '@/stores/xen-api/host-metrics.store.ts'
import { useXenApiStore } from '@/stores/xen-api.store.ts'
import { defineJob, JobError, JobRunningError } from '@core/packages/job'
import { useI18n } from 'vue-i18n'
export const useHostEnableSshJob = defineJob('host.enable-ssh', [hostArg], () => {
const xapi = useXenApiStore().getXapi()
const { t } = useI18n()
const { isHostRunning } = useHostMetricsStore().subscribe()
return {
run: host => xapi.host.enableSsh(host.$ref),
validate: (isRunning, host) => {
if (host === undefined) {
throw new JobError(t('job:host-enable-ssh:missing-host'))
}
if (isRunning) {
throw new JobRunningError(t('job:host-enable-ssh:in-progress'))
}
if (!isHostSshManageable(host)) {
throw new JobError(t('job:host-enable-ssh:unsupported-version'))
}
if (!isHostRunning(host)) {
throw new JobError(t('job:host-enable-ssh:bad-power-state'))
}
},
}
})

View File

@@ -3,6 +3,7 @@ import type { XenApiHost } from '@/libs/xen-api/xen-api.types.ts'
import { objectIcon } from '@core/icons'
import { HOST_POWER_STATE } from '@vates/types'
import { castArray } from 'lodash-es'
import { coerce, satisfies } from 'semver'
export type HostState = Lowercase<HOST_POWER_STATE> | 'disabled'
@@ -45,6 +46,9 @@ export const getHostState = (host: XenApiHost | undefined, powerState: HOST_POWE
return host.enabled ? 'running' : 'disabled'
}
export const isHostSshManageable = (host: XenApiHost) =>
satisfies(coerce(host.software_version.product_version) ?? '', '>=8.99')
export const getHostIcon = (host: XenApiHost | undefined, powerState: HOST_POWER_STATE) =>
objectIcon('host', getHostState(host, powerState))

View File

@@ -59,7 +59,6 @@ Testing uses **Vitest 5** with a single `unit` project (see `vitest.config.ts`):
| `test/expect-loader.ts` | `hasLoader(wrapper)`: whether a `UiLoader` is rendered; `expectLoaderInsteadOf(wrapper, findContent)`: a `UiLoader` shown and the content it stands for empty (also used by XO 6) |
| `test/select.ts` | `openSelect`, `findShownSelections`, `findSelectOptionLabels`, `pickSelectOption(wrapper, label, { detailed? })`: opens a `VtsSelect`, reads the selection it shows, reads or picks its options (`detailed`: the option shows details after its label); `chooseSelectOption(wrapper, label, { container?, detailed? })`: opens the select inside `container`, then picks the option (also used by XO 6) |
| `test/is-placeholder-shown.ts` | `isPlaceholderShown(field)`: whether a readonly input shows its placeholder in place of its value |
| `test/can-focus-input.ts` | `canFocusInput(wrapper)`: whether the first input of a wrapper attached to the document takes the focus, which an `inert` ancestor prevents |
| `test/inject-or-throw.ts` | `injectOrThrow(key)`: `inject(key)`, throwing when nothing provides it |
| `test/mount-with-setup.ts` | `mountWithSetup(setup, { global?, attachTo? })`: mounts a component whose `setup` sets up what its render needs below it (a select, a provided context) and returns that render (XO 6 wraps it with its config); `mountWithSetupResult(setup, options)`: the same, keeping what `setup` builds (a form, a composable's return), `setup` returning `{ result, render }`, returns `{ wrapper, result }`; `mountComposableUnderSetup(setup, composable, options)`: runs `composable` (given what `setup` returned) in a child of the component whose `setup` provides what it injects, returns `{ provided, result }` |
| `test/mount-with-select.ts` | `renderSelect(id, { accent?, ref? }, slots?)`: renders the `VtsSelect` of a select id, `neutral` accent by default; `mountSelect`: a `VtsSelect` of string sources, its config, accent, wrapper message, option slot and a callback receiving the mounted select |

View File

@@ -46,7 +46,7 @@ const columnTransition = `grid-template-columns ${PANEL_TRANSITION_DURATION}ms`
display: grid;
grid-template-columns: minmax(0, 1fr) 0;
grid-template-rows: minmax(0, 1fr);
overflow: clip;
overflow: hidden;
.content {
overflow-y: auto;

View File

@@ -1,38 +0,0 @@
import VtsLayoutSidebar from '@core/components/layout/VtsLayoutSidebar.vue'
import { useRightSidebarStore } from '@core/packages/sidebar'
import { canFocusInput } from '@core-test/can-focus-input.ts'
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
import { mount } from '@vue/test-utils'
import { h, nextTick } from 'vue'
beforeEach(() => {
localStorage.clear()
})
function mountSidebar({ isExpanded }: { isExpanded: boolean }) {
localStorage.setItem('sidebar.right.expanded', String(isExpanded))
return mount(VtsLayoutSidebar, {
props: { side: 'right' },
slots: { default: () => h('input') },
global: createGlobalTestConfig(),
attachTo: document.body,
})
}
it('lets the focus into an expanded sidebar', () => {
expect(canFocusInput(mountSidebar({ isExpanded: true }))).toBe(true)
})
it('keeps the focus out of a collapsed sidebar', () => {
expect(canFocusInput(mountSidebar({ isExpanded: false }))).toBe(false)
})
it('lets the focus in once the sidebar expands', async () => {
const wrapper = mountSidebar({ isExpanded: false })
useRightSidebarStore().toggleExpand(true)
await nextTick()
expect(canFocusInput(wrapper)).toBe(true)
})

View File

@@ -1,5 +1,5 @@
<template>
<div :class="className" class="vts-layout-sidebar" :inert="!sidebar.isExpanded">
<div :class="className" class="vts-layout-sidebar">
<VtsResizeHandle v-if="showResizeHandle" :position="resizeHandlePosition" :resizable="sidebar" />
<div v-if="slots.header || (showLock && !ui.isSmall)" class="header">
<div v-if="slots.header" class="start">

View File

@@ -163,6 +163,16 @@ const textMappingsByObject: TextMappingByObject = {
message: t('modal:host-emergency-shutdown-message'),
action: t('action:emergency-shutdown-host'),
},
'enable-ssh': {
title: t('modal:confirm-host-enable-ssh', { host: hostName }),
message: t('modal:host-enable-ssh-message'),
action: t('action:enable-ssh'),
},
'disable-ssh': {
title: t('modal:confirm-host-disable-ssh', { host: hostName }),
message: t('modal:host-disable-ssh-message'),
action: t('action:disable-ssh'),
},
},
}

View File

@@ -1,36 +0,0 @@
import VtsSidePanel from '@core/components/panel/VtsSidePanel.vue'
import { canFocusInput } from '@core-test/can-focus-input.ts'
import { createGlobalTestConfig } from '@core-test/create-global-test-config.ts'
import { mount } from '@vue/test-utils'
import { h } from 'vue'
beforeEach(() => {
localStorage.clear()
})
function mountPanel({ hasSelection }: { hasSelection: boolean }) {
localStorage.setItem('panel.locked', 'false')
return mount(VtsSidePanel, {
props: { hasSelection, persistent: true },
slots: { default: () => h('input') },
global: createGlobalTestConfig(),
attachTo: document.body,
})
}
it('lets the focus into a panel that a selection expands', () => {
expect(canFocusInput(mountPanel({ hasSelection: true }))).toBe(true)
})
it('keeps the focus out of a collapsed panel', () => {
expect(canFocusInput(mountPanel({ hasSelection: false }))).toBe(false)
})
it('lets the focus in once a selection expands the panel', async () => {
const wrapper = mountPanel({ hasSelection: false })
await wrapper.setProps({ hasSelection: true })
expect(canFocusInput(wrapper)).toBe(true)
})

View File

@@ -1,6 +1,6 @@
<!-- v5 -->
<template>
<div class="vts-side-panel" :class="{ mobile: uiStore.isSmall }" :inert="!panelStore.isExpanded">
<div class="vts-side-panel" :class="{ mobile: uiStore.isSmall }">
<VtsResizeHandle v-if="showResizeHandle" position="start" :resizable="panelStore" />
<VtsPanel
:closable="isClosable"

View File

@@ -95,7 +95,7 @@ function handleBackdropClick() {
display: flex;
flex: 1;
min-height: 0;
overflow-x: clip;
overflow-x: hidden;
}
.header {

View File

@@ -83,6 +83,8 @@
"action:disable-host": "Disable host",
"action:disable-host-and-evacuate-vms": "Disable host and evacuate VMs",
"action:disable-load-at-startup": "Disable load at startup",
"action:disable-ssh": "Disable SSH",
"action:disable-ssh-auto-enable-if-xapi-down": "Disable SSH, auto-enable if XAPI goes down",
"action:discard": "Discard",
"action:disconnect": "Disconnect",
"action:disconnect-n": "Disconnect {n}",
@@ -108,6 +110,7 @@
"action:enable-host": "Enable host",
"action:enable-light-mode": "Enable light mode",
"action:enable-load-at-startup": "Enable load at startup",
"action:enable-ssh": "Enable SSH",
"action:export": "Export",
"action:export-content": "Export content",
"action:export-n-vms": "Export 1 VM | Export {n} VMs",
@@ -756,8 +759,16 @@
"job:host-detach:in-progress": "Host detach in progress…",
"job:host-detach:master-host": "Master host cannot be detached",
"job:host-detach:missing-host": "No host to detach",
"job:host-disable-ssh:bad-power-state": "@:host-not-running",
"job:host-disable-ssh:in-progress": "@:action:disable-ssh in progress…",
"job:host-disable-ssh:missing-host": "@:host-missing",
"job:host-disable-ssh:unsupported-version": "@:xcp-ng-9-required",
"job:host-disable:bad-power-state": "@:host-not-running",
"job:host-disable:missing-host": "@:host-missing",
"job:host-enable-ssh:bad-power-state": "@:host-not-running",
"job:host-enable-ssh:in-progress": "@:action:enable-ssh in progress…",
"job:host-enable-ssh:missing-host": "@:host-missing",
"job:host-enable-ssh:unsupported-version": "@:xcp-ng-9-required",
"job:host-enable:missing-host": "@:host-missing",
"job:host-evacuate:in-progress": "Host evacuation in progress…",
"job:host-forget:bad-power-state": "Host is running",
@@ -1017,8 +1028,10 @@
"modal:backup-repository-forget-title": "You are about to forget a backup repository | You are about to forget {n} backup repositories",
"modal:confirm-host-detach?": "Are you sure you want to detach {host}?",
"modal:confirm-host-disable-and-evacuate-vms?": "Are you sure you want to disable {host} and evacuate its VMs?",
"modal:confirm-host-disable-ssh": "Disable SSH on {host}, auto-enable if XAPI goes down",
"modal:confirm-host-disable?": "Are you sure you want to disable {host}?",
"modal:confirm-host-emergency-shutdown?": "Are you sure you want to make an emergency shutdown of {host}?",
"modal:confirm-host-enable-ssh": "Enable SSH on {host}",
"modal:confirm-host-enable?": "Are you sure you want to enable {host}?",
"modal:confirm-host-force-reboot?": "Are you sure you want to force reboot {host}?",
"modal:confirm-host-forget?": "Are you sure you want to forget {host}?",
@@ -1032,8 +1045,10 @@
"modal:host-detach-message": "This host will be detached from the pool and its local storage reset. Make sure no VMs are still running on it and that anything you need from its local storage has been backed up.",
"modal:host-disable-and-evacuate-vms-message": "The host will be disabled and its running VMs will be automatically migrated to other hosts in the pool, with no interruption as long as resources allow.",
"modal:host-disable-message": "The host will be marked unavailable for starting or receiving new VMs. Already-running VMs are not affected.",
"modal:host-disable-ssh-message": "SSH will be turned off and emergency access turned back on (the default). Open SSH sessions are not closed. While XAPI responds on this host, SSH stays off. If XAPI stops responding, SSH is turned on automatically so you can repair the host, and turned off again once XAPI responds. SSH also accepts connections for a short time at each boot, until XAPI has started.",
"modal:host-emergency-shutdown-message": "This will power off the host. Its running VMs will be suspended, without migration, before the host shuts down. VMs that cannot be suspended will be shut down.",
"modal:host-enable-message": "The host becomes available again for starting or receiving VMs.",
"modal:host-enable-ssh-message": "SSH will accept connections on this host until you disable it.",
"modal:host-force-reboot-message": "The host is about to reboot. Its running VMs will be migrated to other hosts when possible, but those that can't be will be forcibly shut down. Data loss may occur.",
"modal:host-forget-message": "This will permanently remove the host from the pool database. Only do this if the host is physically gone or unrecoverable - if it can come back online, use Detach instead. This action cannot be undone.",
"modal:host-reboot-message": "The host is about to reboot. Its running VMs will be migrated to other hosts and won't be moved back to it automatically afterwards.",
@@ -1981,6 +1996,7 @@
"writing-speed": "Writing speed",
"xapi-plugin": "XAPI plugin",
"xcp-ng": "XCP-ng",
"xcp-ng-9-required": "Requires XCP-ng 9 or later",
"xen-orchestra": "Xen Orchestra",
"xo": "XO",
"xo-5": "XO-5",

View File

@@ -83,6 +83,8 @@
"action:disable-host": "Désactiver l'hôte",
"action:disable-host-and-evacuate-vms": "Désactiver l'hôte et évacuer les VMs",
"action:disable-load-at-startup": "Désactiver le chargement au démarrage",
"action:disable-ssh": "Désactiver SSH",
"action:disable-ssh-auto-enable-if-xapi-down": "Désactiver SSH, réactivation automatique si la XAPI ne répond plus",
"action:discard": "Abandonner",
"action:disconnect": "Déconnecter",
"action:disconnect-n": "Déconnecter {n}",
@@ -108,6 +110,7 @@
"action:enable-host": "Activer l'hôte",
"action:enable-light-mode": "Activer le mode clair",
"action:enable-load-at-startup": "Activer le chargement au démarrage",
"action:enable-ssh": "Activer SSH",
"action:export": "Exporter",
"action:export-content": "Exporter le contenu",
"action:export-n-vms": "Exporter 1 VM | Exporter {n} VMs",
@@ -756,8 +759,16 @@
"job:host-detach:in-progress": "Détachement de l'hôte en cours…",
"job:host-detach:master-host": "L'hôte primaire ne peut pas être détaché",
"job:host-detach:missing-host": "Aucun hôte à détacher",
"job:host-disable-ssh:bad-power-state": "@:host-not-running",
"job:host-disable-ssh:in-progress": "Désactivation de SSH en cours…",
"job:host-disable-ssh:missing-host": "@:host-missing",
"job:host-disable-ssh:unsupported-version": "@:xcp-ng-9-required",
"job:host-disable:bad-power-state": "@:host-not-running",
"job:host-disable:missing-host": "@:host-missing",
"job:host-enable-ssh:bad-power-state": "@:host-not-running",
"job:host-enable-ssh:in-progress": "Activation de SSH en cours…",
"job:host-enable-ssh:missing-host": "@:host-missing",
"job:host-enable-ssh:unsupported-version": "@:xcp-ng-9-required",
"job:host-enable:missing-host": "@:host-missing",
"job:host-evacuate:in-progress": "Évacuation de l'hôte en cours…",
"job:host-forget:bad-power-state": "L'hôte est en cours d'exécution",
@@ -1017,8 +1028,10 @@
"modal:backup-repository-forget-title": "Vous êtes sur le point d'oublier un dépôt de sauvegarde | Vous êtes sur le point d'oublier {n} dépôts de sauvegarde",
"modal:confirm-host-detach?": "Êtes-vous sûr de vouloir détacher {host} ?",
"modal:confirm-host-disable-and-evacuate-vms?": "Êtes-vous sûr de vouloir désactiver {host} et évacuer ses VMs ?",
"modal:confirm-host-disable-ssh": "Désactiver SSH sur {host}, réactivation automatique si la XAPI ne répond plus",
"modal:confirm-host-disable?": "Êtes-vous sûr de vouloir désactiver {host} ?",
"modal:confirm-host-emergency-shutdown?": "Êtes-vous sûr de vouloir effectuer un arrêt d'urgence de {host} ?",
"modal:confirm-host-enable-ssh": "Activer SSH sur {host}",
"modal:confirm-host-enable?": "Êtes-vous sûr de vouloir activer {host} ?",
"modal:confirm-host-force-reboot?": "Êtes-vous sûr de vouloir forcer le redémarrage de {host} ?",
"modal:confirm-host-forget?": "Êtes-vous sûr de vouloir oublier {host} ?",
@@ -1032,8 +1045,10 @@
"modal:host-detach-message": "Cet hôte sera détaché du pool et son stockage local réinitialisé. Assurez-vous qu'aucune VM n'est encore en cours d'exécution et que tout ce dont vous avez besoin sur son stockage local a été sauvegardé.",
"modal:host-disable-and-evacuate-vms-message": "L'hôte sera désactivé et ses VMs en cours d'exécution seront automatiquement migrées vers d'autres hôtes du pool, sans interruption si les ressources le permettent.",
"modal:host-disable-message": "L'hôte sera marqué comme indisponible pour le démarrage ou la réception de nouvelles VMs. Les VMs déjà en cours d’exécution ne sont pas affectées.",
"modal:host-disable-ssh-message": "SSH sera désactivé et l'accès de secours réactivé (comportement par défaut). Les sessions SSH ouvertes ne sont pas fermées. Tant que la XAPI répond sur cet hôte, SSH reste désactivé. Si la XAPI ne répond plus, SSH est activé automatiquement pour vous permettre de réparer l'hôte, puis désactivé à nouveau dès que la XAPI répond. SSH accepte aussi des connexions pendant un court instant à chaque démarrage, jusqu'au lancement de la XAPI.",
"modal:host-emergency-shutdown-message": "L'hôte va être éteint. Ses VMs en cours d'exécution seront suspendues, sans migration, avant l'arrêt de l'hôte. Les VMs qui ne peuvent pas être suspendues seront arrêtées.",
"modal:host-enable-message": "L'hôte redevient disponible pour démarrer ou recevoir des VMs.",
"modal:host-enable-ssh-message": "SSH acceptera les connexions sur cet hôte jusqu'à ce que vous le désactiviez.",
"modal:host-force-reboot-message": "L'hôte est sur le point de redémarrer. Ses VMs en cours d'exécution seront migrées vers d'autres hôtes lorsque cela sera possible, mais celles qui ne peuvent pas l'être seront arrêtées de force. Une perte de données peut survenir.",
"modal:host-forget-message": "Cela supprimera définitivement l'hôte de la base de données du pool. Ne faites cela que si l'hôte est physiquement absent ou irrécupérable - s'il peut revenir en ligne, utilisez à la place Détacher. Cette action ne peut pas être annulée.",
"modal:host-reboot-message": "L'hôte va redémarrer. Ses VMs en cours d'exécution seront migrées vers d'autres hôtes et ne reviendront pas automatiquement dessus après l'opération.",
@@ -1981,6 +1996,7 @@
"writing-speed": "Vitesse d'écriture",
"xapi-plugin": "plugin XAPI",
"xcp-ng": "XCP-ng",
"xcp-ng-9-required": "Nécessite XCP-ng 9 ou une version ultérieure",
"xen-orchestra": "Xen Orchestra",
"xo": "XO",
"xo-5": "XO-5",

View File

@@ -14,6 +14,8 @@ export type HostActions =
| 'restart-toolstack'
| 'detach'
| 'emergency-shutdown'
| 'enable-ssh'
| 'disable-ssh'
export type VmBlockedOperations =
| 'clean_shutdown'

View File

@@ -1,10 +0,0 @@
import type { VueWrapper } from '@vue/test-utils'
// Whether the first input of a wrapper attached to the document takes the focus, which an `inert` ancestor prevents
export function canFocusInput(wrapper: Pick<VueWrapper, 'get'>) {
const input = wrapper.get('input').element
input.focus()
return document.activeElement === input
}

View File

@@ -23,7 +23,6 @@
- [Backup reports] Aborted or interrupted VMs are no longer counted as failed (PR [#10875](https://github.com/vatesfr/xen-orchestra/pull/10875))
- [Backup] Correctly cleanup the snapshot of a VM without any backed up disk: only a CDROM or only `[NOBAK]` disks (PR [#10789](https://github.com/vatesfr/xen-orchestra/pull/10789))
- [SDN Controller] Network traffic rules are now enforced on VMs started after the rule was created, when a pool's first traffic rule is a network rule: only VIF rules used to set up the SDN controller's event handling, so such network rules were recorded but never (re)applied (PR [#10917](https://github.com/vatesfr/xen-orchestra/pull/10917))
- [Layout] The page no longer slides sideways to show the closed side panel or "My tasks" when the keyboard focus moves past the last element of the page, and their content can no longer be reached while they are closed (PR [#10973](https://github.com/vatesfr/xen-orchestra/pull/10973))
### Packages to release