PBR

ceilometer-api does not start in IPv6 env

Bug #1626929 reported by Gautam Prasad on 2016-09-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBR
High
Julien Danjou

Bug Description

In IPv6 environment, ceilometer API throws the following error:

 File "/usr/bin/ceilometer-api", line 13, in <module>
    my_ip = socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno -2] Name or service not known

gethostbyname() only works for IPv4 addresses.

From python socket API:

gethostbyname() does not support IPv6 name resolution, and getaddrinfo() should be used instead for IPv4/v6 dual stack support.

Julien Danjou (jdanjou) wrote :

That's actually a bug in PBR.

Changed in ceilometer:
status: New → Triaged
affects: ceilometer → pbr
Changed in pbr:
assignee: nobody → Julien Danjou (jdanjou)
Ben Nemec (bnemec) on 2018-04-04
Changed in pbr:
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers