Commit 2142b24
committed
nova: Ignore errors for discover_hosts
In some cases there can be a race condition where a compute node is
being discovered by the controller at the same instant that the node is
trying to register itself with `nova-manage cell_v2 discover_hosts`,
which results in an error like this:
DBDuplicateEntry: (pymysql.err.IntegrityError) (1062, u"Duplicate entry 'd00-25-90-e5-0b-aa' for key 'uniq_host_mappings0host'")
In a case like this, it is safe to ignore because the host is already
discovered. This patch removes the `set -e` part of the script in order
to be more forgiving for errors like this, since we can't use crowbar
sync marks to orchestrate node discovery like this.1 parent 52b065d commit 2142b24
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
0 commit comments