Number of segments/total size aren't listed correctly after upload/delete operations
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mirantis OpenStack | Status tracked in 10.0.x | |||||
10.0.x |
In Progress
|
Medium
|
Maksym Shalamov | |||
7.0.x |
Won't Fix
|
Medium
|
MOS Swift | |||
8.0.x |
Won't Fix
|
Medium
|
MOS QA Team | |||
9.x |
Won't Fix
|
Medium
|
Maksym Shalamov |
Bug Description
If a file is uploaded with --segment-size option to a brand-new container, the files number/segments number is updated only on swift list --lh and remains 0/0 on swift list -l command.
Steps to reproduce:
1. swift --os-username services:glance --os-password SOMEPASS upload aaa .viminfo --segment-size 42
In my case the file was uploaded in 127 segments.
2. swift --os-username services:glance --os-password SOMEPASS list -l
0 0 2015-05-08 16:35:15 aaa
0 0 2015-05-08 16:35:16 aaa_segments
3. List containers in human-readable format
swift --os-username services:glance --os-password SOMEPASS list --lh
1 0 2015-05-08 16:35:15 aaa
128 5.2K 2015-05-08 16:35:16 aaa_segments
4. Any further calls to list -l will retrieve updated information
swift --os-username services:glance --os-password SOMEPASS list -l
1 0 2015-05-08 16:35:15 aaa
128 5353 2015-05-08 16:35:16 aaa_segments
The same inconsistency is observed during delete operation, if the swift delete operation has been aborted (via CTRL+C, for example). In this case swift list -l will show the number of segments present before the deletion.
Changed in mos: | |
assignee: | nobody → MOS Swift (mos-swift) |
Changed in mos: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → 7.0 |
tags: | added: area-mos |
Changed in mos: | |
status: | Confirmed → Won't Fix |
I was unable to reproduce the issue on the latest devstack, so I suppose that upgrade of python-swiftclient will fix the problem.