Bug 1539402 - [RFE] support bulk network creation to reduce requests on engine
Summary: [RFE] support bulk network creation to reduce requests on engine
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: ovirt-provider-ovn
Classification: oVirt
Component: provider
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Marcin Mirecki
QA Contact: Mor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-28 16:33 UTC by Mor
Modified: 2018-06-06 08:16 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-06 08:16:51 UTC
oVirt Team: Network
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
ovirt-provider-ovn log (277.00 KB, text/plain)
2018-01-28 16:33 UTC, Mor
no flags Details

Description Mor 2018-01-28 16:33:19 UTC
Created attachment 1387266 [details]
ovirt-provider-ovn log

Description of problem:
To add a test which creates 50 networks efficiently on a single provider request, ovirt-provider-ovn should provide the option of bulk create networks, as it is specified in the Neutron API under networks: https://developer.openstack.org/api-ref/network/v2/index.html#bulk-create-networks

Version-Release number of selected component (if applicable):
ovirt-provider-ovn-1.2.5-1.el7ev.noarch
RHV 4.2.1.3-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Try to create bulk of networks during network creation (according to  https://developer.openstack.org/api-ref/network/v2/index.html#bulk-create-networks)
POST on /v2.0/networks with body:
{
    "networks": [
        {
            "admin_state_up": true,
            "name": "network_1",
        },
        {
            "admin_state_up": true,
            "name": "network_2",
        }
    ]
}

Actual results:
Provider throws bad request exception:
{
    "error": {
        "message": "'network'",
        "code": 400,
        "title": "Bad Request"
    }
}

Expected results:
Bluk creation should be supported.

Additional info:
Current workaround: for each network - create single network creation request.

Comment 1 Yaniv Lavi 2018-06-06 08:16:51 UTC
Closing old RFEs, please reopen if still needed.
Patches are always welcomed.


Note You need to log in before you can comment on or make changes to this bug.