metadata server errors out with a request missing X-Instance-ID-Signature header
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Tomoe Sugihara |
Bug Description
When metadata server (nova-api:8775 by default) gets a request without X-Instance-
2015-01-08 18:10:51.955 INFO nova.metadata.
2015-01-08 18:10:55.354 ERROR nova.api.ec2 [-] FaultWrapper: object of type 'NoneType' has no len()
2015-01-08 18:10:55.354 TRACE nova.api.ec2 Traceback (most recent call last):
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "/opt/stack/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 return req.get_
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 application, catch_exc_
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 app_iter = application(
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 resp = self.call_func(req, *args, **self.kwargs)
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 return self.func(req, *args, **kwargs)
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "/opt/stack/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 rv = req.get_
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 application, catch_exc_
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 app_iter = application(
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 resp = self.call_func(req, *args, **self.kwargs)
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "build/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 return self.func(req, *args, **kwargs)
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "/opt/stack/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 meta_data = self._handle_
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "/opt/stack/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 if not utils.constant_
2015-01-08 18:10:55.354 TRACE nova.api.ec2 File "/opt/stack/
2015-01-08 18:10:55.354 TRACE nova.api.ec2 if len(first) != len(second):
2015-01-08 18:10:55.354 TRACE nova.api.ec2 TypeError: object of type 'NoneType' has no len()
2015-01-08 18:10:55.354 TRACE nova.api.ec2
It'd be safer to validate against non-existence.
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/145755
Review: https:/