Software Defined Networking
1756986 Members
3526 Online
108858 Solutions
New Discussion

New HP Van 2.3.5 install: script to configure keystone tenant fails

 
panluowei
Advisor

New HP Van 2.3.5 install: script to configure keystone tenant fails

When following the installation guide for a new HP VAN 2.3.5 install...

 

Using the script from section 3.3, the tenant create command fails as demostrated below:

 

# tenant=$(curl --header "X-AUTH-Token:ADMIN" --header "Content-Type:application/json" -ksS --data-binary {"tenant":{"name":"sdn"}} "http://127.0.0.1:35357/v2.0/tenants")

# echo $tenant

{"error": {"message": "Expecting to find valid JSON in request body. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.", "code": 400, "title": "Bad Request"}}

BTW, you don't see the error without troubleshooting. The rest of the install works as described. You won't realize there is an error until you try to log in to the SDN Controller Console - you will always get "invalid user & password combination specified!"

 

This install was on a fresh Unbuntu 14.04

 

 

3 REPLIES 3
Gerhard Roets
Esteemed Contributor

Re: New HP Van 2.3.5 install: script to configure keystone tenant fails

Hi Panluowei

 

Item 1 : The controller currently only support Ubuntu 12.04 LTS. Please be sure to use this version and not 14.04

 

Item 2: You most likely have an http proxy configure check the output of the following

 

I put the commands inline with a smaple output and made the commands bold

 

stack@ubuntu:~/devstack$ env | grep http_proxy
http_proxy=http://my-proxy.gpr.local:8088


stack@ubuntu:~/devstack$ unset http_proxy

 

stack@ubuntu:~/devstack$ env | grep http_proxy

 

Now you should be able to run the script.

 

Kind Regards

Gerhard

 HP SDN TEAM

panluowei
Advisor

Re: New HP Van 2.3.5 install: script to configure keystone tenant fails

 

Gerhard,

 

Thanks, I'll try another install with Ubuntu 12.

 

BTW, I tried a fresh install (still Ubuntu 14) and the tenant script (step 2.2.2 in the guide) does work if run after installing the controller (step 2.3 in the guide).

 

 

Re: New HP Van 2.3.5 install: script to configure keystone tenant fails

Hi!

 

I have installed the VANN SDN Controller in September and remember that the script failed at my first try. I figured out that if you use the example from the Installation Guide by copy and paste there are some syntax problems. After correction the script run without any problems. 

 

I have appended this file for you...

 

I have installed on a Ubuntu Server ubuntu-12.04.3-server-amd64.iso

 

Cheers!

Andreas