Are you using proxy?
Check that all hosts can discover and login with the same parameters you set in
oVirt.
Best Regards,
Strahil Nikolov
На 17 юни 2020 г. 11:32:49 GMT+03:00, Ricardo Alonso
написа:
>Trying to connect to a an iSCSI target (no chap/secrets) is failing
>with the message:
>
>2020-06-17 05:25:40,050-0300 ERROR ansible failed {
>"ansible_host": "localhost",
>"ansible_playbook":
>"/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml",
>"ansible_result": {
>"_ansible_no_log": false,
>"changed": false,
>"connection": "close",
>"content": "{\n \"detail\" : \"For correct usage, see:
>https://ovirt./ovirt-engine/apidoc#services/host/methods/iscsi_discover\",\n
> \"reason\" : \"Request syntactically incorrect.\"\n}",
>"content_encoding": "identity",
>"content_type": "application/json",
>"correlation_id": "a5ba94a7-b22b-4ed6-9a47-87a87186c341",
>"date": "Wed, 17 Jun 2020 08:25:38 GMT",
>"elapsed": 0,
>"invocation": {
>"module_args": {
>"attributes": null,
>"backup": null,
>"body": "{\"iscsi\": {\"address\": \"192.168.6.1\", \"port\":
>\"3260,3260\", \"username\": null, \"password\": \"\"}}",
>"body_format": "json",
>"client_cert": null,
>"client_key": null,
>"content": null,
>"creates": null,
>"delimiter": null,
>"dest": null,
>"directory_mode": null,
>"follow": false,
>"follow_redirects": "safe",
>"force": false,
>"force_basic_auth": false,
>"group": null,
>"headers": {
>"Accept": "application/json",
> "Authorization": "Basic YWRtaW5AaW50ZXJuYWw6cGQyMDAx",
>"Content-Type": "application/json"
>},
>"http_agent": "ansible-httpget",
>"method": "POST",
>"mode": null,
>"owner": null,
>"regexp": null,
>"remote_src": null,
>"removes": null,
>"return_content": true,
>"selevel": null,
>"serole": null,
>"setype": null,
>"seuser": null,
>"src": null,
>"status_code": [
>"200"
>],
>"timeout": 30,
>"unix_socket": null,
>"unsafe_writes": null,
>"url":
>"https://ovirt./ovirt-engine/api/hosts/2c173b7f-9f9e-4046-890a-ab16d1babc35/iscsidiscover",
>"url_password": null,
>"url_username": null,
>"use_proxy": true,
>"validate_certs": false
>}
>},
>"json": {
>"detail": "For correct usage, see:
>https://ovirt./ovirt-engine/apidoc#services/host/methods/iscsi_discover",
>"reason": "Request syntactically incorrect."
>},
>"msg": "Status code was 400 and not [200]: HTTP Error 400: Bad
>Request",
>"redirected": false,
>"server": "Apache/2.4.37 (centos) OpenSSL/1.1.1c mod_wsgi/4.6.4
>Python/3.6",
>"status": 400,
>"transfer_encoding": "chunked",
>"url":
>"https://ovirt./ovirt-engine/api/hosts/2c173b7f-9f9e-4046-890a-ab16d1babc35/iscsidiscover"
>},
>"ansible_task": "iSCSI discover with REST API",
>"ansible_type": "task",
>"status": "FAILED",
>"task_duration": 4
>}
>
>I found this old bug, but doesn't seams to have a resolution. Any
>clue/tips?
>___
>Users mailing list -- users@ovirt.org
>To unsubscribe send an email to users-le...@ovirt.org
>Privacy Statement: https://www.ovirt.org/privacy-policy.html
>oVirt Code of Conduct:
>https://www.ovirt.org/community/about/community-guidelines/
>List Archives:
>https://lists.ovirt.org/archives/list/users@ovirt.org/message/ONVH6LBKTXGCMIH3CKN6XQJSDM2M7HZZ/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ETYRWDYIPF7IB6GK7DLQXMW2KG7IEMDI/