← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1580045] Re: pcsd does only bind to IPv6

 

This bug was fixed in the package pcs - 0.9.149-1ubuntu1

---------------
pcs (0.9.149-1ubuntu1) xenial; urgency=medium

  * Patch d/p/0006-Replace-orderedhash.patch added by Debian (LP: #1580035)
    Orderedhash gem can't be used due to licensing issues.
    Dependency package orderedhash replaced by activesupport.
    The daemon was not functional in Xenial before this.
  * Patch d/p/0007-Fix-IPv6-bind.patch (LP: #1580045)
    The daemon was being initialized listening only for IPv6 protocol.
  * Patch d/p/0008-Find-on-specific-directories-only.patch (LP: #1640919)
    Cleaning files when destroying a cluster was taking too long in /var/lib.
    Specifying /var/lib/pacemaker for "finding" leftovers solves the issue.

 -- Rafael David Tinoco <rafael.tinoco@xxxxxxxxxxxxx>  Fri, 09 Dec 2016
03:07:25 +0000

** Changed in: pcs (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1580045

Title:
  pcsd does only bind to IPv6

Status in pcs package in Ubuntu:
  Fix Released
Status in pcs source package in Xenial:
  Fix Released
Status in pcs source package in Yakkety:
  Fix Released
Status in pcs source package in Zesty:
  Fix Released

Bug description:
  [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
  ----------------->%-----------------
  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
  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
  -----------------%<-----------------

  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
  -----------------%<-----------------

  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
  50,51c50,51
  <   :BindAddress        => 'nil',
  <   :Host               => '*',
  ---
  >   :BindAddress        => '::',
  >   :Host               => '::',
  -----------------%<-----------------
  netstat -ap |grep ruby
  tcp        0      0 *:2224                  *:*                     LISTEN      12465/ruby
  tcp6       0      0 [::]:2224               [::]:*                  LISTEN      12465/ruby
  ----------------->%-----------------

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