Page MenuHomePhabricator

set up frpig1001 as payments-listener.frdev.wikimedia.org temporarily
Closed, ResolvedPublic

Description

Not necessarily in this order...

  • confirm that frpig1001 has the same firewall policies as thulium
  • configure nging on frpig1001 to answer for payments-listener.frdev.wikimedia.org with correct SSL cert
  • add DNS entry for payments-listener.frdev.wikimedia.org pointing to 208.80.155.15
  • set up NAT from 208.80.155.15 to frpig1001

Event Timeline

Jgreen updated the task description. (Show Details)
Jgreen updated the task description. (Show Details)

With the local part of the config done (first two steps) we can hit nginx/apache locally to test basic functionality. Here's how I'm doing that, on laptop, set /etc/hosts to include:

127.0.0.1 localhost payments-listener.frdev.wikimedia.org

Then, as root: ssh -i /home/jgreen/.ssh/fr_id_rsa -L 443:frpig1001:443 jgreen@frbast.wikimedia.org

This allows me to use a normal browser to access https://payments-listener.frdev.wikimedia.org/globalcollect via SSH tunnel through the bastion.

I'm getting an HTTP/500 error, here's what's logged at frpig1001:/var/log/syslog for that error:

PHP Fatal error: Uncaught Symfony\\Component\\Yaml\\Exception\\ParseException: (snip)

@Ejegg can you take a look at the Apache error?

Jgreen triaged this task as Medium priority.Aug 21 2018, 9:12 PM

@Jgreen I think I found the yaml error. In my homedir on frpig1001 there's an updated copy of /etc/smashpig/main.yaml that ought to work.

@Jgreen I think I found the yaml error. In my homedir on frpig1001 there's an updated copy of /etc/smashpig/main.yaml that ought to work.

Yah, that worked!

Change 454587 had a related patch set uploaded (by Jgreen; owner: Jgreen):
[operations/dns@master] Simplify frbast* A/PTR/CNAME scheme, add payments-listener.frdev.wikimedia.org

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

Change 454587 merged by Jgreen:
[operations/dns@master] Simplify frbast* A/PTR/CNAME scheme, add payments-listener.frdev.wikimedia.org

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

@Ejegg ok the host is ready for testing

Shoot, I just sent it some Amazon IPNs and got 500 errors. Looks like our last-ditch error handler is masking the original error, too!