Awesome. This patch worked for me. Thanks Dennis! -Dustin
-----Original Message----- From: Dennis Kliban [mailto:[email protected]] Sent: Friday, November 11, 2016 2:01 PM To: Mcnabb, Dustin Cc: [email protected] Subject: [E] Re: [Pulp-list] Receiving error when trying to publish any rpm repo. Dustin, Thank you for reporting this issue. I was able to reproduce it by disabling SELinux. We plan to include a fix for this problem in the next beta. You can see the patch here[0]. The restorecon operation was not permitted when SELinux was disabled. -Dennis [0] https://github.com/pulp/pulp/pull/2831 ----- Original Message ----- > > > So I upgraded to 2.10.1 and managed to get past the failing db > migration, but now I am finding I can't even publish a repo, and I > suspect other issues might exist. I have documented my troubleshooting > steps below, and I verified these issues don't exist on another pulp server > running 2.10.0. > Ultimately, I am wondering if I can revert to 2.10.0 cleanly, or if I > need to upgrade to a beta version and whether that should be 2.10.2 or > 2.11.0 Beta 2? > > > > [root@pulp-server]# pulp-admin rpm repo publish run --repo-id > redhat-6-x86_64-os > > +----------------------------------------------------------------------+ > > Publishing Repository [redhat-6-x86_64-os] > > +----------------------------------------------------------------------+ > > > > This command may be exited via ctrl+c without affecting the request. > > > > > > Initializing repo metadata > > [-] > > ... completed > > > > Publishing Distribution files > > [-] > > ... completed > > > > Publishing RPMs > > [==================================================] 100% > > 4023 of 4023 items > > ... completed > > > > Publishing Delta RPMs > > ... skipped > > > > Publishing Errata > > [==================================================] 100% > > 3712 of 3712 items > > ... completed > > > > Publishing Comps file > > [==================================================] 100% > > 213 of 213 items > > > > Task Failed > > > > [Errno 1] Operation not permitted > > > > > > Nov 8 15:56:02 pulp-server pulp: pulp.server.async.tasks:INFO: Task failed : > [17ecfada-b3a3-42cc-a2b1-74aec4fc9231] > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > Task pulp.server.managers.repo.publish.publish[id] raised unexpected: > OSError(1, 'Operation not permitted') > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > Traceback (most recent call last): > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 240, > in trace_task > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > R = retval = fun(*args, **kwargs) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", > line 488, in __call__ > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > return super(Task, self).__call__(*args, **kwargs) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", > line 103, in __call__ > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > return super(PulpTask, self).__call__(*args, **kwargs) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File "/usr/lib/python2.6/site-packages/celery/app/trace.py", line 437, > in __protected_call__ > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > return self.run(*args, **kwargs) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.p > y", > line 1095, in publish > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > result = check_publish(repo_obj, dist_id, dist_inst, transfer_repo, > conduit, > call_config) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.p > y", > line 1187, in check_publish > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > result = _do_publish(repo_obj, dist_id, dist_inst, transfer_repo, > conduit, > call_config) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/server/controllers/repository.p > y", > line 1239, in _do_publish > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > publish_report = publish_repo(transfer_repo, conduit, call_config) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File "/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py", > line 673, in wrap_f > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > return f(*args, **kwargs) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/distributors/yum/di > stributor.py", > line 174, in publish_repo > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > return > self._publisher.process_lifecycle() > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", > line 566, in process_lifecycle > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > super(PluginStep, self).process_lifecycle() > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", > line 163, in process_lifecycle > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > step.process() > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", > line 253, in process > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > self._process_block() > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", > line 297, in _process_block > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > self.process_main() > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File > "/usr/lib/python2.6/site-packages/pulp/plugins/util/publish_step.py", > line 905, in process_main > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > selinux.restorecon(timestamp_master_dir.encode('utf-8'), > recursive=True) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > File "/usr/lib64/python2.6/site-packages/selinux/__init__.py", line > 83, in restorecon > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > lsetfilecon(path, context) > > Nov 8 15:56:02 pulp-server pulp: celery.worker.job:ERROR: (6756-60832) > OSError: [Errno 1] Operation not permitted > > > > # I confirmed that selinux is disabled on this test server > > [root@pulp-server:~]# sestatus > > SELinux status: disabled > > > > # I tried running restorecon recursively as root as described here > > https://www.redhat.com/archives/pulp-list/2016-May/msg00054.html > > > > # There was no stdout or stderr, and it had no affect on the problem. > > [root@pulp-server:pulp]# restorecon -R /etc/pki/pulp > > > > # Running pulp 2.10.1 I tried the fix documented here > > https://pulp.plan.io/issues/2326 > > > > # I got this error and publish still fails with same error. > > > > [root@pulp-server:~]# semodule -R > > SELinux: Could not downgrade policy file > /etc/selinux/targeted/policy/policy.24, searching for an older version. > > SELinux: Could not open policy file <= > /etc/selinux/targeted/policy/policy.24: No such file or directory > > libsemanage.semanage_reload_policy: load_policy returned error code 2. > (No such file or directory). > > > > # The policy.24 files does in fact exist despite the error to the > contrary > > [root@pulp-server:~]# ls -al /etc/selinux/targeted/policy/policy.24 > > -rw-r--r-- 1 root root 8424080 Oct 28 19:31 > /etc/selinux/targeted/policy/policy.24 > > Dustin > > _______________________________________________ > Pulp-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/pulp-list _______________________________________________ Pulp-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/pulp-list
