Bug 994977 - cannot create distributor in environment or update its environment
Summary: cannot create distributor in environment or update its environment
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Jitendra Yejare
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-08 10:30 UTC by Ales Dujicek
Modified: 2019-02-25 21:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-18 14:37:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ales Dujicek 2013-08-08 10:30:57 UTC
Description of problem:

in CLI it is not possible to create distributor in environment other than Library
> distributor create --org org --name distributor --environment env
No such environment: 251

when creating distributor in UI and there is no content view in environment, you get this:
No such environment: 5
Resources::Candlepin::Consumer: 404 Resource Not Found {"displayMessage":"No such environment: 5"} (POST /candlepin/environments/5/consumers/) (RestClient::ResourceNotFound)
{"displayMessage":"No such environment: 5"}

it works in UI when there is content view, so we probably need something like --content_view option in CLI


it is also not possible to update environment
> distributor update --org org --name distributor --new_environment env
No such environment: 251
looks like the same problem, but this does not work in UI either:
    Resources::Candlepin::Consumer: 404 Resource Not Found {"displayMessage":"No such environment: 251"} (PUT /candlepin/consumers/3912acdb-df93-4203-81f4-04ee520ea7c2) (RestClient::ResourceNotFound)
    {"displayMessage":"No such environment: 251"}
    Click here for more details.


Version-Release number of selected component (if applicable):
katello-1.4.3-1.git.48.7a37c12.el6.noarch
katello-glue-pulp-1.4.3-1.git.48.7a37c12.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-repos-1.4.2-1.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-configure-1.4.4-1.git.2.ce427c5.el6.noarch
signo-katello-0.0.9-1.el6.noarch
katello-glue-elasticsearch-1.4.3-1.git.48.7a37c12.el6.noarch
katello-cli-1.4.3-1.git.7.a387813.el6.noarch
katello-common-1.4.3-1.git.48.7a37c12.el6.noarch
katello-selinux-1.4.4-1.el6.noarch
katello-glue-candlepin-1.4.3-1.git.48.7a37c12.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-common-1.4.3-1.git.7.a387813.el6.noarch
katello-all-1.4.3-1.git.48.7a37c12.el6.noarch


How reproducible:
always

Comment 1 RHEL Program Management 2013-09-17 04:20:08 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.

Comment 4 Bryan Kearney 2014-02-18 14:37:02 UTC
this is against the katello-cli which we are not using any more, closing.


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