Page MenuHomePhabricator
Feed Advanced Search

Jul 3 2015

epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I decommissioned the old .org host. I'll give the old secure host another week or so since we did hit a couple minor config things where it was useful to double-check that there was a config change.

Jul 3 2015, 5:25 PM · Ops

Jun 29 2015

epriestley closed T8685: Move secure.phabriactor.com halfway into the cluster as Resolved.

I've moved the blog and stopped traffic to the old secure host. I'll decommission both hosts in a few days if nothing crops up.

Jun 29 2015, 9:25 PM · Ops
epriestley closed T5702: Make Aphront "virtual hosts"/sites modular, a subtask of T8685: Move secure.phabriactor.com halfway into the cluster, as Resolved.
Jun 29 2015, 9:04 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Document everything.

Jun 29 2015, 8:25 PM · Ops
epriestley added a subtask for T8685: Move secure.phabriactor.com halfway into the cluster: T5702: Make Aphront "virtual hosts"/sites modular.
Jun 29 2015, 6:37 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Authorize trusted external keys.

Jun 29 2015, 5:31 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Get phabot running again.

Jun 29 2015, 5:06 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.
  • I (probably?) corrected the HTTPS issue by splitting the certificate and certificate chain files.
  • I allowed the host to serve blog.phacility.com, javelinjs.com, and phabricator.org.
  • Javelin and org are working fine so I updated DNS. I'll decommission the existing .org host.
  • blog has some HTTP vs HTTPS stuff that I think I'm going to clean up in Phame itself.
Jun 29 2015, 3:25 PM · Ops
epriestley created T8706: Serve blog.phacility.com from the admin host tier.
Jun 29 2015, 2:34 PM · Ops, Phacility

Jun 27 2015

joshuaspence added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Actually, looking at https://sslcheck.globalsign.com/en_GB/sslcheck?host=secure.phabricator.com#52.8.228.58-srv-reg provides some better insight:

Jun 27 2015, 11:53 PM · Ops
joshuaspence added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Yeah I'm seeing SSL errors as well. Not sure if it helps but there are some items in yellow on https://www.ssllabs.com/ssltest/analyze.html?d=secure.phabricator.com

Jun 27 2015, 11:51 PM · Ops
Mnkras added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I had the same thing as @ftdysa but its fine now...

Jun 27 2015, 11:29 PM · Ops
ftdysa added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Huh, well I don't think I'm crazy. I'll take a screenshot if it happens again.

Jun 27 2015, 5:24 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

It's a single host and I didn't touch anything in the last couple hours.

Jun 27 2015, 5:20 PM · Ops
ftdysa added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Green now, is this behind an lb or could a server be misconfigured?

Jun 27 2015, 5:19 PM · Ops
ftdysa added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Currently on phone so I'm a bit limited but secure.phabricator.com is showing a red lock and the "Your connection is not private warning".

Jun 27 2015, 5:13 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Can you be more specific? I can't reproduce this.

Jun 27 2015, 4:49 PM · Ops
ftdysa added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Unsure if it is due to this but chrome is complaining about your ssl cert.

Jun 27 2015, 4:38 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I think I'm going to bring .org onto this host for simplicity/consistency, too. Putting it on corp is messy because of SSL, but putting it here for now should be straightforward.

Jun 27 2015, 3:06 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Oh, I need to hook up diviner / symbols, too. I'm probably just going to cron those. So still-remaining stuff I'm aware of is:

Jun 27 2015, 3:05 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I manually installed xhprof on the host since it needs some special setup steps that aren't trivial to integrate into the deployment tools, and isn't particularly important to have available.

Jun 27 2015, 2:18 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Backups work but won't be run automatically by cluster administration services, although they are reported. I'm just going to cron them for now.

Jun 27 2015, 2:03 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Stuff I'm still tracking:

