Skip to content

Commit 85c12eb

Browse files
committed
Remove deprecated [haproxy_amphora] use_upstart
The option was deprecated in Train release[1] and has been unused by amphora agent since then. [1] c4408c4 Change-Id: I1dfbe2d1db21959b007818c6dee7458d117968b9
1 parent fc7c619 commit 85c12eb

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

octavia/amphorae/backends/agent/agent_jinja_cfg.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def build_agent_config(self, amphora_id, topology):
5252
'haproxy_cmd': CONF.haproxy_amphora.haproxy_cmd,
5353
'heartbeat_interval': CONF.health_manager.heartbeat_interval,
5454
'heartbeat_key': CONF.health_manager.heartbeat_key,
55-
'use_upstart': CONF.haproxy_amphora.use_upstart,
5655
'respawn_count': CONF.haproxy_amphora.respawn_count,
5756
'respawn_interval': CONF.haproxy_amphora.respawn_interval,
5857
'amphora_udp_driver': CONF.amphora_agent.amphora_udp_driver,

octavia/amphorae/backends/agent/templates/amphora_agent_conf.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ bind_port = {{ bind_port }}
2525
haproxy_cmd = {{ haproxy_cmd }}
2626
respawn_count = {{ respawn_count }}
2727
respawn_interval = {{ respawn_interval }}
28-
use_upstart = {{ use_upstart }}
2928
user_log_facility = {{ user_log_facility }}
3029
administrative_log_facility = {{ administrative_log_facility }}
3130

octavia/common/config.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,6 @@
407407
help=_("The client certificate to talk to the agent")),
408408
cfg.StrOpt('server_ca', default='/etc/octavia/certs/server_ca.pem',
409409
help=_("The ca which signed the server certificates")),
410-
cfg.BoolOpt('use_upstart', default=True,
411-
deprecated_for_removal=True,
412-
deprecated_reason='This is now automatically discovered '
413-
' and configured.',
414-
help=_("If False, use sysvinit.")),
415410
cfg.IntOpt('api_db_commit_retry_attempts', default=15,
416411
help=_('The number of times the database action will be '
417412
'attempted.')),

octavia/tests/unit/amphorae/backends/agent/test_agent_jinja_cfg.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def setUp(self):
3939
amphora_udp_driver='keepalived_lvs'),
4040
self.conf.config(group="haproxy_amphora",
4141
base_cert_dir='/var/lib/octavia/certs')
42-
self.conf.config(group="haproxy_amphora", use_upstart='True')
4342
self.conf.config(group="haproxy_amphora", base_path='/var/lib/octavia')
4443
self.conf.config(group="haproxy_amphora", bind_host='0.0.0.0')
4544
self.conf.config(group="haproxy_amphora", bind_port=9443)
@@ -70,7 +69,6 @@ def test_build_agent_config(self):
7069
'haproxy_cmd = /usr/sbin/haproxy\n'
7170
'respawn_count = 2\n'
7271
'respawn_interval = 2\n'
73-
'use_upstart = True\n'
7472
'user_log_facility = 0\n'
7573
'administrative_log_facility = 1\n\n'
7674
'[health_manager]\n'
@@ -96,7 +94,6 @@ def test_build_agent_config(self):
9694

9795
def test_build_agent_config_with_interfaces_file(self):
9896
ajc = agent_jinja_cfg.AgentJinjaTemplater()
99-
self.conf.config(group="haproxy_amphora", use_upstart='False')
10097
self.conf.config(group="amphora_agent",
10198
administrative_log_facility=1)
10299
self.conf.config(group="amphora_agent", user_log_facility=0)
@@ -112,7 +109,6 @@ def test_build_agent_config_with_interfaces_file(self):
112109
'haproxy_cmd = /usr/sbin/haproxy\n'
113110
'respawn_count = 2\n'
114111
'respawn_interval = 2\n'
115-
'use_upstart = False\n'
116112
'user_log_facility = 0\n'
117113
'administrative_log_facility = 1\n\n'
118114
'[health_manager]\n'
@@ -156,7 +152,6 @@ def test_build_agent_config_with_new_udp_driver(self):
156152
'haproxy_cmd = /usr/sbin/haproxy\n'
157153
'respawn_count = 2\n'
158154
'respawn_interval = 2\n'
159-
'use_upstart = True\n'
160155
'user_log_facility = 0\n'
161156
'administrative_log_facility = 1\n\n'
162157
'[health_manager]\n'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
upgrade:
3+
- |
4+
The deprecated ``[haproxy_amphora] use_upstart`` option has been removed.

0 commit comments

Comments
 (0)