<div dir="ltr"><div><div><div><div>Hello Harshil,<br><br></div>looks like it can be the limitations of your deployment or bug in my code.<br></div>Could you please try to create several tenants, routers and networks in these tenants manually to verify that it is possible?<br><br></div>I tested this patch set on my lab with Neutron GRE, probably we should add someting also when we use VLANs for networks isolation.<br><br></div>Thank you!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 10:04 PM, Harshil Shah (harsshah) <span dir="ltr"><<a href="mailto:harsshah@cisco.com" target="_blank">harsshah@cisco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hello Timur,</div>
<div><br>
</div>
<div>I have one question, so I am testing rally boot and delete scenario, it seems to work fine when tenant is 1 and user is 1. Although if I change tenant to 2 and users 2, I see below error. Any idea why this can happen ?</div>
<div><br>
</div>
<div>=====</div>
<div>
<p style="margin:0px;font-size:11px;font-family:Menlo">2014-09-03 10:51:18.138 17441 CRITICAL rally [-] ServiceUnavailable: Unable to create the network. No tenant network is available for allocation.</p>
</div>
<div><br>
</div>
<div><span style="font-family:Menlo;font-size:11px">cat boot-runcommand-delete.json</span></div>
<div><span class="">
<p style="margin:0px;font-size:11px;font-family:Menlo">{</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">    "VMTasks.boot_runcommand_delete": [</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">        {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">            "args": {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "flavor": {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                    "name": "m1.small"</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                },</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "image": {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                    "name": "Ubuntu Server 14.04"</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                },</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "fixed_network": "net04",</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "floating_network": "net04_ext",</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "use_floatingip": true,</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "script": "doc/samples/tasks/support/instance_dd_test.sh",</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "interpreter": "/bin/sh",</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "username": "ubuntu"</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">            },</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">            "runner": {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "type": "constant",</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "times": 10,</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "concurrency": 2</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">            },</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">            "context": {</p>
</span><p style="margin:0px;font-size:11px;font-family:Menlo">                "neutron_network": {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                    "network_cidr": "10.%s.0.0/16",</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                },</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                "users": {</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b>                    "tenants": 2, ==> Works with this value being 1</b></p>
<p style="margin:0px;font-size:11px;font-family:Menlo"><b>                    "users_per_tenant": 2 </b></p>
<p style="margin:0px;font-size:11px;font-family:Menlo">                }</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">            }</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">        }</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">    ]</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">}</p>
</div>
<div>==</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Harshil</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Timur Nurlygayanov <<a href="mailto:tnurlygayanov@mirantis.com" target="_blank">tnurlygayanov@mirantis.com</a>><br>
<span style="font-weight:bold">Date: </span>Friday, August 29, 2014 at 1:54 PM<span class=""><br>
<span style="font-weight:bold">To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
</span><span style="font-weight:bold">Cc: </span>Harshil Shah <<a href="mailto:harsshah@cisco.com" target="_blank">harsshah@cisco.com</a>><span class=""><br>
<span style="font-weight:bold">Subject: </span>Re: [openstack-dev] Rally scenario Issue<br>
</span></div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Ajay,<br>
<br>
</div>
looks like you need to use NeutronContext feature to configure Neutron Networks during the benchmarks execution.<br>
</div>
We now working on merge of two different comits with NeutronContext implementation:<br>
<a href="https://review.openstack.org/#/c/96300" target="_blank">https://review.openstack.org/#/c/96300</a>  and
<a href="https://review.openstack.org/#/c/103306" target="_blank">https://review.openstack.org/#/c/103306</a><br>
<br>
</div>
could you please apply commit <a href="https://review.openstack.org/#/c/96300" target="_blank">
https://review.openstack.org/#/c/96300</a> and run your benchmarks? Neutron Network with subnetworks and routers will be automatically created for each created tenant and you should have the ability to connect to VMs. Please, note, that you should add the following
 part to your task JSON to enable Neutron context:<br>
...<br>
"context": {<br>
    ...<br>
    "neutron_network": {<br>
        "network_cidr": "10.%s.0.0/16",<br>
    }<br>
}<br>
...<br>
<br>
</div>
<div>Hope this will help.<br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Aug 29, 2014 at 11:42 PM, Ajay Kalambur (akalambu)
<span dir="ltr"><<a href="mailto:akalambu@cisco.com" target="_blank">akalambu@cisco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi</div>
<div>I am trying to run the Rally scenario boot-runcommand-delete. This scenario has the following code</div>
<div>
<div> def boot_runcommand_delete(self, image, flavor,</div>
<div>                               script, interpreter, username,</div>
<div>                               fixed_network="private",</div>
<div>                               floating_network="public",</div>
<div>                               ip_version=4, port=22,</div>
<div>                               use_floatingip=True, **kwargs):</div>
</div>
<div>
<div>  server = None</div>
<div>        floating_ip = None</div>
<div>        try:</div>
<div>            print "fixed network:%s floating network:%s" %(fixed_network,floating_network)</div>
<div>            server = self._boot_server(</div>
<div>                self._generate_random_name("rally_novaserver_"),</div>
<div>                image, flavor, key_name='rally_ssh_key', **kwargs)</div>
<div><br>
</div>
<div><b>            self.check_network(server, fixed_network)</b></div>
</div>
<div><br>
</div>
<div>The question I have is the instance is created with a call to boot_server but no networks are attached to this server instance. Next step it goes and checks if the fixed network is attached to the instance and sure enough it fails</div>
<div>At the step highlighted in bold. Also I cannot see this failure unless I run rally with –v –d object. So it actually reports benchmark scenario numbers in a table with no errors when I run with</div>
<div>rally task start boot-and-delete.json</div>
<div><br>
</div>
<div>And reports results. First what am I missing in this case. Thing is I am using neutron not nova-network</div>
<div>Second when most of the steps in the scenario failed like attaching to network, ssh and run command why bother reporting the results</div>
<span><font color="#888888">
<div><br>
</div>
<div>Ajay</div>
<div><br>
</div>
</font></span></div>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div dir="ltr"><font color="#888888"><font color="#888888"><br>
</font></font>
<div style="font-family:arial;font-size:small">Timur,</div>
<div style="font-family:arial;font-size:small">QA Engineer</div>
<div style="font-family:arial;font-size:small">OpenStack Projects</div>
<div style="font-family:arial;font-size:small">Mirantis Inc<br>
<br>
<a href="http://www.openstacksv.com/" target="_blank"><img alt="http://www.openstacksv.com/" src="https://lh5.googleusercontent.com/K-Qw1IhwB4AYMQsUee1RCmlztMg_obyJiBLCO4mXru_NT157r0w1YNfoe-IrLLoBJrMK6lEZ3wn0TemAYv9lEznw-a6ueWi6MNh72huHrB0qJKFqZ6z53bZn_ipCsu4tRw"></a><br>
</div>
</div>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><font color="#888888"><font color="#888888"><br></font></font><div style="font-family:arial;font-size:small">Timur,</div><div style="font-family:arial;font-size:small">QA Engineer</div><div style="font-family:arial;font-size:small">OpenStack Projects</div><div style="font-family:arial;font-size:small">Mirantis Inc<br><br><a href="http://www.openstacksv.com/" target="_blank"><img alt="http://www.openstacksv.com/" src="https://lh5.googleusercontent.com/K-Qw1IhwB4AYMQsUee1RCmlztMg_obyJiBLCO4mXru_NT157r0w1YNfoe-IrLLoBJrMK6lEZ3wn0TemAYv9lEznw-a6ueWi6MNh72huHrB0qJKFqZ6z53bZn_ipCsu4tRw"></a><br></div></div>
</div>