ManageIQ / manageiq-providers-vmware

ManageIQ plugin for the VMware vSphere and vCloud providers.
Apache License 2.0
22 stars 70 forks source link

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

Open kiranjagadesh opened 9 months ago

kiranjagadesh commented 9 months ago

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 commented 9 months ago

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

kiranjagadesh commented 9 months ago

Hi,

Is there an update on this?

agrare commented 9 months ago

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 commented 9 months ago

(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 commented 9 months ago

Closing https://github.com/ManageIQ/manageiq-providers-vmware/issues/891 in favor of this one, only because I already replied.

miq-bot commented 6 months ago

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 commented 3 months ago

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.