Ask Your Question
2

Rally Fails Creating Interface on External Network

asked 2014-07-04 15:06:14 -0500

Nastooh gravatar image

Trying to run a simple boot and delete task through Rally, i.e. rally -v task start doc/samples/tasks/scenarios/nova/boot-and-delete.json --tag boot_del,
where doc/samples/tasks/scenarios/nova/boot-and-delete.json:

{
"NovaServers.boot_and_delete_server": [
    {
        "args": {
            "flavor": {
                "name": "m1.tiny"
            },
            "image": {
                "name": "cirros-0.3.1-x86_64-disk.img"
            },
        },
        "runner": {
            "type": "constant",
            "times": 1,
            "concurrency": 2
        },
        "context": {
            "users": {
                "tenants": 3,
                "users_per_tenant": 2
            }
        }
    }
]
}

However, I am getting the following error:

================================================================================
Task boot_del 921f771f-3883-4d8d-b8c7-64bc204f9a50 is started
--------------------------------------------------------------------------------
2014-07-04 19:56:31.361 15580 INFO rally.orchestrator.api [-] Benchmark Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 on Deployment 6ba21557-6fab-4e7b-b46b-05c6c3847e39
2014-07-04 19:56:31.362 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Check cloud.
2014-07-04 19:56:31.860 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Check cloud.
2014-07-04 19:56:31.860 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Task validation.
2014-07-04 19:56:31.966 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Task validation of scenarios names.
2014-07-04 19:56:31.969 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Task validation of scenarios names.
2014-07-04 19:56:31.970 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Task validation of syntax.
2014-07-04 19:56:31.973 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Task validation of syntax.
2014-07-04 19:56:31.974 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Task validation of semantic.
2014-07-04 19:56:31.974 15580 INFO rally.benchmark.context.users [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Enter context: `users`
2014-07-04 19:56:33.017 15580 INFO rally.benchmark.context.users [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Enter context: `users`
2014-07-04 19:56:33.943 15580 INFO rally.benchmark.context.users [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Exit context: `users`
2014-07-04 19:56:35.837 15580 INFO rally.benchmark.context.users [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Exit context: `users`
2014-07-04 19:56:35.837 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Task validation of semantic.
2014-07-04 19:56:35.837 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Task validation.
2014-07-04 19:56:35.837 15580 INFO rally.benchmark.engine [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Benchmarking.
2014-07-04 19:56:35.930 15580 INFO rally.benchmark.engine [-] Running benchmark with key: {'kw': {'runner': {'type': 'constant', 'concurrency': 2, 'times': 1}, 'args': {'flavor': {'name': 'm1.tiny'}, 'image': {'name': 'cirros-0.3.1-x86_64-disk.img'}}, 'context': {'users': {'users_per_tenant': 2, 'tenants': 3}}}, 'name': 'NovaServers.boot_and_delete_server', 'pos': 0}
2014-07-04 19:56:36.779 15580 INFO rally.benchmark.context.users [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Enter context: `users`
2014-07-04 19:56:41.747 15580 INFO rally.benchmark.context.users [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Enter context: `users`
2014-07-04 19:56:41.747 15580 INFO rally.benchmark.context.cleanup.cleanup [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Starting:  Enter context: `cleanup`
2014-07-04 19:56:41.747 15580 INFO rally.benchmark.context.cleanup.cleanup [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | Completed: Enter context: `cleanup`
2014-07-04 19:56:41.752 15736 INFO rally.benchmark.runners.base [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | ITER: 0 START
2014-07-04 19:56:42.273 15736 INFO rally.benchmark.runners.base [-] Task 921f771f-3883-4d8d-b8c7-64bc204f9a50 | ITER: 0 END: Error <class 'novaclient.exceptions.Forbidden'>: It is not allowed to create an interface on external network 8f4a94bb-4832-4746-808e-780953db2ff8 (HTTP 403) (Request-ID ...
(more)
edit retag flag offensive close merge delete

Comments

If below answer, works, please select it as answer and complete the workflow.

lafada gravatar imagelafada ( 2014-09-11 01:51:20 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
3

answered 2014-09-11 01:25:41 -0500

yong gravatar image

updated 2014-09-11 01:26:32 -0500

One solution: I encountered the same problem, and it seems the external network does not support instance launching on it, and one solution is to assign a (shared) network to rally in the boot-and-delete.json as following:

================================================================

{ "args": {

        "flavor": {
            "name": "m1.tiny"
        },
        "image": {
            "name": "cirros-0.3.1-x86_64-disk.img"
        },
       "nics":[{"net-id": "211a78db-b47b-4acd-92e4-5cd051283c61"}],//new line
   },

.... }

==============================================================

note: the network should be shared , you can create it with the network option under the Admin panel which is parallel with the Project panel. DO NOT use the network option under the Project panel, otherwise you will encounter this problem https://answers.launchpad.net/rally/+question/252062 (https://answers.launchpad.net/rally/+...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-07-04 15:06:14 -0500

Seen: 977 times

Last updated: Sep 11 '14