Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

CentOS-7 reports syntax errors on startup #280

Closed
jdeathe opened this issue Nov 2, 2016 · 8 comments
Closed

CentOS-7 reports syntax errors on startup #280

jdeathe opened this issue Nov 2, 2016 · 8 comments
Assignees
Labels
Milestone

Comments

@jdeathe
Copy link
Owner

jdeathe commented Nov 2, 2016

mv: cannot move `/etc/services-config/httpd/conf.d/10-ssl-vhost.conf' to a subdirectory of itself, `/etc/services-config/httpd/conf.d/10-ssl-vhost.conf.off'

The bootstrap script fails on the move command used to disable the the SSL VirtualHost configuration when not required.

@jdeathe jdeathe added the bug label Nov 2, 2016
@jdeathe
Copy link
Owner Author

jdeathe commented Nov 2, 2016

The CentOS-7 docker host used for testing is using overlay file system which has known issues with this - need to rebuild my test VM using an alternative file system. Will likely need to change the CentOS Atomic Host test VM too.

@jdeathe
Copy link
Owner Author

jdeathe commented Nov 2, 2016

Not reproducible with CoreOS host which uses overlay too.

@jdeathe
Copy link
Owner Author

jdeathe commented Nov 2, 2016

Full support is available for OverlayFS when used with Docker under the following restrictions:

  • OverlayFS is only supported for use as a Docker graph driver. Its use can only be supported for container COW content, not for persistent storage. Any persistent storage must be placed on non-OverlayFS volumes to be supported. Only default Docker configuration can be used; that is, one level of overlay, one lowerdir, and both lower and upper levels are on the same file system.
  • Only XFS is currently supported for use as a lower layer file system.
  • SELinux must be enabled and in enforcing mode on the physical machine, but must be disabled in the container when performing container separation; that is, /etc/sysconfig/docker must not contain --selinux-enabled. SELinux support for OverlayFS is being worked on upstream, and is expected in a future release.
  • The OverlayFS kernel ABI and userspace behavior are not considered stable, and may see changes in future updates.
  • In order to make the yum and rpm utilities work properly inside the container, the user should be using the yum-plugin-ovl packages.
    Note that OverlayFS provides a restricted set of the POSIX standards. Test your application thoroughly before deploying it with OverlayFS.
    Note that XFS file systems must be created with the -n ftype=1 option enabled for use as an overlay. With the rootfs and any file systems created during system installation, set the --mkfsoptions=-n ftype=1 parameters in the Anaconda kickstart. When creating a new file system after the installation, run the # mkfs -t xfs -n ftype=1 /PATH/TO/DEVICE command. To determine whether an existing file system is eligible for use as an overlay, run the # xfs_info /PATH/TO/DEVICE | grep ftype command to see if the ftype=1 option is enabled.
    There are also several known issues associated with OverlayFS as of Red Hat Enterprise Linux 7.2 release. For details, see 'Non-standard behavior' in the Documentation/filesystems/overlayfs.txt file.

@jdeathe
Copy link
Owner Author

jdeathe commented Nov 2, 2016

My CentOS-7 VM image uses ext4 instead of the standard xfs file system. This was done to be consistent with the CentOS-6 VM but should test changing to a build that uses xfs instead.

SELinux is set to permissive on my Vagrant box too so need to test changing that on the docker host too.

@jdeathe
Copy link
Owner Author

jdeathe commented Nov 2, 2016

Not reproducible when using CentOS-7 official Vagrant Image: https://seven.centos.org/2016/10/updated-centos-vagrant-images-available-v1609-01/

They have moved to using XFS file system too so this issue is looking more likely with my custom Vagrant build than with the container image.

@jdeathe
Copy link
Owner Author

jdeathe commented Nov 4, 2016

Using the CentOS-7 official Vagrant Image I run into a different issue with the httpd24u + php56u based tag where the configuration files do not get loaded resulting in an access denied to "/" message. The image tags based on the standard packages works without issues however.

@jdeathe jdeathe added the ready label Nov 4, 2016
@jdeathe
Copy link
Owner Author

jdeathe commented Nov 4, 2016

I've already solved this issue before! I am going to revert back to my own CentOS-7 Vagrant image and replace the mv operation with cat which will work without issues.

@jdeathe jdeathe self-assigned this Nov 4, 2016
@jdeathe jdeathe modified the milestone: 2.0.1 Nov 4, 2016
@jdeathe jdeathe added in progress and removed ready labels Nov 4, 2016
jdeathe added a commit that referenced this issue Nov 4, 2016
CLOSES #280: Replaces mv operations with cat
@jdeathe jdeathe closed this as completed Nov 4, 2016
@jdeathe jdeathe added this to the 2.0.1 milestone Nov 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant