Bug 1264777
| Summary: | [RFE] iscsi discover action returns only list of targets without the corresponding list of IP addresses | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Kobi Hakimi <khakimi> | ||||
| Component: | RestAPI | Assignee: | Ala Hino <ahino> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Raz Tamir <ratamir> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.6.0 | CC: | bugs, ishaby, khakimi, lsurette, rbalakri, Rhev-m-bugs, srevivo, tnisan, ykaul, ylavi | ||||
| Target Milestone: | --- | Keywords: | FutureFeature | ||||
| Target Release: | --- | Flags: | amureini:
ovirt-future?
rule-engine: planning_ack? amureini: devel_ack? rule-engine: testing_ack? |
||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Enhancement | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-05-31 05:10:31 UTC | 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: | |||||||
| Attachments: |
|
||||||
|
Description
Kobi Hakimi
2015-09-21 08:10:14 UTC
Kobi, why isn't this REF on oVirt? The discovered targets should be returned using a collection, and each element of the collection should return the relevant information:
<action>
...
<iscsi_targets>
<iscsi_target>
<name>iqn.1992-04.com.emc:cx.ckm00121000438.b7</name>
<address>10.35.160.107</address>
<port>3260</port>
</iscsi_target>
<iscsi_target>
<name>iqn.1992-04.com.emc:cx.ckm00121000438.b6</name>
<address>10.35.160.107</address>
<port>3260</port>
</iscsi_target>
...
</iscsi_targets>
</action>
The current returned data must be preserved in the 3.x branches for backwards compatibility, and should be removed in 4.0.
Alternatively we can implement a "/hosts/{host:id}/discoverediscsitargets" collection, returning the same kind of information. This is more restful, and it is what I prefer.
is it needed to clone to ovirt? (In reply to Kobi Hakimi from comment #3) > is it needed to clone to ovirt? This should be moved to oVirt, not cloned. Do we have target release for it? (In reply to Kobi Hakimi from comment #5) > Do we have target release for it? No. Idan, can you have a look and assess how much work should be done here? It was already implemented by Ala in Bug 1510860. Here's an example of how to use it: POST http://<engine_url>/ovirt-engine/api/hosts/6c06b1b0-cb75-47f3-9512-cd24ce6894f2/iscsidiscover <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <action> <discovered_targets> <iscsi_details> <address>10.35.146.129</address> <port>3260</port> <portal>10.35.146.129:3260,1</portal> <target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c00</target> </iscsi_details> <iscsi_details> <address>10.35.146.161</address> <port>3260</port> <portal>10.35.146.161:3260,1</portal> <target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c01</target> </iscsi_details> <iscsi_details> <address>10.35.146.193</address> <port>3260</port> <portal>10.35.146.193:3260,1</portal> <target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c04</target> </iscsi_details> <iscsi_details> <address>10.35.146.225</address> <port>3260</port> <portal>10.35.146.225:3260,1</portal> <target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c05</target> </iscsi_details> </discovered_targets> <iscsi> <address>10.35.146.129</address> </iscsi> <iscsi_targets> <iscsi_target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c00</iscsi_target> <iscsi_target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c01</iscsi_target> <iscsi_target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c04</iscsi_target> <iscsi_target>iqn.2008-05.com.xtremio:xio00153500071-514f0c50023f6c05</iscsi_target> </iscsi_targets> <status>complete</status> </action> *** This bug has been marked as a duplicate of bug 1510860 *** Forgot to mention an example of the request body:
<action>
<iscsi>
<address>10.35.146.129</address>
</iscsi>
</action>
|