Bug 1124547
| Summary: | Unfriendly error when removing a content view from an environment it's not in | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | David Davis <daviddavis> |
| Component: | Hammer | Assignee: | David Davis <daviddavis> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | sthirugn <sthirugn> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.4 | CC: | bbuckingham, jmontleo, omaciel, sthirugn |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://projects.theforeman.org/issues/6848 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-11 12:23:20 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: | 1111231 | ||
| Bug Blocks: | |||
|
Description
David Davis
2014-07-29 18:39:03 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. Created redmine issue http://projects.theforeman.org/issues/6848 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/6848 has been closed ------------- David Davis Applied in changeset commit:katello|fce126546d2566bf67ed09aefb7aa50b4d8ad7d3. Failed. I tested with a content view published to 3 environments. The scenario passed for first environment but failed for remaining. see below.
hammer> content-view info --id=10
ID: 10
Name: testcvbug
Label: testcvbug
Composite:
Description:
Content Host Count:
Organization: rhcorp
Repositories:
1) ID: 13
Name: samrepo
Label: samrepo
Puppet Modules:
Environments:
1) ID: 4
Name: QE
2) ID: 3
Name: DEV
3) ID: 2
Name: Library
Versions:
1) ID: 9
Version: 1
Published: 2014/08/14 21:29:20
Components:
Activation Keys:
1)
hammer> content-view remove-from-environment --id=10 --lifecycle-environment-id=3 --organization-id=3
[.........................................................................................] [100%]
Task 110d2bb5-1b0d-454d-b43a-64f6a6a92102: success
hammer> content-view info --id=10
ID: 10
Name: testcvbug
Label: testcvbug
Composite:
Description:
Content Host Count:
Organization: rhcorp
Repositories:
1) ID: 13
Name: samrepo
Label: samrepo
Puppet Modules:
Environments:
1) ID: 4
Name: QE
2) ID: 2
Name: Library
Versions:
1) ID: 9
Version: 1
Published: 2014/08/14 21:29:20
Components:
Activation Keys:
1)
hammer> content-view remove-from-environment --id=10 --lifecycle-environment-id=4 --organization-id=3
Could not remove the content view from environment:
Error: The server does not support such operation.
hammer> content-view remove-from-environment --id=10 --lifecycle-environment-id=2 --organization-id=3
Could not remove the content view from environment:
Error: The server does not support such operation.
hammer>
Sorry, I should have been more clear about the bug and its test case. This is for trying to remove a content view from an environment that it's not in. It could either be another org's environment or the same org. Steps to reproduce: 1. Create a content view and promote it to library 2. Create a dev environment 3. Try to remove the content view from the dev environment Expected results: Content view 'view1' is not in lifecycle environment 'dev'. Actual results: Server 500 error. Verified. The failing scenario mentioned in Comment 8 will be tracked in BZ 1111231 hammer> content-view remove-from-environment --id=10 --lifecycle-environment-id=3 --organization-id=3 Could not remove the content view from environment: Content view 'testcvbug' is not in lifecycle environment 'DEV'. Version Tested: GA Snap 5 - Satellite-6.0.4-RHEL-6-20140813.2 * apr-util-ldap-1.3.9-3.el6_0.1.x86_64 * candlepin-0.9.23-1.el6_5.noarch * candlepin-common-1.0.1-1.el6_5.noarch * candlepin-scl-1-5.el6_4.noarch * candlepin-scl-quartz-2.1.5-5.el6_4.noarch * candlepin-scl-rhino-1.7R3-1.el6_4.noarch * candlepin-scl-runtime-1-5.el6_4.noarch * candlepin-selinux-0.9.23-1.el6_5.noarch * candlepin-tomcat6-0.9.23-1.el6_5.noarch * elasticsearch-0.90.10-4.el6sat.noarch * foreman-1.6.0.40-1.el6sat.noarch * foreman-compute-1.6.0.40-1.el6sat.noarch * foreman-gce-1.6.0.40-1.el6sat.noarch * foreman-libvirt-1.6.0.40-1.el6sat.noarch * foreman-ovirt-1.6.0.40-1.el6sat.noarch * foreman-postgresql-1.6.0.40-1.el6sat.noarch * foreman-proxy-1.6.0.27-1.el6sat.noarch * foreman-selinux-1.6.0.6-1.el6sat.noarch * foreman-vmware-1.6.0.40-1.el6sat.noarch * katello-1.5.0-28.el6sat.noarch * katello-ca-1.0-1.noarch * katello-certs-tools-1.5.6-1.el6sat.noarch * katello-installer-0.0.59-1.el6sat.noarch * openldap-2.4.23-34.el6_5.1.x86_64 * openldap-devel-2.4.23-34.el6_5.1.x86_64 * pulp-katello-0.3-3.el6sat.noarch * pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch * pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch * pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch * pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch * pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch * pulp-selinux-2.4.0-0.30.beta.el6sat.noarch * pulp-server-2.4.0-0.30.beta.el6sat.noarch * python-ldap-2.3.10-1.el6.x86_64 * ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch * ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch This was delivered with Satellite 6.0 which was released on 10 September 2014. |