Project

General

Profile

Actions

Bug #39372

open

Attempting to assign content-view-environments via hammer when LCE is not synced by content source should propagate error message text to hammer

Added by Chris Roberts 20 days ago. Updated about 6 hours ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
Hosts
Difficulty:
Triaged:
No
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Scenario 2: Running the hammer host update --content-view-environments command

Actual Behavior:
When trying to add a lifecycle environment to a host using the command

hammer host update --content-view-environments Library/cv_1{

}, the following error is displayed:
"Could not update the host"

Expected Behavior:
The command

hammer host update --content-view-environments Library/cv_1

should throw a detailed error message, similar to the one produced by the

subscription-manager environments --set

command, such as:
Validation failed: Host: Cannot add content view environment to content facet. The host's content source does not sync lifecycle environment 'Library'. (HTTP error code 422: Unprocessable Entity)

Related issues 1 (1 open0 closed)

Copied to Katello - Bug #39373: Attempting to assign content-view-environments via hammer when LCE is not synced by content source should propagate error message text to hammerReady For TestingChris RobertsActions
Actions #1

Updated by Chris Roberts 20 days ago

  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/655 added
Actions #2

Updated by Chris Roberts 20 days ago

  • Project changed from Foreman to Hammer CLI
  • Category changed from API to Hosts
  • Status changed from New to Ready For Testing
  • Target version changed from 5.0.0 to hammer-cli-foreman-5.0.0
Actions #3

Updated by Chris Roberts 20 days ago

  • Copied to Bug #39373: Attempting to assign content-view-environments via hammer when LCE is not synced by content source should propagate error message text to hammer added
Actions #4

Updated by The Foreman Bot about 6 hours ago

  • Fixed in Releases hammer-cli-foreman-3.19.0 added
Actions

Also available in: Atom PDF