-
Notifications
You must be signed in to change notification settings - Fork 40
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
[nexus] remove services
queries & OMDB commands
#5044
Conversation
after a bunch of messing with it i made the executive decision to just get rid of that test. the test for DNS propagation exercises it, and it's harder to test now
This reverts commit 9a3f15d.
Depends on #5033. As described in #4947, we would like to remove the `services` table, as its only remaining use is DNS propagation. PR #5033 changes DNS propagation to no longer use the `services` table. Now that we're no longer consuming this table, this commit removes the one method which queries that table (`Datastore::services_list_kind`) and its two remaining callers, the OMDB commands that query the table. I've also removed the test for inserting and querying this table. Note that I have *not* yet removed the code in RSS that actually populates this table when the rack is set up. I thought it might be desirable to still populate this data in case we have to roll back to a previous version of Nexus that uses the `services` table. If this isn't something we care about, I can remove that code as well, allowing us to remove the `Datastore` methods for inserting to `services`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though the github checks look like real failures to me. I think this is just an EXPECTORATE test failing within the omdb test suite -- try running the following locally to fix:
EXPECTORATE=overwrite cargo nt -p omicron-omdb
I'm okay with doing this incrementally! |
I ran into two other places that are consuming this table.
Before we stop populating the |
Closing this in favor of #5287 |
Depends on #5033.
As described in #4947, we would like to remove the
services
table, as its only remaining use is DNS propagation. PR #5033 changes DNS propagation to no longer use theservices
table. Now that we're no longer consuming this table, this commit removes the one method which queries that table (Datastore::services_list_kind
) and its two remaining callers, the OMDB commands that query the table. I've also removed the test for inserting and querying this table.Note that I have not yet removed the code in RSS that actually populates this table when the rack is set up. I thought it might be desirable to still populate this data in case we have to roll back to a previous version of Nexus that uses the
services
table. If this isn't something we care about, I can remove that code as well, allowing us to remove theDatastore
methods for inserting toservices
.