Bugfix backport: sysctl.conf vrouter namespace 11/16911/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 14 Jul 2016 13:10:12 +0000 (15:10 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 14 Jul 2016 13:13:53 +0000 (15:13 +0200)
commit31087865b416f0eab066377c76a0d580d3fd8bd1
tree9bd0ce0a7569ca94da0cedbf9c4afaf1c2a86804
parent189f7049c16975bdc4cf2b5209b7a0c23e424975
Bugfix backport: sysctl.conf vrouter namespace

Upstream bug report [1], proposed change backported from [2].
Temporary backport proposed fix until fuel-library merges it.

Currently net.ipv4.ip_nonlocal_bind is not set inside vrouter
namespace.

This can lead to deployment failure with p_dns error:

ocf-ns_dns: INFO: dnsmasq daemon is not running
ocf-ns_dns: ERROR: dnsmasq: failed to create listening socket for
10.109.5.1: Cannot assign requested address
ocf-ns_dns: ERROR: Error. dnsmasq daemon returned error 0.

We had very similar issue in the past:
https://bugs.launchpad.net/fuel/+bug/1500871

We need to add
ocf_run $RUN_IN_NS /sbin/sysctl -w net.ipv4.ip_nonlocal_bind=1

To get_ns() in ns_dns and ns_vrouter

[1] https://bugs.launchpad.net/fuel/+bug/1595957
[2] https://review.openstack.org/#/c/334415/

Change-Id: Id8d3a2e58de4dccc9a79536bd443294e085f70ff
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
patches/fuel-library/0015-Set-net.ipv4.ip_nonlocal_bind-1-for-vrouter-namespace.patch [new file with mode: 0644]