OpenStack provider should fall back to local-ipv4 if public-ipv4 is not found

Bug #1061678 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Critical
Martin Packman
0.5
Fix Released
Critical
Martin Packman
juju (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On a private cloud with no public ips assigned to instances, if there is no public IP, the metadata service returns a 404:

2012-10-04 15:07:15,970: twisted@ERROR: Unhandled Error
Traceback (most recent call last):
Failure: twisted.web.error.Error: 404 Not Found

This leaves the unit agent basically dead presumably because there is no error handler.

Tags: openstack

Related branches

tags: added: openstack
Revision history for this message
Martin Packman (gz) wrote :

The behaviour change is this used to return 200 with an empty body, but now returns 404.

Changed in juju:
importance: Undecided → Critical
milestone: none → 0.6
status: New → Triaged
Martin Packman (gz)
Changed in juju:
assignee: nobody → Martin Packman (gz)
status: Triaged → In Progress
Martin Packman (gz)
summary: - OpenStack provider should fall back to private-ipv4 if instance has no
- public-ipv4
+ OpenStack provider should fall back to local-ipv4 if public-ipv4 is not
+ found
Revision history for this message
Martin Packman (gz) wrote :

In the end, the fix was to change the version in the urls requested from the metadata server rather than add http error handling. Apparently the meaning of "1.0" changed in folsom, but "2009-04-04" has everything we need.

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
James Page (james-page) wrote :

0.6 release to quantal - Marking 'Fix Released'

Changed in juju (Ubuntu):
status: New → Fix Released
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.