Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1498454 - Missing hammer command to generate subnet bootdisk iso
Summary: Missing hammer command to generate subnet bootdisk iso
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Bootdisk Plugin
Version: 6.1.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On: 1297324
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-04 11:30 UTC by Lukas Zapletal
Modified: 2019-08-12 14:02 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1297324
Environment:
Last Closed: 2018-02-21 16:42:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 13036 0 None None None 2017-10-04 11:30:10 UTC

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


Note You need to log in before you can comment on or make changes to this bug.