Project

Profile

Help

Issue #2552

closed

updating ostree rpm gives error on sync: LibError: GLib.Error('No such file or directory', 'g-io-error-quark', 1)

Added by tomckay@redhat.com almost 8 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - OSTree:
1.2.0
Platform Release:
2.12.2
Target Release - OSTree:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 15
Quarter:

Description

Running pulp-2.11.0 I had celery worker crashing. A bugzilla indicated that perhaps updating the ostree rpm would correct this problem. I updated to ostree-2016.15. A sync generated this in /var/log/messages

Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056) Exception caught from plugin during publish for repo [examplecorp-Red_Hat_Enterprise_Lin\
ux_Atomic_Host-Red_Hat_Enterprise_Linux_Atomic_Host_Trees]
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056) Traceback (most recent call last):
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 12\
39, in _do_publish
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     publish_report = publish_repo(transfer_repo, conduit, call_config)
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 673, in wrap_\
f
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     return f(*args, **kwargs)
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/distributors/web.py", line \
87, in publish_repo
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     return self._publisher.process_lifecycle()
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 566, i\
n process_lifecycle
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     super(PluginStep, self).process_lifecycle()
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 163, i\
n process_lifecycle
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     step.process()
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 253, i\
n process
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     self._process_block()
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py", line 297, i\
n _process_block
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     self.process_main()
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/distributors/steps.py", lin\
e 84, in process_main
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     repository.pull_local(unit.storage_path, [unit.commit], self.depth)
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)   File "/usr/lib/python2.7/site-packages/pulp_ostree/plugins/lib.py", line 30, in _fn
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056)     raise LibError(repr(ge))
Jan 30 19:22:05 devel pulp: pulp.server.controllers.repository:ERROR: (17294-89056) LibError: GLib.Error('No such file or directory', 'g-io-error-quark', 1)
Actions #1

Updated by bmbouter almost 8 years ago

  • Description updated (diff)

The BZ number is in the Bugzilla field, so I'm removing the BZ link from the description.

Actions #2

Updated by ipanova@redhat.com almost 8 years ago

We had similar issue time ago, maybe they are related https://pulp.plan.io/issues/1722

Actions #3

Updated by bizhang almost 8 years ago

  • Sprint/Milestone set to 32
  • Triaged changed from No to Yes
Actions #4

Updated by jortel@redhat.com almost 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com
  • Sprint/Milestone deleted (32)
Actions #5

Updated by jortel@redhat.com almost 8 years ago

  • Sprint/Milestone set to 32

Okay, no idea how I cleared the Sprint/Milestone in the previous edit. Putting it back.

Actions #6

Updated by jortel@redhat.com almost 8 years ago

The worker SEGFAULT caused by a bug in libostree is corrupting the pulp "backing" ostree repository causing:

LibError: GLib.Error('No such file or directory', 'g-io-error-quark', 1)

to be raised during publishing.

Both the RHEL7 atomic channel and Satellite 6 channels have really old versions of ostree. The segfault can be reproduced using ostree 2016.5.3. But, so for, I have not been able to reproduce the segfault with 2017.1. Discussed with Colin Walters (atomic team) and he assessed the risk of satellite providing ostree 2017.1 on EL7 to be low. Given this issue appears to be fixed, I will recommend this.

The next step is to reproduce the broken repository and try to fix in ways less drastic than deleting the corrupted repository. I'm hoping that running something like:

ostree prune

may have a side effect of repairing the broken repository. If so, it would not be a bad idea to have the pulp ostree plugin run this before every sync for 2 reasons:
- The prune removes un-referenced objects which will recover wasted disk space.
- Repair broken repository

The 2nd has not yet been proven.

Stay tuned....

Actions #7

Updated by jortel@redhat.com almost 8 years ago

No luck using "ostree prune" . Sent email to atomic group asking for help. The main reason I don't want to delete/re-create the repository is that deleting the repository will create broken links in the published repositories. In any case, we'd need log the path to the "backing" repository.

Actions #8

Updated by mhrivnak almost 8 years ago

  • Sprint/Milestone changed from 32 to 33
Actions #9

Updated by jortel@redhat.com almost 8 years ago

  • Status changed from ASSIGNED to POST
Actions #10

Updated by jortel@redhat.com almost 8 years ago

The approach to resolve this includes both an attempt to prevent the local repository from being corrupted and providing safe tooling to repair the local repository after is has been corrupted.

I have seen the local repository get corrupted when a pull is interrupted by a connection reset by peer. Then, the subsequent publish (pull-local) crashes the celery worker.

- recommend users use libostree 2017.1 or newer.
- use the --repair | -r sync option to fix corrupted repositories. Or, repair=True using the API.

Actions #11

Updated by jortel@redhat.com almost 8 years ago

I will continue to pursue this with the atomic team. I can provide them a corrupted repository in hopes they can prevent the corruption in libostree.

Added by jortel@redhat.com almost 8 years ago

Revision f7806457 | View on GitHub

Support local repository repair. closes #2552

Actions #12

Updated by jortel@redhat.com almost 8 years ago

  • Status changed from POST to MODIFIED
Actions #13

Updated by semyers over 7 years ago

  • Platform Release set to 2.12.2
Actions #14

Updated by semyers over 7 years ago

  • Status changed from MODIFIED to 5
Actions #15

Updated by bizhang over 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #16

Updated by bmbouter over 6 years ago

  • Sprint set to Sprint 15
Actions #17

Updated by bmbouter over 6 years ago

  • Sprint/Milestone deleted (33)
Actions #18

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF