cloudbuilders/devstack — Issue #73: running exercise.sh after stack.sh in jenkins oddness..
Author: anotherjesse
Created: 2011-10-16 01:57:18+00:00
State: open

I'm not sure what I'm doing to cause this but I run build_lxc.sh then run exercise.sh with some variables set and cuase oddness in the keystone request (check out the body):

expected body:

REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "password"}}}

actual:

REQ BODY: {"passwordCredentials": {"username": "admin", "password": "password", "tenantId": "admin"}}

full log

+ export HOST=192.168.2.50
+ export USERNAME=admin
+ export PASSWORD=password
+ export TENANT=admin
+ ./exercise.sh
+ HOST=192.168.2.50
+ export NOVA_PROJECT_ID=admin
+ NOVA_PROJECT_ID=admin
+ export NOVA_USERNAME=admin
+ NOVA_USERNAME=admin
+ export NOVA_API_KEY=password
+ NOVA_API_KEY=password
+ export NOVA_URL=http://192.168.2.50:5000/v2.0/
+ NOVA_URL=http://192.168.2.50:5000/v2.0/
+ export NOVA_VERSION=1.1
+ NOVA_VERSION=1.1
+ export NOVA_REGION_NAME=RegionOne
+ NOVA_REGION_NAME=RegionOne
+ export NOVACLIENT_DEBUG=1
+ NOVACLIENT_DEBUG=1
++ curl -s -d '{"auth":{"passwordCredentials": {"username": "admin", "password": "password"}}}' -H 'Content-type: application/json' http://192.168.2.50:5000/v2.0/tokens
++ python -c 'import sys; import json; tok = json.loads(sys.stdin.read()); print tok['\''access'\'']['\''token'\'']['\''id'\''];'
+ TOKEN=8c2b1356-644b-4d03-a0f8-d8e06d5d0a02
+ nova list
REQ: curl -i http://192.168.2.50:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "User-Agent: python-novaclient"

REQ BODY: {"passwordCredentials": {"username": "admin", "password": "password", "tenantId": "admin"}}

RESP:{'date': 'Sun, 16 Oct 2011 01:39:25 GMT', 'status': '400', 'content-length': '60', 'content-type': 'application/json; charset=UTF-8'} {"badRequest": {"message": "Expecting auth", "code": "400"}}

Expecting auth (HTTP 400)
Build step 'Execute shell' marked build as failure
Finished: FAILURE