Project

General

Profile

Actions

Bug #10386

closed

Foreman docker CLI errors are not being reported correctly

Added by Martin Bacovsky about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
CLI
Target version:
-
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1218409
Description of problem:

When I try to create a container twice, I get "Error: 422 Unprocessable Entity" but it doesn't tell me the actual validation error. The API is using the error template in foreman so I am not sure why the error isn't being displayed in the CLI.

$ hammer docker container create --name container1 --compute-resource-id 1 --repository-name redis --tag latest --command bash
Sucssefully created container.
$ hammer docker container create --name container1 --compute-resource-id 1 --repository-name redis --tag latest --command bash
Could not create the container:
Error: 422 Unprocessable Entity

Actions #1

Updated by Martin Bacovsky about 10 years ago

  • Category set to CLI
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer_cli_foreman_docker/pull/11 added
  • Pull request deleted ()
Actions #2

Updated by Martin Bacovsky about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

PR was merged

Actions

Also available in: Atom PDF