exercise.sh fails all three exercises

Bug #898843 reported by Jay Pipes
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Dean Troyer

Bug Description

Brand new, fresh install of devstack.

stack.sh completed successfully. I then ran ./exercise.sh:

stack@uberbox:~/devstack$ ./exercise.sh
=========================
Running euca
=========================
+++ dirname ./exercises/euca.sh
++ cd ./exercises/..
++ pwd
+ pushd /home/stack/devstack
~/devstack ~/devstack
+ source ./openrc
++ source ./stackrc
+++ NOVA_REPO=https://github.com/openstack/nova.git
+++ NOVA_BRANCH=master
+++ SWIFT_REPO=https://github.com/openstack/swift.git
+++ SWIFT_BRANCH=master
+++ SWIFT_KEYSTONE_REPO=https://github.com/cloudbuilders/swift-keystone2.git
+++ SWIFT_KEYSTONE_BRANCH=master
+++ GLANCE_REPO=https://github.com/openstack/glance.git
+++ GLANCE_BRANCH=master
+++ KEYSTONE_REPO=https://github.com/openstack/keystone.git
+++ KEYSTONE_BRANCH=stable/diablo
+++ NOVNC_REPO=https://github.com/cloudbuilders/noVNC.git
+++ NOVNC_BRANCH=master
+++ HORIZON_REPO=https://github.com/openstack/horizon.git
+++ HORIZON_BRANCH=master
+++ NOVACLIENT_REPO=https://github.com/openstack/python-novaclient.git
+++ NOVACLIENT_BRANCH=master
+++ OPENSTACKX_REPO=https://github.com/cloudbuilders/openstackx.git
+++ OPENSTACKX_BRANCH=master
+++ QUANTUM_REPO=https://github.com/openstack/quantum
+++ QUANTUM_BRANCH=master
+++ CITEST_REPO=https://github.com/openstack/tempest.git
+++ CITEST_BRANCH=master
+++ IMAGE_URLS=http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-11.2_2.6.35-15_1.tar.gz
+++ '[' -f ./localrc ']'
+++ source ./localrc
++++ MYSQL_PASSWORD=697a311a76c5189e21c1
++++ RABBIT_PASSWORD=80b35cbbcc0d3695c48d
++++ SERVICE_TOKEN=cfbd842fdb38da3ea9fc
++++ ADMIN_PASSWORD=223eae6b322590d7c090
++ HOST_IP=127.0.0.1
++ export NOVA_PROJECT_ID=demo
++ NOVA_PROJECT_ID=demo
++ export NOVA_USERNAME=stack
++ NOVA_USERNAME=stack
++ export NOVA_PASSWORD=223eae6b322590d7c090
++ NOVA_PASSWORD=223eae6b322590d7c090
++ export NOVA_URL=http://127.0.0.1:5000/v2.0/
++ NOVA_URL=http://127.0.0.1:5000/v2.0/
++ export NOVA_VERSION=1.1
++ NOVA_VERSION=1.1
++ export NOVA_REGION_NAME=RegionOne
++ NOVA_REGION_NAME=RegionOne
++ export EC2_URL=http://127.0.0.1:8773/services/Cloud
++ EC2_URL=http://127.0.0.1:8773/services/Cloud
++ export EC2_ACCESS_KEY=stack
++ EC2_ACCESS_KEY=stack
++ export EC2_SECRET_KEY=223eae6b322590d7c090
++ EC2_SECRET_KEY=223eae6b322590d7c090
++ export BOOT_TIMEOUT=15
++ BOOT_TIMEOUT=15
++ export ACTIVE_TIMEOUT=10
++ ACTIVE_TIMEOUT=10
++ export RUNNING_TIMEOUT=25
++ RUNNING_TIMEOUT=25
++ export ASSOCIATE_TIMEOUT=10
++ ASSOCIATE_TIMEOUT=10
+ popd
~/devstack
++ euca-describe-images
++ grep machine
++ cut -f2
++ head -n1
+ IMAGE=
++ euca-run-instances
++ grep INSTANCE
++ cut -f2
+ INSTANCE=
+ timeout 25 sh -c 'while euca-describe-instances | grep -q running; do sleep 1; done'
+ euca-terminate-instances
Terminates the specified instances.

euca-terminate-instances [-a, --access-key <access_key> ][-s, --secret-key
                          <secret_key> ][--config <config_path>
                          ][--debug][--debugger][-h, --help][--region
                          <region_name> ][-U, --url <url> ][--version][--euca-
                          auth] instance_id

REQUIRED PARAMETERS
    instance_id unique identifier for instance to terminate

