Page MenuHomePhabricator
Feed Advanced Search

Dec 18 2015

hach-que added a comment to T9994: Merge conflicts causes resources not being able to be released.

T9875 is different to this. This discusses leases being deadlocked, whereas T9875 is there not being enough storage space on the host to hold copies of all working copies + build artifacts at once.

Dec 18 2015, 1:41 PM · Drydock, Differential, Bug Report
epriestley added a project to T9994: Merge conflicts causes resources not being able to be released: Drydock.
Dec 18 2015, 1:38 PM · Drydock, Differential, Bug Report
epriestley merged task T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically into T9994: Merge conflicts causes resources not being able to be released.
Dec 18 2015, 1:37 PM · Bug Report, Drydock

Dec 16 2015

epriestley closed T9975: Working copy leases are randomly released when drawing on a non-instant host resource pool as Invalid.

This does not describe a bug with the upstream. We do not have the resources to investigate or fix problems which begin with "apply <large amount of custom code>". See also T5447.

Dec 16 2015, 3:34 PM · Drydock, Bug Report

Dec 15 2015

hach-que added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

@epriestley I hit this again. These are some stats from SSHing into the machine:

Dec 15 2015, 12:39 AM · Bug Report, Drydock
hach-que added a project to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically: Bug Report.
Dec 15 2015, 12:37 AM · Bug Report, Drydock

Dec 13 2015

hach-que created T9975: Working copy leases are randomly released when drawing on a non-instant host resource pool.
Dec 13 2015, 11:50 AM · Drydock, Bug Report

Dec 9 2015

epriestley closed T9939: bin/drydock lease doesn't work at all any more as Invalid.

I can't reproduce this issue by following the steps in the report:

Dec 9 2015, 10:14 AM · Drydock, Bug Report
joshuaspence added a project to T9939: bin/drydock lease doesn't work at all any more: Drydock.
Dec 9 2015, 8:49 AM · Drydock, Bug Report

Dec 8 2015

epriestley renamed T1816: Support downloading a compressed working copy (tar/zip) of a repository at a specific commit or tag from Support download tag archive file to Support downloading a compressed working copy (tar/zip) of a repository at a specific commit or tag.
Dec 8 2015, 5:24 PM · Drydock, Diffusion
epriestley updated subscribers of T1816: Support downloading a compressed working copy (tar/zip) of a repository at a specific commit or tag.
Dec 8 2015, 5:19 PM · Drydock, Diffusion

Dec 2 2015

hach-que added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

So you have a machine full of unused working copies, and Drydock is failing every build instead of reusing them?

Dec 2 2015, 9:03 PM · Bug Report, Drydock
hach-que added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

What happens if a new configuration / request comes in that doesn't match any of the available 16 working copies?

Dec 2 2015, 8:48 PM · Bug Report, Drydock
epriestley added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

still won't get cleaned up and instead Drydock will just fail to allocate.

Dec 2 2015, 8:46 PM · Bug Report, Drydock
hach-que added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

It's running out of disk space because Drydock isn't cleaning up the working copies and they're consuming all the disk space.

Dec 2 2015, 8:45 PM · Bug Report, Drydock
epriestley added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

So you have a machine full of unused working copies, and Drydock is failing every build instead of reusing them?

Dec 2 2015, 8:45 PM · Bug Report, Drydock
hach-que added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

Because if I don't clean it up, then every build from then on will fail until I fix it?

Dec 2 2015, 8:43 PM · Bug Report, Drydock
epriestley added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

When this happens, there'll be hundreds of builds all running at the same time, which can result in hundreds of working copies for the same repository.

Dec 2 2015, 4:31 PM · Bug Report, Drydock
hach-que added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

fyi my Phabricator instance currently has 80 working copy resources open

Dec 2 2015, 3:55 AM · Bug Report, Drydock

Dec 1 2015

hach-que added a comment to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically.

This usually happens when rebasing an upstream repository after a significant amount of time (like six months). When this happens, there'll be hundreds of builds all running at the same time, which can result in hundreds of working copies for the same repository.

