Bug 1416147
Summary: | Version 3 of the API doesn't implement the 'testconnectivity' action of external providers | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Juan Hernández <juan.hernandez> |
Component: | RestAPI | Assignee: | Juan Hernández <juan.hernandez> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kubica <pkubica> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.0.6.3 | CC: | bugs, gklein |
Target Milestone: | ovirt-4.1.1 | Flags: | rule-engine:
ovirt-4.1+
rule-engine: planning_ack+ juan.hernandez: devel_ack+ pstehlik: testing_ack+ |
Target Release: | 4.1.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-04-21 09:32:06 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: |
Description
Juan Hernández
2017-01-24 17:05:37 UTC
Getting 404 Not Found ovirt-engine-restapi-4.1.0.3-0.1.el7.noarch Fix wasn't included in the build. This missed the 4.1.0 build. It isn't relevant enough to justify an async release, so I am re-targeting to 4.1.1 and moving to MODIFIED. The verify this add an external provider, for example the oVirt Glance image provider, then find the identifier of the provider, available here: https://.../ovirt-engine/api/openstackimageproviders Then send the request to execute the 'testconnectivity' action: ---8<--- #!/bin/bash -ex url="https://engine42.example.com/ovirt-engine/api" user="admin@internal" password="..." provider_id="..." curl \ --verbose \ --cacert "/etc/pki/ovirt-engine/ca.pem" \ --request POST \ --header "Version: 3" \ --header "Accept: application/xml" \ --header "Content-Type: application/xml" \ --user "${user}:${password}" \ --data ' <action/> ' \ "${url}/openstackimageproviders/${provider_id}/testconnectivity" --->8--- This should return a response like this: <action> <status>complete</status> </action> Or a fault, if the connectivity test fails: <fault> <detail>[Failed to communicate with the external provider, see log for additional details.]</detail> <reason>Operation Failed</reason> </fault> But it should never return a 404 HTTP code. If it does return that 404 code then the fix isn't working correctly. Verified in ovirt-engine-restapi-4.1.1-0.1.el7.noarch |