nova-manage cellv2 discover_hosts traces when run in parallel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
melanie witt |
Bug Description
Saw this issue downstream [1] and found a couple of similar issues [2][3] where deployments were running the 'nova-manage cellv2 discover_hosts' command in parallel and experiencing tracebacks like this:
"DBDuplicateEntry: (pymysql.
After some discussion on IRC today [4], we concluded it would be best to address the situation with improved command help and warnings when duplicate host mappings are encountered.
While we could try-except to ignore DBDuplicateEntry, this is not a situation we want to hide from users as it means they are likely hammering their database with parallel updates that are mostly not going to succeed. So we should stop and warn instead.
[1] https:/
[2] https:/
[3] https:/
[4] http://
tags: | added: nova-manage |
Fix proposed to branch: master /review. openstack. org/651947
Review: https:/