memcache fails to configure local address on IPv6 disabled systems

Bug #1678124 reported by Gábor Mészáros
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Charm Helpers
Fix Released
High
Alex Kavanagh
OpenStack Ceilometer Agent Charm
Fix Released
Undecided
Unassigned
OpenStack Ceilometer Charm
Fix Released
High
Unassigned
OpenStack Cinder Charm
Fix Released
High
Unassigned
OpenStack Designate Charm
Fix Released
High
Alex Kavanagh
OpenStack Glance Charm
Fix Released
High
Unassigned
OpenStack Heat Charm
Fix Released
Undecided
Unassigned
OpenStack Neutron API Charm
Fix Released
High
Unassigned
OpenStack Nova Cloud Controller Charm
Fix Released
High
Unassigned
charms.openstack
Fix Released
High
Alex Kavanagh

Bug Description

Under Juju 2.1.2.2, latest charmhelpers sync'ed on 21 March '17.

root@juju-a2afdd-18-lxd-0:/# grep ipv6.disable /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.4.0-62-generic root=UUID=1e32ba7f-a20c-4126-a910-e7d47da82d1c ro console=tty0 console=ttyS1,115200n8 net.ifnames=0 ipv6.disable=1 nomdmonddf nomdmonisw
root@juju-a2afdd-18-lxd-0:/# grep ip6-localhost /etc/memcached.conf -B3
# Specify which IP address to listen on. The default is to listen on all IP addresses
# This parameter is one of the only security measures that memcached has, so make sure
# it's listening on a firewalled interface.
-l ip6-localhost
root@juju-a2afdd-18-lxd-0:/# grep memcached_servers /etc/cinder/cinder.conf
memcached_servers = inet6:[::1]:11211
root@juju-a2afdd-18-lxd-0:/# cat /var/log/memcached.log
failed to listen on TCP port 11211: Address family not supported by protocol
failed to listen on TCP port 11211: Address family not supported by protocol
failed to listen on TCP port 11211: Address family not supported by protocol

Effected charms, at least:
 - cinder
 - glance
 - ceilometer

Applied patch will be attached right away.

prefer-ipv6 is set to false in charm config.

Related branches

Revision history for this message
Gábor Mészáros (gabor.meszaros) wrote :
description: updated
Revision history for this message
Gábor Mészáros (gabor.meszaros) wrote :
Revision history for this message
Michał Ajduk (majduk) wrote :

Attached is a patch applied to the environment.

Changed in charm-helpers:
status: New → In Progress
assignee: nobody → Alex Kavanagh (ajkavanagh)
James Page (james-page)
Changed in charm-helpers:
importance: Undecided → High
status: In Progress → Fix Released
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

I've added charms.openstack to the affected projects because, at present, and reactive charms based off charms.openstack will only support memcache on ipv6 (and not ipv4). This affects at least designate, manila, and barbican.

Changed in charms.openstack:
importance: Undecided → High
Revision history for this message
Felipe Reyes (freyes) wrote :

