PBR

ceilometer-api does not start in IPv6 env

Bug #1626929 reported by Gautam Prasad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBR
Triaged
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.

Revision history for this message
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)
Changed in pbr:
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.