Bug 1399511
| Summary: | Provider should support PUT method to allow update of subnet properties | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-provider-ovn | Reporter: | Mor <mkalfon> |
| Component: | provider | Assignee: | Marcin Mirecki <mmirecki> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mor <mkalfon> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | unspecified | CC: | bugs, danken, mmirecki, ylavi |
| Target Milestone: | ovirt-4.2.0 | Flags: | rule-engine:
ovirt-4.2+
|
| Target Release: | 1.2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-12-20 11:02:17 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: | |||
|
Description
Mor
2016-11-29 08:46:40 UTC
We currently only support the part of Neutron API which is used by the engine (external networks). Since you can not modify subnets from the engine, this is not supported at this moment. our provider must be a very shallow integration layer above OVN. we should not create and manage entities that do not exist in OVN. do we currently have any other means to modify network's subnet via our API? We only implement a subset of the neutron REST API, only the items which are needed by the external network providers feature in ovirt-engine. PUT is not supported for subnets and networks, as it is not needed by the exernal network providers feature. Let's wait with this until we reimplement ovirt-provider-ovn using ovsdbapp. Patch is not merged yet. It is possible to associate a subnet using the PUT method with non-existent network ID, do we consider this a bug? it smells like a bug, but I am not sure I understand what you are doing. Please state here which action you do, what do you receive instead of the expected error. Also, please direct this type of questions to Marcin. (In reply to Dan Kenigsberg from comment #7) > it smells like a bug, but I am not sure I understand what you are doing. > Please state here which action you do, what do you receive instead of the > expected error. Also, please direct this type of questions to Marcin. I will try to elaborate: I am able to change the 'network_id' value of existing subnet to non-existent network id. The provider doesn't check if the ID exist or not. This should not be possible, needs to be fixed. Verified on:
ovirt-provider-ovn-1.2-0.20171020111522.git3dd43cf.el7.centos.noarch
{
"error": {
"message": "Unable to move subnet to network `<id_of_network>`. The network does not exit.",
"code": 400,
"title": "Bad Request"
}
}
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |