Cannot specify binary files as injected_files by "nova boot --file".
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Ken'ichi Ohmichi |
Bug Description
If specifying some binary files as injected_files by "nova boot --file",
the command fails like the following:
$ ls -lh memo.tar.gz
-rw-rw-r-- 1 oomichi oomichi 191 Feb 1 13:37 memo.tar.gz
$
$ nova --debug boot --flavor 1 --image cirros-
[..]
2013-02-
RESP: [400] {'date': 'Fri, 01 Feb 2013 04:41:52 GMT', 'content-length': '127', 'content-type': 'application/json; charset=UTF-8', 'x-compute-
RESP BODY: {"badRequest": {"message": "UnicodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte", "code": 400}}
DEBUG (shell:578) UnicodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte (HTTP 400) (Request-ID: req-a12aec93-
Traceback (most recent call last):
File "/opt/stack/
OpenStackCo
File "/opt/stack/
args.
File "/opt/stack/
server = cs.servers.
File "/opt/stack/
**boot_kwargs)
File "/opt/stack/
return_
File "/opt/stack/
_resp, body = self.api.
File "/opt/stack/
return self._cs_
File "/opt/stack/
**kwargs)
File "/opt/stack/
resp, body = self.request(url, method, **kwargs)
File "/opt/stack/
raise exceptions.
BadRequest: UnicodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte (HTTP 400) (Request-ID: req-a12aec93-
ERROR: UnicodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte (HTTP 400) (Request-ID: req-a12aec93-
$
Appendix:
The above example is operated by a small binary file.
If you need to specify a big file, the following settings are necessary:
-- nova.conf --
osapi_max_
quota_injected_
Changed in nova: | |
milestone: | none → grizzly-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-3 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/20977
Review: https:/