Swift-proxy charm needs to be able to handle 'None' devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Swift Proxy Charm |
Fix Released
|
Medium
|
Billy Olsen |
Bug Description
If 'None' devices exist in a builder file hooks will error.
2017-08-02 01:04:16 WARNING juju-log Sync rings called by non-leader - skipping
2017-08-02 01:04:16 INFO config-changed Traceback (most recent call last):
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed main()
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed assess_
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed assess_
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed state, message = _determine_
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed state, message, lambda: charm_func(
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed charm_state, charm_message = charm_func_
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed state, message, lambda: charm_func(
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed if not has_minimum_
2017-08-02 01:04:16 INFO config-changed File "/var/lib/
2017-08-02 01:04:16 INFO config-changed zones = [dev['zone'] for dev in builder['devs']]
2017-08-02 01:04:16 INFO config-changed TypeError: 'NoneType' object has no attribute '__getitem__'
swift-ring-builder now creates these devices as a normal operation when devices have been removed from the ring (in our case, after removing and redeploying a node).
https:/
http://
The charm needs to be able to handle the existence of these 'None' devices when parsing builder files.
Changed in charm-swift-proxy: | |
status: | New → Triaged |
importance: | Undecided → High |
importance: | High → Medium |
assignee: | nobody → Billy Olsen (billy-olsen) |
milestone: | none → 17.08 |
status: | Triaged → In Progress |
tags: | added: backport-potential uosci |
Changed in charm-swift-proxy: | |
milestone: | 17.08 → 17.11 |
tags: | added: sts |
Changed in charm-swift-proxy: | |
status: | Fix Committed → Fix Released |
After discussing this further, it appears that the way to recreate this issue is to remove a dev or host from a builder file. Anywhere we've had this happen has been related to removing a node or a bad disk from swift.