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

Postinstall can no longer be run twice (Traffic Vault load_schema error) #6712

Closed
davidc0le opened this issue Apr 1, 2022 · 0 comments · Fixed by #6717
Closed

Postinstall can no longer be run twice (Traffic Vault load_schema error) #6712

davidc0le opened this issue Apr 1, 2022 · 0 comments · Fixed by #6717
Labels
bug something isn't working as intended database relating to setup/installation/structure of the Traffic Ops database Traffic Ops related to Traffic Ops Traffic Vault related to Traffic Vault

Comments

@davidc0le
Copy link
Contributor

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

This issue is similar to #4984 . When running postinstall twice when using the Postgres backend for Traffic Vault, the load_schema operation for Traffic Vault causes an error. The command db/admin --trafficvault -env=production load_schema is executed by the postinstall. The error is as follows:

ALTER TABLE ONLY dnssec
    ADD CONSTRAINT dnssec_pkey PRIMARY KEY (cdn);
ERROR:  multiple primary keys for table "dnssec" are not allowed
Can't create database tables

Expected behavior:

As per #4984, running postinstall twice should be possible without errors.

Steps to reproduce:

Run Postinstall with postgres being used for the Traffic Vault backend.
Run Postinstall again with the same input

@davidc0le davidc0le added the bug something isn't working as intended label Apr 1, 2022
@zrhoffman zrhoffman added Traffic Ops related to Traffic Ops Traffic Vault related to Traffic Vault database relating to setup/installation/structure of the Traffic Ops database labels Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended database relating to setup/installation/structure of the Traffic Ops database Traffic Ops related to Traffic Ops Traffic Vault related to Traffic Vault
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants