** Description changed:

+ [Impact]
+ 
+  * PCS doesn't listen to IPv4 by default.
+ 
+ [Test Case]
+ 
+  * Install PCS and check netstat.
+ 
+ [Regression Potential]
+ 
+  * Stop listening on IPv6 also.
+  * Almost none.
+ 
+ [Other Info]
+ 
+  * Fixing LP: #1580045 in SRU for LP: #1640919.
+ 
+ [Original Description]
+ 
  Greetings,
  
  pcsd does only bind to IPv6 instead of IPv4 and IPv6, if it is started
  on a machine, which has active IPv6 support.
  
  ----------------->%-----------------
  lsb_release -rd
  Description: Ubuntu 16.04 LTS
  Release: 16.04
  -----------------%<-----------------
  apt-cache policy pcs
  pcs:
-   Installed: 0.9.149-1
-   Candidate: 0.9.149-1
-   Version table:
-  *** 0.9.149-1 500
-         500 http://mirror.hetzner.de/ubuntu/packages xenial/universe amd64 
Packages
-         500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
-         100 /var/lib/dpkg/status
+   Installed: 0.9.149-1
+   Candidate: 0.9.149-1
+   Version table:
+  *** 0.9.149-1 500
+         500 http://mirror.hetzner.de/ubuntu/packages xenial/universe amd64 
Packages
+         500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
+         100 /var/lib/dpkg/status
  ----------------->%-----------------
  ip a
  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1
-     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
-     inet 127.0.0.1/8 scope host lo
-        valid_lft forever preferred_lft forever
-     inet6 ::1/128 scope host 
-        valid_lft forever preferred_lft forever
+     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
+     inet 127.0.0.1/8 scope host lo
+        valid_lft forever preferred_lft forever
+     inet6 ::1/128 scope host
+        valid_lft forever preferred_lft forever
  2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
-     link/ether 52:54:a2:01:54:c6 brd ff:ff:ff:ff:ff:ff
-     inet 172.31.1.100/24 brd 172.31.1.255 scope global eth0
-        valid_lft forever preferred_lft forever
-     inet6 fe80::5054:a2ff:fe01:54c6/64 scope link 
-        valid_lft forever preferred_lft forever
+     link/ether 52:54:a2:01:54:c6 brd ff:ff:ff:ff:ff:ff
+     inet 172.31.1.100/24 brd 172.31.1.255 scope global eth0
+        valid_lft forever preferred_lft forever
+     inet6 fe80::5054:a2ff:fe01:54c6/64 scope link
+        valid_lft forever preferred_lft forever
  -----------------%<-----------------
  
  By default it should bind to all available IPv4 and IPv6 interfaces. Instead 
it only bind to the IPv6:
  ----------------->%-----------------
  netstat -ap |grep ruby
- tcp6       0      0 [::]:2224               [::]:*                  LISTEN    
  12430/ruby 
+ tcp6       0      0 [::]:2224               [::]:*                  LISTEN    
  12430/ruby
  -----------------%<-----------------
  
  After changing the following in the /usr/share/pcsd/ssl.rb, it binds to IPv4 
and IPv6:
  ----------------->%-----------------
- # diff /usr/share/pcsd/ssl.rb /usr/share/pcsd/ssl.rb.bak 
+ # diff /usr/share/pcsd/ssl.rb /usr/share/pcsd/ssl.rb.bak
  50,51c50,51
  <   :BindAddress        => 'nil',
  <   :Host               => '*',
  ---
  >   :BindAddress        => '::',
  >   :Host               => '::',
  -----------------%<-----------------
  netstat -ap |grep ruby
- tcp        0      0 *:2224                  *:*                     LISTEN    
  12465/ruby      
+ tcp        0      0 *:2224                  *:*                     LISTEN    
  12465/ruby
  tcp6       0      0 [::]:2224               [::]:*                  LISTEN    
  12465/ruby
  ----------------->%-----------------

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1580045

Title:
  pcsd does only bind to IPv6

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcs/+bug/1580045/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to