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.
Created attachment 713109[details]
var_log_journal_UUID-as-directory.patch
Description of problem:
In systemd source src/journal/journald-server.c: @@ system_journal_open()
810 (void) mkdir(fn, 0755);
811 free(fn);
812
813 fn = strjoin("/var/log/journal/", ids, "/system.journal", NULL);
814 if (!fn)
815 return -ENOMEM;
816
Here "/var/log/journal/"+ids is a directory, but in Container.gen_machine_id() it is
assumed to be a regular file.
Version-Release number of selected component (if applicable):
v0.1.2
How reproducible:
100%
Steps to Reproduce:
1. $ virt-sandbox-service create -u httpd.service httpd1
2. check /var/lib/libvirt/filesystems/httpd1/var/log/journal/UUID
Actual results:
/var/lib/libvirt/filesystems/httpd1/var/log/journal/UUID is a regular file.
Expected results:
/var/lib/libvirt/filesystems/httpd1/var/log/journal/UUID is a directory.
Additional info:
Equivalent patch is now upstream
commit 128bcc04f867cc813711ebbb82099d3be4ae760d
Author: Daniel P. Berrange <berrange>
Date: Wed Mar 20 16:47:53 2013 +0000
Ensure the journal location is a directory not a file
The /var/lib/libvirt/filesystems/demo2/var/log/journal/bc3823d901134ac1ac91903020e2690e/
location was being created as a plain file, when it should have
been a directory
can reproduce this with build: libvirt-sandbox-0.1.2-1.el7.x86_64
verify with build :
libvirt-sandbox-0.2.1-1.el7.x86_64
step:
1. $ virt-sandbox-service create -u httpd.service httpd1
# ll /var/lib/libvirt/filesystems/httpd1/var/log/journal/
total 4
drwxr-xr-x. 2 root root 4096 Jul 16 10:55 e013f7fbed0449308cc8674f8ab9e68e
UUID is a directory.move to verified.
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.
Created attachment 713109 [details] var_log_journal_UUID-as-directory.patch Description of problem: In systemd source src/journal/journald-server.c: @@ system_journal_open() 810 (void) mkdir(fn, 0755); 811 free(fn); 812 813 fn = strjoin("/var/log/journal/", ids, "/system.journal", NULL); 814 if (!fn) 815 return -ENOMEM; 816 Here "/var/log/journal/"+ids is a directory, but in Container.gen_machine_id() it is assumed to be a regular file. Version-Release number of selected component (if applicable): v0.1.2 How reproducible: 100% Steps to Reproduce: 1. $ virt-sandbox-service create -u httpd.service httpd1 2. check /var/lib/libvirt/filesystems/httpd1/var/log/journal/UUID Actual results: /var/lib/libvirt/filesystems/httpd1/var/log/journal/UUID is a regular file. Expected results: /var/lib/libvirt/filesystems/httpd1/var/log/journal/UUID is a directory. Additional info: