This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Database migration 2 for multiple interfaces#4730
Merged
Merged
Conversation
zrhoffman
suggested changes
Jul 9, 2020
zrhoffman
suggested changes
Jul 9, 2020
Member
zrhoffman
left a comment
There was a problem hiding this comment.
Getting 500 errors in CDN-in-a-Box on POST /api/2.0/servers:
trafficops_1 | INFO: routing.go:249: 2020-07-09T20:22:15.808249627Z: POST /api/2.0/servers? handling (reqid 984)
trafficops_1 | DEBUG: plugin.go:190: 2020-07-09T20:22:15.808264413Z: DEBUG plugins.OnRequest calling 0 plugins
trafficops_1 | INFO: servers.go:344: 2020-07-09T20:22:15.810194869Z: got cdn id: 1 from profile and cdn id: 1 from server
trafficops_1 | ERROR: api.go:201: 2020-07-09T20:22:15.810908686Z: 172.19.0.7:50894 pq: column "interface_name" of relation "server" does not exist
trafficops_1 | DEBUG: api.go:206: 2020-07-09T20:22:15.810921728Z: Internal Server Error9ab9169 to
4e22098
Compare
zrhoffman
suggested changes
Jul 29, 2020
Member
zrhoffman
left a comment
There was a problem hiding this comment.
Everything is working, just have a question about the CASE expressions.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR (Pull Request) do?
This is the second database migration for allowing multiple interfaces. It removes redundant columns from the server table that have been moved previously to the ip_address and interface tables.
This is labeled as a WIP for now because it needs to wait to be merged until the issues listed in issue 4620 have all been closed.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Run the db migration and verify that it runs successfully and the columns have been removed. verify that the unit and API tests still run successfully
Run the rollback script and verify that the data has been populated correctly. Run the tests and make sure they work still.
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR
No tests, docs, or CHANGELOG updates are necessary since it is a data migration and database update.
Additional Information