<div dir="ltr"><div><div><div><div><div><div>Hi all! <br><br></div>Thank you for your replies.<br><br></div>The VLAN range I posted on my email was a typo. The command I used had the correct range 1000:1009. The network templates were configured according to my physical network.<br><br></div><br>I followed Marius suggestion and used the following command to deploy the overcloud stack:<br><br>openstack overcloud deploy --control-scale 3 --compute-scale 3 --libvirt-type kvm --ntp-server <a href="http://pool.ntp.org">pool.ntp.org</a> --templates ~/the-cloud/ -e ~/the-cloud/environments/puppet-pacemaker.yaml -e ~/the-cloud/environments/network-isolation.yaml -e ~/the-cloud/environments/net-single-nic-with-vlans.yaml -e ~/the-cloud/environments/network-environment.yaml --control-flavor controller --compute-flavor compute --neutron-network-type vlan --neutron-bridge-mappings datacentre:br-ex --neutron-network-vlan-ranges datacentre:1000:1009 --neutron-tunnel-types vlan<br><br></div></div><br>The overcloud stack was deployed in VLAN mode without the GRE-tunnels.<br> <br>However, it doesn't work correctly because the neutron-openvswitch-agent is unable to start as it doesn't recognize "vlan" as a tunnel mode.<br><br></div>I captured the followinfg error in /var/log/neutron/openvswitch-agent.log<br><br>2015-10-28 11:35:53.057 160431 WARNING oslo_config.cfg [-] Option "lock_path" from group "DEFAULT" is deprecated. Use option "lock_path" from group "oslo_concurrency".<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [-] Agent failed to create agent config map<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last):<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1894, in main<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     agent_config = create_agent_config_map(cfg.CONF)<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1863, in create_agent_config_map<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     raise ValueError(msg)<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent ValueError: (u'Invalid tunnel type specified: %s', 'vlan')<br>2015-10-28 11:35:53.058 160431 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent <br>2015-10-28 11:36:19.023 161519 WARNING oslo_config.cfg [-] Option "lock_path" from group "DEFAULT" is deprecated. Use option "lock_path" from group "oslo_concurrency".<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [-] Agent failed to create agent config map<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last):<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1894, in main<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     agent_config = create_agent_config_map(cfg.CONF)<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1863, in create_agent_config_map<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     raise ValueError(msg)<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent ValueError: (u'Invalid tunnel type specified: %s', 'vlan')<br>2015-10-28 11:36:19.024 161519 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent <br><br><div><div><div><div><div><div><br></div><div>So the --neutron-tunnel-types vlan command allows the deployment to pass the CLI bug but creates a problem in neutron configuration. <br><br></div><div>Do you have any other suggestions?<br><br></div><div>Thank you very much!<br></div><div>Regards,<br></div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 28, 2015 at 3:03 AM, Dan Sneddon <span dir="ltr"><<a href="mailto:dsneddon@redhat.com" target="_blank">dsneddon@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This isn't entirely correct. The --neutron-tunnel-types parameter only takes [vxlan|gre], and should not be<br>
required when --neutron-network-type is 'vlan'. However, a bug is making the CLI require this parameter in error.<br>
<br>
Nuno, there is a bug on this behavior, feel free to add your comments or more information:<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1244893" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1244893</a><br>
<br>
-Dan Sneddon<br>
<div><div class="h5"><br>
----- Original Message -----<br>
><br>
> On Tue, Oct 27, 2015 at 6:10 PM, Nuno Loureiro <<br>
> <a href="mailto:nuno.loureiro@itcenter.com.pt">nuno.loureiro@itcenter.com.pt</a> > wrote:<br>
><br>
><br>
><br>
><br>
> Hi all!<br>
><br>
> I'm deploying an HA overcloud with 3 controller nodes and 3 compute nodes.<br>
><br>
> I'm able to successfully deploy the overcloud in GRE-tunnel mode by issuing<br>
> the following command:<br>
><br>
> openstack overcloud deploy --control-scale 3 --compute-scale 3 --libvirt-type<br>
> kvm --ntp-server <a href="http://pool.ntp.org" rel="noreferrer" target="_blank">pool.ntp.org</a> --templates ~/the-cloud/ -e<br>
> ~/the-cloud/environments/puppet-pacemaker.yaml -e<br>
> ~/the-cloud/environments/network-isolation.yaml -e<br>
> ~/the-cloud/environments/net-single-nic-with-vlans.yaml -e<br>
> ~/the-cloud/environments/network-environment.yaml --control-flavor<br>
> controller --compute-flavor compute<br>
><br>
><br>
> Now I want to use VLAN in tenant networks, disabling the GRE-tunnels.<br>
><br>
> I ran the following command to deploy the overcloud in VLAN mode:<br>
><br>
> openstack overcloud deploy --control-scale 3 --compute-scale 3 --libvirt-type<br>
> kvm --ntp-server <a href="http://pool.ntp.org" rel="noreferrer" target="_blank">pool.ntp.org</a> --templates ~/the-cloud/ -e<br>
> ~/the-cloud/environments/puppet-pacemaker.yaml -e<br>
> ~/the-cloud/environments/network-isolation.yaml -e<br>
> ~/the-cloud/environments/net-single-nic-with-vlans.yaml -e<br>
> ~/the-cloud/environments/network-environment.yaml --control-flavor<br>
> controller --compute-flavor compute --neutron-network-type vlan<br>
> --neutron-bridge-mappings datacentre:br-ex --neutron-network-vlan-ranges<br>
> datacentre:1000:10009<br>
><br>
> However I always get the following error:<br>
> ERROR: openstack Neutron tunnel types must be specified when Neutron network<br>
> type is specified<br>
><br>
> I think this problem might be related to this bug:<br>
> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1244893" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1244893</a><br>
><br>
> Yes, the error relates to that bug: you should pass both<br>
> --neutron-network-type vlan and --neutron-tunnel-types vlan to pass.<br>
><br>
> In addition to this you should also make sure that the network templates<br>
</div></div>> match your physical environment, provide valid vlan range( 10009 is not a<br>
<span class="">> valid vlan tag), switch configuration is in place.<br>
><br>
><br>
><br>
><br>
> Do you have any suggestions on how to solve this problem?<br>
><br>
> Thank you very much!<br>
> Regards,<br>
> --<br>
> Nuno Loureiro<br>
><br>
>       Research & Development<br>
><br>
>       Phone: <a href="tel:%2B351%20256%20370%20980" value="+351256370980">+351 256 370 980</a><br>
><br>
>       Email: <a href="mailto:nuno.loureiro@itcenter.com.pt">nuno.loureiro@itcenter.com.pt</a><br>
><br>
</span>>                       <a href="http://www.itcenter.com.pt" rel="noreferrer" target="_blank">www.itcenter.com.pt</a><br>
<div class="HOEnZb"><div class="h5">><br>
><br>
><br>
> _______________________________________________<br>
> Rdo-list mailing list<br>
> <a href="mailto:Rdo-list@redhat.com">Rdo-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
><br>
> To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
><br>
><br>
> _______________________________________________<br>
> Rdo-list mailing list<br>
> <a href="mailto:Rdo-list@redhat.com">Rdo-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
><br>
> To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><table><tbody><tr><td style="font-size:13px;color:black"><font size="4">Nuno Loureiro</font><br></td>
    </tr>
    <tr style="display:block;margin-bottom:10px">
        <td style="font-size:11px;color:#666666">Research & Development<br></td>
    </tr>
    <tr>
        <td style="font-size:11px;color:#666666;line-height:15px">Phone: +351 256 370 980<br></td>
    </tr>
    <tr>
        <td style="font-size:11px;color:#666666;line-height:15px">Email: <a href="mailto:nuno.loureiro@itcenter.com.pt" target="_blank">nuno.loureiro@itcenter.com.pt</a></td>
    </tr>



    <tr style="display:block;width:100%;margin-top:10px">
        <td style="width:600px;padding:0">
            <table style="border-collapse:collapse;width:100%">
                <tbody><tr>

                    <td>
                        <a href="http://www.itcenter.com.pt/" style="width:124px;height:74px;display:block;float:left" target="_blank">
                            <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_logo-itcenter_124x74.jpg">
                        </a>
                    </td>
                    <td>
                        <a href="http://www.itcenter.com.pt/" style="width:50px;height:74px;margin-left:20px;display:block;float:left" target="_blank">
                            <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_premios-destincoes_50x74.jpg">
                        </a>
                    </td>
                    <td style="display:block;width:100%;padding:0">
                        <a href="http://www.itcenter.com.pt/" style="width:317px;height:87px;display:block;float:right" target="_blank">
                            <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_noticia-destaque.jpg">
                        </a>
                    </td> 

                </tr>
            </tbody></table>
        </td>
    </tr>




    <tr style="border-top:1px solid #00c2a9;padding-top:3px;display:block">
        <td style="width:600px;padding:0">

            <table style="border-collapse:collapse">
                <tbody><tr>
                    <td>

                        <table style="border-collapse:collapse">
                            <tbody><tr>

                                <td style="float:left;font-size:9;line-height:18px"><a style="text-decoration:none;color:#666" href="http://www.itcenter.com.pt/" target="_blank">www.itcenter.com.pt </a></td>
                                <td>
                                    <a href="http://store.itcenter.com.pt/" style="margin-left:10px;width:23px;height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_store.jpg" alt="ITCENTER Store" title="ITCENTER Store">
                                    </a>
                                </td>
                                <td>
                                    <a href="http://www.itcenter.com.pt/email/assinatura-email-itcenter.html#" style="margin-left:10px;width:23px;height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_helpdesk.jpg" alt="ITCENTER Helpdesk" title="ITCENTER Helpdesk">
                                    </a>
                                </td>

                            </tr>
                        </tbody></table>

                    </td>



                    <td style="width:100%;padding:0"><br></td>



                    <td style="border-collapse:collapse">

                        <table style="border-collapse:collapse">
                            <tbody><tr style="width:100px;float:right">

                                <td style="float:right;margin-left:5px;padding:0">
                                    <a href="https://www.facebook.com/itcenterpt" style="margin-left:5px;width:23px;height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_facebook.jpg" alt="ITCENTER Facebook"> 
                                    </a>
                                </td>
                                <td style="float:right;margin-left:5px;padding:0">
                                    <a href="https://www.linkedin.com/company/itcenter" style="margin-left:5px;width:23px;height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_linkedin.jpg" alt="ITCENTER Linkedin"> 
                                    </a>
                                </td>
                                <td style="float:right;padding:0">
                                    <a href="https://twitter.com/ITCenter_PT" style="margin-left:5px;width:23px;height:23px;display:block" target="_blank">
                                        <img src="http://www.itcenter.com.pt/email/assinatura-email-itcenter_twitter.jpg" alt="ITCENTER Twitter"> 
                                    </a>
                                </td>
                            </tr>
                        </tbody></table></td></tr></tbody></table></td></tr></tbody></table><br><br></div></div></div></div></div></div></div></div>
</div>