[Katello] subscription-manager fails to connect to Katello 3.0.1

Hi

After upgrade to Katello 3.0.1 I cannot subscribe clients to it anymore:

2016-06-22 09:14:32,676 [DEBUG] subscription-manager:7854 @ga_loader.py:89

  • ga_loader GaImporterGtk2
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 @plugins.py:569 -
    loaded plugin modules: []
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 @plugins.py:570 -
    loaded plugins: {}
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 @identity.py:131
  • Loading consumer info from identity certificates.
    2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 @managercli.py:367
  • Client Versions: {'python-rhsm': '1.16.6-1.el6', 'subscription-manager':
    '1.16.8-8.el6'}
    2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 @connection.py:815
  • Connection built: host=katello.local port=443 handler=/rhsm
    auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=True
    2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 @connection.py:815
  • Connection built: host=katello.local port=443 handler=/rhsm auth=none
    2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 @managercli.py:342
  • Consumer Identity name=node.local uuid=xxx
    2016-06-22 09:14:32,712 [DEBUG] subscription-manager:7854
    @connection.py:557 - Making request: GET
    /rhsm/consumers/xxx/certificates/serials
    2016-06-22 09:14:32,874 [DEBUG] subscription-manager:7854
    @connection.py:589 - Response: status=200
    2016-06-22 09:14:32,875 [DEBUG] subscription-manager:7854
    @connection.py:557 - Making request: GET
    /rhsm/consumers/xxx/certificates?serials=xxx
    2016-06-22 09:14:32,912 [DEBUG] subscription-manager:7854
    @connection.py:589 - Response: status=302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @connection.py:618 - Response: 302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @connection.py:619 - JSON parsing error: No JSON object could be decoded
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @managercli.py:174 - Unable to perform refresh due to the following
    exception: Network error code: 302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @managercli.py:175 - Network error code: 302
    Traceback (most recent call last):
    File "/usr/share/rhsm/subscription_manager/managercli.py", line 622, in
    _do_command
    self.entcertlib.update()
    File "/usr/share/rhsm/subscription_manager/certlib.py", line 31, in update
    self.report = self.locker.run(self._do_update)
    File "/usr/share/rhsm/subscription_manager/certlib.py", line 17, in run
    return action()
    File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 43, in
    _do_update
    return action.perform()
    File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 129, in
    perform
    self.install(missing_serials)
    File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 159, in
    install
    cert_bundles = self.get_certificates_by_serial_list(missing_serials)
    File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 248, in
    get_certificates_by_serial_list
    serials=sn_list)
    File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 1138,
    in getCertificates
    return self.conn.request_get(method)
    File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 681,
    in request_get
    return self._request("GET", method)
    File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 598,
    in _request
    self.validateResponse(result, request_type, handler)
    File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 668,
    in validateResponse
    raise NetworkException(response['status'])
    NetworkException: Network error code: 302

> Hi
>
> After upgrade to Katello 3.0.1 I cannot subscribe clients to it anymore:

which version did you upgrade from?

··· On 06/22/2016 03:23 AM, Edgars M. wrote:

2016-06-22 09:14:32,676 [DEBUG] subscription-manager:7854 @ga_loader.py:89

  • ga_loader GaImporterGtk2
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 @plugins.py:569 -
    loaded plugin modules: []
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 @plugins.py:570 -
    loaded plugins: {}
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 @identity.py:131
  • Loading consumer info from identity certificates.
    2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 @managercli.py:367
  • Client Versions: {‘python-rhsm’: ‘1.16.6-1.el6’, ‘subscription-manager’:
    ‘1.16.8-8.el6’}
    2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 @connection.py:815
  • Connection built: host=katello.local port=443 handler=/rhsm
    auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=True
    2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 @connection.py:815
  • Connection built: host=katello.local port=443 handler=/rhsm auth=none
    2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 @managercli.py:342
  • Consumer Identity name=node.local uuid=xxx
    2016-06-22 09:14:32,712 [DEBUG] subscription-manager:7854
    @connection.py:557 - Making request: GET
    /rhsm/consumers/xxx/certificates/serials
    2016-06-22 09:14:32,874 [DEBUG] subscription-manager:7854
    @connection.py:589 - Response: status=200
    2016-06-22 09:14:32,875 [DEBUG] subscription-manager:7854
    @connection.py:557 - Making request: GET
    /rhsm/consumers/xxx/certificates?serials=xxx
    2016-06-22 09:14:32,912 [DEBUG] subscription-manager:7854
    @connection.py:589 - Response: status=302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @connection.py:618 - Response: 302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @connection.py:619 - JSON parsing error: No JSON object could be decoded
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @managercli.py:174 - Unable to perform refresh due to the following
    exception: Network error code: 302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @managercli.py:175 - Network error code: 302
    Traceback (most recent call last):
    File “/usr/share/rhsm/subscription_manager/managercli.py”, line 622, in
    _do_command
    self.entcertlib.update()
    File “/usr/share/rhsm/subscription_manager/certlib.py”, line 31, in update
    self.report = self.locker.run(self._do_update)
    File “/usr/share/rhsm/subscription_manager/certlib.py”, line 17, in run
    return action()
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 43, in
    _do_update
    return action.perform()
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 129, in
    perform
    self.install(missing_serials)
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 159, in
    install
    cert_bundles = self.get_certificates_by_serial_list(missing_serials)
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 248, in
    get_certificates_by_serial_list
    serials=sn_list)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line 1138,
    in getCertificates
    return self.conn.request_get(method)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line 681,
    in request_get
    return self._request(“GET”, method)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line 598,
    in _request
    self.validateResponse(result, request_type, handler)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line 668,
    in validateResponse
    raise NetworkException(response[‘status’])
    NetworkException: Network error code: 302

From 2.4.4

trešdiena, 2016. gada 22. jūnijs 15:15:44 UTC+2, Chris Duryee rakstīja:

··· > > > > On 06/22/2016 03:23 AM, Edgars M. wrote: > > Hi > > > > After upgrade to Katello 3.0.1 I cannot subscribe clients to it anymore: > > which version did you upgrade from? > > > > > 2016-06-22 09:14:32,676 [DEBUG] subscription-manager:7854 > @ga_loader.py:89 > > - ga_loader GaImporterGtk2 > > 2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 > @plugins.py:569 - > > loaded plugin modules: [] > > 2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 > @plugins.py:570 - > > loaded plugins: {} > > 2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 > @identity.py:131 > > - Loading consumer info from identity certificates. > > 2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 > @managercli.py:367 > > - Client Versions: {'python-rhsm': '1.16.6-1.el6', > 'subscription-manager': > > '1.16.8-8.el6'} > > 2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 > @connection.py:815 > > - Connection built: host=katello.local port=443 handler=/rhsm > > auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=True > > 2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 > @connection.py:815 > > - Connection built: host=katello.local port=443 handler=/rhsm auth=none > > 2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 > @managercli.py:342 > > - Consumer Identity name=node.local uuid=xxx > > 2016-06-22 09:14:32,712 [DEBUG] subscription-manager:7854 > > @connection.py:557 - Making request: GET > > /rhsm/consumers/xxx/certificates/serials > > 2016-06-22 09:14:32,874 [DEBUG] subscription-manager:7854 > > @connection.py:589 - Response: status=200 > > 2016-06-22 09:14:32,875 [DEBUG] subscription-manager:7854 > > @connection.py:557 - Making request: GET > > /rhsm/consumers/xxx/certificates?serials=xxx > > 2016-06-22 09:14:32,912 [DEBUG] subscription-manager:7854 > > @connection.py:589 - Response: status=302 > > 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > > @connection.py:618 - Response: 302 > > 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > > @connection.py:619 - JSON parsing error: No JSON object could be decoded > > 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > > @managercli.py:174 - Unable to perform refresh due to the following > > exception: Network error code: 302 > > 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > > @managercli.py:175 - Network error code: 302 > > Traceback (most recent call last): > > File "/usr/share/rhsm/subscription_manager/managercli.py", line 622, > in > > _do_command > > self.entcertlib.update() > > File "/usr/share/rhsm/subscription_manager/certlib.py", line 31, in > update > > self.report = self.locker.run(self._do_update) > > File "/usr/share/rhsm/subscription_manager/certlib.py", line 17, in > run > > return action() > > File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 43, in > > _do_update > > return action.perform() > > File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 129, > in > > perform > > self.install(missing_serials) > > File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 159, > in > > install > > cert_bundles = self.get_certificates_by_serial_list(missing_serials) > > File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 248, > in > > get_certificates_by_serial_list > > serials=sn_list) > > File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > 1138, > > in getCertificates > > return self.conn.request_get(method) > > File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > 681, > > in request_get > > return self._request("GET", method) > > File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > 598, > > in _request > > self.validateResponse(result, request_type, handler) > > File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > 668, > > in validateResponse > > raise NetworkException(response['status']) > > NetworkException: Network error code: 302 > > > > > > >

