fix referring neutron option in inspector 05/43905/1
authorRyota MIBU <r-mibu@cq.jp.nec.com>
Mon, 2 Oct 2017 13:15:12 +0000 (13:15 +0000)
committerRyota Mibu <r-mibu@cq.jp.nec.com>
Mon, 2 Oct 2017 15:07:29 +0000 (15:07 +0000)
Change-Id: I01173cdf301f168edebfc2ec6df82b015adebca7
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
(cherry picked from commit 1bec48cd10057821828ffca3f5ecf31b853c66f7)

doctor_tests/inspector/sample.py
etc/doctor.sample.conf

index fcdb48f..5432872 100644 (file)
@@ -35,7 +35,7 @@ class SampleInspector(BaseInspector):
 
         auth = get_identity_auth(project=self.conf.doctor_project)
         session = get_session(auth=auth)
-        if self.conf.update_neutron_port_dp_status:
+        if self.conf.inspector.update_neutron_port_dp_status:
             self.neutron = neutron_client(session)
 
         self.servers = collections.defaultdict(list)
@@ -95,11 +95,11 @@ class SampleInspector(BaseInspector):
                 self.hostnames.append(hostname)
                 thr1 = self._disable_compute_host(hostname)
                 thr2 = self._vms_reset_state('error', hostname)
-                if self.conf.update_neutron_port_dp_status:
+                if self.conf.inspector.update_neutron_port_dp_status:
                     thr3 = self._set_ports_data_plane_status('DOWN', hostname)
                 thr1.join()
                 thr2.join()
-                if self.conf.update_neutron_port_dp_status:
+                if self.conf.inspector.update_neutron_port_dp_status:
                     thr3.join()
 
     @utils.run_async
index 56fc828..6eeea3a 100644 (file)
@@ -37,7 +37,6 @@
 #type = local
 #ip = 127.0.0.1
 #username = root
-#update_neutron_port_dp_status = False
 
 [monitor]
 #type = sample
@@ -46,6 +45,7 @@
 #type = sample
 #ip = 127.0.0.1
 #port = 12345
+#update_neutron_port_dp_status = False
 
 [consumer]
 #type = sample