Bug 1320287 - Self-registering Sat 6 fails: Unable to register (Value shown is "0")
Summary: Self-registering Sat 6 fails: Unable to register (Value shown is "0")
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: Installation - Satellite
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: TP3
: 1.0
Assignee: John Matthews
QA Contact: Thom Carlin
Dan Macpherson
URL:
Whiteboard:
: 1322032 (view as bug list)
Depends On:
Blocks: rhci-common-installer
TreeView+ depends on / blocked
 
Reported: 2016-03-22 18:29 UTC by Thom Carlin
Modified: 2022-12-01 05:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1322207 0 medium CLOSED RHSM steps to register satellite to itself are not correct 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1328974 0 unspecified CLOSED Self-registering Sat 6 fails: Unable to find available subscriptions for all your installed products. 2021-02-22 00:41:40 UTC

Internal Links: 1322207 1328974

Description Thom Carlin 2016-03-22 18:29:40 UTC
Description of problem:

System unable to self-register.  Was able to successfully register to another (6.1.8) instance

Version-Release number of selected component (if applicable):

TP3_RC1 (Sat 6.1.7)

How reproducible:

Believe 100%

Steps to Reproduce:
1. Install RHCI ISO
2. Log in to run launch-fusor-installer
3. Deploy RHEV
4. Once repositories have sync'd, follow steps in Sat 6 Install Guide, Section 5.1

Actual results:

Unable to register (Value shown is "0")

Expected results:

Successful registration

Additional info:

0 seems to be a KeyError
The instructions in Section 5.1 appear to be incorrect.  A doc bug is being filed by another person.
As previously mentioned, successfully subscribed to another (non-QCI) Sat 6 system and was able to update successfully.

Comment 1 John Matthews 2016-04-01 16:10:10 UTC
Followed steps Thom described, saw same behavior:

# rpm -Uvh /var/www/html/pub/katello-ca-consumer-latest.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:katello-ca-consumer-fusor.example################################# [100%]


# subscription-manager register --org Default_Organization
Registering to: fusor.example.com:443/rhsm
Username: admin
Password: 
0


Looked at /var/log/rhsm/rhsm.log for more info:

2016-04-01 11:54:19,154 [DEBUG] subscription-manager:20901 @connection.py:523 - Making request: GET /rhsm/owners/Default_Organization/environments
2016-04-01 11:54:19,935 [DEBUG] subscription-manager:20901 @connection.py:555 - Response: status=200
2016-04-01 11:54:19,937 [ERROR] subscription-manager:20901 @managercli.py:160 - Error during registration: 0
2016-04-01 11:54:19,937 [ERROR] subscription-manager:20901 @managercli.py:161 - 0
Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 1064, in _do_command
    self.options.environment)
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 1176, in _get_environment_id
    log.debug('Using the only available environment: "%s"' % env_list[0]['name'])
KeyError: 0



full gist of /var/log/rhsm/rhsm.log:
  https://gist.github.com/anonymous/8f4fb66ed4e85ced302643edd4b2052a

Comment 2 John Matthews 2016-04-01 16:11:51 UTC
# curl -s -k -u admin:changeme https://192.168.155.10/rhsm/owners/Default_Organization/environments | python -m json.tool
{
    "candlepin_proxies": [
        {
            "description": null,
            "display_name": "Library/Fusor_Puppet_Content",
            "id": "1-2",
            "name": "Library/Fusor_Puppet_Content"
        },
        {
            "description": null,
            "display_name": "Library",
            "id": "1",
            "name": "Library"
        }
    ]
}

Comment 3 John Matthews 2016-04-01 16:52:04 UTC

For below snippet of code from subscription-manager, the "env_list" variable equals:


env_list =

{'candlepin_proxies': [{'id': '1-2', 'display_name': 'Library/Fusor_Puppet_Content', 'description': None, 'name': 'Library/Fusor_Puppet_Content'}, {'id': '1', 'display_name': 'Library', 'description': None, 'name': 'Library'}]}


The exception is coming from:

/usr/share/rhsm/subscription_manager/managercli.py

log.debug('Using the only available environment: "%s"' % env_list[0]['name'])
   return env_list[0]['id']



---
Looks like the issue is that data we are getting back is under the key 'candlepin_proxies'

I made a one-line change below and re-ran with success


# diff managercli.py.BACKUP managercli.py
1169c1169
< 
---
>                 env_list = env_list['candlepin_proxies']



# subscription-manager register --org Default_Organization 
Registering to: fusor.example.com:443/rhsm
Username: admin
Password: 
Environment: Library
The system has been registered with ID: e05dca83-7daf-4ac0-b4b4-58bf6656813f 


# subscription-manager list --available
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+
Subscription Name:   Red Hat Cloud Infrastructure with Smart Management, Premium (2-sockets)
Provides:            Red Hat OpenStack Beta
                     Red Hat Software Collections (for RHEL Server)
                     <snip....>


# subscription-manager attach --pool 40XXXXXXXXXXXXXXXXXXXXXXXXXX00bb
Successfully attached a subscription for: Red Hat Cloud Infrastructure with Smart Management, Premium (2-sockets)

# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-satellite-6.1-rpms
Repo Name: Red Hat Satellite 6.1 (for RHEL 7 Server) (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/$basearch/satellite/6.1/os
Enabled:   0

Repo ID:   rhel-7-server-satellite-tools-6.1-rpms
Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/os
Enabled:   0

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/$releasever/$basearch/os
Enabled:   1

Repo ID:   rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/os
Enabled:   0


[root@fusor subscription_manager]# subscription-manager repos --enable=rhel-7-server-satellite-6.1-rpms
Repository 'rhel-7-server-satellite-6.1-rpms' is enabled for this system.

[root@fusor subscription_manager]# subscription-manager repos --enable=rhel-7-server-satellite-tools-6.1-rpms
Repository 'rhel-7-server-satellite-tools-6.1-rpms' is enabled for this system.

[root@fusor subscription_manager]# subscription-manager repos --enable=rhel-server-rhscl-7-rpms
Repository 'rhel-server-rhscl-7-rpms' is enabled for this system.

[root@fusor subscription_manager]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-satellite-6.1-rpms
Repo Name: Red Hat Satellite 6.1 (for RHEL 7 Server) (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/$basearch/satellite/6.1/os
Enabled:   1

Repo ID:   rhel-7-server-satellite-tools-6.1-rpms
Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/os
Enabled:   1

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/$releasever/$basearch/os
Enabled:   1

Repo ID:   rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/os
Enabled:   1


# yum install katello-agent
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms                                                                                                                                                          | 2.1 kB  00:00:00     
rhel-7-server-satellite-6.1-rpms                                                                                                                                            | 2.1 kB  00:00:00     
rhel-7-server-satellite-tools-6.1-rpms                                                                                                                                      | 2.1 kB  00:00:00     
rhel-server-rhscl-7-rpms                                                                                                                                                    | 2.1 kB  00:00:00     
(1/12): rhel-7-server-rpms/7Server/x86_64/group                                                                                                                             | 589 kB  00:00:00     
(2/12): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                                                        | 985 kB  00:00:00     
(3/12): rhel-7-server-rpms/7Server/x86_64/primary                                                                                                                           |  10 MB  00:00:00     
(4/12): rhel-7-server-satellite-6.1-rpms/x86_64/group                                                                                                                       | 4.1 kB  00:00:00     
(5/12): rhel-7-server-satellite-6.1-rpms/x86_64/updateinfo                                                                                                                  |  56 kB  00:00:00     
(6/12): rhel-7-server-satellite-6.1-rpms/x86_64/primary                                                                                                                     | 143 kB  00:00:00     
(7/12): rhel-7-server-satellite-tools-6.1-rpms/x86_64/updateinfo                                                                                                            |  12 kB  00:00:00     
(8/12): rhel-7-server-satellite-tools-6.1-rpms/x86_64/group                                                                                                                 | 1.4 kB  00:00:00     
(9/12): rhel-7-server-satellite-tools-6.1-rpms/x86_64/primary                                                                                                               |  18 kB  00:00:00     
(10/12): rhel-server-rhscl-7-rpms/7Server/x86_64/group                                                                                                                      |  130 B  00:00:00     
(11/12): rhel-server-rhscl-7-rpms/7Server/x86_64/updateinfo                                                                                                                 | 362 kB  00:00:00     
(12/12): rhel-server-rhscl-7-rpms/7Server/x86_64/primary                                                                                                                    | 852 kB  00:00:00     
rhel-7-server-rpms                                                                                                                                                                     10562/10562
rhel-7-server-satellite-6.1-rpms                                                                                                                                                           681/681
rhel-7-server-satellite-tools-6.1-rpms                                                                                                                                                       83/83
rhel-server-rhscl-7-rpms                                                                                                                                                                 4586/4586
Resolving Dependencies
--> Running transaction check
---> Package katello-agent.noarch 0:2.2.6-1.el7sat will be installed
--> Processing Dependency: python-pulp-agent-lib >= 2.6 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Processing Dependency: python-gofer-proton >= 2.5 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Processing Dependency: pulp-rpm-handlers >= 2.6 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Processing Dependency: gofer >= 2.5 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Running transaction check
---> Package gofer.noarch 0:2.6.8-1.el7sat will be installed
---> Package pulp-rpm-handlers.noarch 0:2.6.0.20-1.el7sat will be installed
---> Package python-gofer-proton.noarch 0:2.6.8-1.el7sat will be installed
--> Processing Dependency: python-qpid-proton >= 0.9-5 for package: python-gofer-proton-2.6.8-1.el7sat.noarch
---> Package python-pulp-agent-lib.noarch 0:2.6.0.20-1.el7sat will be installed
--> Running transaction check
---> Package python-qpid-proton.x86_64 0:0.9-12.el7sat will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================
 Package                                          Arch                              Version                                      Repository                                                   Size
===================================================================================================================================================================================================
Installing:
 katello-agent                                    noarch                            2.2.6-1.el7sat                               rhel-7-server-satellite-6.1-rpms                             24 k
Installing for dependencies:
 gofer                                            noarch                            2.6.8-1.el7sat                               rhel-7-server-satellite-6.1-rpms                             79 k
 pulp-rpm-handlers                                noarch                            2.6.0.20-1.el7sat                            rhel-7-server-satellite-6.1-rpms                             73 k
 python-gofer-proton                              noarch                            2.6.8-1.el7sat                               rhel-7-server-satellite-6.1-rpms                             54 k
 python-pulp-agent-lib                            noarch                            2.6.0.20-1.el7sat                            rhel-7-server-satellite-6.1-rpms                             92 k
 python-qpid-proton                               x86_64                            0.9-12.el7sat                                rhel-7-server-satellite-6.1-rpms                            199 k

Transaction Summary
===================================================================================================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 521 k
Installed size: 1.8 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): katello-agent-2.2.6-1.el7sat.noarch.rpm                                                                                                                              |  24 kB  00:00:00     
(2/6): gofer-2.6.8-1.el7sat.noarch.rpm                                                                                                                                      |  79 kB  00:00:00     
(3/6): pulp-rpm-handlers-2.6.0.20-1.el7sat.noarch.rpm                                                                                                                       |  73 kB  00:00:00     
(4/6): python-gofer-proton-2.6.8-1.el7sat.noarch.rpm                                                                                                                        |  54 kB  00:00:00     
(5/6): python-pulp-agent-lib-2.6.0.20-1.el7sat.noarch.rpm                                                                                                                   |  92 kB  00:00:00     
(6/6): python-qpid-proton-0.9-12.el7sat.x86_64.rpm                                                                                                                          | 199 kB  00:00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                              980 kB/s | 521 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : python-pulp-agent-lib-2.6.0.20-1.el7sat.noarch                                                                                                                                  1/6 
  Installing : pulp-rpm-handlers-2.6.0.20-1.el7sat.noarch                                                                                                                                      2/6 
  Installing : gofer-2.6.8-1.el7sat.noarch                                                                                                                                                     3/6 
  Installing : python-qpid-proton-0.9-12.el7sat.x86_64                                                                                                                                         4/6 
  Installing : python-gofer-proton-2.6.8-1.el7sat.noarch                                                                                                                                       5/6 
  Installing : katello-agent-2.2.6-1.el7sat.noarch                                                                                                                                             6/6 
Note: Forwarding request to 'systemctl enable goferd.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/goferd.service to /usr/lib/systemd/system/goferd.service.
Redirecting to /bin/systemctl restart  goferd.service
rhel-7-server-rpms/7Server/x86_64/productid                                                                                                                                 | 1.7 kB  00:00:00     
rhel-server-rhscl-7-rpms/7Server/x86_64/productid                                                                                                                           | 1.7 kB  00:00:00     
  Verifying  : python-pulp-agent-lib-2.6.0.20-1.el7sat.noarch                                                                                                                                  1/6 
  Verifying  : katello-agent-2.2.6-1.el7sat.noarch                                                                                                                                             2/6 
  Verifying  : python-gofer-proton-2.6.8-1.el7sat.noarch                                                                                                                                       3/6 
  Verifying  : python-qpid-proton-0.9-12.el7sat.x86_64                                                                                                                                         4/6 
  Verifying  : pulp-rpm-handlers-2.6.0.20-1.el7sat.noarch                                                                                                                                      5/6 
  Verifying  : gofer-2.6.8-1.el7sat.noarch                                                                                                                                                     6/6 

Installed:
  katello-agent.noarch 0:2.2.6-1.el7sat                                                                                                                                                            

Dependency Installed:
  gofer.noarch 0:2.6.8-1.el7sat                pulp-rpm-handlers.noarch 0:2.6.0.20-1.el7sat    python-gofer-proton.noarch 0:2.6.8-1.el7sat    python-pulp-agent-lib.noarch 0:2.6.0.20-1.el7sat   
  python-qpid-proton.x86_64 0:0.9-12.el7sat   

Complete!

Comment 4 John Matthews 2016-04-01 22:45:30 UTC
Learned some more....issue is related to RHCI bringing in active model serializers 0.9.

We do not know yet why this is altering behavior, but we've proved this is having an impact.  (Thanks to Jason Montleon for narrowing this down to the exact gem changing the behavior).




The expected response is:

# curl -s -k -u admin:changeme https://192.168.155.10/rhsm/owners/Default_Organization/environments  | python -mjson.tool
[
    {
        "description": null,
        "display_name": "Library/Fusor_Puppet_Content",
        "id": "1-2",
        "name": "Library/Fusor_Puppet_Content"
    },
    {
        "description": null,
        "display_name": "Library",
        "id": "1",
        "name": "Library"
    }
]

If we take a Sat 6.1 instance and add the active model serializers gem it alters the behavior.

# cat /usr/share/foreman/bundler.d/ams.rb 
gem "active_model_serializers", '~> 0.9'

sudo katello-service restart

# curl -s -k -u admin:changeme https://192.168.155.10/rhsm/owners/Default_Organization/environments  | python -mjson.tool
{
    "candlepin_proxies": [
        {
            "description": null,
            "display_name": "Library/Fusor_Puppet_Content",
            "id": "1-2",
            "name": "Library/Fusor_Puppet_Content"
        },
        {
            "description": null,
            "display_name": "Library",
            "id": "1",
            "name": "Library"
        }
    ]
}

Comment 5 Jason Montleon 2016-04-02 15:05:39 UTC
One way to work around this is to add , :root => false to the renders lines in 

./app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb

I got this originally:
{"candlepin_proxies":[{"id":"1-2","name":"Library/Fusor_Puppet_Content","display_name":"Library/Fusor_Puppet_Content","description":null},{"id":"1","name":"Library","display_name":"Library","description":null}]}

I edited the file above ~L#403 in the respond_for_index method
from:
render format => collection, :status => status
to:
render format => collection, :status => status, :root => false

gets:
[{"id":"1-2","name":"Library/Fusor_Puppet_Content","display_name":"Library/Fusor_Puppet_Content","description":null},{"id":"1","name":"Library","display_name":"Library","description":null}]

Doing similar in the serials method fixed the serials list for me as well.

I verified with foretello, fusor_{server,ui}, and active_model_serializers removed that there does not appear to be any apparent negative effect.

So at this point known possible options include:
1.) Submitting a PR to katello if they're willing to incorporate the change. Then we can continue with AMS 0.9 indefinitely.

