TT#26103 Check sunrpc and rptengine kernel modules availability

Change-Id: I64b8209fee73b1c3e13dce1c55cf45c3b27121a8
changes/98/17198/3
Alexander Lutay 9 years ago
parent cd2e06da34
commit ea62990c25

@ -0,0 +1,30 @@
[%
PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname';
hostname = out;
argv.host = hostname;
argv.role = 'proxy';
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
is_proxy = out;
-%]
[% PERL -%]
my $node_state = qx(ngcp-check-active -v);
chomp $node_state;
$stash->set(node_state => $node_state);
[% END -%]
command:
lsmod | grep -Eq "^sunrpc ":
exit-status: 0
stdout: []
stderr: []
[% IF is_proxy && node_state == 'active' && rtpproxy.enabled == "yes" -%]
lsmod | grep -c xt_RTPENGINE:
exit-status: 0
stdout:
- '/^2$/'
stderr: []
[% END -%]

@ -21,6 +21,7 @@ gossfile:
[% IF general.ngcp_type != 'spce' -%]
511_init-daemons-ngcp-pro.yaml: {}
[% END -%]
615_kernel-modules.yaml: {}
800_network-hostname.yaml: {}
[% IF sipwise.system_tester.skip_dns_check_test != "true" -%]
810_network-dns-debian.yaml: {}

Loading…
Cancel
Save