Currently they use instance ids, which are horrible, horrible things.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
salt: Use fqdn as client id for labs as well | operations/puppet | production | +0 -3 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Andrew | T1154 Make labs salt use instance names than ids | |||
Resolved | Andrew | T95480 Abolish use of ec2id in cert names | |||
Resolved | ArielGlenn | T95481 Fix monitor_labs_salt_keys.py to handle the new labs naming scheme | |||
Resolved | Andrew | T95519 Automatically clean salt and puppet certs on instance deletion |
Event Timeline
Change 179592 had a related patch set uploaded (by Yuvipanda):
salt: Use fqdn as client id for labs as well
So... talked to Ryan Lane some more and this is more complicated than expected ;)
Problem with fqdn is that deleting and creating an instance will cause complications because the salt (and puppet too, for that matter) certificates for the old instance won't be purged, so puppet/salt won't work.
Solution to this is to write a nova plugin that purges salt/puppet certs when an instance gets deleted.
Change 179592 abandoned by Yuvipanda:
salt: Use fqdn as client id for labs as well
Reason:
Issss uselessssss
I've setup a salt environment today: The DNS seems to work fine with a minor tweak: In the pre-generated /etc/salt/minion there's a line starting with "id:" which sets the ec2id. If I remove these salt only uses the proper hostnames in salt-key.
This will be a part of the roll-out of https://gerrit.wikimedia.org/r/#/c/202924/ on Thursday.