Bug 1021039
Summary: | hammer CLI: All subcommands associated with "organization" and "location" fail | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Apurva Bhole <abhole> |
Component: | Provisioning | Assignee: | Martin Bacovsky <mbacovsk> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Katello QA List <katello-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.2 | CC: | cwelton, dcleal, jmontleo, omaciel, skottler |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/3370 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-04-24 17:07:24 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
Apurva Bhole
2013-10-18 20:22:46 UTC
The issue here is that in katello cli the organizations are under 'org' command while in Foreman it is the 'organization' command. If you change the organization in your commands to 'org' it should work. I'll check why the server replied it doesn't support such op. Might be orgs turned off or some error. For the user this may be awkward and the question is how we want it to behave. The same issue exist with the 'location' command as well. Steps to Reproduce: 1. hammer location create --name sampleLocation 2. hammer location list Actual results: The server does not support such operation. Expected results: The commands must work normally rpm -qa | grep hammer rubygem-hammer_cli-0.0.7-2.el6sat.noarch rubygem-hammer_cli_foreman-0.0.7-2.el6sat.noarch This is caused by rubygem-foreman_api that was generated with apipie lib with a bug. I'll update hammer CLI foreman deps. It will need version 0.1.7. As a workaround you could try; gem install foreman_api && service httpd restart rubygem-hammer_cli_foreman >= 0.0.8 fixes this issue. This package and related rubygem-foreman_api should be part of Snap 7 The initial report for 'organization' appears to be fixed. This does not appeared fixed for comment #3 ('location'), however. [root@cloud-qe-21 ~]# hammer location create --name sampleLocation The server does not support such operation. [root@cloud-qe-21 ~]# hammer location list The server does not support such operation. [root@cloud-qe-21 ~]# rpm -qa | grep hammer rubygem-hammer_cli-0.0.7-2.el6sat.noarch rubygem-hammer_cli_foreman-0.0.8-2.el6sat.noarch Satellite-6.0.2-RHEL-6-20131023.1 (In reply to Corey Welton from comment #8) > The initial report for 'organization' appears to be fixed. This does not > appeared fixed for comment #3 ('location'), however. > > [root@cloud-qe-21 ~]# hammer location create --name sampleLocation > The server does not support such operation. Sat6 doesn't ship with locations enabled: check /etc/foreman/settings.yaml, it should have ":locations_enabled: false", but organisations enabled. I think this error message is accurate. Indeed, that makes sense. There is presently no "locations_enabled" in the settings.yaml, so it defaults to false. Locations being enabled is not really in scope for testing atm, so I think we can consider this one Verified. Satellite-6.0.2-RHEL-6-20131023.1 This was verified and delivered with MDP2. Closing it out. |