21086485 neutron-l3-agent service should not report online if trace dump happened s11-update
authorsaurabh.vyas@oracle.com
Tue, 02 Jun 2015 12:43:22 -0600
branchs11-update
changeset 4430 5858809d8d01
parent 4422 785c3a06cb2f
child 4441 8e251f3e0ce3
21086485 neutron-l3-agent service should not report online if trace dump happened 21157386 dhcp & metadata agents trace dump due to report state failure
components/openstack/neutron/files/agent/evs_l3_agent.py
components/openstack/neutron/files/agent/solaris/interface.py
components/openstack/neutron/files/neutron-dhcp-agent.xml
components/openstack/neutron/files/neutron-l3-agent.xml
components/openstack/neutron/files/neutron-metadata-agent.xml
--- a/components/openstack/neutron/files/agent/evs_l3_agent.py	Fri Jun 05 14:58:42 2015 -0700
+++ b/components/openstack/neutron/files/agent/evs_l3_agent.py	Tue Jun 02 12:43:22 2015 -0600
@@ -351,10 +351,10 @@
             elif (l2type == 'vlan' and
                   self.conf.get("external_network_datalink", None)):
                 LOG.warning(_("external_network_datalink is deprecated in "
-                             "Juno and will be removed in the next release of "
-                             "Solaris OpenStack. Please use the evsadm "
-                             "set-controlprop subcommand to setup the "
-                             "uplink-port for an external network"))
+                              "Juno and will be removed in the next release "
+                              "of Solaris OpenStack. Please use the evsadm "
+                              "set-controlprop subcommand to setup the "
+                              "uplink-port for an external network"))
                 # proceed with the old-style of doing things
                 mac_address = ex_gw_port['mac_address']
                 dl.create_vnic(self.conf.external_network_datalink,
--- a/components/openstack/neutron/files/agent/solaris/interface.py	Fri Jun 05 14:58:42 2015 -0700
+++ b/components/openstack/neutron/files/agent/solaris/interface.py	Tue Jun 02 12:43:22 2015 -0600
@@ -102,13 +102,13 @@
                    '%s/%s' % (evsname, vportname)]
             utils.execute(cmd)
 
-        dl.connect_vnic(evs_vport, tenant_id)
-
         if not protection:
             cmd = ['/usr/sbin/evsadm', 'set-vportprop', '-T', tenant_id,
                    '-p', 'protection=none', evs_vport]
             utils.execute(cmd)
 
+        dl.connect_vnic(evs_vport, tenant_id)
+
     def unplug(self, device_name, namespace=None, prefix=None):
         """Unplug the interface."""
 
--- a/components/openstack/neutron/files/neutron-dhcp-agent.xml	Fri Jun 05 14:58:42 2015 -0700
+++ b/components/openstack/neutron/files/neutron-dhcp-agent.xml	Tue Jun 02 12:43:22 2015 -0600
@@ -73,6 +73,11 @@
       <service_fmri value='svc:/network/amqp/rabbitmq'/>
     </dependency>
 
+    <dependency name='neutron-server' grouping='optional_all' restart_on='none'
+      type='service'>
+      <service_fmri value='svc:/application/openstack/neutron/neutron-server'/>
+    </dependency>
+
     <logfile_attributes permissions='600'/>
 
     <exec_method timeout_seconds="60" type="method" name="start"
--- a/components/openstack/neutron/files/neutron-l3-agent.xml	Fri Jun 05 14:58:42 2015 -0700
+++ b/components/openstack/neutron/files/neutron-l3-agent.xml	Tue Jun 02 12:43:22 2015 -0600
@@ -51,6 +51,11 @@
       <service_fmri value='svc:/network/amqp/rabbitmq'/>
     </dependency>
 
+    <dependency name='neutron-server' grouping='optional_all' restart_on='none'
+      type='service'>
+      <service_fmri value='svc:/application/openstack/neutron/neutron-server'/>
+    </dependency>
+
     <logfile_attributes permissions='600'/>
 
     <exec_method timeout_seconds="60" type="method" name="start"
--- a/components/openstack/neutron/files/neutron-metadata-agent.xml	Fri Jun 05 14:58:42 2015 -0700
+++ b/components/openstack/neutron/files/neutron-metadata-agent.xml	Tue Jun 02 12:43:22 2015 -0600
@@ -46,6 +46,11 @@
       <service_fmri value='svc:/network/amqp/rabbitmq'/>
     </dependency>
 
+    <dependency name='neutron-server' grouping='optional_all' restart_on='none'
+      type='service'>
+      <service_fmri value='svc:/application/openstack/neutron/neutron-server'/>
+    </dependency>
+
     <logfile_attributes permissions='600'/>
 
     <exec_method timeout_seconds="60" type="method" name="start"