Bug 1379771

Summary: Introduce a 'force' flag for updating a storage server connection
Product: Red Hat Enterprise Virtualization Manager Reporter: Daniel Erez <derez>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED ERRATA QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.6.7CC: acanan, amureini, bugs, derez, gklein, lsurette, ratamir, rbalakri, Rhev-m-bugs, srevivo, tnisan, trichard, ykaul, ylavi
Target Milestone: ovirt-4.1.0-alphaKeywords: Improvement, ZStream
Target Release: ---Flags: gklein: testing_plan_complete-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
This release introduces a 'force' flag, which can be used to update a storage server connection regardless of the associated storage domain status (allowing updates even when the storage domain is not in Maintenance mode). For example: PUT /ovirt-engine/api/storageconnections/123;force=true
Story Points: ---
Clone Of:
: 1386606 1386610 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1386606, 1386610    

Description Daniel Erez 2016-09-27 15:43:10 UTC
Description of problem:
Updating a storage server connection is applicable only when the corresponded storage domain is in status maintenance. To allow updating regardless to the status, a 'force' option should be introduced.

Version-Release number of selected component (if applicable):
3.6

Steps to Reproduce:
1. Find a storage domain in status different than maintenance.
2. Update the corresponded storage server connection using 'force' URL parameter.

Expected results:
Should be updated successfully.

Example:

PUT http://127.0.0.1:8080/ovirt-engine/api/storageconnections/123?force

<storage_connection>
    <address>456</address>
    <port>3260</port>
    <target>789</target>
    <type>iscsi</type>
</storage_connection>

Comment 1 Red Hat Bugzilla Rules Engine 2016-09-27 15:43:17 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 9 Raz Tamir 2016-11-27 13:55:57 UTC
Verified on -  
ovirt-engine-4.1.0-0.0.master.20161126211319.gitae69c34.el7.centos.noarch

Comment 10 Allon Mureinik 2016-11-30 14:24:57 UTC
> PUT http://127.0.0.1:8080/ovirt-engine/api/storageconnections/123?force
Should be ?force=true

Comment 11 Raz Tamir 2016-11-30 16:50:17 UTC
This works with ?force only.
Moving to assign

Comment 12 Raz Tamir 2016-12-07 13:47:54 UTC
Verified on -  
ovirt-engine-4.1.0-0.0.master.20161126211319.gitae69c34.el7.centos.noarch