Bug 1964302 - HE deployment via cockpit fails to retrieve iSCSI target list
Summary: HE deployment via cockpit fails to retrieve iSCSI target list
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: cockpit-ovirt
Version: 4.4.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Aviv Turgeman
QA Contact: Guilherme Santos
URL:
Whiteboard:
: 2006766 2022541 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-25 07:17 UTC by Asaf Rachmani
Modified: 2022-02-17 17:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-26 17:55:37 UTC
oVirt Team: UX
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
iscsi_port_issue (62.59 KB, image/png)
2021-05-25 07:19 UTC, Asaf Rachmani
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 114827 0 master ABANDONED storage: Change otopi_iscsi_targets variable structure 2022-01-12 07:58:28 UTC

Description Asaf Rachmani 2021-05-25 07:17:54 UTC
Description of problem:
HE deployment via cockpit always uses the default iSCSI port (3260) for iSCSI discovery, even when changing it.


Version-Release number of selected component (if applicable):
cockpit-ovirt-dashboard-0.15.0-1.el8ev.noarch
rhvh-4.4.6.1-0.20210505.0+1

How reproducible:
100%

Steps to Reproduce:
1. Run hosted-engine deployment via cockpit
2. In the storage section choose iSCSI, change the port
3. Click on "Retrieve Target List"

Actual results:
Find targets in the default port

Expected results:
Find targets in the chosen port

Additional info:
Works fine from CLI.

/var/lib/ovirt-hosted-engine-setup/cockpit/ansibleVarFileYMoS4U.var:

he_filtered_tokens_vars: ['ADMIN_PASSWORD','APPLIANCE_PASSWORD','ISCSI_PASSWORD','ISCSI_DISCOVER_PASSWORD','ROOTPWD','he_appliance_password','he_admin_password','he_iscsi_password','he_iscsi_discover_password','ansible_ssh_pass']
he_filtered_tokens_re: ['BEGIN PRIVATE KEY(?P<filter>.*)END PRIVATE KEY']
he_iscsi_discover_username: null
he_iscsi_portal_addr: 192.168.155.231
he_iscsi_portal_port: 
he_fqdn: re-engine.asrachmani.com
he_host_name: ds4460505.asrachmani.com

ovirt-hosted-engine-setup iscsi discover log:

2021-05-25 06:35:20,413+0000 DEBUG var changed: host "localhost" var "he_iscsi_discover_username" type "<class 'NoneType'>" value: "null"
2021-05-25 06:35:20,413+0000 DEBUG var changed: host "localhost" var "he_iscsi_portal_addr" type "<class 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""192.168.155.231""
2021-05-25 06:35:20,413+0000 DEBUG var changed: host "localhost" var "he_iscsi_portal_port" type "<class 'NoneType'>" value: "null"
2021-05-25 06:35:20,413+0000 DEBUG var changed: host "localhost" var "he_fqdn" type "<class 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""re-engine.asrachmani.com""
2021-05-25 06:35:20,413+0000 DEBUG var changed: host "localhost" var "he_host_name" type "<class 'ansible.parsing.yaml.objects.AnsibleUnicode'>" value: ""ds4460505.asrachmani.com""

Comment 1 Asaf Rachmani 2021-05-25 07:19:41 UTC
Created attachment 1786745 [details]
iscsi_port_issue

Comment 2 Asaf Rachmani 2021-05-25 07:54:04 UTC
Right now, HE deployment uses REST API for iSCSI discovery,
When changing it to use ovirt_host ansible module (bug 1922748 and requires [1][2][3]), the deployment from cockpit-ovirt fails with the following error:

"msg": "int() argument must be a string, a bytes-like object or a number, not 'NoneType'"

[1] https://github.com/oVirt/ovirt-ansible-collection/pull/275
[2] https://gerrit.ovirt.org/#/c/ovirt-hosted-engine-setup/+/114826/
[3] https://gerrit.ovirt.org/#/c/cockpit-ovirt/+/114827/

Comment 3 Asaf Rachmani 2021-06-14 07:41:06 UTC
[1] is required anyway, please use it when fixing this bug.

[1] https://gerrit.ovirt.org/#/c/cockpit-ovirt/+/114827/

Comment 4 Asaf Rachmani 2021-10-03 11:08:39 UTC
*** Bug 2006766 has been marked as a duplicate of this bug. ***

Comment 5 Asaf Rachmani 2021-11-14 13:44:55 UTC
*** Bug 2022541 has been marked as a duplicate of this bug. ***

Comment 6 Sharon Gratch 2022-01-26 17:55:37 UTC
Installing hosted engine using the cockpit web interface is deprecated for 4.5. Since this issue works fine using the command line (as mentioned in comment 0), then we will close this bug as DEFERRED.


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