Error: "HTTP METHOD NOT ALLOWED" when configuring ContentHub in multisite setup
search cancel

Error: "HTTP METHOD NOT ALLOWED" when configuring ContentHub in multisite setup

book

Article ID: 371719

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Multisite Cloud Director environment recently upgraded or configured
  • Configuring ContentHub works for one site.
  • Configuring ContentHub on the second site fails with the "HTTP METHOD NOT ALLOWED" error. 
  • Tenants does not have any issues viewing the ContentHub or accessing them. 
  • Only Providers are affected.
  • Public Addresses uses the same FQDN for web and API.
  • Error is seen irrespective of the browser used
  • Stacktrace from browser logs:

    { "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 org.apache.cxf.jaxrs.utils.JAXRSUtils.runContainerRequestFilters(JAXRSUtils.java:1918)\n\tat org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:206)\n\tat

Environment

Cloud Director 10.5 and later.

Cause

This is a known issue identified in Cloud Director 10.5 versions and later. 

This is documented in the release notes available here

This issue is caused by the API version used in the backend code. Content Hub uses Alpha APIs and Alpha APIs do not work with Multisite in provider portal.

Resolution

This is resolved in a later release of Cloud Director. 

The workaround for the providers is to use the API to view and manage the ContentHub and its resources. This can be done via API Explorer or Postman.

The associated API list for the ContentHub management is available here

View ContentHub source: https://developer.broadcom.com/xapis/vmware-cloud-director-openapi/v38.0/cloudapi/1.0.0/catalogContentSources/catalogContentSourceId/get/

Create ContentHub source : https://developer.broadcom.com/xapis/vmware-cloud-director-openapi/v38.0/cloudapi/1.0.0/catalogContentSources/post/

 

Additional Information

To connect to VCD via API, please refer to the article 320526.