Bug 1297324

Summary: Missing hammer command to generate subnet bootdisk iso
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: Bootdisk PluginAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.6CC: bbuckingham, bkearney, ehelms, mmccune, riehecky, rplevka
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13036
Whiteboard:
Fixed In Version: rubygem-hammer_cli_foreman_bootdisk-0.1.3.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1498454 (view as bug list) Environment:
Last Closed: 2016-07-27 11:02:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1498454    

Description Sachin Ghai 2016-01-11 08:40:52 UTC
Description of problem:
I was verifying bugzilla #1193933 and found that command to generate subnet bootdisk iso via hammer is missing.

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

How reproducible:
always

Steps to Reproduce:
1. hammer bootdisk subnet 
2.
3.

Actual results:
Missing hammer command to generate subnet bootdisk iso

Expected results:
cmd to generate subnet bootdisk iso should available via hammer:

hammer bootdisk subnet --subnet <local.lan>

Additional info:

Comment 3 Bryan Kearney 2016-01-12 18:11:48 UTC
Created redmine issue http://projects.theforeman.org/issues/13162 from this bug

Comment 5 Bryan Kearney 2016-02-10 22:00:34 UTC
This was addressed in 

commit b1052b60ff27d99f9635da8242c60d9808b1935a

of the hammer-cli-foreman-bootdisk 

I am moving this to POST and moving it to 6.2

Comment 6 Bryan Kearney 2016-02-18 17:37:59 UTC
Connecting redmine issue http://projects.theforeman.org/issues/13036 from this bug

Comment 7 Bryan Kearney 2016-02-18 19:12:57 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/13036 has been closed

Comment 10 Roman Plevka 2016-04-05 09:33:45 UTC
FAILEDQA

this doesn't seem to exist in sat6.2.0 Snap6.1:

# hammer bootdisk -h
Usage:
    hammer bootdisk [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 generic                       Download generic image
 host                          Download host image

Options:
 -h, --help                    print help

# hammer bootdisk subnet -h
Error: No such sub-command 'subnet'

See: 'hammer bootdisk --help'


# rpm -qa | grep bootdisk
tfm-rubygem-foreman_bootdisk-6.1.0-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-4.el7sat.noarch

moving back to Assigned

Comment 11 Lukas Zapletal 2016-04-06 08:00:52 UTC
No upstream release was done yet, the patch was merged on Jan 2016, I am asking Dominic for a release (gem-only release would be fine). Please rebase then over 0.1.4+ version.

commit b1052b60ff27d99f9635da8242c60d9808b1935a
Refs: 0.1.3-1-gb1052b6
Author:     Lukas Zapletal <lzap+git>
AuthorDate: Mon Jun 1 15:42:45 2015 +0200
Commit:     Dominic Cleal <dcleal>
CommitDate: Wed Feb 10 12:43:50 2016 +0000

    Fixes #13036 - added subnet subcommand

Comment 13 Bryan Kearney 2016-05-23 19:48:59 UTC
verified
version tested: satellite-6.2.0-12.1.el7sat.noarch
Steps to verify:



[vagrant@sat-test-rhel7 ~]$ hammer bootdisk subnet --subnet "bk"
[Foreman] Password for admin: 
Failed to download subnet disk image:
  ERF42-7296 [Foreman::Exception]: TFTP feature not enabled for subnet bk

Comment 14 Bryan Kearney 2016-07-27 11:02:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501