GZipped user-data causes 500 error to user requests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ec2-api |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I believe it's a valid use case for users to supply their user-data gzipped, especially in EC2 where user-data is limited to 16 KB.
In the case of users supplying gzipped user-data on an OpenStack instance, requests to http://
The ec2api metadata service then logs the following stacktrace:
ERROR ec2api.metadata [req-c6bfe852-
ERROR ec2api.metadata Traceback (most recent call last):
ERROR ec2api.metadata File "/usr/lib/
ERROR ec2api.metadata resp = self._get_
ERROR ec2api.metadata File "/usr/lib/
ERROR ec2api.metadata requester[
ERROR ec2api.metadata File "/usr/lib/
ERROR ec2api.metadata os_instance_id, remote_ip)
ERROR ec2api.metadata File "/usr/lib/
ERROR ec2api.metadata userdata = userdata.
ERROR ec2api.metadata File "/usr/lib/
ERROR ec2api.metadata return codecs.
ERROR ec2api.metadata UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte
Changed in ec2-api: | |
status: | New → Incomplete |
@Andy,
1) does AWS instances allows gzipped user-data? I think - no. It defines user data as "you must provide base64-encoded text."
2) does nova itself allows to pass gzipped user-data? I also think - no.
3) does AWS protocol allows gzipped data?
4) Is it possible to pass gzipped data via CLI/UI?
ec2 must be compatible with AWS protocol but it allows some extensions due to OpenStack nature.
In this case I suggest that this feature can't be implemented.