Bug 927153
| Summary: | [virt-sandbox-service] httpd fail to start inside sandbox | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Wayne Sun <gsun> | ||||
| Component: | libvirt-sandbox | Assignee: | Daniel Berrangé <berrange> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 7.0 | CC: | ajia, dwalsh, dyuan, jshao, mzhan, rwu, weizhan, zpeng | ||||
| Target Milestone: | beta | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-07-02 09:07:45 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: | |||||||
| Attachments: |
|
||||||
Created attachment 716427 [details]
httpd error log
The httpd is die for 'AH00016: Configuration Failed' or 'Temporary failure in name resolution', we are still looking into it.
I think you need to setup some kind of DNS so that reverse name resolution will work on your dnsmasqed IPs/ pkgs:
libvirt-1.0.6-1.el7.x86_64
libvirt-sandbox-0.2.0-1.el7.x86_64
selinux-policy-3.12.1-44.el7.noarch
kernel-3.9.0-0.55.el7.x86_64
dnsmasq-2.66-5.el7.x86_64
lvm2-2.02.98-6.el7.x86_64
httpd-2.4.4-5.el7.x86_64
steps:
# virt-sandbox-service start apache10
2013-06-09 06:40:53.464+0000: 1: debug : lxcContainerSetStdio:278 : rc=0
2013-06-09 06:40:53.464+0000: 1: debug : virFileClose:90 : Closed fd 14
2013-06-09 06:40:53.464+0000: 1: debug : virFileClose:90 : Closed fd 9
2013-06-09 06:40:53.464+0000: 1: debug : virFileClose:90 : Closed fd 11
systemd 204 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
Detected virtualization 'lxc-libvirt'.
Welcome to Red Hat Enterprise Linux Server 7.0 (Maipo)!
Set hostname to <apache10>.
/dev/mapper/control: mknod failed: Operation not permitted
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
[ OK ] Reached target Paths.
[ OK ] Listening on Delayed Shutdown Socket.
[ OK ] Listening on Journal Socket.
[ OK ] Reached target Swap.
Starting Activation of LVM2 logical volumes...
Starting Journal Service...
[ OK ] Started Journal Service.
[ OK ] Started Activation of LVM2 logical volumes.
Starting Activation of LVM2 logical volumes...
[ OK ] Started Activation of LVM2 logical volumes.
[ OK ] Reached target Local File Systems.
Starting Recreate Volatile Files and Directories...
[ OK ] Started Recreate Volatile Files and Directories.
[ OK ] Reached target System Initialization.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting The Apache HTTP Server...
Starting Cleanup of Temporary Directories...
[ OK ] Started Cleanup of Temporary Directories.
Starting D-Bus System Message Bus...
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started The Apache HTTP Server.
[ OK ] Reached target Sandbox multi-user target.
httpd could start now
httpd service is very important in our tests and we use it in most of our cases. So add it as blocker |
Description of problem: After created a httpd sandbox, httpd fail to start inside sandbox Version-Release number of selected component (if applicable): libvirt-1.0.3-1.el7.x86_64 libvirt-sandbox-0.1.2-1.el7.x86_64 kernel-3.7.0-0.36.el7.x86_64 selinux-policy-3.12.1-18.el7.noarch httpd-2.4.3-15.el7.x86_64 How reproducible: always Steps to Reproduce: 1. create a sandbox # virt-sandbox-service -c lxc:/// create -C -u httpd.service -l s0:c1,c2 apache10 Created sandbox container dir /var/lib/libvirt/filesystems/apache10 Created sandbox config /etc/libvirt-sandbox/services/apache10.sandbox Created unit file /etc/systemd/system/httpd 2. start sandbox # virt-sandbox-service start apache10 systemd 198 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ) Detected virtualization 'lxc-libvirt'. 1Set hostname to <apache10>. Default target could not be isolated, starting instead: Operation refused, unit may not be isolated. [ OK ] Listening on Journal Socket. [ OK ] Listening on Delayed Shutdown Socket. [ OK ] Reached target Swap. [ OK ] Reached target Local File Systems. Starting Recreate Volatile Files and Directories... Starting Journal Service... [ OK ] Started Journal Service. [ OK ] Started Recreate Volatile Files and Directories. [ OK ] Reached target System Initialization. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. Starting The Apache HTTP Server... httpd.service: main process exited, code=exited, status=1/FAILURE [FAILED] Failed to start The Apache HTTP Server. See 'systemctl status httpd.service' for details. Unit httpd.service entered failed state [ OK ] Reached target Sandbox multi-user target. 3. check in sandbox # virt-sandbox-service connect apache10 Connected to apache10. Type 'Ctrl + ]' to detach from the console. sh-4.2# systemctl status httpd.service httpd.service - The Apache HTTP Server Loaded: loaded (/etc/systemd/system/httpd.service; enabled) Active: failed (Result: exit-code) since Mon 2013-03-25 16:32:49 CST; 5min ago Process: 33 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS) Process: 32 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Mar 25 16:32:49 apache10 httpd[32]: AH00557: httpd: apr_sockaddr_info_get()...10 Mar 25 16:32:49 apache10 httpd[32]: AH00558: httpd: Could not reliably dete...ge Mar 25 16:32:49 apache10 httpd[33]: AH00557: httpd: apr_sockaddr_info_get()...10 Mar 25 16:32:49 apache10 httpd[33]: AH00558: httpd: Could not reliably dete...ge Mar 25 16:32:49 apache10 httpd[33]: httpd (no pid file) not running sh-4.2# journalctl -xn >/tmp/log sh-4.2# cat /tmp/log -- Logs begin at Mon 2013-03-25 16:32:49 CST, end at Mon 2013-03-25 16:33:05 CST. -- Mar 25 16:32:49 apache10 httpd[32]: AH00557: httpd: apr_sockaddr_info_get() failed for apache10 Mar 25 16:32:49 apache10 httpd[32]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message Mar 25 16:32:49 apache10 httpd[33]: AH00557: httpd: apr_sockaddr_info_get() failed for apache10 Mar 25 16:32:49 apache10 httpd[33]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message Mar 25 16:32:49 apache10 httpd[33]: httpd (no pid file) not running Mar 25 16:32:54 apache10 dhclient[5]: DHCPREQUEST on eth0 to 255.255.255.255 port 67 (xid=0x22c57ed) Mar 25 16:33:02 apache10 dhclient[5]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 (xid=0x69332b38) Mar 25 16:33:05 apache10 dhclient[5]: DHCPREQUEST on eth0 to 255.255.255.255 port 67 (xid=0x69332b38) Mar 25 16:33:05 apache10 dhclient[5]: DHCPOFFER from 192.168.122.1 Mar 25 16:33:05 apache10 dhclient[5]: DHCPACK from 192.168.122.1 (xid=0x69332b38) Actual results: failed to start httpd.service Expected results: should start Additional info: