[chef] Re: Re: Chef Vcloud 404 error


Chronological Thread 
  • From: Karthik Jayaraman < >
  • To:
  • Subject: [chef] Re: Re: Chef Vcloud 404 error
  • Date: Mon, 9 Jun 2014 11:06:29 -0700

Hi Marco,

Thanks for the prompt response.

I tried "https://yourvcloud.server.url/api/versions" but landed up in error as follows :

java.lang.IllegalArgumentException: Error parsing media type 'text/html,application/xhtml+xml,image/webp,application/xml; q=0.9,*/*; q=0.8'

knife vc login - gives meĀ 

ERROR: RestClient::ResourceNotFound: 404 Resource Not Found

I also tried configuring URL in the VCloud director as mentioned in the following document but still get the same error.


Thanks.


On Sat, Jun 7, 2014 at 1:20 AM, Marco Betti < " target="_blank"> > wrote:

The url you have configured in your example could be too deep.
Usually you only have to specify vcloud director fqdn listening on https port, without any web-context.
In order to verify the correct url, you should try to list supported api versions from your vcloud director installation (you should receive an xml answer):
https://yourvcloud.server.url/api/versions

For previous example what has to be configured for knife-vcloud is just:
yourvcloud.server.url

You can try the configuration with:
knife vc login

If previous command gives a positive answer please read carefully knife-vcloud Readme for what concerns vcloud login configuration, IDs and names and verify what kind of account you are using:
- when a vcloud OU administrator, you have to specify --org-login parameter
- when a vcloud system administrator, you have to specify --org parameter (see "Browse multiple organizations")

Hope this helps.
Greetings,
Marco

I downloaded vcloud plugin from the URL
https://github.com/astratto/knife-vcloud and i setup the configuration using

knife vc configure command

and entered the details below:

URL - 'https://1.1.1.1/abc/cloud/org/abc-lab/'
username - 'karthik'
Password - abc

where 'abc-lab' is the organization name in the vcloud environment. Once the
configuration file is created, I gave the following command,

knife vc org list

and it returned 404 resource not found error. Any help appreciated.




Archive powered by MHonArc 2.6.16.

§