Page MenuHomePhabricator

tcpircbot: enable logging to #wikimedia-cloud-feed
Closed, ResolvedPublic

Description

Spicerack includes the irc_logger and sal_logger that write to IRC by sending a message to Stashbot. Spicerack's configuration lets you specify tcpircbot_host and tcpircbot_port that are used to connect to Stashbot.

As documented in wmflib/irc.py, "The combination of hostname:port identifies a specific IRC channel, and for the moment only the #wikimedia-operations one is configured."

We want to add an additional listening port to our Stashbot deployment, with messages sent to that port being relayed to #wikimedia-cloud-feed, to enable SAL logging for WMCS cookbooks as described in T325756.

Event Timeline

fnegri changed the task status from Open to In Progress.
fnegri moved this task from Backlog to In progress on the cloud-services-team (FY2022/2023-Q4) board.

Change 941441 had a related patch set uploaded (by FNegri; author: FNegri):

[operations/puppet@production] tcpircbot: add another port for cloud IRC logging

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

Change 941441 merged by FNegri:

[operations/puppet@production] tcpircbot: add another port for cloud IRC logging

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

Change 943571 had a related patch set uploaded (by FNegri; author: FNegri):

[labs/tools/stashbot@master] Support new logmsgbot_cloud bot

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

Change 943580 had a related patch set uploaded (by FNegri; author: FNegri):

[operations/puppet@production] tcpircbot: use same nickname for both bots

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

Change 943580 merged by FNegri:

[operations/puppet@production] tcpircbot: use same nickname for both bots

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

Change 943571 merged by jenkins-bot:

[labs/tools/stashbot@master] Support new logmsgbot_cloud bot

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

[20:09]  <    bd808> flags #wikimedia-cloud-feed logmsgbot_cloud +V
[20:09] -ChanServ- logmsgbot_cloud is not registered.
[20:10]  <    bd808> info logmsgbot_cloud
[20:10] -NickServ- logmsgbot_cloud is not registered.
[20:10]  <    bd808> info logmsgbot
[20:10] -NickServ- Information on logmsgbot (account logmsgbot):
[20:10] -NickServ- Registered : May 20 10:45:11 2021 +0000 (2y 10w 2d ago)
[20:10] -NickServ- Last seen  : (less than two weeks ago)
[20:10] -NickServ- User seen  : (less than two weeks ago)
[20:10] -NickServ- Flags      : HideMail, Private
[20:10] -NickServ- logmsgbot has enabled nick protection
[20:10] -NickServ- *** End of Info ***

The logmsgbot_cloud nick should either be grouped to the logmsgbot account or a new account should be registered for the new nick.

I grouped logmsgbot_cloud to the existing logmsgbot account:

16:16 <logmsgbot_cloud> identify logmsgbot {LOGMSGBOT_PASSWORD}
16:16 -- NickServ: You are now identified for logmsgbot.
16:16 -- NickServ: Last login from: ~dhinus@host-80-117-33-113.pool80117.interbusiness.it on Aug 01 14:14:50 2023 +0000.
16:17 <logmsgbot_cloud> group
16:17 -- NickServ: Nick logmsgbot_cloud is now registered to your account.
16:17 <logmsgbot_cloud> info logmsgbot_cloud
16:17 -- NickServ: Information on logmsgbot_cloud (account logmsgbot):
16:17 -- NickServ: Registered : Aug 01 14:17:01 2023 +0000 (15s ago)
16:17 -- NickServ: User reg.  : May 20 10:45:11 2021 +0000 (2y 10w 3d ago)
16:17 -- NickServ: Last addr  : ~dhinus@host-80-117-33-113.pool80117.interbusiness.it
16:17 -- NickServ: Last seen  : now
16:17 -- NickServ: User seen  : now
16:17 -- NickServ: Logins from: logmsgbot logmsgbot_cloud
16:17 -- NickServ: Nicks      : logmsgbot logmsgbot_cloud
16:17 -- NickServ: Email      : root@wikimedia.org (hidden)
16:17 -- NickServ: Flags      : HideMail, Private
16:17 -- NickServ: Channels   : 0 founder, 2 other
16:17 -- NickServ: logmsgbot has enabled nick protection
16:17 -- NickServ: *** End of Info ***

I grouped logmsgbot_cloud to the existing logmsgbot account:

Thank you. :)

[14:28] ChanServ sets mode +v logmsgbot_cloud

[14:28] ChanServ sets mode +v logmsgbot_cloud

Thanks, I was about to ask you! :)