Unable to launch a VM on a specific network while benchmarking

Asked by Harikrishna

Dear rally team,
  I was going through the rally benchamarking, I found some difficulty in launching a VM on a specific network while benchmarking my existing cloud set up. I am using the Openstack repository(devstack). When I tried to launch a VM on a specific network, I am getting the following error:
'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-ddfea653-b023-4f85-8352-17b8d65deab0)

Here is my verbose output:
=============================
openstack-cloud:~/harikrishna_rally_test$ rally -v task start boot-and-list.json
----------------------------------------------------------------------------------
Task f79deb19-7bfd-467f-8351-8806b79537fa is started
--------------------------------------------------------------------------------
2014-07-23 18:01:53.473 24984 INFO rally.orchestrator.api [-] Benchmark Task f79deb19-7bfd-467f-8351-8806b79537fa on Deployment abeec2fd-c5b6-4bd2-9544-3bf626e595fa
2014-07-23 18:01:53.473 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Check cloud.
2014-07-23 18:01:53.680 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Check cloud.
2014-07-23 18:01:53.680 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Task validation.
2014-07-23 18:01:53.694 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Task validation of scenarios names.
2014-07-23 18:01:53.699 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Task validation of scenarios names.
2014-07-23 18:01:53.699 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Task validation of syntax.
2014-07-23 18:01:53.706 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Task validation of syntax.
2014-07-23 18:01:53.706 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Task validation of semantic.
2014-07-23 18:01:53.707 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Enter context: `users`
2014-07-23 18:01:54.287 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Enter context: `users`
2014-07-23 18:01:55.425 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Exit context: `users`
2014-07-23 18:01:56.281 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Exit context: `users`
2014-07-23 18:01:56.282 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Task validation of semantic.
2014-07-23 18:01:56.282 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Task validation.
2014-07-23 18:01:56.282 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Benchmarking.
2014-07-23 18:01:56.292 24984 INFO rally.benchmark.engine [-] Running benchmark with key: {'kw': {'runner': {'type': 'constant', 'concurrency': 1, 'times': 10}, 'args': {'detailed': True, 'nics': [{'net-id': '5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf'}], 'flavor': {'name': 'm1.nano'}, 'image': {'name': 'cirros-0.3.1-x86_64-uec'}}, 'context': {'users': {'users_per_tenant': 1, 'tenants': 1}}}, 'name': 'NovaServers.boot_and_list_server', 'pos': 0}
2014-07-23 18:01:56.858 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Enter context: `users`
2014-07-23 18:01:57.383 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Enter context: `users`
2014-07-23 18:01:57.384 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Enter context: `cleanup`
2014-07-23 18:01:57.384 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Enter context: `cleanup`
2014-07-23 18:01:57.394 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 0 START
2014-07-23 18:01:57.906 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 0 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-f581e69f-96f9-42d6-9903-1952ead06ac1)
2014-07-23 18:01:57.907 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 1 START
2014-07-23 18:01:58.368 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 1 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-15d2b043-bbc7-4a78-b4f1-4190974c9fa4)
2014-07-23 18:01:58.368 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 2 START
2014-07-23 18:01:58.879 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 2 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-ddfea653-b023-4f85-8352-17b8d65deab0)
2014-07-23 18:01:58.879 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 3 START
2014-07-23 18:01:59.299 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 3 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-dbfaee9c-38ec-441b-95c3-f8272e081e59)
2014-07-23 18:01:59.300 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 4 START
2014-07-23 18:01:59.766 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 4 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-19f86f6a-6bfb-4468-9f2a-2691d49768e3)
2014-07-23 18:01:59.767 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 5 START
2014-07-23 18:02:00.237 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 5 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-f69d70cb-dda9-40ce-98f5-c63964ecdce4)
2014-07-23 18:02:00.238 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 6 START
2014-07-23 18:02:00.661 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 6 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-c07ac7da-6a20-43c3-ac4c-e83b48646d4b)
2014-07-23 18:02:00.662 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 7 START
2014-07-23 18:02:01.159 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 7 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-2e71e7de-e965-4871-ae14-e97ba05fc257)
2014-07-23 18:02:01.159 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 8 START
2014-07-23 18:02:01.542 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 8 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-fdd30115-b8ef-4a84-8cb5-5b08d1896472)
2014-07-23 18:02:01.543 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 9 START
2014-07-23 18:02:01.949 25166 INFO rally.benchmark.runners.base [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | ITER: 9 END: Error <class 'novaclient.openstack.common.apiclient.exceptions.BadRequest'>: Network 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf could not be found. (HTTP 400) (Request-ID: req-7b359a9a-b88f-484d-8fd8-a2fc8d649678)
2014-07-23 18:02:02.017 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Exit context: `cleanup`
2014-07-23 18:02:02.017 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Cleanup users resources.
2014-07-23 18:02:02.770 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Cleanup users resources.
2014-07-23 18:02:02.770 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Cleanup admin resources.
2014-07-23 18:02:03.028 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Cleanup admin resources.
2014-07-23 18:02:03.028 24984 INFO rally.benchmark.context.cleanup.cleanup [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Exit context: `cleanup`
2014-07-23 18:02:03.029 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Starting: Exit context: `users`
2014-07-23 18:02:04.017 24984 INFO rally.benchmark.context.users [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Exit context: `users`
2014-07-23 18:02:04.051 24984 INFO rally.benchmark.engine [-] Task f79deb19-7bfd-467f-8351-8806b79537fa | Completed: Benchmarking.

================================================================================
Task f79deb19-7bfd-467f-8351-8806b79537fa is finished.
--------------------------------------------------------------------------------

test scenario NovaServers.boot_and_list_server
args position 0
args values:
{u'args': {u'detailed': True,
           u'flavor': u'42',
           u'image': u'9ec9a513-5ff7-4a16-a3c6-1a81655f09b4',
           u'nics': [{u'net-id': u'5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf'}]},
 u'context': {u'users': {u'concurrent': 30,
                         u'tenants': 1,
                         u'users_per_tenant': 1}},
 u'runner': {u'concurrency': 1, u'times': 10, u'type': u'constant'}}
+--------+-----------+-----------+-----------+---------------+---------------+---------+-------+
| action | min (sec) | avg (sec) | max (sec) | 90 percentile | 95 percentile | success | count |
+--------+-----------+-----------+-----------+---------------+---------------+---------+-------+
| total | n/a | n/a | n/a | n/a | n/a | 0 | 10 |
+--------+-----------+-----------+-----------+---------------+---------------+---------+-------+

HINTS:
* To plot HTML graphics with this data, run:
 rally task plot2html f79deb19-7bfd-467f-8351-8806b79537fa --out output.html

* To get raw JSON output of task results, run:
 rally task results f79deb19-7bfd-467f-8351-8806b79537fa

Using task: f79deb19-7bfd-467f-8351-8806b79537fa

Here is my JSON Input:
======================
{
    "NovaServers.boot_and_list_server": [
        {
            "args": {
                "flavor": {
                    "name": "m1.nano"
                },
                "image": {
                    "name": "cirros-0.3.1-x86_64-uec"
                },
                "nics":[{"net-id":"5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf"}],
                "detailed" : True,
            },
            "runner": {
                "type": "constant",
                "times": 10,
                "concurrency": 1
            },
            "context": {
                "users": {
                    "tenants": 1,
                    "users_per_tenant": 1
                }
            }
        }
    ]
}

The interesting part is I'am able to view the network in neutron net list and even rally it self detected that network, but I was unable to launch the VM on that network.

openstack-cloud:~ rally show networks
======================================
+--------------------------------------+-------------------------+------+
| ID | Label | CIDR |
+--------------------------------------+-------------------------+------+
| 5692a1f5-52fc-44c9-a6ae-1d80fa0ff8bf | test-net | None |
| 59f50308-9adf-48b1-8dea-c795e008e6cb | __link_local__ | None |
| 72ad831b-af14-42ab-8fdf-2bc2b00c3edd | default-virtual-network | None |
| 8f073b74-f1a8-4281-af96-bb295c1c6ea5 | ip-fabric | None |
+--------------------------------------+-------------------------+------+

  Please help me on this issue.

Question information

Language:
English Edit question
Status:
Expired
For:
Rally Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Joe Talerico (jtaleric) said :
#1

is that test-net set to shared? If not could you tried to set it to shared, and run again?

Revision history for this message
Harikrishna (harikrishna-mallavolu) said :
#2

@ Joe Talerico

Yes, it's a shared network and I observed a few more things while benchmarking.

 1)Rally is not using any of existing tenants/uesrs and creating it's own, Even after removing the context section in Json input.
 2)In Rally, for this boot and delete scenario, they are not using any network i mean to say it's not a mandatory parameter.
 3) If I forced my rally to launch a VM in a specific network, I'll again get an eeror saying that no network found, because of creating new tenants.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
ming li (spager78) said :
#4

It works for me to create a share network from the network option under the Admin panel which is parallel with the Project panel, and then rally proceeds successfully

Revision history for this message
Adrian Gomez (gomadn) said :
#5

Hello,

After some tests in my environment I wrote in this post by if it is useful for someone who encountered this problem.

Created the network as shared one works if you want to create a new tenant to deploy your instance.

"context": {
                "users": {
                    "tenants": 1,
                    "users_per_tenant": 1

But by another hand if you want to deploy the instance in the tenant that you created before for rally purpose, (specified when you created the deployment wrote in --file=existing.json or created and logged with openstack credentials --fromenv) you need to let empty the "context" parameters:

"context": {}