staging-sync/koji: Bump DB sequence numbers
Starting IDs for task/build etc. must be greater than those in prod. Also clean up some bogus constructs. Comment about koji regen-repo is no longer valid since Koji implements dynamic on-demand repo regeneration.
This commit is contained in:
parent
b4e77e3a71
commit
c39cb62915
2 changed files with 3 additions and 8 deletions
|
@ -64,10 +64,7 @@
|
|||
tags:
|
||||
- db-sync-script
|
||||
|
||||
- postgresql_user: name=koji password={{ kojiPassword }}
|
||||
when: env != "staging"
|
||||
- postgresql_user: name=koji password={{ kojiStgPassword }}
|
||||
when: env == "staging"
|
||||
- postgresql_user: name=backup
|
||||
- postgresql_db: name=koji state=absent
|
||||
# buildroot_listing is excluded from the sync to save some time
|
||||
|
@ -166,6 +163,4 @@
|
|||
- name: Restart kojid
|
||||
service: name=kojid state=restarted
|
||||
|
||||
# TODO run createrepo for selected tags
|
||||
# stgkoji regen-repo --nowait f29-build
|
||||
# TODO include playbooks to sync apps that use koji (koschei/bodhi/mbs/...)
|
||||
|
|
|
@ -31,9 +31,9 @@ delete from imageinfo_listing;
|
|||
|
||||
-- bump sequences (not strictly needed anymore)
|
||||
select now() as time, 'bumping sequences' as msg;
|
||||
alter sequence task_id_seq restart with 140000000;
|
||||
alter sequence repo_id_seq restart with 140000000;
|
||||
alter sequence imageinfo_id_seq restart with 14000000;
|
||||
alter sequence task_id_seq restart with 990000000;
|
||||
alter sequence repo_id_seq restart with 990000000;
|
||||
alter sequence imageinfo_id_seq restart with 990000000;
|
||||
|
||||
-- truncate sessions
|
||||
select now() as time, 'truncating sessions' as msg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue