Bug 1436162
Summary: | hammer host create doesnt work with --hostgroup-title | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Ade Bradshaw <abradshaw> |
Component: | Hosts | Assignee: | Tomas Strachota <tstrachota> |
Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2.8 | CC: | bbuckingham, bkearney, dhlavacd, dlezzoum, dmoessne, inecas, jcallaha, ldelouw, mhulan, mkalyat, oshtaier, tbrisker, tstrachota |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | hammer-cli-foreman 0.11.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 16:32:28 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: |
Description
Ade Bradshaw
2017-03-27 11:06:12 UTC
Created redmine issue http://projects.theforeman.org/issues/19048 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19048 has been resolved. Waiting for next build, but at this moment functionality doesn't work as it should. Verified by test automation script: LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv host create --ip="104.31.75.150" --location-id="278" --hostgroup-title="pDSZMUBWXw/LNrkRTRlXf" --mac="86:bc:d6:a3:f1:2c" --organization-id="279" --name="kypokqcdxg" --root-password="xMiaPauT" robottelo.ssh: INFO: <<< stderr Error: At least one of options --architecture, --architecture-id is required See: 'hammer host create --help' Could not create the host: Error: At least one of options --architecture, --architecture-id is required See: 'hammer host create --help' [ERROR 2017-08-01 08:07:49 Exception] Clamp::UsageError (At least one of options --architecture, --architecture-id is required): /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:44:in `rescue in parse' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:40:in `parse' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:67:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:29:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:29:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:29:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/bin/hammer:147:in `<top (required)>' /usr/bin/hammer:23:in `load' /usr/bin/hammer:23:in `<main>' Note: Works properly with hostgroup ID Automation tests still for versions: * candlepin-2.0.40-1.el7.noarch * candlepin-selinux-2.0.40-1.el7.noarch * foreman-1.15.2-1.el7sat.noarch * foreman-cli-1.15.2-1.el7sat.noarch * foreman-compute-1.15.2-1.el7sat.noarch * foreman-debug-1.15.2-1.el7sat.noarch * foreman-discovery-image-3.1.1-22.el7sat.noarch * foreman-ec2-1.15.2-1.el7sat.noarch * foreman-gce-1.15.2-1.el7sat.noarch * foreman-installer-1.15.2-1.el7sat.noarch * foreman-installer-katello-3.4.4-1.el7sat.noarch * foreman-libvirt-1.15.2-1.el7sat.noarch * foreman-openstack-1.15.2-1.el7sat.noarch * foreman-ovirt-1.15.2-1.el7sat.noarch * foreman-postgresql-1.15.2-1.el7sat.noarch * foreman-proxy-1.15.2-1.el7sat.noarch * foreman-rackspace-1.15.2-1.el7sat.noarch * foreman-selinux-1.15.2-1.el7sat.noarch * foreman-vmware-1.15.2-1.el7sat.noarch * katello-3.4.4-2.el7sat.noarch * katello-ca-consumer-sat-r220-02.lab.eng.rdu2.redhat.com-1.0-4.noarch * katello-certs-tools-2.4.0-1.el7sat.noarch * katello-client-bootstrap-1.4.0-1.el7sat.noarch * katello-common-3.4.4-2.el7sat.noarch * katello-debug-3.4.4-2.el7sat.noarch * katello-default-ca-1.0-1.noarch * katello-installer-base-3.4.4-1.el7sat.noarch * katello-selinux-3.0.2-1.el7sat.noarch * katello-server-ca-1.0-1.noarch * katello-service-3.4.4-2.el7sat.noarch * openldap-2.4.44-5.el7.x86_64 * pulp-client-1.0-1.noarch * pulp-docker-plugins-2.3.0-1.el7sat.noarch * pulp-katello-1.0.2-1.el7sat.noarch * pulp-ostree-plugins-1.2.1-1.el7sat.noarch * pulp-puppet-plugins-2.12.2-1.el7sat.noarch * pulp-puppet-tools-2.12.2-1.el7sat.noarch * pulp-rpm-plugins-2.12.2-2.el7sat.noarch * pulp-selinux-2.12.2-2.el7sat.noarch * pulp-server-2.12.2-2.el7sat.noarch * python-ldap-2.4.15-2.el7.x86_64 * tfm-rubygem-ldap_fluff-0.4.6-1.el7sat.noarch * tfm-rubygem-net-ldap-0.15.0-1.el7sat.noarch test log: 2017-08-05 11:14:33 - robottelo.ssh - INFO - >>> LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv host create --ip="151.45.230.209" --location-id="110" --hostgroup-title="uDnrQeuqmm/ldmhsdLaTQ" --mac="e6:bf:b5:77:b4:67" --organization-id="111" --name="rcmvmdvnrt" --root-password="cqsFThIf" 2017-08-05 11:14:35 - robottelo.ssh - INFO - <<< stderr [ERROR 2017-08-05 11:14:35 Exception] Error: At least one of options --architecture, --architecture-id is required See: 'hammer host create --help' Could not create the host: Error: At least one of options --architecture, --architecture-id is required See: 'hammer host create --help' [ERROR 2017-08-05 11:14:35 Exception] Clamp::UsageError (At least one of options --architecture, --architecture-id is required): /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:44:in `rescue in parse' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:40:in `parse' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:67:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:29:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:29:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/lib/hammer_cli/abstract.rb:29:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run' /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.10.2/bin/hammer:147:in `<top (required)>' /usr/bin/hammer:23:in `load' /usr/bin/hammer:23:in `<main>' The reason why this bug failed qe is because it was delivered in hammer-cli-foreman 0.11.0, while we have 0.10.2 in Sat 6.3. I'm not sure if the upstream is going to release 0.10.x for this or we will cherry-pick, anyway, setting to POST state, as the reason for the failure was missed patch. Verified by test automation script hammer -v -u admin -p changeme --output=csv host create --ip="30.126.116.189" --location-id="65" --hostgroup-title="DcBxVxDVjl/eYIYIFHghn" --mac="60:de:43:70:a4:23" --organization-id="66" --name="bilpukwols" --root-password="HSwasHjs" Message,Id,Name Host created,33,bilpukwols.eorxc692do 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 |