excersises/aggregates.sh fails with multi host setup

Bug #1046222 reported by Mate Lakat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Mate Lakat

Bug Description

Running exercises/aggregates.sh fails with multi-host setup:

stack@DevStackOSDomU:~$ cd devstack/
stack@DevStackOSDomU:~/devstack$ . openrc admin
stack@DevStackOSDomU:~/devstack$ nova aggregate-list

stack@DevStackOSDomU:~/devstack$ nova host-list | grep compute
| DevStackComputeSlave | compute |
| DevStackOSDomU | compute |

stack@DevStackOSDomU:~/devstack$ exercises/aggregates.sh 2>&1 | tail -16
++ read data
+ HOST='DevStackComputeSlave
DevStackOSDomU'
+ nova aggregate-add-host 9 DevStackComputeSlave DevStackOSDomU
usage: nova [--version] [--debug] [--no-cache] [--timings]
            [--os-username <auth-user-name>] [--os-password <auth-password>]
            [--os-tenant-name <auth-tenant-name>] [--os-auth-url <auth-url>]
            [--os-region-name <region-name>] [--os-auth-system <auth-system>]
            [--service-type <service-type>] [--service-name <service-name>]
            [--volume-service-name <volume-service-name>]
            [--endpoint-type <endpoint-type>]
            [--os-compute-api-version <compute-api-ver>] [--insecure]
            [--bypass-url <bypass-url>]
            <subcommand> ...
error: unrecognized arguments: DevStackOSDomU
Try 'nova help ' for more information.

Mate Lakat (mate-lakat)
description: updated
description: updated
Mate Lakat (mate-lakat)
Changed in devstack:
assignee: nobody → Mate Lakat (mate-lakat)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/12402

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/12402
Committed: http://github.com/openstack-dev/devstack/commit/178b8402d962d629dbaffea8e2c454f391a16331
Submitter: Jenkins
Branch: master

commit 178b8402d962d629dbaffea8e2c454f391a16331
Author: Mate Lakat <email address hidden>
Date: Wed Sep 5 10:42:10 2012 +0100

    Fix aggregates test with multi host setup

    Fixes bug 1046222.

    The aggregate exercise assumed that you have only one compute node, thus
    it failed with syntax error for two hosts. With this fix, the exercise
    will pick the first compute host, and use that for the tests.

    Change-Id: I85d76552295d640e1a9d86fbbed781f15529d047

Changed in devstack:
status: In Progress → Fix Released
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.