Bug 1943221 - Failure at Validate connections of storages with successfully added iSCSI SDs
Summary: Failure at Validate connections of storages with successfully added iSCSI SDs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: infra
Version: 1.4.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.6
: ---
Assignee: Martin Necas
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-25 15:26 UTC by Petr Matyáš
Modified: 2021-05-05 05:36 UTC (History)
6 users (show)

Fixed In Version: ovirt-ansible-collection-1.4.2
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-05 05:36:19 UTC
oVirt Team: Infra
Embargoed:
pm-rhel: ovirt-4.4+
gdeolive: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-collection pull 252 0 None closed infra: remove target from ovirt_storage_connection 2021-04-26 08:20:20 UTC

Description Petr Matyáš 2021-03-25 15:26:28 UTC
Description of problem:
When deploying an env I'm getting a failure at Validate connections of storages task with Operation Failed. Fault detail is "[Cannot edit Storage Connection. Storage connection 78042880-d660-4f07-a046-9b3fdd7c247e already exists for .]".
SDs are added successfully from the previous task and there should be nothing wrong with the storages themselves, the hosts in this env can see all the luns without issues.

Version-Release number of selected component (if applicable):
ovirt.vm-infra (1.2.3)

How reproducible:
always

Steps to Reproduce:
1. setup an env with iscsi storages
2.
3.

Actual results:
fails to validate

Expected results:
validation should pass when all SD are added successfully

Additional info:
can provide multiple envs where this is happening, either talk to me or pkubica

Comment 2 Petr Matyáš 2021-03-29 12:31:13 UTC
Blocking new servers installation and thus only couple new envs.

Comment 3 Lukas Svaty 2021-03-29 12:54:40 UTC
Lowering severity, as we are able to verify this flow on different HW.

Comment 7 Petr Kubica 2021-03-30 07:02:11 UTC
Issue is caused by our new storage server in a combination of wrong tries to update storage connection during oVirt Infra role

prerequisites:
- storage has multiple different (target) iqns on the same IP
- role is adding iSCSI storage domains from this storage

what happens:
- in a playbook there is mentioned only one target iqn for the storage domain, after iscsi discovery there are multiple portals with a different iqn
- in a validation step, it tries to update the storage domain connections - it sees that there is a different target iqn and it tries to update the connection but there already exists a connection with this target

So it's necessary to check existing connections and don't try to update a connections to a different already existing connection

Comment 8 Lucie Leistnerova 2021-04-27 08:59:46 UTC
Role installed from galaxy and it doesn't try to change connection to wrong target
verified on ovirt.ovirt:1.4.2

Comment 10 Sandro Bonazzola 2021-05-05 05:36:19 UTC
This bugzilla is included in oVirt 4.4.6 release, published on May 4th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.6 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.