Error: "HTTP method not allowed" when configuring Content Hub Content Sources in multisite deployments
search cancel

Error: "HTTP method not allowed" when configuring Content Hub Content Sources in multisite deployments

book

Article ID: 371719

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Multisite VMware Cloud Director (VCD) environment recently upgraded or configured.
  • Configuring Content Hub Content Source works for one VCD site in the Provider portal in Content Hub > Content Sources for both VMware Marketplace and Helm Chart Repository.
  • Configuring Content Hub Content Sources on the second VCD site fails with the HTTP method not allowed error in the Provider portal in Content Hub > Content Sources for both VMware Marketplace and Helm Chart Repository
  • Tenants do not have any issues adding an Application Image from the Content Source to a Catalog.
  • Only Providers are affected.
  • Public Addresses uses the same FQDN for web and API.
  • Error is seen irrespective of the browser used.
  • The browser developer console network tab shows a 405 Method Not Allowed response for a GET /cloudapi/1.0.0/catalogContentSources/urn:vcloud:catalogContentSource:########-####-####-####-############ API request for the remote site:

    {"minorErrorCode":"METHOD_NOT_ALLOWED","message":"HTTP method not allowed","stackTrace":"com.vmware.vcloud.api.rest.toolkit.exceptions.MethodNotAllowedRestApiException: HTTP method not allowed\n\tat com.vmware.vcloud.api.rest.providers.filters.RestApiRequestVersionCompatibilityFilter.filter(RestApiRequestVersionCompatibilityFilter.java:90)\n\tat ... com.vmware.vcloud.security.web.MultisiteAuthContextFilter.doFilter(MultisiteAuthContextFilter.java:80)\n\tat

Environment

  • VMware Cloud Director 10.6.x
  • VMware Cloud Director 10.5.x

Cause

This issue is caused by an issue with the API version used by the VCD UI to query the Content Sources in remote sites.

Resolution

This issue is under review with VMware Engineering. Subscribe to receive an email when the article is updated.

Workaround

To workaround the issue the VCD OpenAPI can be used to manage Content Hub Content Sources instead of the VCD UI.
NOTE: After adding a Content Hub Content Source to a site, all other sites will begin to encounter the HTTP method not allowed error in the VCD UI.
Details of all the VCD OpenAPIs to manage Content Sources are available in the documentation, Catalog Content Sources APIs.

For more detailed example steps see How to create and configure a VMware Marketplace Resource using the Cloud Director OpenAPI.

Alternatively if multisite is not required the Site Association can be deleted from the affected sites as this issue only affects multisite configurations.