Dec 1 2015, 1:14 AM · Bug Report, Drydock
chad added a project to T9875: Build hosts run out of disk space because Drydock doesn't clean up working copies automatically: Drydock.
Dec 1 2015, 1:08 AM · Bug Report, Drydock

Nov 30 2015

hach-que added a comment to T9872: Give Drydock Working Copies useful names.

Because I have a lot of repositories, and there are multiple copies of each repository (because things are running in parallel), I will run out of disk space if I have multiple full copies of every repository in Phabricator kept on the build hosts for all time.

Nov 30 2015, 10:39 PM · Drydock
epriestley added a subtask for T6455: Implement support for dynamically building new AMI / disk image blueprints in Drydock: T5544: Implement EC2 blueprint for Drydock.
Nov 30 2015, 4:45 PM · Drydock
epriestley added a parent task for T5544: Implement EC2 blueprint for Drydock: T6455: Implement support for dynamically building new AMI / disk image blueprints in Drydock.
Nov 30 2015, 4:45 PM · Drydock
epriestley triaged T6455: Implement support for dynamically building new AMI / disk image blueprints in Drydock as Wishlist priority.
Nov 30 2015, 4:45 PM · Drydock
epriestley closed T9872: Give Drydock Working Copies useful names as Invalid.

I'll need to at some point go and clean these up.

Nov 30 2015, 4:44 PM · Drydock
epriestley closed T9698: Allow bots to have email addresses assigned to them as Invalid.
  • I believe username association works correctly.
  • Assigning an email is already mandatory when creating a bot:
Nov 30 2015, 4:42 PM · Drydock, People, Diffusion
epriestley moved T1816: Support downloading a compressed working copy (tar/zip) of a repository at a specific commit or tag from Backlog to Future on the Drydock board.
Nov 30 2015, 4:40 PM · Drydock, Diffusion
epriestley merged task T9760: Autoscaling for Almanac devices into T5544: Implement EC2 blueprint for Drydock.
Nov 30 2015, 4:40 PM · Drydock, Almanac
epriestley merged T9760: Autoscaling for Almanac devices into T5544: Implement EC2 blueprint for Drydock.
Nov 30 2015, 4:40 PM · Drydock
epriestley added a comment to T9760: Autoscaling for Almanac devices.

I don't plan Almanac to ever autoscale. Autoscaling would be via a new, non-Almanac EC2 blueprint (or similar blueprints, which permit creation of new host resources). I'm just going to merge this into T5544.

Nov 30 2015, 4:39 PM · Drydock, Almanac
epriestley moved T9872: Give Drydock Working Copies useful names from Backlog to Future on the Drydock board.
Nov 30 2015, 4:39 PM · Drydock
hach-que updated the task description for T9872: Give Drydock Working Copies useful names.
Nov 30 2015, 3:26 PM · Drydock
hach-que updated the task description for T9872: Give Drydock Working Copies useful names.
Nov 30 2015, 3:26 PM · Drydock
hach-que created T9872: Give Drydock Working Copies useful names.
Nov 30 2015, 3:25 PM · Drydock
hach-que added a comment to T9519: Design the Drydock Blueprint selection mechanism.

fyi I ended up implementing Protobuild.exe --build and a bunch of other functionality (like support for build scripts), which negated the need for having separate build plans for each platform

Nov 30 2015, 9:59 AM · Drydock

Nov 28 2015

epriestley added a comment to T9862: Harbormaster fails to queue lease .

Can you point out which parts of Contributing Bug Reports, User Guide: Prototype Applications and Support Resources are unclear to you with respect to this report so we can improve the documentation?

Nov 28 2015, 4:25 PM · Drydock, Harbormaster
hvr added a comment to T9862: Harbormaster fails to queue lease .

So I guess this bug is neither a known issue nor do you want me to provide more details since it's a prototype app?

Nov 28 2015, 4:06 PM · Drydock, Harbormaster
hach-que added a revision to T6454: Implement support for KVM-based hosts in Drydock: Restricted Differential Revision.
Nov 28 2015, 11:05 AM · Drydock

