FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use apache to run neutron api · redhat-openstack/packstack@f581a3d · GitHub

Commit f581a3d

Browse files
andcommitted
Use apache to run neutron api
The monolithic neutron-server service was removed due to removal of eventlet library. Also enable quiet mode in ssh-keyscan command to omit garbage records. Co-Authored-By: Harald Jensås <hjensas@redhat.com> Depends-On: https://review.opendev.org/c/openstack/puppet-neutron/+/963364 Change-Id: I8304673138de5620e66009d71df68992a729d6df Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
1 parent 9d3df63 commit f581a3d

3 files changed

Lines changed: 30 additions & 8 deletions

File tree

‎packstack/plugins/nova_300.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def gather_host_keys(config, messages):
271271

272272
for host in compute_hosts:
273273
local = utils.ScriptRunner()
274-
local.append('ssh-keyscan %s' % host)
274+
local.append('ssh-keyscan -q %s' % host)
275275
retcode, hostkey = local.execute()
276276
config['HOST_KEYS_%s' % host] = hostkey
277277

‎packstack/puppet/modules/packstack/manifests/neutron/api.pp‎

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,33 @@
2020
})
2121
}
2222

23+
$rpc_workrers = lookup('CONFIG_NEUTRON_L2_AGENT') ? {
24+
'ovn' => 0,
25+
default => lookup('CONFIG_SERVICE_WORKERS'),
26+
}
27+
$rpc_service_name = $rpc_workers ? {
28+
0 => false,
29+
default => undef,
30+
}
31+
$rpc_state_report_workers = lookup('CONFIG_NEUTRON_L2_AGENT') ? {
32+
'ovn' => 0,
33+
default => undef,
34+
}
35+
36+
class { 'neutron::wsgi::apache':
37+
bind_host => $bind_host,
38+
ssl => false,
39+
workers => lookup('CONFIG_SERVICE_WORKERS'),
40+
}
2341
class { 'neutron::server':
24-
sync_db => true,
25-
enabled => true,
26-
api_workers => lookup('CONFIG_SERVICE_WORKERS'),
27-
rpc_workers => lookup('CONFIG_SERVICE_WORKERS'),
28-
service_providers => lookup('SERVICE_PROVIDERS', { merge => 'unique' }),
42+
sync_db => true,
43+
enabled => true,
44+
api_workers => lookup('CONFIG_SERVICE_WORKERS'),
45+
rpc_workers => $rpc_workers,
46+
rpc_state_report_workers => $rpc_state_report_workers,
47+
api_service_name => 'httpd',
48+
rpc_service_name => $rpc_service_name,
49+
service_providers => lookup('SERVICE_PROVIDERS', { merge => 'unique' }),
2950
}
3051

3152
if $neutron_vpnaas_enabled {

‎packstack/puppet/modules/packstack/manifests/placement.pp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
'database' => 'placement',
2323
})
2424
}
25-
2625
include placement::db::sync
27-
include placement::api
2826

27+
class { 'placement::api':
28+
api_service_name => 'httpd',
29+
}
2930
class { 'placement::wsgi::apache':
3031
bind_host => $bind_host,
3132
ssl => false,

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL