Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1539402

Summary: [RFE] support bulk network creation to reduce requests on engine
Product: [oVirt] ovirt-provider-ovn Reporter: Mor <mkalfon>
Component: providerAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED WONTFIX QA Contact: Mor <mkalfon>
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: bugs, danken, ylavi
Target Milestone: ---Keywords: FutureFeature
Target Release: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-06 08:16:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ovirt-provider-ovn log none

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.