Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1362706 - glance-api.conf has wrong bind_address after director driven upgrade from OSP7 to 8
Summary: glance-api.conf has wrong bind_address after director driven upgrade from OSP...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: Angus Thomas
QA Contact: Omri Hochman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-02 22:55 UTC by John Fulton
Modified: 2017-01-25 01:32 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-25 01:32:45 UTC


Attachments (Terms of Use)

Description John Fulton 2016-08-02 22:55:39 UTC
After upgrading the overcloud from OSP7 to 8, as per our document [1],
the Glance client is unable to establish a connection to the overcloud
Glance server [2]. The root cause of the problem seems to be that the
bind_host value of /etc/glance/glance-api.conf is set to an IP that
the host does not have [3]. Instead, it's set to an IP that another
node in the cluster is using.

After setting the bind_host in /etc/glance/glance-api.conf to an IP
that is on the node and restarting openstack-glance-api-clone [4],
the Glance API service works. Until the Heat templates are updated to
set the correct IPs for this upgrade scenario, this workaround may
be required after updates are applied with `openstack overcloud
deploy`.

[1] https://access.redhat.com/documentation/en/red-hat-openstack-platform/8/paged/director-installation-and-usage/104-upgrading-the-overcloud

[2] 
[stack@hci-director ~]$ source overcloudrc 
[stack@hci-director ~]$ glance image-list
Error finding address for http://10.19.139.37:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20: Unable to establish connection to http://10.19.139.37:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20
[stack@hci-director ~]$ 

[3] 
[stack@hci-director ~]$ ansible mons -b -m shell -a "grep bind_host=172.16.1.1 /etc/glance/glance-api.conf; ip a | grep 172.16.1"
192.168.1.27 | success | rc=0 >>
bind_host=172.16.1.11
    inet 172.16.1.12/24 brd 172.16.1.255 scope global vlan4046
    inet 172.16.1.10/32 brd 172.16.1.255 scope global vlan4046

192.168.1.26 | success | rc=0 >>
bind_host=172.16.1.13
    inet 172.16.1.11/24 brd 172.16.1.255 scope global vlan4046

192.168.1.25 | success | rc=0 >>
bind_host=172.16.1.12
    inet 172.16.1.13/24 brd 172.16.1.255 scope global vlan4046

[stack@hci-director ~]$ 

[4] quick workaround 

# A. update glance-api.conf to an IP on the host
ansible mons -b -m shell -a "ip=\$(ip a | grep 172.16.1 | grep -v /32 | awk {'print \$2'} | awk -F '/' {'print \$1'}); sed -i s/bind_host=.*/bind_host=\$ip/g /etc/glance/glance-api.conf"

# B. restart glance
mon=$(grep mons /etc/ansible/hosts -A 1 | tail -1 | awk {'print $1'})
ansible $mon -b -m shell -a "pcs resource restart openstack-glance-api-clone"

* Version-Release number: openstack-tripleo-heat-templates-kilo-0.8.14-16.el7ost.noarch
* How reproducible: deterministic (I have done it 3 times)
* Steps to Reproduce: upgrade overcloud as per our doc (reproducer coming)
* Actual results: /etc/glance/glance-api.conf gets the wrong bind_address
* Expected results: /etc/glance/glance-api.conf gets the right bind_address

Comment 5 Sofer Athlan-Guyot 2017-01-25 01:32:45 UTC
Hi,

I'm closing this one for lack of activity.  Don't hesitate to re-open it if it's wrong.

Regards,


Note You need to log in before you can comment on or make changes to this bug.