Update wording used in removal of VIFs
Some minor updates were done to the wording used in the removal-of-VIFs change. This is a follow up to 3a4e259a3714cedcad567e229e983f1b559c2668. Change-Id: I4a72535fed3650364aa53f1f22676599499a3d62 Story: #1743652 Task: #9275
This commit is contained in:
parent
532ceb4d65
commit
05dd4050f7
@ -123,23 +123,25 @@ def remove_vifs_from_node(task):
|
|||||||
for vif_entry in vifs:
|
for vif_entry in vifs:
|
||||||
vif = vif_entry.get('id')
|
vif = vif_entry.get('id')
|
||||||
if not vif:
|
if not vif:
|
||||||
LOG.warning('Incorrect vif entry for %(node)s lacks an ID field, '
|
LOG.warning('Node %(node)s has an incorrect VIF entry: %(found)s. '
|
||||||
'and is thus unsupported. Found: %(found)s.',
|
'This entry lacks an "id" field and is thus '
|
||||||
|
'unsupported.',
|
||||||
{'node': task.node.uuid,
|
{'node': task.node.uuid,
|
||||||
'found': vif_entry})
|
'found': vif_entry})
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
task.driver.network.vif_detach(task, vif)
|
task.driver.network.vif_detach(task, vif)
|
||||||
except exception.VifNotAttached as e:
|
except exception.VifNotAttached:
|
||||||
LOG.warning('While removing records of VIF attachments from node '
|
LOG.warning('While removing records of VIF attachments from node '
|
||||||
'%(node)s, we recieved indication that %(vif)s is '
|
'%(node)s, we received indication that VIF %(vif)s is '
|
||||||
'no longer attached. There should not happen under '
|
'no longer attached. This should not happen under '
|
||||||
'normal circumstances.',
|
'normal circumstances.',
|
||||||
{'node': task.node.uuid,
|
{'node': task.node.uuid,
|
||||||
'vif': vif})
|
'vif': vif})
|
||||||
|
|
||||||
except exception.NetworkError as e:
|
except exception.NetworkError as e:
|
||||||
LOG.error('An error has been encountered while removing a '
|
LOG.error('For node %(node)s, an error occurred while removing a '
|
||||||
'VIF record for %(node)s. Error: %(error)s',
|
'VIF record for VIF %(vif)s. Error: %(error)s',
|
||||||
{'node': task.node.uuid,
|
{'node': task.node.uuid,
|
||||||
|
'vif': vif,
|
||||||
'error': e})
|
'error': e})
|
||||||
|
@ -6,7 +6,7 @@ upgrade:
|
|||||||
If your use of the BareMetal service is reliant upon the behavior of
|
If your use of the BareMetal service is reliant upon the behavior of
|
||||||
the VIFs being retained, which was introduced as a behavior change
|
the VIFs being retained, which was introduced as a behavior change
|
||||||
during the Ocata cycle, then you must update your tooling to explicitly
|
during the Ocata cycle, then you must update your tooling to explicitly
|
||||||
re-add the the VIF attachments prior to deployment.
|
re-add the VIF attachments prior to deployment.
|
||||||
fixes:
|
fixes:
|
||||||
- |
|
- |
|
||||||
Removes all records of VIF attachments upon the teardown of a deployed
|
Removes all records of VIF attachments upon the teardown of a deployed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user