Bug 1498454

Summary: Missing hammer command to generate subnet bootdisk iso
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: Bootdisk PluginAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.6CC: bbuckingham, bkearney, ehelms, lzap, mmccune, riehecky, rplevka, sghai
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13036
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1297324 Environment:
Last Closed: 2018-02-21 16:42:49 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: 1297324    
Bug Blocks:    

Description Lukas Zapletal 2017-10-04 11:30:11 UTC
+++ This bug was initially created as a clone of Bug #1297324 +++

Description of problem:

I was verifying bugzilla #1193933 and found that command to generate subnet bootdisk iso via hammer is missing.

---

No upstream release was done yet, the patch was merged into Satellite 6.2 (https://access.redhat.com/errata/RHBA-2016:1501) but since it is not in upstream yet it is missing from 6.3. Regression.

Comment 4 Satellite Program 2017-10-04 12:08:29 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/13036 has been resolved.

Comment 5 Sachin Ghai 2017-11-22 09:01:42 UTC
Verified with sat6.3 GA snap25.

hammer cmd is there to generate subnet bootdisk.

~]# hammer -u admin -p changeme bootdisk --help
Usage:
    hammer bootdisk [OPTIONS] SUBCOMMAND [ARG] ...

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

Subcommands:
 generic                       Download generic image
 host                          Download host image
 subnet                        Download subnet generic image

Options:
 -h, --help                    print help
[root@qe-sat6-feature-rhel6 ~]# hammer -u admin -p changeme bootdisk subnet --help
Usage:
    hammer bootdisk subnet [OPTIONS]

Options:
 --file PATH                   File or device to write image to
 --force                       Force writing to existing destination (device etc.)
 --subnet SUBNET_NAME          Subnet name
 --subnet-id SUBNET_ID          
 --sudo                        Use sudo to write to device
 -h, --help                    print help

Comment 6 Sachin Ghai 2017-11-22 09:03:06 UTC
~]# hammer -u admin -p changeme bootdisk subnet --subnet sfeature_el6
Successfully downloaded subnet disk image to bootdisk_subnet_sfeature_el6.iso
[root@qe-sat6-feature-rhel6 ~]# ll
total 1352
-rw-------. 1 root root    3236 Aug  8 13:43 anaconda-ks.cfg
-rw-r--r--. 1 root root 1048576 Nov 22 03:58 bootdisk_subnet_sfeature_el6.iso




~]# hammer -u admin -p changeme bootdisk subnet --subnet-id 2 --file /root/subnet_bootdisk.iso
Successfully downloaded subnet disk image to /root/subnet_bootdisk.iso
[root@qe-sat6-feature-rhel6 ~]# ll
total 2376

-rw-r--r--. 1 root root 1048576 Nov 22 03:59 subnet_bootdisk.iso

Comment 7 Bryan Kearney 2018-02-21 16:40:28 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/RHSA-2018:0336

Comment 8 Bryan Kearney 2018-02-21 16:42:49 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/RHSA-2018:0336