Nov 27 2015

epriestley closed T9862: Harbormaster fails to queue lease as Invalid.

Drydock is also a prototype, see User Guide: Prototype Applications.

Nov 27 2015, 4:14 PM · Drydock, Harbormaster
chad added a comment to T9862: Harbormaster fails to queue lease .

We always need a fully formed bug report. See Contributing Bug Reports.

Nov 27 2015, 3:48 PM · Drydock, Harbormaster
hvr updated the task description for T9862: Harbormaster fails to queue lease .
Nov 27 2015, 9:49 AM · Drydock, Harbormaster
hvr created T9862: Harbormaster fails to queue lease .
Nov 27 2015, 9:27 AM · Drydock, Harbormaster

Nov 23 2015

epriestley closed T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier as Resolved by committing Restricted Diffusion Commit.
Nov 23 2015, 1:58 PM · Harbormaster, Drydock

Nov 22 2015

epriestley added a revision to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier: Restricted Differential Revision.
Nov 22 2015, 11:01 PM · Harbormaster, Drydock
epriestley moved T9811: Make it easier to diagnose command failures occurring inside Drydock allocations from Backlog to Far Future on the Drydock board.
Nov 22 2015, 10:09 PM · Drydock
epriestley added a comment to T9811: Make it easier to diagnose command failures occurring inside Drydock allocations.

This obscurity is currently intentional, for policy/security reasons. I don't want to leak anything sensitive into the relatively-accessible web UI.

Nov 22 2015, 10:09 PM · Drydock
epriestley triaged T9811: Make it easier to diagnose command failures occurring inside Drydock allocations as Wishlist priority.
Nov 22 2015, 10:04 PM · Drydock
epriestley merged T9812: Show SSH diagnostic information in Drydock logs into T9811: Make it easier to diagnose command failures occurring inside Drydock allocations.
Nov 22 2015, 10:04 PM · Drydock
epriestley merged task T9812: Show SSH diagnostic information in Drydock logs into T9811: Make it easier to diagnose command failures occurring inside Drydock allocations.
Nov 22 2015, 10:04 PM · Drydock

Nov 21 2015

epriestley renamed T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier from Begin searching for Drydock / Harbormaster gremlins which prevent builds from starting properly to Add objectPHID to Harbormaster workers to make root cause analysis easier.
Nov 21 2015, 4:24 PM · Harbormaster, Drydock
epriestley added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

I'm going to repurpose this as "get that data in the database so we're better prepared if this happens again", but feel free to follow up if you go on a hunting expedition or hit the issue in the meantime.

Nov 21 2015, 4:24 PM · Harbormaster, Drydock
epriestley moved T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier from Backlog to v2 on the Harbormaster board.
Nov 21 2015, 4:21 PM · Harbormaster, Drydock

Nov 19 2015

joshuaspence renamed T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier from Begin searching for drydock / harbormaster gremlins which prevent builds from starting properly to Begin searching for Drydock / Harbormaster gremlins which prevent builds from starting properly.
Nov 19 2015, 7:32 AM · Harbormaster, Drydock
hach-que updated the task description for T9811: Make it easier to diagnose command failures occurring inside Drydock allocations.
Nov 19 2015, 3:08 AM · Drydock
hach-que added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

Based on my memory, I think it's possible that exception is the cause of the issue; when it occurs, the exception ends the current worker task with a permanent failure, and the task won't be revisited. Thus the build remains pending because the worker that would have performed the next update failed to do so.

Nov 19 2015, 3:03 AM · Harbormaster, Drydock
epriestley added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

My next step would be to put more crumbs in the UI, but we're missing a little data right now. Basically, I'd do this:

Nov 19 2015, 3:03 AM · Harbormaster, Drydock
yelirekim added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

We can leave this at "reduced expected incidence rate to < 1/3k" and I'll come back here if it happens again if you don't have any more obvious ideas.

Nov 19 2015, 2:55 AM · Harbormaster, Drydock
yelirekim added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

