<div dir="ltr"><div><div><div>Hi,<br><br></div>There was a discussion about the behaviour of "admin_state_up". You can take a look at the following link:<br><a href="https://bugs.launchpad.net/neutron/+bug/1237807">https://bugs.launchpad.net/neutron/+bug/1237807</a><br><br></div>Changing admin_state_up from True to False will break dhcp. it will remove dhcp service ports from the network but dhcp agent will be alive.<br><br></div>To see the difference between network's admin_state_up=True and admin_state_up=False, you can run the following commands:<br><br># neutron agent-list (write down dhcp_agent ID)<br># neutron agent-show 91e15f2f-2e27-460c-a305-a82d9e462c81 (run this command when admin state True)<br><div><div><div><div># neutron agent-show 91e15f2f-2e27-460c-a305-a82d9e462c81 (run this command when admin state False - wait a 1 min after you changed admin state from True to False before running this command)<br><br></div><div>********** When admin state set to TRUE *******************<br></div><div>configurations {<br>"subnets": 1, <br>"use_namespaces": true,<br>"dhcp_lease_duration": 86400, <br>"dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq",<br>"networks": 1,<br>"ports": 2<br>} <br><br></div><div>****** When admin state set to FALSE **********<br>configurations {<br>"subnets": 0, <br>"use_namespaces": true,<br>"dhcp_lease_duration": 86400, <br>"dhcp_driver": "neutron.agent.linux.dhcp.Dnsmasq",<br>"networks": 0,<br>"ports": 0<br>}<br><br></div><div>Erhan,<br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 11:40 AM, Timur Nurlygayanov <span dir="ltr"><<a href="mailto:tnurlygayanov@mirantis.com" target="_blank">tnurlygayanov@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Danny,<br><br></div>I know that if we will set admin_state_up= false we will disable DHCP service for this network and new VMs will not get network settings by DHCP.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 31, 2014 at 2:41 AM, Danny Choi (dannchoi) <span dir="ltr"><<a href="mailto:dannchoi@cisco.com" target="_blank">dannchoi@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;font-size:14px;font-family:Calibri,sans-serif;color:rgb(0,0,0)">
<div style="color:rgb(0,0,0)">Hi,</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">I have a VM with an interface attached to network “provider-net-1” and assigned IP 66.0.0.8.</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div>
<p style="margin:0px;font-size:12px;font-family:Courier">localadmin@qa4:~/devstack$ nova list</p>
<p style="margin:0px;font-size:12px;font-family:Courier">+--------------------------------------+------+--------+------------+-------------+--------------------------+</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| ID | Name | Status | Task State | Power State | Networks |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">+--------------------------------------+------+--------+------------+-------------+--------------------------+</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| d4815a38-ea64-4189-95b2-fefe82a07b72 | vm-1 | ACTIVE | - | Running | provider_net-1=66.0.0.8 |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">+--------------------------------------+------+--------+------------+-------------+--------------------------+</p>
</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">Verify ping 66.0.0.8 from the router namespace is successful.</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">Then I set the admin_state<span style="font-style:italic">_</span>up = false for the network.</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div>
<p style="margin:0px;font-size:12px;font-family:Courier">localadmin@qa4:~/devstack$ neutron net-update --admin_state_up=false provider_net-1</p>
<p style="margin:0px;font-size:12px;font-family:Courier">Updated network: provider_net-1</p>
<p style="margin:0px;font-size:12px;font-family:Courier">localadmin@qa4:~/devstack$ neutron net-show provider_net-1</p>
<p style="margin:0px;font-size:12px;font-family:Courier">+---------------------------+--------------------------------------+</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| Field | Value |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">+---------------------------+--------------------------------------+</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| admin_state_up | False | <<<<<<<</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| id | 9532b759-68a2-4dc0-bcd4-b372fccabe3c |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| name | provider_net-1 |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| provider:network_type | vlan |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| provider:physical_network | physnet1 |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| provider:segmentation_id | 399 |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| router:external | False |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| shared | False |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| status | ACTIVE |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| subnets | 8e75c110-9b31-4268-ba5c-e130fa139d32 |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">| tenant_id | e217fbc20a3b4f4fab49ec580e9b6a15 |</p>
<p style="margin:0px;font-size:12px;font-family:Courier">+---------------------------+--------------------------------------+</p>
<div style="color:rgb(0,0,0)"><br>
</div>
</div>
<div style="color:rgb(0,0,0)">Afterwards, the ping is still successful.</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">I expect the ping to fail since the network admin_state<span style="font-style:italic">_</span>up= false.</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">What is the expected behavior? What does it mean when a network's admin_state_up = false?</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">Thanks,</div>
<div style="color:rgb(0,0,0)">Danny</div>
</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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><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">Senior 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></div><div style="font-family:arial;font-size:small">My OpenStack summit schedule: <a href="http://kilodesignsummit.sched.org/timur.nurlygayanov#.VFSrD8mhhOI" target="_blank">http://kilodesignsummit.sched.org/timur.nurlygayanov#.VFSrD8mhhOI</a><br></div></div></div></div></div>
</font></span></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</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></div>