-
Notifications
You must be signed in to change notification settings - Fork 261
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
core: VDS Maintenance will wait for all disk transfers to happen and … #632
Conversation
ac4effc
to
fe83837
Compare
...ager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MaintenanceNumberOfVdssCommand.java
Outdated
Show resolved
Hide resolved
...bll/src/main/java/org/ovirt/engine/core/bll/storage/disk/image/TransferDiskImageCommand.java
Outdated
Show resolved
Hide resolved
...badmin/modules/frontend/src/main/resources/org/ovirt/engine/ui/frontend/AppErrors.properties
Outdated
Show resolved
Hide resolved
4b425b4
to
8f49ff0
Compare
...bll/src/main/java/org/ovirt/engine/core/bll/storage/disk/image/TransferDiskImageCommand.java
Outdated
Show resolved
Hide resolved
.../manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/EngineMessage.java
Outdated
Show resolved
Hide resolved
8f49ff0
to
ba95cdc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, looking at the PR it's not quite clear from your explanation what you are aiming to do here. The PR message is not up-to-date, as well as the commit message, and it needs formatting.
...src/test/java/org/ovirt/engine/core/bll/storage/disk/image/TransferDiskImageCommandTest.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/ovirt/engine/core/bll/storage/disk/image/TransferDiskImageCommandTest.java
Outdated
Show resolved
Hide resolved
...ager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MaintenanceNumberOfVdssCommand.java
Show resolved
Hide resolved
...src/test/java/org/ovirt/engine/core/bll/storage/disk/image/TransferDiskImageCommandTest.java
Outdated
Show resolved
Hide resolved
...sbroker/src/main/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategy.java
Show resolved
Hide resolved
ba95cdc
to
3d13baf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you still need to tidy-up the commit message.
At least to format it properly.
...sbroker/src/main/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategy.java
Outdated
Show resolved
Hide resolved
...ker/src/test/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategyTest.java
Outdated
Show resolved
Hide resolved
3d13baf
to
aaf801d
Compare
...sbroker/src/main/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategy.java
Outdated
Show resolved
Hide resolved
...sbroker/src/main/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategy.java
Show resolved
Hide resolved
aaf801d
to
aec0c5a
Compare
...sbroker/src/main/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategy.java
Outdated
Show resolved
Hide resolved
...ker/src/test/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategyTest.java
Outdated
Show resolved
Hide resolved
...ker/src/test/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategyTest.java
Outdated
Show resolved
Hide resolved
...ker/src/test/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategyTest.java
Outdated
Show resolved
Hide resolved
255c053
to
e874bb2
Compare
26e1687
to
5946a43
Compare
...sbroker/src/main/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategy.java
Show resolved
Hide resolved
...ker/src/test/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategyTest.java
Outdated
Show resolved
Hide resolved
...ker/src/test/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategyTest.java
Outdated
Show resolved
Hide resolved
...ker/src/test/java/org/ovirt/engine/core/vdsbroker/monitoring/VirtMonitoringStrategyTest.java
Outdated
Show resolved
Hide resolved
f59e1e7
to
de77745
Compare
…block new ones if a user want to set a host to maintenance and at least one of the disk is in transfer the command will fail and will send an error. now it will not send an error it will wait for the disk transfer to finnish (the host will be in preparingForMaintenance mode) and new transfers will be blocked from starting. Bug-Url: https://bugzilla.redhat.com/2120228 Signed-off-by: Artiom Divak <adivak@redhat.com>
/ost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the testVirtCanMoveToMaintenance()
test can be fixed.
The new part already fixed by Arik, the existing also has an issue.
core: VDS Maintenance will wait for all disk transfers to happen and block new ones
if a user wants to set a host to maintenance and at least one of
the disk is in transfer the command will fail and will send an error.
now it will not send an error it will wait for the disk transfer to finish
(the host will be in preparingForMaintenance mode) and new transfers will be blocked from starting.
Bug-Url: https://bugzilla.redhat.com/1990231
Signed-off-by: Artiom Divak adivak@redhat.com