Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HUIT cost allocation tags #4

Merged
merged 1 commit into from
Mar 25, 2019
Merged

Add HUIT cost allocation tags #4

merged 1 commit into from
Mar 25, 2019

Conversation

joshuagetega
Copy link

@joshuagetega joshuagetega commented Dec 19, 2018

Tag manager and workers with 'platform', 'product', and 'environment' tags. These are required by HUIT, as specified here, for cost allocation. This change has been tested - see the tags of the manager and worker instance in the 'test-tagging' cluster. (The tagging of volumes and snapshots is
not implemented here but in a separate PR in our gitlab jupyterhub repo). Let me know if you have any thoughts. Otherwise a thumbs up review is good enough here :).

@@ -71,6 +71,9 @@ def launch_manager(config):
{"Key": "Owner", "Value": config.server_owner},
{"Key": "Creator", "Value": config.server_owner},
{"Key": "Jupyter Cluster", "Value": config.cluster_name},
{"Key": "platform", "Value": "linux"},
{"Key": "environment", "Value": "production"},
Copy link
Member

@arthurian arthurian Jan 7, 2019

Choose a reason for hiding this comment

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

Same comment with respect to the spawner.py (optional param with a default).

@arthurian
Copy link
Member

arthurian commented Jan 7, 2019

@joshuagetega Looks good!

My only comment is that we've hard-coded the environment tag to "production" which would preclude us from allocating costs to any "development" or "sandbox" clusters based on the tag. This also applies to the changes you made to the volume/snapshot tagging in our gitlab repo. I don't see this as a blocker, just something that we might want to address for maximum flexibility down the line.

Copy link
Member

@arthurian arthurian left a comment

Choose a reason for hiding this comment

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

See prior comments.

Tag manager and workers with 'platform', 'product', and 'environment' tags. These are required by HUIT, as specified in https://confluence.huit.harvard.edu/display/CLA/Cloud+Resource+Tagging#CloudResourceTagging-4.5%22platform%22Tag, for cost allocation.
@joshuagetega
Copy link
Author

I have parameterized the tags and provided defaults. Merging ...

@joshuagetega joshuagetega merged commit cea06de into develop Mar 25, 2019
@joshuagetega joshuagetega deleted the add-tags branch March 25, 2019 18:31
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