Jun 27 2015, 1:47 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.
  • I configured HTTP -> HTTPS in a standard way (on this host, it involves some legacy oddness).
  • I added host SSH keys and switched the tier to use them.
  • I verified external connectivity and reasonable-seeming repo connectivity.
  • I created secure001.phacility.net and sbak001.phacility.net devices on Admin, so generating routine backups will depend on the cluster being available. This seems acceptable as a dependency.
  • I added run.repo to the host attributes to get repo backups working and verified repo backups get written.
  • I dumped all the data and moved it over.
  • I renamespace'd the database to secure and loaded it, then made config adjustments to use this as the storage namespace.
  • I unpacked the repos into /core/repo/secure, then made a config adjustment for this.
  • I allocated a new elastic IP and swapped DNS over (we still have javelinjs on the old box, plus we can't reuse a non-VPC elastic IP in a VPC).
Jun 27 2015, 1:39 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I've completed the cluster deployment and am resuming this now.

Jun 27 2015, 11:42 AM · Ops

Jun 26 2015

epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I think this is kind-of working now. I'm going to take a break for today and pick it back up tomorrow since I'm pretty close to bringing the data over, which might take a while, and I'm sort of committed to finishing once I start it.

Jun 26 2015, 10:45 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.
  • I created a new instance.secure security group. I removed port 25 (SMTP), since we now use Mailgun for inbound mail. I removed port 843 (Flash sockets) since we no longer use them. I changed administrative SSH from 222 to 2222 for consistency with the vault tier. This leaves us with 22, 80, 443, 2222, and 22280.
  • I launched a secure001 host and added a secure001 DNS entry for it in Route 53.
  • I created and attached sbak001, srepo001 and sdata001 volumes. This is a little overkill but should work well with the tooling.
  • I created a new "secure" host role in rCORE44a038f, and deployed the bastion to get it to recognize the role.
  • I used bin/remote deploy secure001 --port 22 to do an initial deploy.
  • I added secure.conf and the missing sshd library in rCORE95a18f3.
  • I added a bunch of config files and stuff in rCORE78c6c9a. This got SSH moved to 2222 correctly, so --port 22 is no longer required (like vault, this tier does need it for initial deploys).
  • Kept fiddling with config (see diffs), thing is sort of deploying properly now, at least.
Jun 26 2015, 10:02 PM · Ops
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I'm starting this now.

Jun 26 2015, 9:03 PM · Ops
epriestley closed T8686: Expand Phacility cluster repo and db cluster tiers as Resolved.

Stuff that went poorly:

Jun 26 2015, 8:04 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.
  • I set instances.open to 0 on the 001 services and to 1 on the 002 services.
  • I created a new instance and verified it came up on the 002 services.
  • I verified that the test-on-002 instance still worked. Verified that a known 001-instance (meta) still works.
Jun 26 2015, 7:59 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.
  • I connected to the test instance, enabled Darkconsole, verified it was hitting the right DB, etc.
  • I created, cloned, and pushed a repository.
  • I ran host backup explicitly on both machines. This wanted device entries for the volumes for logging. I created them; this completed smoothly afterward.
  • I verified that the backups appeared in the web UI log, that the repository was on the correct host, etc.
Jun 26 2015, 7:55 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.

AppArmor uses file modification time heuristics to decide whether it can read a cache or not. This heuristic guesses the wrong result in the deployment case. I added -T to stop it from using the cache in rCORE8371c05b. Instance upgrade/sync operations now work correctly.

Jun 26 2015, 7:47 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.
Jun 26 18:38:15 db002 kernel: [ 1844.819416] type=1400 audit(1435343895.006:33): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/core/conf/mysql/my.cnf" pid=5526 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
Jun 26 18:38:15 db002 kernel: [ 1844.825878] type=1400 audit(1435343895.014:34): apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="/core/conf/mysql/my.cnf" pid=5536 comm="mysqld" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
Jun 26 2015, 7:35 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.
  • I created Almanac service entries for repox002 and dbx002, following the 001 templates. Notably, repo bindings need a protocol specified. I didn't specify "instances.open" on these yet.
  • I created a new instance and verified it came up on repox001 and dbx001 still, since the new services aren't open.
  • I manually edited the instance to move it to the 002 services, then tried to upgrade the database. This failed.
Jun 26 2015, 7:30 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.
  • I created Almanac device entries for these hosts, following db001 and repo001. Both deploys went cleanly once the device entries were created.
  • I used remote ssh <host> to connect to the devices and verified connectivity, volume attachment, deployed libraries, branches, that mysql works on db002, iptables rules, and that nothing appeared otherwise funky or broken. I didn't catch anything suspicious, except that remote deploy doesn't initialize or mount the backup volume: we do that when we actually perform backups. It probably should, just to catch misconfiguration/errors earlier. For now, I'll do this manually later on. I filed T8688 to follow up.
Jun 26 2015, 7:05 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.

When creating device entries, I discovered AlmanacServiceQuery has a bug where name is not returned in the paging map. This prevents paging when an install has more than 100 service entries.

Jun 26 2015, 6:51 PM · Ops, Phacility
epriestley added a revision to T8686: Expand Phacility cluster repo and db cluster tiers: Restricted Differential Revision.
Jun 26 2015, 6:50 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.

When a new host comes up with no instances, we don't handle it cleanly at the tail end of deployment.
This cleared MySQL deployment and just left us with the "no instances" issue on both hosts.

Jun 26 2015, 6:44 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.

We don't actually install MySQL onto hosts in the db role.

Jun 26 2015, 6:38 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.
  • I launched repo002 and db002 into the cluster.
  • I created .phacility.net DNS entries for the hosts.
  • I created ddata002, dbak002, rdata002 and rbak002 volumes and attached them according to Adding Cluster Hardware.
  • I used bin/remote deploy <host> to deploy each host. Both hosts deployed mostly cleanly.
Jun 26 2015, 6:29 PM · Ops, Phacility
epriestley added a comment to T8686: Expand Phacility cluster repo and db cluster tiers.

I'm starting this now. This should ideally be routine, but I expect there will be a few hiccups.

Jun 26 2015, 6:05 PM · Ops, Phacility
epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

For communication, my plan today would just be to use IRC/email/phonecalls since we have a small team, run operations mostly in the open, and are all regularly available on these other channels, and the likely course of action is "wait for AWS to come back up". I think that's generally reasonable until we have a larger operations team and more operational responses available, so I'm not particularly concerned about Conpherence/Maniphest on this instance being down.

Jun 26 2015, 5:55 PM · Ops
btrahan added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

This is great. When / ever do you plan to be able to survive the whole AWS datacenter going out/

Jun 26 2015, 5:33 PM · Ops
epriestley created T8686: Expand Phacility cluster repo and db cluster tiers.
Jun 26 2015, 4:52 PM · Ops, Phacility
epriestley created T8685: Move secure.phabriactor.com halfway into the cluster.
Jun 26 2015, 4:30 PM · Ops

May 29 2015

epriestley closed T8210: Phacility Cluster: Bastion host stopped responding as Resolved.

See subtasks for details, but I've:

May 29 2015, 12:00 AM · Ops, Phacility

May 25 2015

epriestley added a revision to T8210: Phacility Cluster: Bastion host stopped responding: Restricted Differential Revision.
May 25 2015, 3:00 AM · Ops, Phacility
epriestley closed T8205: Add timeouts to commands executed through the bastion, a subtask of T8210: Phacility Cluster: Bastion host stopped responding, as Wontfix.
May 25 2015, 2:49 AM · Ops, Phacility
epriestley closed T8204: Stop using EC2 micro instances, a subtask of T8210: Phacility Cluster: Bastion host stopped responding, as Resolved.
May 25 2015, 2:49 AM · Ops, Phacility

May 15 2015

epriestley closed T8206: Make authorize-user part of bastion deployment, a subtask of T8210: Phacility Cluster: Bastion host stopped responding, as Resolved.
May 15 2015, 5:42 PM · Ops, Phacility
epriestley updated the task description for T8210: Phacility Cluster: Bastion host stopped responding.
May 15 2015, 2:51 PM · Ops, Phacility
epriestley added subtasks for T8210: Phacility Cluster: Bastion host stopped responding: T8206: Make authorize-user part of bastion deployment, T8205: Add timeouts to commands executed through the bastion, T8204: Stop using EC2 micro instances, T8203: Make Phacility account import default to "ignore" and confirm imports.
May 15 2015, 1:10 PM · Ops, Phacility
epriestley created T8210: Phacility Cluster: Bastion host stopped responding.
May 15 2015, 1:09 PM · Ops, Phacility

Mar 23 2015

epriestley closed T7649: Renew secure.phabricator.com SSL certificate as Resolved.

ops woo~~

Mar 23 2015, 4:57 PM · Ops
epriestley created T7649: Renew secure.phabricator.com SSL certificate.
Mar 23 2015, 3:45 PM · Ops

Dec 30 2014

epriestley closed T6756: secure.phabricator.com has AWS scheduled reboot on Dec 29 21:00 UTC as Resolved.

I, uh, guess this happened? Or I didn't do math? Or Amazon pranked us? I was running some errands and didn't see the thing go down, but I guess I'll take it.

Dec 30 2014, 12:20 AM · Ops

Dec 29 2014

chad added a comment to T6756: secure.phabricator.com has AWS scheduled reboot on Dec 29 21:00 UTC.

I math.

Dec 29 2014, 9:56 PM · Ops
epriestley updated subscribers of T6756: secure.phabricator.com has AWS scheduled reboot on Dec 29 21:00 UTC.

If I did the math right, this is happening in about two hours (1PM PST). I'll do a backup before the downtime but don't plan to move the instance (I think it would take long enough that it's not worth it), so we'll probably be offline from about 1PM - 3PM.

Dec 29 2014, 7:08 PM · Ops

Dec 15 2014

epriestley created T6756: secure.phabricator.com has AWS scheduled reboot on Dec 29 21:00 UTC.
Dec 15 2014, 9:23 PM · Ops

Sep 2 2014

chad closed T6020: beso task as Spite.

nyancat

Sep 2 2014, 3:36 PM · Ops
• beso created T6020: beso task.
Sep 2 2014, 2:26 PM · Ops