Adding tasks for all the charms mentioned as affected at bug 1659781

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to charm-neutron-api (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/459253

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-ceilometer (master)

Reviewed: https://review.openstack.org/458388
Committed: https://git.openstack.org/cgit/openstack/charm-ceilometer/commit/?id=8e47569e748a4638e5e2d48b13a42dab39e15b16
Submitter: Jenkins
Branch: master

commit 8e47569e748a4638e5e2d48b13a42dab39e15b16
Author: Alex Kavanagh <email address hidden>
Date: Thu Apr 20 09:20:56 2017 +0100

    Sync charmhelpers to get modified MemcacheContext for ipv4

    charm-helpers was updated to support ipv4 for the MemcacheContext
    if no ipv6 network is available. This sync just updates
    charm-helpers to support that.

    Related-Bug: 1678124
    Change-Id: I377e13e0818d6bf83b64ba09b012e06a0db46e5a

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-cinder (master)

Change abandoned by Alex Kavanagh (<email address hidden>) on branch: master
Review: https://review.openstack.org/458398
Reason: The charm-helpers sync that this was to bring in has already be done elsewhere.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-nova-cloud-controller (master)

Change abandoned by Alex Kavanagh (<email address hidden>) on branch: master
Review: https://review.openstack.org/458428
Reason: OTE: This charm has already had the charm-helpers sync done.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-glance (master)

Change abandoned by Alex Kavanagh (<email address hidden>) on branch: master
Review: https://review.openstack.org/458400
Reason: OTE: This charm-helpers sync overtaken by events; other merges have already brought in the changes on this charm.

Changed in charm-glance:
status: New → Fix Committed
Changed in charm-nova-cloud-controller:
status: New → Fix Committed
Changed in charm-cinder:
status: New → Fix Committed
Changed in charm-ceilometer:
status: New → Fix Committed
Changed in charms.openstack:
assignee: nobody → Alex Kavanagh (ajkavanagh)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-neutron-api (master)

Reviewed: https://review.openstack.org/459253
Committed: https://git.openstack.org/cgit/openstack/charm-neutron-api/commit/?id=60b41251e72850b45425865d08dec18a390cdfbc
Submitter: Jenkins
Branch: master

commit 60b41251e72850b45425865d08dec18a390cdfbc
Author: Alex Kavanagh <email address hidden>
Date: Mon Apr 24 12:53:04 2017 +0100

    Sync charmhelpers to get modified MemcacheContext for ipv4

    charm-helpers was updated to support ipv4 for the MemcacheContext
    if no ipv6 network is available. This sync just updates
    charm-helpers to support that.

    Change-Id: I805c708e1d49f8f8f7e8aaaf14515c0e1122d71c
    Related-Bug: 1678124

Changed in charm-neutron-api:
status: New → Fix Committed
James Page (james-page)
Changed in charm-ceilometer:
importance: Undecided → High
Changed in charm-cinder:
importance: Undecided → High
Changed in charm-neutron-api:
importance: Undecided → High
Changed in charm-nova-cloud-controller:
importance: Undecided → High
Changed in charm-glance:
importance: Undecided → High
Changed in charm-designate:
importance: Undecided → High
Changed in charm-designate:
assignee: nobody → Alex Kavanagh (ajkavanagh)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to charms.openstack (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/470322

Revision history for this message
James Page (james-page) wrote :

We need to get this backported to the stable charms as well.

tags: added: stable-backport
Changed in charm-nova-cloud-controller:
milestone: none → 17.08
Changed in charm-glance:
milestone: none → 17.08
Changed in charm-neutron-api:
milestone: none → 17.08
Changed in charm-cinder:
milestone: none → 17.08
Changed in charm-ceilometer:
milestone: none → 17.08
Changed in charm-designate:
milestone: none → 17.08
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charms.openstack (master)

Reviewed: https://review.openstack.org/470322
Committed: https://git.openstack.org/cgit/openstack/charms.openstack/commit/?id=f15bb1f01fd906a3b004062c2dd752db2cff223a
Submitter: Jenkins
Branch: master

commit f15bb1f01fd906a3b004062c2dd752db2cff223a
Author: Alex Kavanagh <email address hidden>
Date: Thu May 4 19:41:54 2017 +0100

    Add memcache support for ipv4

    charmhelpers was recently updated to support ipv4 for
    MemcacheContext if no ipv6 network is available. This change adds the
    same functionality to the charms.openstack library, which means that
    it can be used (automatically) by charms.openstack based charms.
    e.g. designate, manila, barbican, etc.

    Related-Bug: #1678124
    Change-Id: Ice62ff85662b1c6039ea8db269d52e70ec394f09

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Gerrit merge fixes this bug: https://review.openstack.org/#/c/470322/

Changed in charms.openstack:
status: In Progress → Fix Released
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

charms.openstack review https://review.openstack.org/#/c/470322/ fixes this bug on designate.

Changed in charm-designate:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-neutron-api:
status: Fix Committed → Fix Released
Changed in charm-cinder:
status: Fix Committed → Fix Released
Changed in charm-glance:
status: Fix Committed → Fix Released
Changed in charm-nova-cloud-controller:
status: Fix Committed → Fix Released
Changed in charm-ceilometer:
status: Fix Committed → Fix Released
Changed in charm-designate:
status: Fix Committed → Fix Released
James Page (james-page)
Changed in charm-heat:
status: New → Fix Released
Changed in charm-ceilometer-agent:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Patches

Remote bug watches

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