uffizzi icon indicating copy to clipboard operation
uffizzi copied to clipboard

Issues with deployment in failed state

Open NealArw opened this issue 2 years ago • 2 comments

  1. Connect uffizzitest docker hub account
  2. Create preview from compose file uffizzi preview create compose.yml. File contains a mistake: The image from compose file does not exist in the docker hub.
services:
  webhooks_test_app:
    image: uffizzitest/aaaa-webhooks-test-app:latest
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres

x-uffizzi-ingress:
  service: webhooks_test_app
  port: 80

x-uffizzi-continuous-preview:
  delete_preview_after: 1h
  delete_preview_when_image_tag_is_updated: true
  deploy_preview_when_image_tag_is_created: true

Result 1. Deployment failed Error

Deployment Not Found

Expected Result: Show message Deployment Failed

  1. Run uffizzi preview update deployment-NUMBER test-compose/compose.ym

Result 2. Deployment cannot be updated. Error:

undefined method `kind' for nil:NilClass

Expected result: We need to update the failed deployment and if it fails again - show Deployment failed message

NealArw avatar Jul 27 '22 10:07 NealArw

To reproduce the error:

  • Connect to uffizzi_cli
  • Create preview from compose file bundle exec uffizzi preview create compose.yml

Example file:

services:
  webhooks_test_app:
    image: uffizzitest/aaaa-webhooks-test-app:latest
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres

x-uffizzi-ingress:
  service: webhooks_test_app
  port: 80

x-uffizzi-continuous-preview:
  delete_preview_after: 1h
  delete_preview_when_image_tag_is_updated: true
  deploy_preview_when_image_tag_is_created: true
  • Because the image in the compose.yml is invalid, this will return the message Deployment failed

JessikaCastellano avatar Aug 30 '22 14:08 JessikaCastellano

TESTED on prod:

Issures was created: https://github.com/UffizziCloud/uffizzi_app/issues/255 https://github.com/UffizziCloud/uffizzi_app/issues/243 https://github.com/UffizziCloud/uffizzi_platform/issues/240

NealArw avatar Aug 31 '22 14:08 NealArw