When setting up nodepool images the cache_devstack.py script fails to get the image list from devstack's image_list.sh script because of failures getting the HOST_IP:
2015-02-02 10:49:09,942 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: + python ./cache_devstack.py trusty
2015-02-02 10:49:09,955 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: Running: ['git', 'branch', '-a']
2015-02-02 10:49:09,957 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: Branch: remotes/origin/master
2015-02-02 10:49:09,957 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: Running: ['git', 'checkout', 'remotes/origin/master']
2015-02-02 10:49:09,960 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: Running: ['git', 'pull', '--ff-only', 'origin']
2015-02-02 10:49:10,191 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: [ERROR] /opt/git/openstack-dev/devstack/stackrc:685 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.
2015-02-02 10:49:11,391 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: [ERROR] /opt/git/openstack-dev/devstack/stackrc:685 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.
2015-02-02 10:49:12,580 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: [ERROR] /opt/git/openstack-dev/devstack/stackrc:685 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.
2015-02-02 10:49:13,773 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: [ERROR] /opt/git/openstack-dev/devstack/stackrc:685 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.
2015-02-02 10:49:14,962 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: [ERROR] /opt/git/openstack-dev/devstack/stackrc:685 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.
2015-02-02 10:49:16,154 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: [ERROR] /opt/git/openstack-dev/devstack/stackrc:685 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.
2015-02-02 10:49:17,162 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: image_list.sh failed
2015-02-02 10:49:17,162 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: Exit: 1, Output: [Call Trace] /opt/git/openstack-dev/devstack/tools/image_list.sh:21:source /opt/git/openstack-dev/devstack/stackrc:685:die
2015-02-02 10:49:17,162 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: ERROR: We only found 1 images in [Call Trace]
2015-02-02 10:49:17,162 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/tools/image_list.sh:21:source
2015-02-02 10:49:17,162 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/stackrc:685:die,[Call Trace]
2015-02-02 10:49:17,162 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/tools/image_list.sh:21:source
2015-02-02 10:49:17,162 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/stackrc:685:die,[Call Trace]
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/tools/image_list.sh:21:source
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/stackrc:685:die,[Call Trace]
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/tools/image_list.sh:21:source
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/stackrc:685:die,[Call Trace]
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/tools/image_list.sh:21:source
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/stackrc:685:die,[Call Trace]
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/tools/image_list.sh:21:source
2015-02-02 10:49:17,163 INFO nodepool.image.build.cinder-diste41.devstack-trusty-check: /opt/git/openstack-dev/devstack/stackrc:685:die, which can't be right.
The problem appears to be that the template instance nodepool creates is on a private network with a 10.0.0.0/24 subnet, which falls into the default FIXED_RANGE in stackrc. This causes the host ip to be filtered out, and the get_default_host_ip call fails to return anything. All this aside, the part we were interested in for the image_list.sh script has already completed successfully. If we skip this check
HOST_IP=$(get_default_host_ip $FIXED_RANGE $FLOATING_RANGE "$HOST_IP_IFACE" "$HOST_IP")
if [ "$HOST_IP" == "" ]; then
die $LINENO "Could not determine host ip address. See local.conf for suggestions on setting HOST_IP."
fi
it returns a list of images with no problems.
Fix proposed to branch: master /review. openstack. org/153086
Review: https:/