OPTIONAL PARAMETERS
    -a,--access-key User's Access Key ID.
    -s,--secret-key User's Secret Key.
    --config Read credentials and cloud settings
                                  from the specified config file (defaults to
                                  $HOME/.eucarc or /etc/euca2ools/eucarc).
    --debug Turn on debugging output.
    --debugger Enable interactive debugger on error
    -h,--help Display this help message.
    --region region to direct requests to
    -U,--url URL of the Cloud to connect to.
    --version Display the version of this tool.
    --euca-auth Use NC authentication mode
Argument (instance_id) was not provided
=========================
Running floating_ips
=========================
+++ dirname ./exercises/floating_ips.sh
++ cd ./exercises/..
++ pwd
+ pushd /home/stack/devstack
~/devstack ~/devstack
+ source ./openrc
++ source ./stackrc
+++ NOVA_REPO=https://github.com/openstack/nova.git
+++ NOVA_BRANCH=master
+++ SWIFT_REPO=https://github.com/openstack/swift.git
+++ SWIFT_BRANCH=master
+++ SWIFT_KEYSTONE_REPO=https://github.com/cloudbuilders/swift-keystone2.git
+++ SWIFT_KEYSTONE_BRANCH=master
+++ GLANCE_REPO=https://github.com/openstack/glance.git
+++ GLANCE_BRANCH=master
+++ KEYSTONE_REPO=https://github.com/openstack/keystone.git
+++ KEYSTONE_BRANCH=stable/diablo
+++ NOVNC_REPO=https://github.com/cloudbuilders/noVNC.git
+++ NOVNC_BRANCH=master
+++ HORIZON_REPO=https://github.com/openstack/horizon.git
+++ HORIZON_BRANCH=master
+++ NOVACLIENT_REPO=https://github.com/openstack/python-novaclient.git
+++ NOVACLIENT_BRANCH=master
+++ OPENSTACKX_REPO=https://github.com/cloudbuilders/openstackx.git
+++ OPENSTACKX_BRANCH=master
+++ QUANTUM_REPO=https://github.com/openstack/quantum
+++ QUANTUM_BRANCH=master
+++ CITEST_REPO=https://github.com/openstack/tempest.git
+++ CITEST_BRANCH=master
+++ IMAGE_URLS=http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-11.2_2.6.35-15_1.tar.gz
+++ '[' -f ./localrc ']'
+++ source ./localrc
++++ MYSQL_PASSWORD=697a311a76c5189e21c1
++++ RABBIT_PASSWORD=80b35cbbcc0d3695c48d
++++ SERVICE_TOKEN=cfbd842fdb38da3ea9fc
++++ ADMIN_PASSWORD=223eae6b322590d7c090
++ HOST_IP=127.0.0.1
++ export NOVA_PROJECT_ID=demo
++ NOVA_PROJECT_ID=demo
++ export NOVA_USERNAME=stack
++ NOVA_USERNAME=stack
++ export NOVA_PASSWORD=223eae6b322590d7c090
++ NOVA_PASSWORD=223eae6b322590d7c090
++ export NOVA_URL=http://127.0.0.1:5000/v2.0/
++ NOVA_URL=http://127.0.0.1:5000/v2.0/
++ export NOVA_VERSION=1.1
++ NOVA_VERSION=1.1
++ export NOVA_REGION_NAME=RegionOne
++ NOVA_REGION_NAME=RegionOne
++ export EC2_URL=http://127.0.0.1:8773/services/Cloud
++ EC2_URL=http://127.0.0.1:8773/services/Cloud
++ export EC2_ACCESS_KEY=stack
++ EC2_ACCESS_KEY=stack
++ export EC2_SECRET_KEY=223eae6b322590d7c090
++ EC2_SECRET_KEY=223eae6b322590d7c090
++ export BOOT_TIMEOUT=15
++ BOOT_TIMEOUT=15
++ export ACTIVE_TIMEOUT=10
++ ACTIVE_TIMEOUT=10
++ export RUNNING_TIMEOUT=25
++ RUNNING_TIMEOUT=25
++ export ASSOCIATE_TIMEOUT=10
++ ASSOCIATE_TIMEOUT=10
+ popd
~/devstack
++ curl -s -d '{"auth":{"passwordCredentials": {"username": "stack", "password": "223eae6b322590d7c090"}}}' -H 'Content-type: application/json' http://127.0.0.1:5000/v2.0/tokens
++ python -c 'import sys; import json; tok = json.loads(sys.stdin.read()); print tok['\''access'\'']['\''token'\'']['\''id'\''];'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
KeyError: 'access'
+ TOKEN=
=========================
Running swift
=========================
+++ dirname ./exercises/swift.sh
++ cd ./exercises/..
++ pwd
+ pushd /home/stack/devstack
~/devstack ~/devstack
+ source ./openrc
++ source ./stackrc
+++ NOVA_REPO=https://github.com/openstack/nova.git
+++ NOVA_BRANCH=master
+++ SWIFT_REPO=https://github.com/openstack/swift.git
+++ SWIFT_BRANCH=master
+++ SWIFT_KEYSTONE_REPO=https://github.com/cloudbuilders/swift-keystone2.git
+++ SWIFT_KEYSTONE_BRANCH=master
+++ GLANCE_REPO=https://github.com/openstack/glance.git
+++ GLANCE_BRANCH=master
+++ KEYSTONE_REPO=https://github.com/openstack/keystone.git
+++ KEYSTONE_BRANCH=stable/diablo
+++ NOVNC_REPO=https://github.com/cloudbuilders/noVNC.git
+++ NOVNC_BRANCH=master
+++ HORIZON_REPO=https://github.com/openstack/horizon.git
+++ HORIZON_BRANCH=master
+++ NOVACLIENT_REPO=https://github.com/openstack/python-novaclient.git
+++ NOVACLIENT_BRANCH=master
+++ OPENSTACKX_REPO=https://github.com/cloudbuilders/openstackx.git
+++ OPENSTACKX_BRANCH=master
+++ QUANTUM_REPO=https://github.com/openstack/quantum
+++ QUANTUM_BRANCH=master
+++ CITEST_REPO=https://github.com/openstack/tempest.git
+++ CITEST_BRANCH=master
+++ IMAGE_URLS=http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-amd64-11.2_2.6.35-15_1.tar.gz
+++ '[' -f ./localrc ']'
+++ source ./localrc
++++ MYSQL_PASSWORD=697a311a76c5189e21c1
++++ RABBIT_PASSWORD=80b35cbbcc0d3695c48d
++++ SERVICE_TOKEN=cfbd842fdb38da3ea9fc
++++ ADMIN_PASSWORD=223eae6b322590d7c090
++ HOST_IP=127.0.0.1
++ export NOVA_PROJECT_ID=demo
++ NOVA_PROJECT_ID=demo
++ export NOVA_USERNAME=stack
++ NOVA_USERNAME=stack
++ export NOVA_PASSWORD=223eae6b322590d7c090
++ NOVA_PASSWORD=223eae6b322590d7c090
++ export NOVA_URL=http://127.0.0.1:5000/v2.0/
++ NOVA_URL=http://127.0.0.1:5000/v2.0/
++ export NOVA_VERSION=1.1
++ NOVA_VERSION=1.1
++ export NOVA_REGION_NAME=RegionOne
++ NOVA_REGION_NAME=RegionOne
++ export EC2_URL=http://127.0.0.1:8773/services/Cloud
++ EC2_URL=http://127.0.0.1:8773/services/Cloud
++ export EC2_ACCESS_KEY=stack
++ EC2_ACCESS_KEY=stack
++ export EC2_SECRET_KEY=223eae6b322590d7c090
++ EC2_SECRET_KEY=223eae6b322590d7c090
++ export BOOT_TIMEOUT=15
++ BOOT_TIMEOUT=15
++ export ACTIVE_TIMEOUT=10
++ ACTIVE_TIMEOUT=10
++ export RUNNING_TIMEOUT=25
++ RUNNING_TIMEOUT=25
++ export ASSOCIATE_TIMEOUT=10
++ ASSOCIATE_TIMEOUT=10
+ popd
~/devstack
+ swift --auth-version 2 -A http://127.0.0.1:5000/v2.0 -U admin -K 223eae6b322590d7c090 stat
./exercises/swift.sh: line 27: swift: command not found
=========================
=========================
FAILED euca
FAILED floating_ips
FAILED swift

Am I missing something?

-jay

Dean Troyer (dtroyer)
Changed in devstack:
status: New → In Progress
assignee: nobody → Dean Troyer (dtroyer)
Revision history for this message
Dean Troyer (dtroyer) wrote :

A good bit has changed since this was logged, I'll try to address these:

euca: failed because no images were found, likely a devstack issue getting glance populated. That has changed in the last month and defaults to the cirros images now.

floating_ips: looks like keystone didn't return the correct json. Again, much has been improved in the keystone intgegration.

swift: was 'swift' in the ENABLED_SERVICES? It isn't there by default; to skip the swift test, set SKIP_EXERCISES=swift in localrc or add 'swift' to ENABLED_SERVICES.

Does this sufficiently address the issues?

Revision history for this message
Jay Pipes (jaypipes) wrote :

Hi Dean, agreed much has changed in the few weeks since I submitted. I will retry with updated devstack and OS core projects when I return home to my test machine... till then, I've marked this Incomplete. Thanks!

Changed in devstack:
status: In Progress → Incomplete
Dean Troyer (dtroyer)
Changed in devstack:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.