Project

General

Profile

Bug #13465

Error message needs to be improved on creating package or package-group with incorrect host-id

Added by Sachin Ghai over 3 years ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1303080
Description of problem:
Error message needs to be improved on creating package or package-group with incorrect host-id

]# hammer -u admin -p changeme host package list --host-id 89
Couldn't find Host::Managed with 'id'=89 [WHERE "hosts"."type" IN ('Host::Managed')]

~]# hammer -u admin -p changeme host package install --packages zsh  --host-id 89
Could not install packages:
Couldn't find Host::Managed with 'id'=89 [WHERE "hosts"."type" IN ('Host::Managed')]

~]# hammer -u admin -p changeme host package-group install --groups 'Development Tools' --host-id 12

Could not install package-groups:
Couldn't find Host::Managed with 'id'=12 [WHERE "hosts"."type" IN ('Host::Managed')]

Please fix all package and package-groups sub-commands

Version-Release number of selected component (if applicable):

katello-2.5.0-3.nightly.el7.noarch
foreman-release-1.11.0-0.develop.201601211808gitd546fd0.el7.noarch
tfm-rubygem-hammer_cli_katello-0.0.20-1.el7.noarch
tfm-rubygem-hammer_cli-0.5.1-2.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. hammer -u admin -p changeme host package --help
2. hammer -u admin -p changeme host package-groups --help
3.

Actual results:

Expected results:
Error message needs to be improved on creating package or package-group with incorrect host-id

Additional info:

History

#1 Updated by Eric Helms over 3 years ago

  • Category changed from Hammer to Hosts
  • Legacy Backlogs Release (now unused) set to 86

#2 Updated by Eric Helms about 3 years ago

  • Legacy Backlogs Release (now unused) changed from 86 to 143

#3 Updated by Justin Sherrill almost 3 years ago

  • Legacy Backlogs Release (now unused) changed from 143 to 114

Also available in: Atom PDF