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.

Bug 1448567

Summary: Cannot create system container with file level bind mount
Product: Red Hat Enterprise Linux 7 Reporter: davis phillips <dphillip>
Component: atomicAssignee: Giuseppe Scrivano <gscrivan>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: ajia, bbaude, ddarrah, dwalsh, fkluknav
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-05 10:39:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description davis phillips 2017-05-05 19:03:04 UTC
Description of problem:
Currently in syscontainers.py when doing a _do_checkout missing bind mounts are evaluated via the config.json, unfortunately the method that creates the tmp files is creating all files with a directory (d) label.

The problem line is here:
https://github.com/projectatomic/atomic/blob/master/Atomic/syscontainers.py#L754

Version-Release number of selected component (if applicable):
7.3.5 atomic host
atomic 1.17.1


Steps to Reproduce:

Deploy atomic 7.3.5
Create a system container
atomic pull docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest
atomic install --system      brew-pulp docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest

config.json:
https://gist.github.com/dav1x/ef857231c7f717389ab075af332b519a



Actual results:
"/etc/resolv.conf" already exists and is not a directory.
"/etc/nsswitch.conf" already exists and is not a directory.
"/etc/shadow" already exists and is not a directory.
chmod(/sys/fs/cgroup) failed: Read-only file system
"/etc/adjtime" already exists and is not a directory.
"/etc/hostname" already exists and is not a directory.
"/etc/passwd" already exists and is not a directory.
"/tmp" already exists and is not a directory.
"/dev/rtc0" already exists and is not a directory.
"/etc/hosts" already exists and is not a directory.

Expected results:
Container is created

Additional info:

Comment 2 Giuseppe Scrivano 2017-05-08 11:30:00 UTC
closed upstream by: https://github.com/projectatomic/atomic/pull/994

Comment 3 Alex Jia 2017-08-22 07:08:33 UTC

[root@atomic-host-test-986 cloud-user]# atomic host status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
                Version: 7.4.1 (2017-08-09 22:48:55)
                 Commit: fd2649205bbc185b07cb695893e425afa830a7b3caecd3ceefc0a1b9d7169aea
           GPGSignature: 1 signature
                         Signature made Thu 10 Aug 2017 12:24:23 AM UTC using RSA key ID 199E2F91FD431D51
                         Good signature from "Red Hat, Inc. <security>"
[root@atomic-host-test-986 cloud-user]# atomic version brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools
IMAGE NAME                                                                              VERSION   IMAGE ID  
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest          7.4-20    00e5a8714a1a

[cloud-user@atomic-host-test-986 ~]$ sudo atomic pull brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest
Pulling brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest ...
WARN[0000] '--tls-verify' is deprecated, please set this on the specific subcommand 
Copying blob sha256:7497a5cdc34964395c1468b330a21021afdbe41b43b55d1d53a75f1cbcf9439f
 71.42 MB / 71.43 MB [=========================================================]
Copying blob sha256:41805511d6550424335854f2309d4919b6554523a95f70054ea95cd1f53e2d76
 0 B / 1.21 KB [---------------------------------------------------------------]
Copying blob sha256:7eae631fc61f80bfab01c73b5acdb6cf3a3209ff4197a1004cf67fb4eaf48ad2
 30.36 MB / 30.36 MB [=========================================================]
Copying config sha256:00e5a8714a1a4cbecfdb0ba1cc9a0ba5746f07038406f1c09f96d83a9880b9b0
 0 B / 5.17 KB [---------------------------------------------------------------]
Writing manifest to image destination
Storing signatures
 5.17 KB / 5.17 KB [===========================================================]


[cloud-user@atomic-host-test-986 ~]$ sudo atomic install --system docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest
Unable to find docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest
.qa.[root@x86-64-7s-m1 ajia]# atomic install --system brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel/open-vm-tools:latest
Pulling layer 7497a5cdc34964395c1468b330a21021afdbe41b43b55d1d53a75f1cbcf9439f
Pulling layer 41805511d6550424335854f2309d4919b6554523a95f70054ea95cd1f53e2d76
Pulling layer 7eae631fc61f80bfab01c73b5acdb6cf3a3209ff4197a1004cf67fb4eaf48ad2

Extracting to /var/lib/containers/atomic/open-vm-tools.0
systemctl daemon-reload
systemctl enable open-vm-tools

Comment 5 errata-xmlrpc 2017-09-05 10:39:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2609