Project

Profile

Help

Issue #7719

'Directory not empty' error in publishing

Added by adam.winberg@smhi.se 3 days ago. Updated 3 days ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Running a pulp2 migration always results in an error when the migration runs the publishing jobs:

    "error": {
        "description": "[Errno 39] Directory not empty: '/var/lib/pulp/tmp/2287063@lxserv2285.smhi.se/7b022048-0d39-4d6d-a278-91ecb3c4779c'",
        "traceback": "  File \"/usr/lib/python3.6/site-packages/rq/worker.py\", line 936, in perform_job\n    rv = job.perform()\n  File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 684, in perform\n    self._result = self._execute()\n  File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 690, in _execute\n    return self.func(*self.args, **self.kwargs)\n  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/tasks/migrate.py\", line 142, in migrate_from_pulp2\n    create_repoversions_publications_distributions(plan)\n  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py\", line 293, in create_repoversions_publications_distributions\n    task_func(*task_args)\n  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py\", line 187, in simple_plugin_migration\n    migrate_repo_distributor(dist_migrator, progress_dist, pulp2_dist)\n  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py\", line 391, in migrate_repo_distributor\n    pulp2dist, repo_version)\n  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/rpm/repository.py\", line 74, in migrate_to_pulp3\n    publish(repo_version.pk, checksum_types=checksum_types)\n  File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/publishing.py\", line 300, in publish\n    metadata_signing_service=metadata_signing_service\n  File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/services/storage.py\", line 178, in __exit__\n    self.delete()\n  File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/services/storage.py\", line 80, in delete\n    self._delete()\n  File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/services/storage.py\", line 90, in _delete\n    shutil.rmtree(self.path)\n  File \"/usr/lib64/python3.6/shutil.py\", line 490, in rmtree\n    onerror(os.rmdir, path, sys.exc_info())\n  File \"/usr/lib64/python3.6/shutil.py\", line 488, in rmtree\n    os.rmdir(path)\n"
    },

/var/lib/pulp/ is a NFS share. Checking the directory in the error message shows that it is empty. Maybe an issue with NFS lock files?

This is on an rpm based installation on RHEL8:

python3-pulpcore-3.7.1-3.el8.noarch
python3-pulp-rpm-3.7.0-1.el8.noarch
python3-pulp-2to3-migration-0.4.0-1.el8.noarch

History

#1 Updated by adam.winberg@smhi.se 3 days ago

Sorry about the formatting, I can't edit the original description apparantly. Here is the error output in a slightly more readable form:

    "error": {
        "description": "[Errno 39] Directory not empty: '/var/lib/pulp/tmp/2287063@lxserv2285.ex.com/7b022048-0d39-4d6d-a278-91ecb3c4779c'",
        "traceback": "  File \"/usr/lib/python3.6/site-packages/rq/worker.py\", line 936, in perform_job
    rv = job.perform()
  File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 684, in perform
    self._result = self._execute()
  File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 690, in _execute
    return self.func(*self.args, **self.kwargs)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/tasks/migrate.py\", line 142, in migrate_from_pulp2
    create_repoversions_publications_distributions(plan)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py\", line 293, in create_repoversions_publications_distributions
    task_func(*task_args)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py\", line 187, in simple_plugin_migration
    migrate_repo_distributor(dist_migrator, progress_dist, pulp2_dist)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/migration.py\", line 391, in migrate_repo_distributor
    pulp2dist, repo_version)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/rpm/repository.py\", line 74, in migrate_to_pulp3
    publish(repo_version.pk, checksum_types=checksum_types)
  File \"/usr/lib/python3.6/site-packages/pulp_rpm/app/tasks/publishing.py\", line 300, in publish
    metadata_signing_service=metadata_signing_service
  File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/services/storage.py\", line 178, in __exit__
    self.delete()
  File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/services/storage.py\", line 80, in delete
    self._delete()
  File \"/usr/lib/python3.6/site-packages/pulpcore/tasking/services/storage.py\", line 90, in _delete
    shutil.rmtree(self.path)
  File \"/usr/lib64/python3.6/shutil.py\", line 490, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File \"/usr/lib64/python3.6/shutil.py\", line 488, in rmtree
    os.rmdir(path)
"
    },

Please register to edit this issue

Also available in: Atom PDF