Bug 1388998

Summary: Capsule sync failed due to error "OST0002: Pulling remote refs failed. Reason: GLib.Error('Error performing TLS handshake: An illegal TLS extension was received.', 'g-tls-error-quark', 1)"
Product: Red Hat Satellite Reporter: Perry Gagne <pgagne>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WORKSFORME QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.3CC: jortel, mhrivnak, omankame, pgagne, sjagtap, ttereshc
Target Milestone: UnspecifiedKeywords: PrioBumpQA, Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-15 06:45:55 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:
Attachments:
Description Flags
foreman-debug tarball
none
Text from dynaflow task output none

Description Perry Gagne 2016-10-26 16:10:42 UTC
Description of problem:
Was doing a capsule sync between on a 6.2.3 capsule, and the sync failed due to the error:
"OST0002: Pulling remote refs failed. Reason: GLib.Error('Error performing TLS handshake: An illegal TLS extension was received.', 'g-tls-error-quark', 1)"

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


How reproducible: Not sure here, it may of been a one time thing, will try again and report back. 


Steps to Reproduce:
1. Run capsule sync on capsule that has never been synced. 
2.
3.

Actual results:
Capsule sync failed


Expected results:


Additional info:

Comment 1 Perry Gagne 2016-10-26 16:17:28 UTC
Error stack trace:

    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
        R = retval = fun(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 473, in __call__
        return super(Task, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 103, in __call__
        return super(PulpTask, self).__call__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
        return self.run(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 760, in sync
        sync_report = sync_repo(transfer_repo, conduit, call_config)
      File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 658, in wrap_f
        return f(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/web.py", line 91, in sync_repo
        report = step.process_lifecycle()
      File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 562, in process_lifecycle
        super(PluginStep, self).process_lifecycle()
      File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 159, in process_lifecycle
        step.process()
      File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 249, in process
        self._process_block()
      File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 293, in _process_block
        self.process_main()
      File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/steps.py", line 159, in process_main
        self._pull(self.parent.storage_dir, self.parent.repo_id, self.parent.branches)
      File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/importers/steps.py", line 187, in _pull
        raise pe
    PulpCodedException: Pulling remote refs failed. Reason: GLib.Error('Error performing TLS handshake: An illegal TLS extension was received.', 'g-tls-error-quark', 1)

Comment 2 Perry Gagne 2016-10-26 16:19:32 UTC
Created attachment 1214346 [details]
foreman-debug tarball

Comment 3 Perry Gagne 2016-10-26 16:21:37 UTC
Created attachment 1214349 [details]
Text from dynaflow task output

Comment 5 Jeff Ortel 2016-10-26 16:42:42 UTC
Initiated the sync on the affected capsule using pulp-admin and finished successfully.

----

[root@ibm-x3550m3-06 ~]# pulp-admin -u admin -p EYLHXS7j4ci6gWQDX5iPNSU9XHLXUSAC ostree repo list
+----------------------------------------------------------------------+
                          OSTree Repositories
+----------------------------------------------------------------------+

Id:                  Default_Organization-Library-atomic-Red_Hat_Enterprise_Linu
                     x_Atomic_Host-Red_Hat_Enterprise_Linux_Atomic_Host_Trees
Display Name:        Red Hat Enterprise Linux Atomic Host Trees
Description:         None
Content Unit Counts: 

Id:                  Default_Organization-Red_Hat_Enterprise_Linux_Atomic_Host-R
                     ed_Hat_Enterprise_Linux_Atomic_Host_Trees
Display Name:        Red Hat Enterprise Linux Atomic Host Trees
Description:         None
Content Unit Counts: 
  Ostree: 1


[root@ibm-x3550m3-06 ~]# pulp-admin -u admin -p EYLHXS7j4ci6gWQDX5iPNSU9XHLXUSAC ostree repo sync run --repo-id=Default_Organization-Library-atomic-Red_Hat_Enterprise_Linux_Atomic_Host-Red_Hat_Enterprise_Linux_Atomic_Host_Trees
+----------------------------------------------------------------------+
Synchronizing Repository
[Default_Organization-Library-atomic-Red_Hat_Enterprise_Linux_Atomic_Host-Red_Ha
t_Enterprise_Linux_Atomic_Host_Trees]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Create Local Repository
[-]
... completed

Update Summary
[-]
... completed

Pull Remote Branches
[\]
... completed

Add Content Units
[\]
... completed

Clean
[-]
... completed


Task Succeeded



Publish Trees
[-]
... completed

Making files available via web.
[-]
... completed


Task Succeeded


[root@ibm-x3550m3-06 ~]# pulp-admin -u admin -p EYLHXS7j4ci6gWQDX5iPNSU9XHLXUSAC ostree repo sync run --repo-id=Default_Organization-Red_Hat_Enterprise_Linux_Atomic_Host-Red_Hat_Enterprise_Linux_Atomic_Host_Trees
+----------------------------------------------------------------------+
Synchronizing Repository
[Default_Organization-Red_Hat_Enterprise_Linux_Atomic_Host-Red_Hat_Enterprise_Li
nux_Atomic_Host_Trees]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Create Local Repository
[-]
... completed

Update Summary
[-]
... completed

Pull Remote Branches
[/]
... completed

Add Content Units
[-]
... completed

Clean
[-]
... completed


Task Succeeded



Publish Trees
[|]
... completed

Making files available via web.
[|]
... completed


Task Succeeded


[root@ibm-x3550m3-06 ~]#

Comment 6 Michael Hrivnak 2017-01-06 20:32:54 UTC
Jeff, what needs to happen to call this resolved?

Comment 7 Jeff Ortel 2017-01-06 20:46:13 UTC
Perry,  Can you upgrade ostree and libsoup to the latest and retry?

Comment 8 Perry Gagne 2017-01-18 21:26:56 UTC
I setup the satellite and capsule and enabled OSTree and was not able to reproduce this:


For reference, I was running Sat 6.2.6 on RHEL 7.3, here are the versions of ostree and libsoup:

[root@ibm-x3250m4-06 ~]# rpmquery ostree
ostree-2016.5-3.atomic.el7.x86_64
[root@ibm-x3250m4-06 ~]# rpmquery libsoup
libsoup-2.48.1-6.el7.x86_64
[root@ibm-x3250m4-06 ~]#

Comment 15 Tanya Tereshchenko 2018-05-15 06:45:55 UTC
Feel free to re-open in case of encountering this issue again