Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1467560 Details for
Bug 1598491
RFE: HAProxy does not resolve IPv6 resolvable hostnames in the backend section
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script with steps to reproduce the issue
haproxy (text/plain), 5.30 KB, created by
Robert Scheck
on 2018-07-20 18:47:38 UTC
(
hide
)
Description:
Script with steps to reproduce the issue
Filename:
MIME Type:
Creator:
Robert Scheck
Created:
2018-07-20 18:47:38 UTC
Size:
5.30 KB
patch
obsolete
>#!/bin/bash > >set -x > ># Network >cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-eth0 >DEVICE="eth0" >TYPE="Ethernet" >BOOTPROTO="dhcp" >IPV6INIT="yes" >ONBOOT="yes" ># Random IPv6 ULA address >IPV6ADDR="fdff:13c6:1636:08f8::1/64" >EOF >chkconfig network on >service network restart >systemctl disable --now NetworkManager.service > ># Backend >yum install -y httpd >sed -e 's/^Listen.*/Listen [fdff:13c6:1636:8f8::1]:80/' -i /etc/httpd/conf/httpd.conf >echo "Application Server" > /var/www/html/index.html >systemctl enable --now httpd.service > ># BIND >yum install -y bind >cat <<EOF > /etc/named.conf >logging { category lame-servers { null; }; category edns-disabled { null; }; }; >options { directory "/var/named"; allow-query { any; }; listen-on port 53 { 127.0.0.1; }; }; >view "internal-in" in { > recursion yes; additional-from-auth yes; additional-from-cache yes; allow-query { any; }; > zone "." in { type hint; file "named.ca"; }; > zone "example.com" in { type master; file "example.com"; }; >}; >EOF >cat <<EOF > /var/named/example.com >example.com. SOA ns.example.com. hostmaster.example.com. (2018072001 14400 1800 1209600 3600) >example.com. NS ns.example.com. >ns.example.com. A 127.0.0.1 >backend.example.com. AAAA fdff:13c6:1636:8f8::1 >EOF >systemctl enable --now named.service >echo "nameserver 127.0.0.1" > /etc/resolv.conf >host -t AAAA backend.example.com. 127.0.0.1 > ># haproxy >yum install haproxy >cat <<EOF > /etc/haproxy/haproxy.cfg >global > log 127.0.0.1 local2 > chroot /var/lib/haproxy > pidfile /var/run/haproxy.pid > maxconn 4000 > user haproxy > group haproxy > daemon > >defaults > mode http > log global > option dontlognull > option http-server-close > option redispatch > retries 3 > timeout http-request 10s > timeout queue 1m > timeout connect 10s > timeout client 1m > timeout server 1m > timeout http-keep-alive 10s > timeout check 10s > maxconn 4000 > >frontend everything > bind 0.0.0.0:80 > mode http > acl acl_backend.example.com hdr(host) -i backend.example.com > use_backend backend.example.com if acl_backend.example.com > >backend backend.example.com > mode http > server backend.example.com backend.example.com:80 > http-request set-header X-Forwarded-Port %[dst_port] >EOF >systemctl restart haproxy >systemctl status -l haproxy >echo $? > ># Test >#curl -H "Host: backend.example.com" http://127.0.0.1/ > > ># Without USE_GETADDRINFO ># ----------------------- ># ># [root@haproxy ~]# systemctl status -l haproxy ># â haproxy.service - HAProxy Load Balancer ># Loaded: loaded (/usr/lib/systemd/system/haproxy.service; disabled; vendor preset: disabled) ># Active: failed (Result: exit-code) since Fr 2018-07-20 20:29:57 CEST; 36s ago ># Process: 9656 ExecStart=/usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid $OPTIONS (code=exited, status=1/FAILURE) ># Main PID: 9656 (code=exited, status=1/FAILURE) ># ># Jul 20 20:29:57 haproxy.example.net systemd[1]: Started HAProxy Load Balancer. ># Jul 20 20:29:57 haproxy.example.net systemd[1]: Starting HAProxy Load Balancer... ># Jul 20 20:29:57 haproxy.example.net haproxy-systemd-wrapper[9656]: haproxy-systemd-wrapper: executing /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds ># Jul 20 20:29:57 haproxy.example.net haproxy-systemd-wrapper[9656]: [ALERT] 200/202957 (9657) : parsing [/etc/haproxy/haproxy.cfg:34] : 'server backend.example.com' : invalid address: 'backend.example.com' in 'backend.example.com:80' ># Jul 20 20:29:57 haproxy.example.net haproxy-systemd-wrapper[9656]: [ALERT] 200/202957 (9657) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg ># Jul 20 20:29:57 haproxy.example.net haproxy-systemd-wrapper[9656]: [ALERT] 200/202957 (9657) : Fatal errors found in configuration. ># Jul 20 20:29:57 haproxy.example.net haproxy-systemd-wrapper[9656]: haproxy-systemd-wrapper: exit, haproxy RC=1 ># Jul 20 20:29:57 haproxy.example.net systemd[1]: haproxy.service: main process exited, code=exited, status=1/FAILURE ># Jul 20 20:29:57 haproxy.example.net systemd[1]: Unit haproxy.service entered failed state. ># Jul 20 20:29:57 haproxy.example.net systemd[1]: haproxy.service failed. ># [root@haproxy ~]# ># ># ># With USE_GETADDRINFO ># -------------------- ># ># [root@haproxy ~]# systemctl status -l haproxy ># â haproxy.service - HAProxy Load Balancer ># Loaded: loaded (/usr/lib/systemd/system/haproxy.service; disabled; vendor preset: disabled) ># Active: active (running) since Fr 2018-07-20 20:31:36 CEST; 1s ago ># Main PID: 9716 (haproxy-systemd) ># CGroup: /system.slice/haproxy.service ># ââ9716 /usr/sbin/haproxy-systemd-wrapper -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid ># ââ9717 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds ># ââ9718 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds ># ># Jul 20 20:31:36 haproxy.example.net systemd[1]: Started HAProxy Load Balancer. ># Jul 20 20:31:36 haproxy.example.net systemd[1]: Starting HAProxy Load Balancer... ># Jul 20 20:31:36 haproxy.example.net haproxy-systemd-wrapper[9716]: haproxy-systemd-wrapper: executing /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds ># [root@haproxy ~]#
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
redhat-bugzilla
: review? (
rohara
)
Actions:
View
Attachments on
bug 1598491
:
1456794
| 1467560