att-comdev / deckhand

This project has moved to OpenStack.
https://www.airshipit.org/
Apache License 2.0
9 stars 5 forks source link

Unable to submit document update to Deckhand for a previously committed tag #14

Closed darrendejaeger closed 6 years ago

darrendejaeger commented 6 years ago

Deckhand logs are showing a unique constraint error thrown when attempting to submit a document update to Deckhand (via Shipyard) for a previously committed revision/tag.

Perform steps below x2 to recreate:

  1. "shipyard create configdocs (tag) --directory=(documents)"
  2. "shipyard commit configdocs"
darrendejaeger commented 6 years ago

Error snippet thrown to console:

shipyard deckhand_client(329) _handle_bad_response - An undesired response was returned by Deckhand. Status: 500 above threshold 400. Response text: apiVersion: v1.0
code: 500 Internal Server Error
details:
  errorCount: 1
  errorType: NoResultFound
  messageList:
  - {error: true, message: 'An error occurred, but was not specified'}
kind: status
message: 'Unhandled Exception raised: No row was found for one()'
metadata: {}
reason: ''
retry: true
status: Failure

Error snippet in Deckhand logs:

oslo_db.exception.DBDuplicateEntry: (psycopg2.IntegrityError) duplicate key value violates unique constraint "revision_tags_pkey"
DETAIL:  Key (tag)=(committed) already exists.
fmontei commented 6 years ago

Addressed by: https://review.gerrithub.io/#/c/395135/

fmontei commented 6 years ago

Issue resolved.