2.) Building a custom version of Katello for TP3 if this is critical and cutting to AMS 0.10 for Sat 6.2 (rails 4 is required) so changes to Katello aren't required.

Maybe we can come up with something even better with some research.

Comment 6 Jason Montleon 2016-04-02 15:11:47 UTC
Here we go, think this is teh source of the problem:
http://www.jasonfleetwoodboldt.com/writing/2014/07/08/warning-adding-active-model-serializer-will-change/

Comment 7 Jason Montleon 2016-04-02 18:17:01 UTC
OK, so this is the fault of the ArraySerializer being used by default and it having root = true by default. When the rhsm api's return an array they are processed and returned with their root.

We can blanket disable returning root and restore the normal functionality by creating config/initializers/active_model_serializer.rb in the foretello gem with contents:
ActiveModel::ArraySerializer.root = false

The problem we hit now is that the arrays returned by our index methods for each controller don't return with a root.

To fix this I created app/serializers/root_array_serializer.rb :
class RootArraySerializer < ActiveModel::ArraySerializer
  root = true
end

the in the controllers for each index I add to the render line ', :serializer => RootArraySerializer', which restores the root for our api index calls.


As an example
cat app/controllers/api/v21/organizations_controller.rb 
module Api
  module V21
    class OrganizationsController < V2::OrganizationsController

      include Api::Version21

      def index
        # could not call super, since v2 calls render
        if @nested_obj
          #@taxonomies = @domain.locations.search_for(*search_options).paginate(paginate_options)
          @taxonomies = @nested_obj.send(taxonomies_plural).search_for(*search_options).paginate(paginate_options)
          @total = @nested_obj.send(taxonomies_plural).count
        else
          @taxonomies = taxonomy_class.search_for(*search_options).paginate(paginate_options)
          @total = taxonomy_class.count
        end
        instance_variable_set("@#{taxonomies_plural}", @taxonomies)
        render :json => @organizations, :each_serializer => OrganizationSerializer, :serializer => RootArraySerializer

...

Comment 8 Jason Montleon 2016-04-04 13:08:33 UTC
*** Bug 1322032 has been marked as a duplicate of this bug. ***

Comment 9 John Matthews 2016-04-11 19:21:37 UTC
Tested Below with: QCI-1.0-RHEL-7-20160411.t.0-QCI-x86_64-dvd1.iso


After I manually synced the needed Repos:
 - sat 6.1, tools, scl, rhel7

# rpm -Uvh /var/www/html/pub/katello-ca-consumer-latest.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:katello-ca-consumer-fusor.example################################# [100%]

# subscription-manager register --org Default_Organization
Registering to: fusor.example.com:443/rhsm
Username: admin
Password: 
Environment: Library
The system has been registered with ID: ed09e72e-4695-4d18-bb74-a508962c1b7a 



[root@fusor ~]# subscription-manager attach --pool 40281b8a5405eed101540641718a00bb
Successfully attached a subscription for: Red Hat Cloud Infrastructure with Smart Management, Premium (2-sockets)
[root@fusor ~]# subscription-manager repos --enable=rhel-7-server-satellite-6.1-rpms
Repository 'rhel-7-server-satellite-6.1-rpms' is enabled for this system.
[root@fusor ~]# subscription-manager repos --enable=rhel-7-server-satellite-tools-6.1-rpms
Repository 'rhel-7-server-satellite-tools-6.1-rpms' is enabled for this system.
[root@fusor ~]# subscription-manager repos --enable=rhel-server-rhscl-7-rpms
Repository 'rhel-server-rhscl-7-rpms' is enabled for this system.
[root@fusor ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/os
Enabled:   1

Repo ID:   rhel-7-server-satellite-6.1-rpms
Repo Name: Red Hat Satellite 6.1 (for RHEL 7 Server) (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/$basearch/satellite/6.1/os
Enabled:   1

Repo ID:   rhel-7-server-satellite-tools-6.1-rpms
Repo Name: Red Hat Satellite Tools 6.1 (for RHEL 7 Server) (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/$basearch/sat-tools/6.1/os
Enabled:   1

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/$releasever/$basearch/os
Enabled:   1

Repo ID:   rhel-7-server-supplementary-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Supplementary (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/$releasever/$basearch/supplementary/os
Enabled:   0

Repo ID:   rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL:  https://fusor.example.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/$basearch/extras/os
Enabled:   0

[root@fusor ~]# yum install katello-agent
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
rhel-7-server-rpms                                                                                                                                                                | 2.1 kB  00:00:00     
rhel-7-server-satellite-6.1-rpms                                                                                                                                                  | 2.1 kB  00:00:00     
rhel-7-server-satellite-tools-6.1-rpms                                                                                                                                            | 2.1 kB  00:00:00     
rhel-server-rhscl-7-rpms                                                                                                                                                          | 2.1 kB  00:00:00     
(1/12): rhel-7-server-rpms/7Server/x86_64/group                                                                                                                                   | 589 kB  00:00:00     
(2/12): rhel-7-server-rpms/7Server/x86_64/updateinfo                                                                                                                              | 960 kB  00:00:00     
(3/12): rhel-7-server-rpms/7Server/x86_64/primary                                                                                                                                 |  10 MB  00:00:00     
(4/12): rhel-7-server-satellite-6.1-rpms/x86_64/group                                                                                                                             | 4.1 kB  00:00:00     
(5/12): rhel-7-server-satellite-6.1-rpms/x86_64/updateinfo                                                                                                                        |  56 kB  00:00:00     
(6/12): rhel-7-server-satellite-6.1-rpms/x86_64/primary                                                                                                                           | 143 kB  00:00:00     
(7/12): rhel-7-server-satellite-tools-6.1-rpms/x86_64/updateinfo                                                                                                                  |  12 kB  00:00:00     
(8/12): rhel-7-server-satellite-tools-6.1-rpms/x86_64/group                                                                                                                       | 1.4 kB  00:00:00     
(9/12): rhel-7-server-satellite-tools-6.1-rpms/x86_64/primary                                                                                                                     |  18 kB  00:00:00     
(10/12): rhel-server-rhscl-7-rpms/7Server/x86_64/group                                                                                                                            |  130 B  00:00:00     
(11/12): rhel-server-rhscl-7-rpms/7Server/x86_64/updateinfo                                                                                                                       | 362 kB  00:00:00     
(12/12): rhel-server-rhscl-7-rpms/7Server/x86_64/primary                                                                                                                          | 852 kB  00:00:00     
rhel-7-server-rpms                                                                                                                                                                           10572/10572
rhel-7-server-satellite-6.1-rpms                                                                                                                                                                 681/681
rhel-7-server-satellite-tools-6.1-rpms                                                                                                                                                             83/83
rhel-server-rhscl-7-rpms                                                                                                                                                                       4586/4586
Resolving Dependencies
--> Running transaction check
---> Package katello-agent.noarch 0:2.2.6-1.el7sat will be installed
--> Processing Dependency: python-pulp-agent-lib >= 2.6 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Processing Dependency: python-gofer-proton >= 2.5 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Processing Dependency: pulp-rpm-handlers >= 2.6 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Processing Dependency: gofer >= 2.5 for package: katello-agent-2.2.6-1.el7sat.noarch
--> Running transaction check
---> Package gofer.noarch 0:2.6.8-1.el7sat will be installed
---> Package pulp-rpm-handlers.noarch 0:2.6.0.20-1.el7sat will be installed
---> Package python-gofer-proton.noarch 0:2.6.8-1.el7sat will be installed
--> Processing Dependency: python-qpid-proton >= 0.9-5 for package: python-gofer-proton-2.6.8-1.el7sat.noarch
---> Package python-pulp-agent-lib.noarch 0:2.6.0.20-1.el7sat will be installed
--> Running transaction check
---> Package python-qpid-proton.x86_64 0:0.9-12.el7sat will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================================================
 Package                                           Arch                               Version                                         Repository                                                    Size
=========================================================================================================================================================================================================
Installing:
 katello-agent                                     noarch                             2.2.6-1.el7sat                                  rhel-7-server-satellite-6.1-rpms                              24 k
Installing for dependencies:
 gofer                                             noarch                             2.6.8-1.el7sat                                  rhel-7-server-satellite-6.1-rpms                              79 k
 pulp-rpm-handlers                                 noarch                             2.6.0.20-1.el7sat                               rhel-7-server-satellite-6.1-rpms                              73 k
 python-gofer-proton                               noarch                             2.6.8-1.el7sat                                  rhel-7-server-satellite-6.1-rpms                              54 k
 python-pulp-agent-lib                             noarch                             2.6.0.20-1.el7sat                               rhel-7-server-satellite-6.1-rpms                              92 k
 python-qpid-proton                                x86_64                             0.9-12.el7sat                                   rhel-7-server-satellite-6.1-rpms                             199 k

Transaction Summary
=========================================================================================================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 521 k
Installed size: 1.8 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): katello-agent-2.2.6-1.el7sat.noarch.rpm                                                                                                                                    |  24 kB  00:00:00     
(2/6): gofer-2.6.8-1.el7sat.noarch.rpm                                                                                                                                            |  79 kB  00:00:00     
(3/6): pulp-rpm-handlers-2.6.0.20-1.el7sat.noarch.rpm                                                                                                                             |  73 kB  00:00:00     
(4/6): python-gofer-proton-2.6.8-1.el7sat.noarch.rpm                                                                                                                              |  54 kB  00:00:00     
(5/6): python-pulp-agent-lib-2.6.0.20-1.el7sat.noarch.rpm                                                                                                                         |  92 kB  00:00:00     
(6/6): python-qpid-proton-0.9-12.el7sat.x86_64.rpm                                                                                                                                | 199 kB  00:00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                    1.9 MB/s | 521 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : python-pulp-agent-lib-2.6.0.20-1.el7sat.noarch                                                                                                                                        1/6 
  Installing : pulp-rpm-handlers-2.6.0.20-1.el7sat.noarch                                                                                                                                            2/6 
  Installing : gofer-2.6.8-1.el7sat.noarch                                                                                                                                                           3/6 
  Installing : python-qpid-proton-0.9-12.el7sat.x86_64                                                                                                                                               4/6 
  Installing : python-gofer-proton-2.6.8-1.el7sat.noarch                                                                                                                                             5/6 
  Installing : katello-agent-2.2.6-1.el7sat.noarch                                                                                                                                                   6/6 
Note: Forwarding request to 'systemctl enable goferd.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/goferd.service to /usr/lib/systemd/system/goferd.service.
Redirecting to /bin/systemctl restart  goferd.service
rhel-7-server-rpms/7Server/x86_64/productid                                                                                                                                       | 1.7 kB  00:00:00     
rhel-server-rhscl-7-rpms/7Server/x86_64/productid                                                                                                                                 | 1.7 kB  00:00:00     
  Verifying  : python-pulp-agent-lib-2.6.0.20-1.el7sat.noarch                                                                                                                                        1/6 
  Verifying  : katello-agent-2.2.6-1.el7sat.noarch                                                                                                                                                   2/6 
  Verifying  : python-gofer-proton-2.6.8-1.el7sat.noarch                                                                                                                                             3/6 
  Verifying  : python-qpid-proton-0.9-12.el7sat.x86_64                                                                                                                                               4/6 
  Verifying  : pulp-rpm-handlers-2.6.0.20-1.el7sat.noarch                                                                                                                                            5/6 
  Verifying  : gofer-2.6.8-1.el7sat.noarch                                                                                                                                                           6/6 

Installed:
  katello-agent.noarch 0:2.2.6-1.el7sat                                                                                                                                                                  

Dependency Installed:
  gofer.noarch 0:2.6.8-1.el7sat                  pulp-rpm-handlers.noarch 0:2.6.0.20-1.el7sat      python-gofer-proton.noarch 0:2.6.8-1.el7sat      python-pulp-agent-lib.noarch 0:2.6.0.20-1.el7sat     
  python-qpid-proton.x86_64 0:0.9-12.el7sat     

Complete!

Comment 10 John Matthews 2016-04-11 19:25:11 UTC
jmontleo fixed this issue with PRs to fusor_server and foretello.

Root issue was active_model_serializers changed behavior of ArraySerializer to include a namespace of the name of the controller in the output json.

Below PRs will restore the behavior for the default array serializer and update fusor APIs to wrap the json as expected by ember.

https://github.com/fusor/fusor/pull/754
https://github.com/fusor/fusor/pull/753
https://github.com/fusor/foretello_api_v21/pull/11

Comment 11 John Matthews 2016-04-11 20:43:32 UTC
Addressed in TP3 RC3

Comment 13 Thom Carlin 2016-04-20 18:28:03 UTC
Specifically, step 8 needs to be replaced: 
subscription-manager register --org="org_label" --environment="Library"

The

Comment 14 Thom Carlin 2016-04-20 19:00:00 UTC
The bug described in https://bugzilla.redhat.com/show_bug.cgi?id=1320287#c0 is verified in TP3 RC4.


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