Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1514378 - Gtk-CRITICAL **: gtk_tree_store_get_value: assertion 'VALID_ITER (iter, tree_store)' failed while trying to remove a subscription from a disconnected system
Summary: Gtk-CRITICAL **: gtk_tree_store_get_value: assertion 'VALID_ITER (iter, tree_...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-17 09:25 UTC by Rehana
Modified: 2018-11-02 01:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Rehana 2017-11-17 09:25:38 UTC
Description of problem:


Version-Release number of selected component (if applicable):
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.0.43-1
subscription management rules: 5.26
subscription-manager: 1.20.5-1.el7

How reproducible:
always

Steps to Reproduce:
1.Register and attach subscription to system from gui
2.stop network
3.try to remove the subscription from gui that was launched at step1 

Actual results:
Appropriate error message "Network error, unable to connect to network" is displayed on the GUI , but observed a GTK message on the terminal from which the gui was launched.

# subscription-manager-gui 

(subscription-manager-gui:6712): Gtk-CRITICAL **: gtk_tree_store_get_value: assertion 'VALID_ITER (iter, tree_store)' failed


Expected results:
No GTK error on the terminal


Additional info:
NOTE : This is NOT a regression, the same failure happens on RHEL74 as well.

rhsm.log:
---------
2017-11-17 14:46:22,272 [DEBUG] subscription-manager-gui:6712:AsyncBindUnbindThread @connection.py:470 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, redhat-entitlement-authority.pem
2017-11-17 14:46:22,272 [DEBUG] subscription-manager-gui:6712:AsyncBindUnbindThread @connection.py:515 - Making request: DELETE /subscription/consumers/3273001b-05e5-4ae5-8a9c-f10c9fa8df29/certificates/1677382850074178349
2017-11-17 14:46:22,300 [WARNING] subscription-manager-gui:6712:MainThread @widgets.py:367 - Invalid item request: unknown type (null)
2017-11-17 14:46:22,300 [WARNING] subscription-manager-gui:6712:MainThread @widgets.py:367 - Invalid item request: unknown type (null)
2017-11-17 14:46:22,301 [ERROR] subscription-manager-gui:6712:MainThread @utils.py:100 - [Errno -2] Name or service not known
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/async.py", line 97, in _run_unbind
    ent_service.remove_entitlements_by_serials([serial])
  File "/usr/lib64/python2.7/site-packages/rhsmlib/services/entitlement.py", line 337, in remove_entitlements_by_serials
    removed_serials, unremoved_serials = self._unbind_ids(self.cp.unbindBySerial, self.identity.uuid, _serials)
  File "/usr/lib64/python2.7/site-packages/rhsmlib/services/entitlement.py", line 288, in _unbind_ids
    unbind_method(consumer_uuid, id_)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 1233, in unbindBySerial
    return self.conn.request_delete(method)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 672, in request_delete
    return self._request("DELETE", method, params, headers=headers)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 686, in _request
    info=info, headers=headers)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 527, in _request
    conn.request(request_type, handler, body=body, headers=final_headers)
  File "/usr/lib64/python2.7/httplib.py", line 1017, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.7/httplib.py", line 1051, in _send_request
    self.endheaders(body)
  File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.7/httplib.py", line 826, in send
    self.connect()
  File "/usr/lib64/python2.7/httplib.py", line 1227, in connect
    HTTPConnection.connect(self)
  File "/usr/lib64/python2.7/httplib.py", line 807, in connect
    self.timeout, self.source_address)
  File "/usr/lib64/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno -2] Name or service not known
2017-11-17 14:46:22,544 [DEBUG] rhsmd:7069:MainThread @https.py:56 - Using standard libs to provide httplib and ssl
2017-11-17 14:46:22,763 [INFO] rhsmd:7069:MainThread @rhsmd:279 - rhsmd started
2017-11-17 14:46:22,786 [DEBUG] rhsmd:7069:MainThread @rhsmd:230 - D-Bus interface com.redhat.SubscriptionManager.EntitlementStatus.update_status called with status = 0
2017-11-17 14:46:22,888 [DEBUG] rhsmd:7069:MainThread @identity.py:137 - Loading consumer info from identity certificates.
2017-11-17 14:46:22,890 [DEBUG] rhsmd:7069:MainThread @connection.py:250 - Environment variable NO_PROXY=subscription.rhsm.stage.redhat.com will be used
2017-11-17 14:46:22,891 [INFO] rhsmd:7069:MainThread @connection.py:836 - Connection built: host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2017-11-17 14:46:22,891 [DEBUG] rhsmd:7069:MainThread @cache.py:168 - Checking current system info against cache: /var/lib/rhsm/cache/installed_products.json
2017-11-17 14:46:22,892 [DEBUG] rhsmd:7069:MainThread @cache.py:185 - No changes.
2017-11-17 14:46:22,892 [DEBUG] rhsmd:7069:MainThread @certdirectory.py:217 - Installed product IDs: ['68']
2017-11-17 14:46:22,916 [DEBUG] rhsmd:7069:MainThread @connection.py:470 - Loaded CA certificates from /etc/rhsm/ca/: redhat-uep.pem, redhat-entitlement-authority.pem
2017-11-17 14:46:22,916 [DEBUG] rhsmd:7069:MainThread @connection.py:515 - Making request: GET /subscription/consumers/3273001b-05e5-4ae5-8a9c-f10c9fa8df29/compliance
2017-11-17 14:46:22,917 [ERROR] rhsmd:7069:MainThread @cache.py:237 - [Errno -2] Name or service not known
2017-11-17 14:46:22,917 [WARNING] rhsmd:7069:MainThread @cache.py:243 - Unable to reach server, using cached status.
2017-11-17 14:46:22,941 [INFO] rhsmd:7069:MainThread @cert_sorter.py:205 - Product status: valid_products=68 partial_products= expired_products= unentitled_producs= future_products= valid_until=2018-11-16 05:00:00+00:00
2017-11-17 14:46:22,941 [DEBUG] rhsmd:7069:MainThread @cert_sorter.py:207 - partial stacks: []
2017-11-17 14:46:22,942 [DEBUG] rhsmd:7069:MainThread @cache.py:168 - Checking current system info against cache: /var/lib/rhsm/

Comment 1 Kevin Howell 2017-11-27 15:06:59 UTC
Does the GUI behave properly afterwards?

Comment 3 Rehana 2017-11-28 09:16:48 UTC
(In reply to Kevin Howell from comment #1)
> Does the GUI behave properly afterwards?

Yes , also when the network is back the subscription can be successfully removed.

Rehana


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