Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
It seems that /var/spool/postfix/public/qmgr is a UNIX socket. Python's shutil.copytree() code just raises an exception if it finds a UNIX socket or FIFO file, which is less than helpful.
commit 45891224a46c13200303a9d100ce1763acfd4509
Author: Daniel P. Berrange <berrange>
Date: Wed Sep 18 13:22:32 2013 +0100
Stop using broken shutil.copytree() method
The shutil.copytree() method is broken in several ways
- Raises exceptions if it sees a socket or fifo
- Copies block/char device content into plain files
- Calls stat() far too many times
Fixing this requires passing a callback to filter the
file list, which requires more use of stat() making it
even less efficient.
Ditch it and write a method that works correctly for
our needs, skipping block/char/fifo/socket files entirely.
Signed-off-by: Daniel P. Berrange <berrange>
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.
Description of problem: Can't create container with postfix.service. Version-Release number of selected component (if applicable): libvirt-sandbox-0.5.0-3.el7.x86_64 libvirt-1.1.1-3.el7.x86_64 postfix-2.10.1-1.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. create a container with postfix # virt-sandbox-service create -C -u postfix.service mypost Traceback (most recent call last): File "/usr/bin/virt-sandbox-service", line 1160, in <module> args.func(args) File "/usr/bin/virt-sandbox-service", line 811, in create container.create() File "/usr/bin/virt-sandbox-service", line 748, in create raise e shutil.Error: [('/var/spool/postfix/public/qmgr', '/var/lib/libvirt/filesystems/mypost/var/spool/postfix/public/qmgr', "[Errno 6] No such device or address: ........ 2. # ll /var/spool/postfix/public/ -a total 8 drwx--x---. 2 postfix postdrop 4096 Sep 2 11:39 . drwxr-xr-x. 16 root root 4096 Sep 2 11:31 .. srw-rw-rw-. 1 postfix postfix 0 Sep 2 11:39 cleanup srw-rw-rw-. 1 postfix postfix 0 Sep 2 11:39 flush srw-rw-rw-. 1 postfix postfix 0 Sep 2 11:39 pickup srw-rw-rw-. 1 postfix postfix 0 Sep 2 11:39 qmgr srw-rw-rw-. 1 postfix postfix 0 Sep 2 11:39 showq 3. # virsh -c lxc:/// list --all Id Name State ---------------------------------------------------- [root@intel-5504-12-1 images]# virt-sandbox-service create -C -u postfix.service mypost /usr/bin/virt-sandbox-service: /var/lib/libvirt/filesystems/mypost already exists Actual results: see description Expected results: succeed Additional info: