Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation failed: Unexpected response returned from system Invalid API version requested #893

Open
kiranjagadesh opened this issue Dec 14, 2023 · 8 comments
Assignees

Comments

@kiranjagadesh
Copy link

Hi @agrare,

We are unable to validate the VMware Cloud connection; it triggers an error validation issue for the API.

We have a vCloud Api version using 10.5.1, but the Managiq Api drop-down list shows only the 9.0 version.

Error Message:

Validation failed: Unexpected response returned from system: The request has invalid accept header: Invalid API version requested. Supported API versions are: [39.0.0-alpha, 38.0, 37.2, 37.1, 37.0, 36.3 [D], 36.2 [D], 36.1 [D], 36.0 [D], 35.2 [D], 35.0 [D]] ([D] indicates deprecated versions)

image

Kindly help us to resolve this issue.

@Fryguy
Copy link
Member

Fryguy commented Dec 14, 2023

@agrare Please take a look when you have a chance.

@kiranjagadesh
Copy link
Author

Hi,

Is there an update on this?

@agrare
Copy link
Member

agrare commented Dec 19, 2023

Hi sorry @kiranjagadesh I've been on pto, we're going to need your help testing this one out since we don't have a vCloud Director system to test with.

The API version dropdown is here https://github.com/ManageIQ/manageiq-providers-vmware/blob/master/app/models/manageiq/providers/vmware/cloud_manager.rb#L52-L70
If you're running on an appliance you can edit this by doing:

cd /var/www/miq/vmdb
vi $(bundle show manageiq-providers-vmware)/app/models/manageiq/providers/vmware/cloud_manager.rb

And adding these two entries to the array:

            {
              :label => 'vCloud API 10.4',
              :value => '37.0'
            },
            {
              :label => 'vCloud API 10.5',
              :value => '38.0'
            }

So that the whole options array looks like this:

:options      => [
            {
              :label => 'vCloud API 5.1',
              :value => '5.1',
            },
            {
              :label => 'vCloud API 5.5',
              :value => '5.5',
            },
            {
              :label => 'vCloud API 5.6',
              :value => '5.6',
            },
            {
              :label => 'vCloud API 9.0',
              :value => '9.0',
            },
            {
              :label => 'vCloud API 10.4',
              :value => '37.0'
            },
            {
              :label => 'vCloud API 10.5',
              :value => '38.0'
            }
          ]

Then save that and restart evmserverd by running systemctl restart evmserverd.service

@agrare
Copy link
Member

agrare commented Dec 19, 2023

(NOTE I don't think this is a bug exactly, we never supported vCloud v10 so this would be an enhancement but a great one)

@agrare
Copy link
Member

agrare commented Dec 20, 2023

Closing #891 in favor of this one, only because I already replied.

@miq-bot
Copy link
Member

miq-bot commented Apr 1, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

2 similar comments
@miq-bot
Copy link
Member

miq-bot commented Jul 8, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

@miq-bot
Copy link
Member

miq-bot commented Oct 14, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants