[swarm 10.0] tests on network templates failed with http400
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Sergey Novikov | ||
Newton |
Fix Released
|
High
|
Sergey Novikov | ||
Ocata |
Fix Committed
|
High
|
Sergey Novikov |
Bug Description
Detailed bug description:
Found on ci:
https:/
https:/
Steps to reproduce (cinder):
1. Revert snapshot with 3 slaves
2. Create cluster (HA) with Neutron VLAN/VXLAN/GRE
3. Add 1 controller + cinder nodes
4. Add 2 compute + cinder nodes
5. Upload 'cinder' network template'
6. Create custom network groups basing
on template endpoints assignments
7. Run network verification
8. Deploy cluster
9. Run network verification
10. Run health checks (OSTF)
11. Check L3 network configuration on slaves
12. Check that services are listening on their networks only
Expected results:
Tests passed
Actual result:
Stack trace:
...
File "/home/
self.
File "/home/
result = func(*args, **kwargs)
File "/home/
return self._post(
File "/home/
return self.session.
File "/home/
return self.request(url, 'POST', **kwargs)
File "/home/
return wrapped(*args, **kwargs)
File "/home/
raise exceptions.
BadRequest: Bad Request (HTTP 400)
in api.log:
2016-10-10 11:08:39.084 DEBUG [7f790c203880] (logger) Request POST /api/networks/ from 10.109.7.1:47386 {"name": "mongo", "meta": {"ip_range": ["10.200.255.1", "10.200.255.254"], "unmovable": false, "use_gateway": false, "notation": "ip_ranges", "render_addr_mask": null, "render_type": null, "map_priority": 0, "configurable": true}, "interface": "br-mongo", "cidr": "10.200.255.0/24", "group_id": 1, "gateway": null}
2016-10-10 11:08:39.128 DEBUG [7f790c203880] (logger) Response code '400 Bad Request' for POST /api/networks/ from 10.109.7.1:47386
When I've tried to run POST request maunually with data {"name": "mongo", "meta": {"ip_range": ["10.200.255.1", "10.200.255.254"], "unmovable": false, "use_gateway": false, "notation": "ip_ranges", "render_addr_mask": null, "render_type": null, "map_priority": 0, "configurable": true}, "interface": "br-mongo", "cidr": "10.200.255.0/24", "group_id": 1, "gateway": null} I've got Bad request message with point "Additional properties are not allowed" for 'interface' key. When request does not contain <"interface": "br-mongo">, it does not initiate http 400 error.
Unfortunately, env is unavailable for reverting now.
Changed in fuel: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: swarm-fail |
tags: | added: swarm-blocker |
Changed in fuel: | |
milestone: | 10.0 → 10.1 |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Georgy Kibardin (gkibardin) |
Changed in fuel: | |
status: | Confirmed → In Progress |
Changed in fuel: | |
assignee: | Fuel QA Team (fuel-qa) → Sergey Novikov (snovikov) |
NetworkGroup never had "interface" property - it must be removed from the request.