Page MenuHomePhabricator

Nova Instance creation hook for ldap
Closed, ResolvedPublic

Description

For an instance to properly work it needs an ldap host record. Currently that's all created by OpenStackManager, so we need a proper nova hook to do it instead so that instances can be started via Horizon.

...or... we could move off ldap entirely. Details here: https://wikitech.wikimedia.org/wiki/Ldap_hosts

Event Timeline

Andrew claimed this task.
Andrew raised the priority of this task from to Medium.
Andrew updated the task description. (Show Details)
Andrew added a project: Cloud-Services.
Andrew added subscribers: Aklapper, Andrew.

This is now happening. Designate-sink is running a custom plugin python-nova-ldap that creates ldap entries with new instances and deletes them when the instances are deleted.

It also cleans up puppet and salt certs of the form <hostname>.<project>.eqiad.wmflabs. Of course those certs don't exist at the moment, but they will.

Related patches:

https://gerrit.wikimedia.org/r/#/c/204547/
https://gerrit.wikimedia.org/r/#/c/204549/

Note that at the moment the ldap entries created are dummies, to prevent conflict with the live entries. After this process has proved itself a bit I'll switch things over and remove the ldap host creation code from OpenStackManager.

Andrew moved this task from To Do to Done on the Labs-Sprint-102 board.