Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(xo-server/backup-ng): emit a warning instead of a ghost VM task #3647

Merged
merged 4 commits into from
Nov 7, 2018

Conversation

badrAZ
Copy link
Contributor

@badrAZ badrAZ commented Nov 6, 2018

Screenshot

image

Check list

Check items when done or if not relevant

  • PR reference the relevant issue (e.g. Fixes #007)
  • if UI changes, a screenshot has been added to the PR
  • CHANGELOG:
    • enhancement/bug fix entry added
    • list of packages to release updated (${name} v${new version})
  • documentation updated

Process

  1. create a PR as soon as possible
  2. mark it as WiP: (Work in Progress) if not ready to be merged
  3. when you want a review, add a reviewer
  4. if necessary, update your PR, and re- add a reviewer

@badrAZ badrAZ self-assigned this Nov 6, 2018
@badrAZ badrAZ requested a review from julien-f November 6, 2018 10:20
CHANGELOG.md Outdated
@@ -16,6 +16,7 @@
### Enhancements

- [VM] Ability to set nested virtualization in settings [#3619](https://github.com/vatesfr/xen-orchestra/issues/3619) (PR [#3625](https://github.com/vatesfr/xen-orchestra/pull/3625))
- [Backup NG logs] Display warning in case of missing VMs instead of a ghosts VMs tasks (PR [#3647](https://github.com/vatesfr/xen-orchestra/pull/3647))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this entry to the next release please.

}
})

if (missingVms.length !== 0) {
logger.notice('skippedVms', {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger.warning would be more logical.

@@ -475,6 +475,7 @@ const extractIdsFromSimplePattern = (pattern: mixed) => {
//
// job.start(data: { mode: Mode, reportWhen: ReportWhen })
// ├─ task.info(message: 'vms', data: { vms: string[] })
// ├─ task.warning(message: 'skippedVms', data: { vms: string[] })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skippedVmsmissingVms.

@julien-f julien-f merged commit 7fc8d59 into master Nov 7, 2018
@julien-f julien-f deleted the deletedVmsInfo branch November 7, 2018 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants