diff --git a/CHANGELOG.md b/CHANGELOG.md index 05a44e248..448c2da9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - [Servers] Fix cannot reconnect to a server after connection has been lost [#3839](https://github.com/vatesfr/xen-orchestra/issues/3839) (PR [#3841](https://github.com/vatesfr/xen-orchestra/pull/3841)) - [New VM] Fix `NO_HOSTS_AVAILABLE()` error when creating a VM on a local SR from template on another local SR [#3084](https://github.com/vatesfr/xen-orchestra/issues/3084) (PR [#3827](https://github.com/vatesfr/xen-orchestra/pull/3827)) - [Backup NG] Fix typo in the form [#3854](https://github.com/vatesfr/xen-orchestra/issues/3854) (PR [#3855](https://github.com/vatesfr/xen-orchestra/pull/3855)) +- [New SR] No warning when creating a NFS SR on a path that is already used as NFS SR [#3844](https://github.com/vatesfr/xen-orchestra/issues/3844) (PR [#3851](https://github.com/vatesfr/xen-orchestra/pull/3851)) ### Released packages diff --git a/packages/xo-web/src/common/intl/messages.js b/packages/xo-web/src/common/intl/messages.js index 5366c390e..0c0323014 100644 --- a/packages/xo-web/src/common/intl/messages.js +++ b/packages/xo-web/src/common/intl/messages.js @@ -1564,9 +1564,6 @@ const messages = { removeAllLogsModalTitle: 'Remove all logs', removeAllLogsModalWarning: 'Are you sure you want to remove all logs?', definitiveMessageModal: 'This operation is definitive.', - existingSrModalTitle: 'Previous SR Usage', - existingSrModalText: - 'This path has been previously used as a Storage by a XenServer host. All data will be lost if you choose to continue the SR creation.', existingLunModalTitle: 'Previous LUN Usage', existingLunModalText: 'This LUN has been previously used as a Storage by a XenServer host. All data will be lost if you choose to continue the SR creation.', diff --git a/packages/xo-web/src/xo-app/new/sr/index.js b/packages/xo-web/src/xo-app/new/sr/index.js index 0cb554bd2..c42c58b13 100644 --- a/packages/xo-web/src/xo-app/new/sr/index.js +++ b/packages/xo-web/src/xo-app/new/sr/index.js @@ -269,19 +269,8 @@ export default class New extends Component { const { host, iqn, lun, path, type, scsiId, nfs4, nfsOptions } = this.state const createMethodFactories = { - nfs: async () => { - const previous = await probeSrNfsExists(host.id, server.value, path) - if (previous && previous.length > 0) { - try { - await confirm({ - title: _('existingSrModalTitle'), - body:

{_('existingSrModalText')}

, - }) - } catch (error) { - return - } - } - return createSrNfs( + nfs: () => + createSrNfs( host.id, name.value, description.value, @@ -289,8 +278,7 @@ export default class New extends Component { path, nfs4 ? '4' : undefined, nfsOptions - ) - }, + ), hba: async () => { const previous = await probeSrHbaExists(host.id, scsiId) if (previous && previous.length > 0) {