Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Customer would like to have a possibility to choose Sync Content as a Installation media over hammer.
At the moment Synced content option is visible only in webui.
Version-Release number of selected component (if applicable):
Satellite 6.2.6
How reproducible:
Create Host Group without specifying --medium-id:
Steps to Reproduce:
1. /usr/bin/hammer hostgroup create --name mdekan-hostgroup-test --architecture 'x86_64' --content-view "rhel7" --lifecycle-environment "Library" --operatingsystem 'RedHat 7.3' --partition-table 'Kickstart default' --organization "Default Organization"
Hostgroup created
2. /usr/bin/hammer host create --comment 'KVM guest' --name mdekan-test001 --hostgroup 'mdekan-hostgroup-test' --lifecycle-environment Library --content-view rhel7 --ip 192.168.111.101 --mac '54:52:00:a0:5f:1b' --subnet 'sysmgmt.lan' --root-password 'password123' --model KVM --location "Default Location" --domain sysmgmt.lan --organization "Default Organization" --build false --parameters 'host_profile=des_snp'
Host created
3. Click on Build for host mdekan-test001
Actual results:
WebUI shows this error when clicked on build for host:
The following errors may prevent a successful build:
Templates
Failure parsing Kickstart default iPXE: undefined method `path' for nil:NilClass.
Expected results:
- Hammer should not return "Host created" when Build cannot be done successfully.
- Synced content accessible trough hammer.
Additional info:
[root@qe-rhel7 ~]# hammer -u admin -p changeme hostgroup create --name='RHEL 74 Server 64-bit HG' --content-view='RHEL 7 CV' --environment-id="1" --lifecycle-environment='DEV' --content-source-id="1" --puppet-proxy="$(hostname)" --puppet-ca-proxy="$(hostname)" --query-organization-id="1" --puppet-classes='access_insights_client,foreman_scap_client' --domain-id="1" --subnet="katello_latest" --architecture='x86_64' --operatingsystem-id="1" --partition-table='Kickstart default' --location-ids="2" --kickstart-repository-id 1
Hostgroup created
--------------
As seen above kickstart-repository is now exposed on "hammer -u admin -p changeme hostgroup --help"
But upon, neither specifying kicsktart-repository nor medium the host-group creation is still possible.
That particular issue will be tracked in this BZ, https://bugzilla.redhat.com/show_bug.cgi?id=1483249
Will be closing this bug as per the bugzilla summary and initial bugzilla report. "hostgroup should expose kickstart repository option"
VERIFIED with sat6.3.0-snap12
Comment 6Oleksandr Shtaier
2017-11-20 12:31:12 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