Discussion:
[ovirt-users] Maintenance GUI vs CLI
Marcin Kruk
2017-03-14 10:12:15 UTC
Permalink
What is the difference between:
host CLI command: hosted-engine --vm-maintenance --mode=local
and
RHVEM gui click action: Hosts -> <hostname> -> Maintenance?
Yedidyah Bar David
2017-03-14 10:30:18 UTC
Permalink
There are two different notions of host maintenance:

1. in the engine, meaning the engine will migrate away VMs from
this host, not start new ones on it, etc. This applies to all
hosts, not just hosted-engine ones

2. in ovirt-hosted-engine-ha, the high availability daemons.
Here it means similar things, but applies only to the hosted
engine vm, and is maintained in the HE shared storage (not in
the engine db).
Post by Marcin Kruk
host CLI command: hosted-engine --vm-maintenance --mode=local
This one does (2.).
Post by Marcin Kruk
and
RHVEM gui click action: Hosts -> <hostname> -> Maintenance?
In the past, this did only (1.), but now it does both.

See also:

https://www.ovirt.org/develop/release-management/features/engine/self-hosted-engine-maintenance-flows/
https://bugzilla.redhat.com/show_bug.cgi?id=1047649
https://bugzilla.redhat.com/show_bug.cgi?id=1277646

Best,
--
Didi
Marcin Kruk
2017-03-14 12:31:36 UTC
Permalink
So if the maintenance mode from the GUI is necessary to upgrade host, how
to launch it from the CLI on that host?
Post by Yedidyah Bar David
1. in the engine, meaning the engine will migrate away VMs from
this host, not start new ones on it, etc. This applies to all
hosts, not just hosted-engine ones
2. in ovirt-hosted-engine-ha, the high availability daemons.
Here it means similar things, but applies only to the hosted
engine vm, and is maintained in the HE shared storage (not in
the engine db).
Post by Marcin Kruk
host CLI command: hosted-engine --vm-maintenance --mode=local
This one does (2.).
Post by Marcin Kruk
and
RHVEM gui click action: Hosts -> <hostname> -> Maintenance?
In the past, this did only (1.), but now it does both.
https://www.ovirt.org/develop/release-management/features/
engine/self-hosted-engine-maintenance-flows/
https://bugzilla.redhat.com/show_bug.cgi?id=1047649
https://bugzilla.redhat.com/show_bug.cgi?id=1277646
Best,
--
Didi
Yedidyah Bar David
2017-03-14 12:35:40 UTC
Permalink
So if the maintenance mode from the GUI is necessary to upgrade host, how to
launch it from the CLI on that host?
Generally speaking, it should be doable using the api/sdk.
I don't know the details. If you have many hosts, you might
want to try the upgrade manager:

http://www.ovirt.org/develop/release-management/features/engine/upgrademanager/
Post by Yedidyah Bar David
1. in the engine, meaning the engine will migrate away VMs from
this host, not start new ones on it, etc. This applies to all
hosts, not just hosted-engine ones
2. in ovirt-hosted-engine-ha, the high availability daemons.
Here it means similar things, but applies only to the hosted
engine vm, and is maintained in the HE shared storage (not in
the engine db).
Post by Marcin Kruk
host CLI command: hosted-engine --vm-maintenance --mode=local
This one does (2.).
Post by Marcin Kruk
and
RHVEM gui click action: Hosts -> <hostname> -> Maintenance?
In the past, this did only (1.), but now it does both.
https://www.ovirt.org/develop/release-management/features/engine/self-hosted-engine-maintenance-flows/
https://bugzilla.redhat.com/show_bug.cgi?id=1047649
https://bugzilla.redhat.com/show_bug.cgi?id=1277646
Best,
--
Didi
--
Didi
Loading...