> From 2.4.4

Sorry, I lost track of this email. Are you still having issues with
registration?

··· On 06/23/2016 03:19 AM, Edgars M. wrote:

trešdiena, 2016. gada 22. jūnijs 15:15:44 UTC+2, Chris Duryee rakstīja:

On 06/22/2016 03:23 AM, Edgars M. wrote:

Hi

After upgrade to Katello 3.0.1 I cannot subscribe clients to it anymore:

which version did you upgrade from?

2016-06-22 09:14:32,676 [DEBUG] subscription-manager:7854
@ga_loader.py:89

  • ga_loader GaImporterGtk2
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854
    @plugins.py:569 -
    loaded plugin modules: []
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854
    @plugins.py:570 -
    loaded plugins: {}
    2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854
    @identity.py:131
  • Loading consumer info from identity certificates.
    2016-06-22 09:14:32,710 [INFO] subscription-manager:7854
    @managercli.py:367
  • Client Versions: {‘python-rhsm’: ‘1.16.6-1.el6’,
    ‘subscription-manager’:
    ‘1.16.8-8.el6’}
    2016-06-22 09:14:32,710 [INFO] subscription-manager:7854
    @connection.py:815
  • Connection built: host=katello.local port=443 handler=/rhsm
    auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=True
    2016-06-22 09:14:32,711 [INFO] subscription-manager:7854
    @connection.py:815
  • Connection built: host=katello.local port=443 handler=/rhsm auth=none
    2016-06-22 09:14:32,711 [INFO] subscription-manager:7854
    @managercli.py:342
  • Consumer Identity name=node.local uuid=xxx
    2016-06-22 09:14:32,712 [DEBUG] subscription-manager:7854
    @connection.py:557 - Making request: GET
    /rhsm/consumers/xxx/certificates/serials
    2016-06-22 09:14:32,874 [DEBUG] subscription-manager:7854
    @connection.py:589 - Response: status=200
    2016-06-22 09:14:32,875 [DEBUG] subscription-manager:7854
    @connection.py:557 - Making request: GET
    /rhsm/consumers/xxx/certificates?serials=xxx
    2016-06-22 09:14:32,912 [DEBUG] subscription-manager:7854
    @connection.py:589 - Response: status=302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @connection.py:618 - Response: 302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @connection.py:619 - JSON parsing error: No JSON object could be decoded
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @managercli.py:174 - Unable to perform refresh due to the following
    exception: Network error code: 302
    2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854
    @managercli.py:175 - Network error code: 302
    Traceback (most recent call last):
    File “/usr/share/rhsm/subscription_manager/managercli.py”, line 622,
    in
    _do_command
    self.entcertlib.update()
    File “/usr/share/rhsm/subscription_manager/certlib.py”, line 31, in
    update
    self.report = self.locker.run(self._do_update)
    File “/usr/share/rhsm/subscription_manager/certlib.py”, line 17, in
    run
    return action()
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 43, in
    _do_update
    return action.perform()
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 129,
    in
    perform
    self.install(missing_serials)
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 159,
    in
    install
    cert_bundles = self.get_certificates_by_serial_list(missing_serials)
    File “/usr/share/rhsm/subscription_manager/entcertlib.py”, line 248,
    in
    get_certificates_by_serial_list
    serials=sn_list)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line
    1138,
    in getCertificates
    return self.conn.request_get(method)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line
    681,
    in request_get
    return self._request(“GET”, method)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line
    598,
    in _request
    self.validateResponse(result, request_type, handler)
    File “/usr/lib64/python2.6/site-packages/rhsm/connection.py”, line
    668,
    in validateResponse
    raise NetworkException(response[‘status’])
    NetworkException: Network error code: 302

Hi

We have decided to install new Katello instead of upgrade. Too many things
broke after upgrade…

Edgars

ceturtdiena, 2016. gada 7. jūlijs 21:39:29 UTC+2, Chris Duryee rakstīja:

