For some reason we can have ip_forward reset sometimes
in the vrouter namespace, which leads to connectivity tests
issues. In order to fix this we move ip_forward setting
to get_ns() function to monitor and set it each monitor operation
Change-Id: I2d10d465259adc1f30161fee488feef4179b5c70
Related-bug: #1654967
1. Do not set routing on status command - this is useless and
destructive
2. Save default routes into a separate file and restore them
after flush
Change-Id: Ia128979920e054343b2ac05e437683772c81731a
Closes-bug: #1654967
1. Both scripts do not flush ip route table for non-local
routes, which makes them non-idempotent
2. Haproxy did not add routes on reload
Change-Id: I498870b45ac47e6d6d8808d18964f3c2777c930c
Closes-bug: #1652765
This change updates the calls that we us in the ocf scripts to determine
if the rules are present to include the -w flag to prevent the scripts
from failing if another iptables call is currently running. It has been
reported that this can occur when the ocf scripts are running in
parallel to the puppet deployment (firewall task)
Change-Id: Ia603f5643720a5fa5407de36ca75830a7c3f57fa
Closes-Bug: #1605540
This change updates the calls that we use in the ocf scripts to
determine if the rules are present to include the -n flag to prevent
unnecessary dns lookups which can lead to deployment failures if dns is
unavailable.
Change-Id: I17d04fbad6def1217429fc3c92bed997fd510eb8
Closes-Bug: #1605540
Now ip-netns also displays namespace ids,
here are outputs:
root@14.04:~# ip netns list | tail -1
vrouter
root@16.04:~# ip netns list | tail -1
haproxy (id: 0)
Closes-bug: #1580963
Change-Id: I2966a19ef078f256464a93be549215648b036828
Now "ip link" has "@"-signes in 2nd columnt,
here are outputs:
root@14.04:~# ip link | grep vr-host-base
17: vr-host-base: <BROADCAST,MULTI...
root@16.04:~# ip link | grep vr-host-base
1708: vr-host-base@if1707: <BROADCAST,MULTI...
Closes-bug: #1581058
Change-Id: I200673d68c49e5ce59f24718c6d131fb5a04b74c
This patchset implements:
* remove proxy-arp artefects
* replace internal (broken in ubuntu) Send Gratuitous ARP manner to arping
* optimize monitor() method
* remove ifconfig usage. Only iproute2 used.
* remove NIC parameter. Only bridges may be connected with network namespace without proxy-arp.
* remove unused parameters
* remove setup forwarding (not need more for bridging + veth-pairs usage)
* use arping instead icmp ping, because no IP address from VIP subnet on host system allowed.
Change-Id: I0d545567de84e13bf88fd95e2fc13a03378693b0
Closes-bug: 1485951
W/o this patch, the most of the OCF agents
sending their own logs to nothere.
This is a major issue, because we want to
be able troubleshoot and keep OCF events
in syslog and collected at remote logs
server(s) as well.
The solution is to enable HA_LOGTAG and
HA_LOGFACILITY for each OCF script shipped
with the Fuel.
DocImpact: Ops guide. Logging events from
Fuel OCF agents will be collected both
locally in the /var/log/daemon.log and remotely,
with the file names based on the agent "foo-agent"
name as the "ocf-foo-agent.log". Note, that the
RabbitMQ will continue to log its OCF events
to the lrmd.log due to backwards compatibility reasons.
Closes-bug: #1487083
Change-Id: Ida2d5fe31de42d31131e0f3a3e7b1a771caf8dfd
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
* Use function instead of hardcoded values
* Use ocf_handlers for vrouter and vip manifests
* Add prefix option to pcmk wrapper
* Netmask_to_cidr should always return strings
* Fix naming of interfaces in vrouter OCF
Implements: blueprint templates-for-networking
Related-Blueprint: detach-components-from-controllers
Change-Id: I3527f2d85baac83b209c7af713466b593238555f