Bug 1576972

Summary: [RFE] Add host shell welcome message to avoid upgrades without maintenance
Product: Red Hat Enterprise Virtualization Manager Reporter: Marina Kalinin <mkalinin>
Component: ovirt-engineAssignee: Martin Perina <mperina>
Status: CLOSED WONTFIX QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.11CC: dfediuck, lsurette, mperina, Rhev-m-bugs, srevivo, ycui
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-23 13:40:28 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: 902971    

Description Marina Kalinin 2018-05-10 21:20:49 UTC
Update the shell welcome message for RHV host when the user ssh in
to warn not to run `yum update` if the host is not in maintenance, since it can cause the VMs running on the host to dysfunction.

This is something that we can do at vdsm level, in vdsm rpm postinstall scripts, for instance, without impacting core OS components.
This still won't prevent the user from running the update command without host maintenance in the engine, but it will reduce the probability of this to happen. And this seem to be relatively easy to implement as opposed to try figuring out if the host is in maintenance and preventing the yum command to run. 

How to do it? For exmaple, using /etc/motd:
https://access.redhat.com/solutions/223483

Suggested words to use:
"Ensure host is in maintenance before running `yum update`. Otherwise it can cause VMs running on the host to dysfunction."
But I would run this through a native english speaker first :)

Comment 1 Martin Perina 2018-05-11 12:55:17 UTC
IMO this should be handle within host deploy process, probably worth to add to ovirt-host-deploy ansible role. Targeting to 4.3, when done let's discuss backports

Comment 3 Marina Kalinin 2018-05-11 19:16:22 UTC
Ideally would be to have some flag set on the host and lock the yum process from updating somehow as long as the host is not in maintenance. But this probably would be much harder to implement.

Comment 4 Doron Fediuck 2019-12-23 13:40:28 UTC
Closing old RFEs.
If still needed, please re-open and provide a business justification.