Bug 1599055
| Summary: | Storage connection validate fails: Error: Fault reason is "Incomplete parameters". Fault detail is "StorageConnection [type] required for add". HTTP response code is 400 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-ansible-collection | Reporter: | Elad <ebenahar> | ||||
| Component: | infra | Assignee: | Ondra Machacek <omachace> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Elad <ebenahar> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 1.1.5 | CC: | dfediuck, ebenahar, mperina, talayan | ||||
| Target Milestone: | ovirt-4.2.5 | Keywords: | Automation, Regression | ||||
| Target Release: | --- | Flags: | rule-engine:
ovirt-4.2+
rule-engine: blocker+ |
||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | ovirt-ansible-infra-1.1.7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-07-31 15:27:00 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Is this a regression from ansible 2.6.0? This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP. Martin: This doesn't happen with ansible 2.5.5 Please share the full logs. Created attachment 1457396 [details]
rhv-jenkins_job_rhv-ge-ansible-builder
Validation of storage connection using ansible 2.6.1 succeeds.
23:25:54 TASK [oVirt.infra/roles/oVirt.storages : Validate connections of storages] *****
23:25:55 ok: [hosted-engine-06.lab.eng.tlv2.redhat.com] => (item=[{u'warning_low_space_indicator': 10, u'supports_discard_zeroes_data': False, u'wipe_after_delete': False, u'href': u'/ovirt-engine/api/storagedomains/8921cfe3-c6df-418b-96e5-a4069845df31', u'committed': 0, u'vms': [], u'external_status': u'ok', u'data_centers': [{u'href': u'/ovirt-engine/api/datacenters/e3f7b61c-8f69-11e8-bfef-001a4a168bfc', u'id': u'e3f7b61c-8f69-11e8-bfef-001a4a168bfc'}], u'available': 4067334029312, u'id': u'8921cfe3-c6df-418b-96e5-a4069845df31', u'master': False, u'permissions': [{u'id': u'096b5a20-8f6a-11e8-999e-001a4a168bfc'}, {u'id': u'58ca605c-010d-0307-0224-0000000001a9'}], u'type': u'export', u'storage_format': u'v1', u'supports_discard': False, u'templates': [], u'used': 1032939634688, u'disk_snapshots': [], u'storage': {u'path': u'/nas01/ge_5_export', u'type': u'nfs', u'address': u'mantis-nfs-lif2.lab.eng.tlv2.redhat.com'}, u'discard_after_delete': False, u'disk_profiles': [], u'name': u'export_domain', u'critical_space_action_blocker': 5, u'disks': [], u'backup': False}, {u'id': u'43a18d61-51a7-45ad-81bc-3772ec41fe0f'}]) => {"changed": false, "id": "43a18d61-51a7-45ad-81bc-3772ec41fe0f", "item": [{"available": 4067334029312, "backup": false, "committed": 0, "critical_space_action_blocker": 5, "data_centers": [{"href": "/ovirt-engine/api/datacenters/e3f7b61c-8f69-11e8-bfef-001a4a168bfc", "id": "e3f7b61c-8f69-11e8-bfef-001a4a168bfc"}], "discard_after_delete": false, "disk_profiles": [], "disk_snapshots": [], "disks": [], "external_status": "ok", "href": "/ovirt-engine/api/storagedomains/8921cfe3-c6df-418b-96e5-a4069845df31", "id": "8921cfe3-c6df-418b-96e5-a4069845df31", "master": false, "name": "export_domain", "permissions": [{"id": "096b5a20-8f6a-11e8-999e-001a4a168bfc"}, {"id": "58ca605c-010d-0307-0224-0000000001a9"}], "storage": {"address": "mantis-nfs-lif2.lab.eng.tlv2.redhat.com", "path": "/nas01/ge_5_export", "type": "nfs"}, "storage_format": "v1", "supports_discard": false, "supports_discard_zeroes_data": false, "templates": [], "type": "export", "used": 1032939634688, "vms": [], "warning_low_space_indicator": 10, "wipe_after_delete": false}, {"id": "43a18d61-51a7-45ad-81bc-3772ec41fe0f"}], "storageconnection": {"address": "mantis-nfs-lif2.lab.eng.tlv2.redhat.com", "href": "/ovirt-engine/api/storageconnections/43a18d61-51a7-45ad-81bc-3772ec41fe0f", "id": "43a18d61-51a7-45ad-81bc-3772ec41fe0f", "path": "/nas01/ge_5_export", "type": "nfs"}}
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.5 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. |
Description of problem: An attempt to validate storage connection for a storage domain fails with HTTP code 400. Version-Release number of selected component (if applicable): oVirt.infra 1.1.5 ansible 2.6.1 rhvm-4.2.4.5-0.1.el7_3.noarch How reproducible: Always Steps to Reproduce: 1. Run task oVirt.infra/roles/oVirt.storages : Validate connections of storages Actual results: Storage connections validate fails while the storage domain exists and in active state: 12:46:20 An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Error: Fault reason is "Incomplete parameters". Fault detail is "StorageConnection [type] required for add". HTTP response code is 400. 12:46:20 failed: [storage-ge-he-02.scl.lab.tlv.redhat.com] (item=[{u'warning_low_space_indicator': 10, u'supports_discard_zeroes_data': False, u'wipe_after_delete': False, u'href': u'/ovirt-engine/api/storagedomains/a0528054-517d-49ff-95dc-9bdb2d54b91b', u'committed': 0, u'vms': [], u'external_status': u'ok', u'data_centers': [{u'href': u'/ovirt-engine/api/datacenters/478b1ad2-828d-11e8-adab-00163e7bd001', u'id': u'478b1ad2-828d-11e8-adab-00163e7bd001'}], u'available': 958851448832, u'id': u'a0528054-517d-49ff-95dc-9bdb2d54b91b', u'master': False, u'permissions': [{u'id': u'58ca605c-010d-0307-0224-0000000001a9'}, {u'id': u'6f50317e-828d-11e8-a26a-00163e7bd001'}], u'type': u'export', u'storage_format': u'v1', u'supports_discard': False, u'templates': [], u'used': 1239098064896, u'disk_snapshots': [], u'storage': {u'path': u'/Storage_NFS/export_domain_storage_local_ge12', u'type': u'nfs', u'address': u'yellow-vdsb.qa.lab.tlv.redhat.com'}, u'discard_after_delete': False, u'disk_profiles': [], u'name': u'export_domain', u'critical_space_action_blocker': 5, u'disks': [], u'backup': False}, {u'id': u'3c24d8f6-ae77-4d76-aef1-6f3f8805ffc7'}]) => {"changed": false, "item": [{"available": 958851448832, "backup": false, "committed": 0, "critical_space_action_blocker": 5, "data_centers": [{"href": "/ovirt-engine/api/datacenters/478b1ad2-828d-11e8-adab-00163e7bd001", "id": "478b1ad2-828d-11e8-adab-00163e7bd001"}], "discard_after_delete": false, "disk_profiles": [], "disk_snapshots": [], "disks": [], "external_status": "ok", "href": "/ovirt-engine/api/storagedomains/a0528054-517d-49ff-95dc-9bdb2d54b91b", "id": "a0528054-517d-49ff-95dc-9bdb2d54b91b", "master": false, "name": "export_domain", "permissions": [{"id": "58ca605c-010d-0307-0224-0000000001a9"}, {"id": "6f50317e-828d-11e8-a26a-00163e7bd001"}], "storage": {"address": "yellow-vdsb.qa.lab.tlv.redhat.com", "path": "/Storage_NFS/export_domain_storage_local_ge12", "type": "nfs"}, "storage_format": "v1", "supports_discard": false, "supports_discard_zeroes_data": false, "templates": [], "type": "export", "used": 1239098064896, "vms": [], "warning_low_space_indicator": 10, "wipe_after_delete": false}, {"id": "3c24d8f6-ae77-4d76-aef1-6f3f8805ffc7"}], "msg": "Fault reason is \"Incomplete parameters\". Fault detail is \"StorageConnection [type] required for add\". HTTP response code is 400."} Expected results: Successful storage connections validation Additional info: