pcsd does only bind to IPv6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcs (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Rafael David Tinoco | ||
Yakkety |
Fix Released
|
Medium
|
Unassigned | ||
Zesty |
Fix Released
|
Medium
|
Unassigned |
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://
500 http://
100 /var/lib/
-------
ip a
1: lo: <LOOPBACK,
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,
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:
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/
-------
# diff /usr/share/
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
-------
Changed in pcs (Ubuntu): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
description: | updated |
Changed in pcs (Ubuntu Zesty): | |
status: | Confirmed → Fix Released |
assignee: | Rafael David Tinoco (inaddy) → nobody |
Changed in pcs (Ubuntu Yakkety): | |
status: | New → Fix Released |
importance: | Undecided → Medium |
Changed in pcs (Ubuntu Xenial): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Rafael David Tinoco (inaddy) |
tags: |
added: verification-done removed: verification-needed |
tags: | added: sts |
Status changed to 'Confirmed' because the bug affects multiple users.