]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add retries for Cisco FCZM client CLI _cfg_save
authorPatrick East <patrick.east@purestorage.com>
Fri, 9 Oct 2015 23:35:12 +0000 (16:35 -0700)
committerPatrick East <patrick.east@purestorage.com>
Sun, 18 Oct 2015 01:27:17 +0000 (18:27 -0700)
commit013ac6e504bb1b754c8de217c47bb65f80d9815a
tree10f92c54caa90280f04277991cc59eae7cb53e5a
parent867fccf833ffc597aa986cb6ff1b3b5c1101b9ba
Add retries for Cisco FCZM client CLI _cfg_save

Previously this config update would break if there were other changes
happening that were not completed yet. An easy work-around is to just
retry if it fails to apply the configuration update. There is already
code in place to handle this, but it doesn’t actually work correctly.

Instead of fixing it I’ve switched over to using the utils.retry
decorator to do the retries.

Change-Id: I3c1948bcfdedc633c23a30351260ce8fbf7342de
Closes-Bug: #1482398
cinder/tests/unit/zonemanager/test_cisco_fc_zone_client_cli.py
cinder/zonemanager/drivers/cisco/cisco_fc_zone_client_cli.py