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

Enhance logging around remove snapshot operations #17057

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

agrare
Copy link
Member

@agrare agrare commented Feb 27, 2018

Prior to removing a snapshot log the id, uid_ems, ems_ref, name, and
description to aid in diagnosing errors.

https://bugzilla.redhat.com/show_bug.cgi?id=1549299
@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2018

Checked commit agrare@a475155 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

Copy link
Contributor

@rvalente rvalente left a comment

Choose a reason for hiding this comment

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

👍

@agrare
Copy link
Member Author

agrare commented Feb 27, 2018

With these three PRs in place we will see:
Smartstate creating/deleting a snapshot:

INFO -- : Q-task_id([job_dispatcher]) VolMgrPlatformSupportLinux.preMount: VM snapshot [24-snapshot-11] created in [3.237410764] seconds
INFO -- : Q-task_id([job_dispatcher]) VolMgrPlatformSupportLinux.postMount: VM snapshot [24-snapshot-11] removed

Any vm_remove_snapshot operation (e.g. remove_unused_evm_snapshots):

INFO -- : MIQ(ManageIQ::Providers::Vmware::InfraManager::Vm#raw_remove_snapshot) removing snapshot ID: [19] uid_ems: [2018-02-27T09:25:34.82338Z] ems_ref: [snapshot-913] name: [EvmSnapshot] description [Evm Snapshot]

And at the VimBroker level we log the exact options that will be passed to vSphere for CreateSnapshot_Task and RemoveSnapshot_Task:

MiqVimVm::createSnapshot: snMor = 24-snapshot-11
MiqVimVm::removeSnapshot(24-snapshot-11, false)
MiqVimVm(host1, root).removeSnapshot: calling removeSnapshot_Task: snMor [24-snapshot-11] subtree [false]
MiqVimVm(host1, root).removeSnapshot: returned from removeSnapshot_Task: snMor [24-snapshot-11]

@roliveri roliveri merged commit 071270a into ManageIQ:master Feb 27, 2018
@agrare agrare deleted the remove_snapshot_logging branch February 27, 2018 19:22
simaishi pushed a commit that referenced this pull request Feb 27, 2018
Enhance logging around remove snapshot operations
(cherry picked from commit 071270a)
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit db8959cb6bea8dd5d9536584b0f0be0b8b9e2391
Author: Richard Oliveri <oliveri.richard.github@gmail.com>
Date:   Tue Feb 27 14:22:09 2018 -0500

    Merge pull request #17057 from agrare/remove_snapshot_logging
    
    Enhance logging around remove snapshot operations
    (cherry picked from commit 071270aaf87f4bcb0ab6d4ef7a57a50e5b8ee347)

@agrare agrare added this to the Sprint 81 Ending Mar 12, 2018 milestone Feb 28, 2018
simaishi pushed a commit that referenced this pull request Mar 22, 2018
Enhance logging around remove snapshot operations
(cherry picked from commit 071270a)

https://bugzilla.redhat.com/show_bug.cgi?id=1559546
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 41cc37fd318378fe76e7f6ac3b3c72383eaa1f89
Author: Richard Oliveri <oliveri.richard.github@gmail.com>
Date:   Tue Feb 27 14:22:09 2018 -0500

    Merge pull request #17057 from agrare/remove_snapshot_logging
    
    Enhance logging around remove snapshot operations
    (cherry picked from commit 071270aaf87f4bcb0ab6d4ef7a57a50e5b8ee347)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1559546

d-m-u pushed a commit to d-m-u/manageiq that referenced this pull request Jun 6, 2018
Enhance logging around remove snapshot operations
(cherry picked from commit 071270a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants