that proves that at least nginx, ssl and the firewall is in decent shape.
2015-04-24 11432, 2015
ijabz2 joined the channel
2015-04-24 11450, 2015
ruaok
the most pressing thing I need to know is to how to deactivate and possible re-activate failover ips on carl.
2015-04-24 11400, 2015
ruaok
I'm considering the cut-over scenario.
2015-04-24 11413, 2015
ruaok
turn off one ip on carl, turn it on on ernie.
2015-04-24 11418, 2015
ruaok
test.
2015-04-24 11425, 2015
rvedotrc
ok. Carl is not part of a pair any more, right?
2015-04-24 11428, 2015
ruaok
revert or move on until complete.
2015-04-24 11434, 2015
ruaok
it still is.
2015-04-24 11443, 2015
ruaok
actually we don't have any pairs right now.
2015-04-24 11456, 2015
ruaok
we've got two singles. carl > old, ernie -> new
2015-04-24 11444, 2015
rvedotrc
So it has a configured peer, but the peer is dead, right?
2015-04-24 11404, 2015
ruaok
yes
2015-04-24 11418, 2015
ruaok
he got stuck in a closet somewhere.
2015-04-24 11426, 2015
rvedotrc
ok. bear with me while I remember something...
2015-04-24 11431, 2015
ruaok
k
2015-04-24 11440, 2015
ruaok snickers lenny is in the closet. :)
2015-04-24 11447, 2015
Lotheric joined the channel
2015-04-24 11410, 2015
ruaok
kepstin-laptop: I've added you to the bitbucket team.
2015-04-24 11426, 2015
rvedotrc
OK. IIRC, heartbeat is ok at maintaining the availability of resources, but there's no slick way of adding or removing a resource.
2015-04-24 11431, 2015
rvedotrc
such as an IP address.
2015-04-24 11454, 2015
rvedotrc
so IIRC, the way to do it is: edit the config to remove the ip (i.e. delete a line from haresources),
2015-04-24 11419, 2015
rvedotrc
then remove the IP by hand. One way of doing *that* is via the resource script,
2015-04-24 11435, 2015
rvedotrc
i.e. the same script that heartbeat itself uses to add/check/remove resources,
2015-04-24 11441, 2015
rvedotrc
namely /usr/lib/ocf/resource.d/heartbeat/IPaddr2
2015-04-24 11451, 2015
rvedotrc
but I can't quite remember the invocation syntax.
2015-04-24 11400, 2015
rvedotrc
Or, use /sbin/ip addr del, but be bloody careful.
2015-04-24 11418, 2015
ruaok
me bloody careful?
2015-04-24 11419, 2015
ruaok
houston, we have a problem.
2015-04-24 11450, 2015
ruaok
kepstin-laptop: sadly this is turning into an emergency.
2015-04-24 11455, 2015
ruaok
our gateway is super flaky.
2015-04-24 11456, 2015
rvedotrc
Specifically about the difference between ip addr del x.x.x.x/24 vs ip addr del x.x.x.x/32 vs ip addr del x.x.x.x
2015-04-24 11414, 2015
rvedotrc
One removes just that one IP address. One removes that, plus the others on the same subnet.
2015-04-24 11420, 2015
rvedotrc
Can't remember which is which.
2015-04-24 11421, 2015
rvedotrc
:-/
2015-04-24 11426, 2015
ruaok is doomed
2015-04-24 11431, 2015
kepstin-laptop
ruaok, I just want to confirm - gateway machines are 12.04?
2015-04-24 11403, 2015
ruaok
Ubuntu 14.04.2 LTS
2015-04-24 11405, 2015
kepstin-laptop
to remove a specific ip, use the exact same ip/netmask as shown in the output of "ip addr show'
2015-04-24 11427, 2015
ruaok
ok, that helps. :)
2015-04-24 11437, 2015
zas
images i uploaded yesterday still not have associated json on CAA
2015-04-24 11409, 2015
ruaok
rvedotrc: if I need to get the IP back into haresrouces, what do I do beyond adding it to the file?
2015-04-24 11418, 2015
ruaok
zas: ping bitmap or ianmcorvidae about that.
2015-04-24 11448, 2015
zas
done i guess ;)
2015-04-24 11402, 2015
ijabz2 joined the channel
2015-04-24 11418, 2015
kepstin-laptop
i think recent versions of 'ip addr del' print a warning if you don't include the netmask - not including netmask can do weird things. so always include netmask ;)
2015-04-24 11424, 2015
ruaok
kepstin-laptop: so when I see: "inet 72.29.167.148/28" in the "ip addr show" command, then use "ip addr del inet 72.29.167.148/28" ?
2015-04-24 11430, 2015
kepstin-laptop
yes
2015-04-24 11433, 2015
ruaok
got it.
2015-04-24 11459, 2015
rvedotrc
Like removal, in reverse: either work out how to run /usr/lib/ocf/resource.d/heartbeat/IPaddr2 by hand, or flip to the peer (doh), or restart heartbeat (downtime), or /sbin/ip addr add x.x.x.x/y dev foo
2015-04-24 11455, 2015
rvedotrc
(except that the resource script also does arp sending, so... manually adding with "ip addr add" is likely to result in a little gap before that IP is fully serviceable.)
2015-04-24 11411, 2015
ruaok
define little gap.
2015-04-24 11429, 2015
rvedotrc
30 seconds? /me guesses. ARP syncing.
2015-04-24 11447, 2015
rvedotrc
Time for a switch to work out that the IP has moved to a different port.
2015-04-24 11417, 2015
rvedotrc wanders, back in a few min.
2015-04-24 11433, 2015
kepstin-laptop
you could probably run arping manually to speed that up
2015-04-24 11420, 2015
kepstin-laptop
'arping -I interface -U 72.29.167.148'
2015-04-24 11422, 2015
ruaok
what destination would I give it? new_ip?
2015-04-24 11432, 2015
ruaok
thx
2015-04-24 11449, 2015
kepstin-laptop
yeah, the ip address you just added is the destination