[swift driver] BufferedReader uploading 0 bytes instead of actual supplied data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
Triaged
|
High
|
Unassigned |
Bug Description
This was observed on a recent (Stein) glance running in a container on RHEL 8.
config extract:
$ 'grep -v ^# /etc/glance/
stores=http,swift
default_store=swift
swift_store_
swift_store_
swift_buffer_
swift_upload_
default_
swift_store_
the file:
$ ls -l overcloud-
-rw-r--r--. 1 stack stack 950599680 Mar 1 13:21 overcloud-
the result:
$ glance image-show 8295d200-
+------
| Property | Value |
+------
| checksum | d41d8cd98f00b20
| container_format | bare |
| created_at | 2019-03-
| direct_url | swift+config:
| disk_format | qcow2 |
| hw_architecture | x86_64 |
| id | 8295d200-
| kernel_id | bf673768-
| min_disk | 0 |
| min_ram | 0 |
| name | overcloud-full |
| os_hash_algo | sha512 |
| os_hash_value | cf83e1357eefb8b
| | ff8318d2877eec2
| os_hidden | False |
| owner | b837697327f841b
| protected | False |
| ramdisk_id | 52f3474b-
| size | 0 |
| status | active |
| tags | [] |
| updated_at | 2019-03-
| virtual_size | Not available |
| visibility | public |
+------
checksum and os_hash_value match those of an empty file:
$ touch it
$ md5sum it
d41d8cd98f00b20
$ sha512sum it
cf83e1357eefb8b
log extract:
2019-03-07 01:38:09.792 24 DEBUG glance_
2019-03-07 01:38:09.792 24 DEBUG glance_
2019-03-07 01:38:09.793 24 DEBUG glance_
2019-03-07 01:38:10.321 24 DEBUG glance_
2019-03-07 01:38:10.353 24 DEBUG swiftclient [req-6bd1a2b0-
2019-03-07 01:38:10.353 24 DEBUG swiftclient [req-6bd1a2b0-
2019-03-07 01:38:10.353 24 DEBUG swiftclient [req-6bd1a2b0-