Page MenuHomePhabricator

Enable connection from labweb1001/labweb1002 to s6
Closed, ResolvedPublic

Description

labswiki will be moved to s6 during the DC switchover in June.
RIght now there is no connectivity from labweb1001/1002 to s6 hosts, so this needs to be changed.

The second step once the connectivity is allowed would be to deploy mysql grants, but that can be tracked after T282074 is done

Current connection to m5 master works:

root@labweb1001:~# telnet db1128.eqiad.wmnet 3306
Trying 10.64.0.98...
Connected to db1128.eqiad.wmnet.
Escape character is '^]'.
]
5.5.5-10.4.18-MariaDB-log��B#&5vtf~�is&a81-/CDiemysql_native_passwordConnection closed by foreign host.

Connection to either s6 master and one of s6 slaves does not work:

root@labweb1001:~# telnet db1131.eqiad.wmnet 3306
Trying 10.64.32.6...
^C
root@labweb1001:~# telnet db1165.eqiad.wmnet 3306
Trying 10.64.16.187...

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Probably the correct solution to this is to move the wikitech servers onto private IPs; I'm creating a subtask to investigate that.

Change 689092 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[operations/puppet@production] profile:mariadb:core: Hack in access from labwebs to s6

https://gerrit.wikimedia.org/r/689092

further discussion suggests that moving to private IPs might not be the right solution/necessary (in part because we hope to deprecate the labweb servers entirely sometime soon.) I've proposed a temporary patch that resembles the current approach used on m5 -- it's pretty straightforward but if you hate it let me know and I can pursue the private-ip approach instead.

In order to have a clearer list of GRANTS, I would prefer private-ip approach (I guess they'd be 10.64.%?). But I don't have any strong opinions really against either approach. We'd need to work on T282573 anyways, to either add the new IPs (if they are public) and remove the old ones.

aborrero moved this task from Inbox to Doing on the cloud-services-team (Kanban) board.

The more I look at moving to private IPs the more complicated it looks... let's stick with the ferm hack for now; when we move wikitech off of labweb* entirely that will make the move to private IPs easier anyway. I'll catch up with comments on the pending ferm patch.

Change 689092 merged by Andrew Bogott:

[operations/puppet@production] profile:mariadb:core: Hack in access from labwebs to s6

https://gerrit.wikimedia.org/r/689092

andrew@labweb1001:~$ telnet db1131.eqiad.wmnet 3306
Trying 10.64.32.6...
Connected to db1131.eqiad.wmnet.
Escape character is '^]'.
]
nskaggs mentioned this in Unknown Object (Task).Mar 31 2022, 8:03 PM