Bug 1086310 - iSCSI portal saved as IP and not FQDN in DB
Summary: iSCSI portal saved as IP and not FQDN in DB
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Idan Shaby
QA Contact: Ori Gofen
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-10 15:14 UTC by Jake Hunsaker
Modified: 2022-07-13 08:04 UTC (History)
11 users (show)

Fixed In Version: org.ovirt.engine-root-3.5.0-20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-19 07:36:02 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-47629 0 None None None 2022-07-13 08:04:23 UTC
oVirt gerrit 34412 0 master MERGED core: Store iSCSI Target Address instead of IP Address in DB 2020-12-02 08:24:50 UTC
oVirt gerrit 34805 0 ovirt-engine-3.5 MERGED core: Store iSCSI Target Address instead of IP Address in DB 2020-12-02 08:24:50 UTC
oVirt gerrit 35291 0 master MERGED Revert "core: Store iSCSI Target Address instead of IP Address in DB" 2020-12-02 08:24:50 UTC
oVirt gerrit 35295 0 ovirt-engine-3.5 MERGED Revert "core: Store iSCSI Target Address instead of IP Address in DB" 2020-12-02 08:24:50 UTC

Description Jake Hunsaker 2014-04-10 15:14:41 UTC
Description of problem:

The portal for iSCSI targets is saved in the DB as an IP address, rather than FQDN if the FQDN if used to discover the targets

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

rhevm-3.3.0

How reproducible:
Always


Steps to Reproduce:
1. Add an iscsi target as a storage domain using the FQDN to discover the targets
2. Check the storage_server_connections table in the DB (connection column)
3.

Actual results:

'connection' column is entered as the IP address of the FQDN at the time it is added.

Expected results:
The FQDN should be entered

Additional info:

I realize 99% of deployments will be, and our recommendation is to be, a static IP on the targets but this (the FQDN -> IP entry in the DB) seems a bit of an oversight. In instances where a non-static IP is being used and the IP changes, or if infrastructure changes cause a change of IP for the targets, the storage domains to become inactive and all VMs using those targets to pause.

Comment 1 Idan Shaby 2014-11-18 16:04:43 UTC
I added a patch that reverts the first one.
The idea of working with the original address we get from the user instead of the IP address we get from VDSM works fine in case that the iscsi server has only one NIC. When it has more than one (Multipath, for example) the VDSM sends all the addresses it discovered, and we override all of them with the original address we got from the user. This makes the login to all of the other targets fail (except for the first one).
Thus, working with the original address is not possible.

Comment 2 Allon Mureinik 2014-11-18 17:29:45 UTC
Removing doctext, as the proposed patch was reverted.

Comment 4 Idan Shaby 2015-08-19 07:36:02 UTC
Since a storage server should always be stable, I see no reason for a customer to use a non static ip for it. Thus, the whole idea of the ip changing and the storage server not functioning because of it unless using a DSN name is irrelevant.


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