Error when adding multiple nodes with duplicated macs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tuskar-ui |
Fix Committed
|
Undecided
|
Dariusz Smigiel |
Bug Description
1. enter /infrastructure
2. select "+" button and add multiple nodes at once (at least two)
3. in last node, duplicate mac address: "00:11:22:33:44:55 00:11:22:33:44:55"
4. submit it
Current behaviour:
Popup is showing with info: "Danger: There was an error submitting the form. Please try again. "
After refreshing page, there are all nodes added, before error occured. Node with duplicated macs is also added, but only with one interface.
Expected behaviour:
Nodes shouldn't be added.
Mac addresses should be listed as duplicated.
Form submitting should be prevented.
Log:
DEBUG:ironiccli
"00:11:
DEBUG:ironiccli
HTTP/1.0 409 Conflict
x-openstack-
content-length: 149
server: WSGIServer/0.1 Python/2.7.6
x-openstack-
date: Fri, 27 Mar 2015 08:44:47 GMT
x-openstack-
content-type: application/json
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"A port with MAC address 00:11:22:33:44:55 already exists.\"}"}
WARNING:
Internal Server Error: /infrastructure
Traceback (most recent call last):
File "/usr/local/
response = wrapped_
File "/root/
return view_func(request, *args, **kwargs)
File "/root/
return view_func(request, *args, **kwargs)
File "/root/
return view_func(request, *args, **kwargs)
File "/root/
return view_func(request, *args, **kwargs)
File "/usr/local/
return self.dispatch(
File "/usr/local/
return handler(request, *args, **kwargs)
File "/usr/local/
return self.form_
File "/root/
exceptions.
File "/root/
six.
File "/root/
handled = form.handle(
File "/root/
form_success = form.handle(
File "/root/
return create_
File "/root/
exceptions.
File "/root/
six.
File "/root/
node = api.node.
File "/root/
driver=driver))
File "/root/
address=
File "/usr/local/
return self._create(
File "/usr/local/
resp, body = self.api.
File "/usr/local/
resp, body_iter = self._http_
File "/usr/local/
error_
Conflict: A port with MAC address 00:11:22:33:44:55 already exists. (HTTP 409)
Changed in tuskar-ui: | |
assignee: | nobody → Dariusz Smigiel (smigiel-dariusz) |
status: | New → In Progress |
Fix proposed to branch: master /review. openstack. org/168318
Review: https:/