Oh I lied, checked the old logs, this error was present the last two times it occurred, but not present when it happened this evening.

Nov 19 2015, 2:51 AM · Harbormaster, Drydock
yelirekim added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

This perfectly recreates the symptoms, except it generates an error in the daemon log:

Nov 19 2015, 2:49 AM · Harbormaster, Drydock
epriestley added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

Specifically, if you put like a sleep(10) directly after applyPlan() I would expect that to trigger the race ~100% of the time as long as the queue isn't too full. You could see if the behavior is similar to the behavior you've observed.

Nov 19 2015, 2:24 AM · Harbormaster, Drydock
epriestley added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

Yeah, I think that can race. Here's an example -- open two connections to MySQL, mysql1> and mysql2>. In the first window do this:

Nov 19 2015, 2:21 AM · Harbormaster, Drydock
yelirekim added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

DAO's prefixed CISubmitQueue are in their own database. There has never been any problems with referential integrity / never seen anything in the database that would indicate we'd written records incorrectly. But you may be right about the tasks being written before the plan is written. I suspect that would cause errors though, I can try to reproduce that first in order to rule out our specifics being the problem.

Nov 19 2015, 2:13 AM · Harbormaster, Drydock
yelirekim added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

Let me post the whole block, it didn't seem relevant:

Nov 19 2015, 2:10 AM · Harbormaster, Drydock
epriestley added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

Oh, you removed openTransaction(), so that's probably not the culprit.

Nov 19 2015, 2:09 AM · Harbormaster, Drydock
epriestley added a comment to T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.

It's vaguely possible that openTransaction() is the culprit. applyPlan() queues a daemon task, and I could imagine the race might be:

Nov 19 2015, 2:08 AM · Harbormaster, Drydock
yelirekim updated the task description for T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.
Nov 19 2015, 2:07 AM · Harbormaster, Drydock
yelirekim updated the task description for T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.
Nov 19 2015, 2:06 AM · Harbormaster, Drydock
yelirekim updated the task description for T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.
Nov 19 2015, 2:04 AM · Harbormaster, Drydock
yelirekim created T9816: Add objectPHID to Harbormaster workers to make root cause analysis easier.
Nov 19 2015, 2:03 AM · Harbormaster, Drydock

Nov 18 2015

hach-que added a comment to T6454: Implement support for KVM-based hosts in Drydock.

@epriestley I have a reasonable implementation of this working on the new Drydock architecture. I want to pursue this before EC2 so we can ensure that all of the locking mechanisms are working correctly before we use the new Drydock on something that potentially costs money (and in the event that Drydock goes haywire, may cost thousands of dollars). KVM offers a safe alternative, because if Drydock goes haywire, the worst that will happen is that it won't be able to allocate new VMs on the KVM host due to out of memory errors.

Nov 18 2015, 3:04 PM · Drydock
hach-que claimed T9812: Show SSH diagnostic information in Drydock logs.
Nov 18 2015, 3:03 PM · Drydock
hach-que created T9812: Show SSH diagnostic information in Drydock logs.
Nov 18 2015, 3:03 PM · Drydock
hach-que renamed T6454: Implement support for KVM-based hosts in Drydock from Implement support for libvirt-based hosts in Drydock to Implement support for KVM-based hosts in Drydock.
Nov 18 2015, 2:58 PM · Drydock
hach-que added a revision to T9811: Make it easier to diagnose command failures occurring inside Drydock allocations: Restricted Differential Revision.
Nov 18 2015, 2:48 PM · Drydock
hach-que created T9811: Make it easier to diagnose command failures occurring inside Drydock allocations.
Nov 18 2015, 2:46 PM · Drydock

Nov 12 2015

joshuaspence created T9771: Objects which are restricted because of Spaces render as "Unknown" instead of "Restricted".
Nov 12 2015, 9:30 AM · Policy, Spaces

Nov 11 2015

qinchao added a comment to T9252: Unprototype Drydock (v1).

likefromwall.jpeg (346×347 px, 29 KB)

