Page MenuHomePhabricator

Create top-level domain for a project on project creation
Closed, ResolvedPublic

Description

Right now most domain creation/removal is a by-hand, admin only action. New projects should at least get an automatic <project>.wmflabs.org created along with the project.

Shouldn't be too hard, just a designate call from within the keystone hook.

Event Timeline

I think we'll have to do the makedomain-style subdomain creation dance with wmflabsdotorg
Actually let's just import that code and call it?

Change 375089 had a related patch set uploaded (by Alex Monk; owner: Alex Monk):
[operations/puppet@production] [WIP] keystone: Create top-level domain for each new project

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

@Krenair, I am finally looking at your patch for this. It looks good but I want to make the following changes:

  1. Add domain deletion on project deletion
  2. Split out the existing code into a .py library and make 'makedomain' a tool that imports that file

I'm happy to make those changes if you don't feel like it :) First, though, I have to fix some firewall issues that are keeping any of this from working in labtest.

Change 450863 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] designate: allow API access from the keystone host

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

Change 450863 merged by Andrew Bogott:
[operations/puppet@production] designate: allow API access from the keystone host

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

@Krenair, I am finally looking at your patch for this. It looks good but I want to make the following changes:

  1. Add domain deletion on project deletion
  2. Split out the existing code into a .py library and make 'makedomain' a tool that imports that file

I'm happy to make those changes if you don't feel like it :) First, though, I have to fix some firewall issues that are keeping any of this from working in labtest.

Those changes sound good. I don't have an environment I can test this stuff in so it's best if you do it.

Change 375089 merged by Andrew Bogott:
[operations/puppet@production] keystone: Create top-level domain for each new project

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

Change 463329 had a related patch set uploaded (by Andrew Bogott; owner: Andrew Bogott):
[operations/puppet@production] Keystone: followup patch for automatic domain creation/cleanup

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

Change 463329 merged by Andrew Bogott:
[operations/puppet@production] Keystone: followup patch for automatic domain creation/cleanup

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