Bug 1299953

Summary: Glance client error using IPv6 - ValueError: invalid literal for int() with base 10: 'fd00'
Product: Red Hat OpenStack Reporter: Mike Burns <mburns>
Component: openstack-tripleo-heat-templatesAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: yeylon <yeylon>
Severity: urgent Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: adarazs, dmacpher, eglynn, fpercoco, gfidente, jruzicka, jschluet, jslagle, mburns, mcornea, nlevinki, rhel-osp-director-maint, sgotliv, srevivo, yeylon
Target Milestone: y3Keywords: Automation, AutomationBlocker, ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-0.8.6-109.el7ost Doc Type: Bug Fix
Doc Text:
Overcloud deployments with IPv6 endpoints caused Glance to report a HTTP 500 error. This is due to how the director parsed IPv6 addresses. This fix corrects how the director parses the IPv6 address for Glance. Glance now works in IPv6-based Overclouds.
Story Points: ---
Clone Of: 1299855
: 1312983 (view as bug list) Environment:
Last Closed: 2016-02-18 16:50:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1299855    
Bug Blocks: 1312983    

Comment 1 Lon Hohberger 2016-01-19 15:45:38 UTC
Upstream gerrit review https://review.openstack.org/#/c/83586/ seems relevant but imports network_utils which do not exist in glanceclient 0.17.3.

This could be a rebase or a more extensive backport, but great care must be taken to preserve API / cmdline stability.

Comment 2 Flavio Percoco 2016-01-19 15:49:04 UTC
I've commented on the OSP8 patch about where this BZ belongs to. I don't think it'll be possible to backport the fix upstream but it depends on how it is tackled.

Comment 3 Flavio Percoco 2016-01-19 15:50:27 UTC
erm, I meant to say the OSP8 BZ ( https://bugzilla.redhat.com/show_bug.cgi?id=1299855#c3 )

Lon, this is not a glanceclient bug :(

Comment 4 Lon Hohberger 2016-01-19 15:52:48 UTC
Nope, that's not the right commit - it's been superseded by an import from oslo.utils.

Comment 5 Mike Burns 2016-01-19 19:02:25 UTC
Bug 1299855 comment 5 says:

I took a look at the environment and it seems to be a config issue. The registry_host, unlike the bind_host has to be a valid, parsable, ipv6 as it's a string read by glance-api to talk to glance registry. The value in the environment was missing the `[]` which are required by ipv6. Changing it to the one below seemed to have fixed the issue:

registry_host=[fd00:fd00:fd00:2000:f816:3eff:fedb:a219]

moving this to THT

Comment 7 Marius Cornea 2016-01-21 11:35:30 UTC
openstack-tripleo-heat-templates-0.8.6-110.el7ost.noarch

Comment 9 errata-xmlrpc 2016-02-18 16:50:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0264.html