Nov 11 2015, 8:03 AM · Prioritized, Drydock
joshuaspence renamed T9760: Autoscaling for Almanac devices from Easier creation of Almanac devices to Autoscaling for Almanac devices.
Nov 11 2015, 1:33 AM · Drydock, Almanac
joshuaspence updated Q175: Should I Reuse Device Keys? from Should I Reuse Device Keys to Should I Reuse Device Keys?.
Nov 11 2015, 12:04 AM · Drydock, Almanac
joshuaspence updated Q179: How do you configure an Almanac based Drydock resource from How do you configure an Almanac based Drydock ressource to How do you configure an Almanac based Drydock resource.
Nov 11 2015, 12:04 AM · Drydock

Nov 10 2015

joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

Right, Almanac does not support autoscaling.

Nov 10 2015, 11:59 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

Right, Almanac does not support autoscaling. We'll have an EC2 blueprint (and similar) in the future which can manage autoscaling more simply. Almanac is the ground level "I have a list of IPs" version of things.

Nov 10 2015, 11:58 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

bin/almanac register is just a shortcut for "put the private half of a key in the right place on disk, and the public half on the specified Almanac device". Maybe a clearer name would be bin/almanac install-keys.

Nov 10 2015, 11:57 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

Right okay, but I can't autoscale the Drydock Pool right? Because I need to manually create new devices through the UI.

Nov 10 2015, 11:57 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

This just means adding a device interface?

Nov 10 2015, 11:54 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.
  • Bind it to your pool to actually put it in service.
Nov 10 2015, 11:52 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

So what does ./bin/almanac register actually do?

Nov 10 2015, 11:51 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

Right. You just need to:

Nov 10 2015, 11:49 PM · Drydock, Almanac
joshuaspence added a comment to T9760: Autoscaling for Almanac devices.

Ok thanks. So I don't need to register my build agent with ./bin/almanac register?

Nov 10 2015, 11:49 PM · Drydock, Almanac
epriestley added a comment to T9760: Autoscaling for Almanac devices.

Don't do steps (3) or (4)! Those are useless at best, and dangerous at worst.

Nov 10 2015, 11:43 PM · Drydock, Almanac
joshuaspence created T9760: Autoscaling for Almanac devices.
Nov 10 2015, 11:39 PM · Drydock, Almanac
epriestley added a comment to T1816: Support downloading a compressed working copy (tar/zip) of a repository at a specific commit or tag.

This is now meaningfully achievable through Drydock as a repository operation, but we've seen very little interest in it.

Nov 10 2015, 7:15 PM · Drydock, Diffusion
epriestley added a project to T1816: Support downloading a compressed working copy (tar/zip) of a repository at a specific commit or tag: Drydock.
Nov 10 2015, 7:14 PM · Drydock, Diffusion

Nov 3 2015

epriestley added a comment to T9698: Allow bots to have email addresses assigned to them.

Does committing as botusername <anything@anything> definitely not work?

Nov 3 2015, 10:52 AM · Drydock, People, Diffusion
joshuaspence added projects to T9698: Allow bots to have email addresses assigned to them: People, Drydock.
Nov 3 2015, 8:11 AM · Drydock, People, Diffusion

Oct 30 2015

epriestley closed T9669: Harbormaster working copy build step shouldn't crash when user don't set any also clone repository as Resolved by committing Restricted Diffusion Commit.
Oct 30 2015, 4:02 PM · Harbormaster, Drydock
epriestley closed T9674: "Authorized By" links to a 404 as Resolved by committing Restricted Diffusion Commit.
Oct 30 2015, 3:54 PM · Drydock, Harbormaster
epriestley added a comment to T9671: Harbormaster builds and Drydock leases are stuck.

D14368 should fix the issue where you're required to set a dummy "Also Clone" repository.

Oct 30 2015, 3:02 PM · Harbormaster, Drydock
epriestley added a revision to T9669: Harbormaster working copy build step shouldn't crash when user don't set any also clone repository: Restricted Differential Revision.
Oct 30 2015, 3:01 PM · Harbormaster, Drydock