··· > > > > On 06/23/2016 03:19 AM, Edgars M. wrote: > > From 2.4.4 > > Sorry, I lost track of this email. Are you still having issues with > registration? > > > > > trešdiena, 2016. gada 22. jūnijs 15:15:44 UTC+2, Chris Duryee rakstīja: > >> > >> > >> > >> On 06/22/2016 03:23 AM, Edgars M. wrote: > >>> Hi > >>> > >>> After upgrade to Katello 3.0.1 I cannot subscribe clients to it > anymore: > >> > >> which version did you upgrade from? > >> > >>> > >>> 2016-06-22 09:14:32,676 [DEBUG] subscription-manager:7854 > >> @ga_loader.py:89 > >>> - ga_loader GaImporterGtk2 > >>> 2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 > >> @plugins.py:569 - > >>> loaded plugin modules: [] > >>> 2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 > >> @plugins.py:570 - > >>> loaded plugins: {} > >>> 2016-06-22 09:14:32,679 [DEBUG] subscription-manager:7854 > >> @identity.py:131 > >>> - Loading consumer info from identity certificates. > >>> 2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 > >> @managercli.py:367 > >>> - Client Versions: {'python-rhsm': '1.16.6-1.el6', > >> 'subscription-manager': > >>> '1.16.8-8.el6'} > >>> 2016-06-22 09:14:32,710 [INFO] subscription-manager:7854 > >> @connection.py:815 > >>> - Connection built: host=katello.local port=443 handler=/rhsm > >>> auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=True > >>> 2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 > >> @connection.py:815 > >>> - Connection built: host=katello.local port=443 handler=/rhsm > auth=none > >>> 2016-06-22 09:14:32,711 [INFO] subscription-manager:7854 > >> @managercli.py:342 > >>> - Consumer Identity name=node.local uuid=xxx > >>> 2016-06-22 09:14:32,712 [DEBUG] subscription-manager:7854 > >>> @connection.py:557 - Making request: GET > >>> /rhsm/consumers/xxx/certificates/serials > >>> 2016-06-22 09:14:32,874 [DEBUG] subscription-manager:7854 > >>> @connection.py:589 - Response: status=200 > >>> 2016-06-22 09:14:32,875 [DEBUG] subscription-manager:7854 > >>> @connection.py:557 - Making request: GET > >>> /rhsm/consumers/xxx/certificates?serials=xxx > >>> 2016-06-22 09:14:32,912 [DEBUG] subscription-manager:7854 > >>> @connection.py:589 - Response: status=302 > >>> 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > >>> @connection.py:618 - Response: 302 > >>> 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > >>> @connection.py:619 - JSON parsing error: No JSON object could be > decoded > >>> 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > >>> @managercli.py:174 - Unable to perform refresh due to the following > >>> exception: Network error code: 302 > >>> 2016-06-22 09:14:32,913 [ERROR] subscription-manager:7854 > >>> @managercli.py:175 - Network error code: 302 > >>> Traceback (most recent call last): > >>> File "/usr/share/rhsm/subscription_manager/managercli.py", line 622, > >> in > >>> _do_command > >>> self.entcertlib.update() > >>> File "/usr/share/rhsm/subscription_manager/certlib.py", line 31, in > >> update > >>> self.report = self.locker.run(self._do_update) > >>> File "/usr/share/rhsm/subscription_manager/certlib.py", line 17, in > >> run > >>> return action() > >>> File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 43, > in > >>> _do_update > >>> return action.perform() > >>> File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 129, > >> in > >>> perform > >>> self.install(missing_serials) > >>> File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 159, > >> in > >>> install > >>> cert_bundles = > self.get_certificates_by_serial_list(missing_serials) > >>> File "/usr/share/rhsm/subscription_manager/entcertlib.py", line 248, > >> in > >>> get_certificates_by_serial_list > >>> serials=sn_list) > >>> File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > >> 1138, > >>> in getCertificates > >>> return self.conn.request_get(method) > >>> File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > >> 681, > >>> in request_get > >>> return self._request("GET", method) > >>> File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > >> 598, > >>> in _request > >>> self.validateResponse(result, request_type, handler) > >>> File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line > >> 668, > >>> in validateResponse > >>> raise NetworkException(response['status']) > >>> NetworkException: Network error code: 302 > >>> > >>> > >>> > >> > > >