Bug 1202333
| Summary: | VM is still locked after cleaning task "make a template" during the update | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Petr Kubica <pkubica> | ||||
| Component: | ovirt-engine | Assignee: | Eli Mesika <emesika> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kubica <pkubica> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.5.0 | CC: | didi, emesika, gklein, lsurette, oourfali, pstehlik, rbalakri, Rhev-m-bugs, srevivo, stirabos, ykaul | ||||
| Target Milestone: | ovirt-3.6.0-rc | ||||||
| Target Release: | 3.6.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | OVIRT 3.6.0-3 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-04-20 01:39:08 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1204673 | ||||||
| Attachments: |
|
||||||
|
Description
Petr Kubica
2015-03-16 12:34:25 UTC
Eli, what should free the lock? (In reply to Oved Ourfali from comment #1) > Eli, what should free the lock? I an not sure if engine-setup calls the unlock_entity.sh utility, but at least unlock_entity.sh can be called manually to release the lock. Didi, does engine-setup suggests cleaning of locked entities using unlock_entity.sh ??? No, engine-setup doesn't call unlock_entity.sh at all. Should we explicitly unlock everything locked on each upgrade? (In reply to Simone Tiraboschi from comment #3) > No, engine-setup doesn't call unlock_entity.sh at all. > > Should we explicitly unlock everything locked on each upgrade? I think that we should run in engine-setup at least unlock_entity.sh -q this should return a list of locked entities If the list is not empty, IMO , engine-setup should suggest unlocking of those entities On my opinion it would be much better if entity got unlocked on task completion/deletion. If task_cleaner.sh removed a task cause it detected that it would never ended (zombie), why should we keep the corresponding entity locked if no task need to keep it locked anymore? (In reply to Simone Tiraboschi from comment #5) > On my opinion it would be much better if entity got unlocked on task > completion/deletion. > If task_cleaner.sh removed a task cause it detected that it would never > ended (zombie), why should we keep the corresponding entity locked if no > task need to keep it locked anymore? We don't have this info at a task level. I agree with Eli that it should run on setup, as it would help overcome others issues that customers might experience due to various issues. In my opinion no object should be locked after upgrade. The task deletion is NY user approval? If so, I'd run unlock as well if it got approved. Zombie are deleted without asking any confirmation prior to other check, than we ask if he want to wait for other running task and if he respond no we abort. We need to delete zombies before start waiting otherwise we will wait forever. Could I call unlock_entity.sh to unlock everything in a single shot at the end of the upgrade procedure? (In reply to Simone Tiraboschi from comment #7) > Zombie are deleted without asking any confirmation prior to other check, > than we ask if he want to wait for other running task and if he respond no > we abort. > > We need to delete zombies before start waiting otherwise we will wait > forever. > > Could I call unlock_entity.sh to unlock everything in a single shot at the > end of the upgrade procedure? I think that it will be the simplest way to go. Eli - can you confirm? (In reply to Oved Ourfali from comment #8) > (In reply to Simone Tiraboschi from comment #7) > > Zombie are deleted without asking any confirmation prior to other check, > > than we ask if he want to wait for other running task and if he respond no > > we abort. > > > > We need to delete zombies before start waiting otherwise we will wait > > forever. > > > > Could I call unlock_entity.sh to unlock everything in a single shot at the > > end of the upgrade procedure? > > I think that it will be the simplest way to go. > Eli - can you confirm? We don't have this ability today but I guess we can extend the utility to cover total cleanup of all entity locks For a complete solution, this should be called from the engine-setup in order to unlock all locked entities, should I open a separate BZ for that ??? (In reply to Eli Mesika from comment #10) > For a complete solution, this should be called from the engine-setup in > order to unlock all locked entities, should I open a separate BZ for that ??? Yes. Mark it as integration. Verified in 3.6.0-0.0.master.20150627185750.git6f063c1.el6 update from ovirt 3.5 to 3.6.0-3 |