Comment 3 for bug 566792

Revision history for this message
Scott Moser (smoser) wrote : Re: UEC guests sometimes fail on consuming user data

before 'return True' in the above snippet, I added:

            import pprint
            print "%s\n%s\n%s" % ("==== begin userdata_raw ====", self.userdata_raw, "==== end userdata_raw ====")
            print "%s\n%s\n%s" % ("==== begin metadata ====", pprint.pprint(self.metadata), "==== end metadata ====")
            return True

We saw the error, and see in the console:
WARNING:INSTANCE i-489C08A5:==== begin userdata_raw ====
WARNING:INSTANCE i-489C08A5:
WARNING:INSTANCE i-489C08A5:==== end userdata_raw ====
WARNING:INSTANCE i-489C08A5:{}
WARNING:INSTANCE i-489C08A5:==== begin metadata ====
WARNING:INSTANCE i-489C08A5:None
WARNING:INSTANCE i-489C08A5:==== end metadata ====

As far as I can tell, that means the metadata service was up (ie, something was at port 80 169.254.169.254 and it returned valid http with empty data)