image_list fails when host_ip falls in FIXED_RANGE

Bug #1418250 reported by Patrick East
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Patrick East

Bug Description

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.

Changed in devstack:
assignee: nobody → Patrick East (patrick-east)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/153086

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by Patrick East (<email address hidden>) on branch: master
Review: https://review.openstack.org/153086
Reason: Abandoning due to lack of interest... I fixed this in my environment by switching nodepool to use a different subnet that is not 10.0.0.0/24

Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: In Progress → Invalid
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.