Skip to content

Conversation

kfindeisen
Copy link
Member

@kfindeisen kfindeisen commented Sep 14, 2023

This PR removes the make_pgpass module entirely, and uses the extra freedom to switch the APDB access code in MiddlewareInterface to a single URL. It updates the Playbook to reflect the reduced number of input variables as well as our migration from Slaclab to Argo CD.

@kfindeisen kfindeisen force-pushed the tickets/DM-36772 branch 2 times, most recently from 3d719f6 to 240947e Compare September 20, 2023 21:00
The old code generated a .pgpass file on the fly, an approach that is
both fiddly and brittle. It's more robust to let the Kubernetes
framework provide the file, but the file-generation code will break if
a file is already present.
The .pgpass file, and the credentials within it, are now managed
directly by Kubernetes. This change also eliminates the need to read
many of these credentials as individual environment variables.
The URL_APDB variable directly identifies the SQL database used as the
APDB. The only additional information that needs to be provided is the
namespace/schema, which is handled separately by the dax.apdb.ApdbSql
interface.
* CALIB_REPO: URI to repo containing calibrations (and templates)
* LSST_DISABLE_BUCKET_VALIDATION: set this so to disable validation of S3 bucket names, allowing Ceph multi-tenant colon-separated names to be used.
* IP_APDB: IP address or hostname and port of the APDB (see `Databases`_, below)
* IP_REGISTRY: IP address or hostname and port of the registry database (see `Databases`_)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IP_REGISTRY and DB_REGISTRY are also mentioned in the Google Cloud session and may be deleted together?

Though I recall that in a previous meeting we agreed to terminate those running on Google Cloud so I'm not sure how much we care about that session.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the catch is that this version of the code won't work on Google (we can't get a .pgpass file with the right permissions there). So if you're running on Google, you must be using a version that still uses those variables. 😵‍💫

@kfindeisen kfindeisen force-pushed the tickets/DM-36772 branch 3 times, most recently from 627cd6f to 838a356 Compare September 20, 2023 23:48
@kfindeisen
Copy link
Member Author

I pushed a revised version of the Argo CD instructions -- it turns out you can redeploy purely from Argo, as long as you don't have any phalanx changes to sync. 🙂

@kfindeisen kfindeisen force-pushed the tickets/DM-36772 branch 2 times, most recently from d8414e2 to b311e10 Compare September 21, 2023 17:18
The SLACLab repository no longer has deployment scripts for the prompt
processing service.
@kfindeisen kfindeisen merged commit 4263c0e into main Sep 21, 2023
@kfindeisen kfindeisen deleted the tickets/DM-36772 branch September 21, 2023 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants