Bug 1584406
| Summary: | prov.set_vlan() method didn't set the vnicprofiles identifier | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Satoe Imaishi <simaishi> | |
| Component: | Providers | Assignee: | Alona Kaplan <alkaplan> | |
| Status: | CLOSED ERRATA | QA Contact: | Ilanit Stein <istein> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 5.9.0 | CC: | alkaplan, brant.evans, cpelland, gblomqui, gekis, jfrey, jhardy, mperina, ngupta, obarenbo, pmcgowan | |
| Target Milestone: | GA | Keywords: | ZStream | |
| Target Release: | 5.9.3 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | rhev | |||
| Fixed In Version: | 5.9.3.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: |
Bug #1449157 doc text was extended to include the fix in this bug.
Copying the doc text of bug #1449157
The purpose of the 'vm_fields.vlan' field was changed for v4 RHV providers.
* In the v3 API it represents the 'network name'.
* In the v4 API (if 'use_ovirt_engine_sdk' is specified in the setting as 'true') it represents the 'vnic profile id' or 'profile name (network name)'.
Example:
/api/provision_requests
1. Provision a virtual machine with one vNic where the 'profile_id' of the vNic is '9c61ef19-f8aa-4ce3-bc24-49d211c1d019'.
"vm_fields" : {
...
"vlan" : "9c61ef19-f8aa-4ce3-bc24-49d211c1d019"
}
2. Provision a virtual machine with one vNic where the 'profile_name' of the vNic is 'ovirtmgmt' and the network name is 'ovirtmgmt'.
"vm_fields" : {
...
"vlan" : "ovirtmgmt (ovirtmgmt)"
}
3. Provision a virtual machine with one vNic where the vNic has no profile.
"vm_fields" : {
...
"vlan" : "<Empty>"
}
4. Provision a virtual machine keeping the source template vNics.
"vm_fields" : {
...
"vlan" : "<Template>"
}
|
Story Points: | --- | |
| Clone Of: | 1574351 | |||
| : | 1609809 (view as bug list) | Environment: |
5.9.1
|
|
| Last Closed: | 2018-07-12 13:15:53 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | RHEVM | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | 1574351 | |||
| Bug Blocks: | 1609809 | |||
|
Comment 2
CFME Bot
2018-05-30 20:16:41 UTC
New commit detected on ManageIQ/manageiq-providers-ovirt/gaprindashvili: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/946a17fe35a444a26113a15c463ff0f95179771f commit 946a17fe35a444a26113a15c463ff0f95179771f Author: Boris Od <boris.od> AuthorDate: Wed May 30 08:07:03 2018 -0400 Commit: Boris Od <boris.od> CommitDate: Wed May 30 08:07:03 2018 -0400 Merge pull request #254 from AlonaKaplan/profile_description Profile description (cherry picked from commit 1c70679ac8b5ffb5163df217848c98447bc8a795) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1584406 app/models/manageiq/providers/redhat/infra_manager/ovirt_services/strategies/v4.rb | 40 +- app/models/manageiq/providers/redhat/infra_manager/provision_workflow.rb | 11 + spec/models/manageiq/providers/redhat/infra_manager/provision/configuration/network_spec.rb | 30 +- 3 files changed, 68 insertions(+), 13 deletions(-) Verified on 5.9.3.1/RHV-4.2.3
POST
Content-Type: application/json
URL: https://<cfme ip address>/api/provision_requests
Body:
{"additional_values": {"request_id": "1001"}, "ems_custom_attributes": {}, "miq_custom_attributes": {}, "requester": {"auto_approve": true, "owner_email": "jdoe", "owner_first_name": "John", "owner_last_name": "Doe", "user_name": "admin"}, "tags": {"cc": "001", "network_location": "Internal"}, "template_fields": {"guid": "53dd9846-5462-4be9-ac0c-cea53e1d6c5a"}, "version": "1.1", "vm_fields": {"number_of_cpus": 1, "provision_type": "native_clone", "vlan": "ovirt-mgmt (ovirtmgmt)", "vm_memory": "2048", "vm_name": "2_vm"}}
VM was provisioned successfully, with network interface ovirtmgmt.
Also tested the same, request, but with
vlan: "vnic profile ID" = Taken from RHV via restapi:
GET
https://<RHV fqdn>/ovirt-engine/api/networks/<Network GUID>/vnicprofiles
VM was provisioned successfully, with network interface ovirtmgmt.
@Alona,
Would you please add a doc text to this bug for this addition of vlan field supporting now also "profile name (network name)".
Need to emphasize that a space is required between the "profile name" and
"(network name)", otherwise request will fail.
This doc will be an extension to this doc text:
https://bugzilla.redhat.com/1449157
Thanks.
(In reply to Ilanit Stein from comment #4) > Verified on 5.9.3.1/RHV-4.2.3 > > POST > Content-Type: application/json > > URL: https://<cfme ip address>/api/provision_requests > > Body: > > {"additional_values": {"request_id": "1001"}, "ems_custom_attributes": {}, > "miq_custom_attributes": {}, "requester": {"auto_approve": true, > "owner_email": "jdoe", "owner_first_name": "John", > "owner_last_name": "Doe", "user_name": "admin"}, "tags": {"cc": "001", > "network_location": "Internal"}, "template_fields": {"guid": > "53dd9846-5462-4be9-ac0c-cea53e1d6c5a"}, "version": "1.1", "vm_fields": > {"number_of_cpus": 1, "provision_type": "native_clone", "vlan": "ovirt-mgmt > (ovirtmgmt)", "vm_memory": "2048", "vm_name": "2_vm"}} > > > VM was provisioned successfully, with network interface ovirtmgmt. > > Also tested the same, request, but with > vlan: "vnic profile ID" = Taken from RHV via restapi: > GET > https://<RHV fqdn>/ovirt-engine/api/networks/<Network GUID>/vnicprofiles > > VM was provisioned successfully, with network interface ovirtmgmt. > > > @Alona, > > Would you please add a doc text to this bug for this addition of vlan field > supporting now also "profile name (network name)". > Need to emphasize that a space is required between the "profile name" and > "(network name)", otherwise request will fail. > > This doc will be an extension to this doc text: > https://bugzilla.redhat.com/1449157 > > Thanks. Done (In reply to Alona Kaplan from comment #5) > (In reply to Ilanit Stein from comment #4) > > Verified on 5.9.3.1/RHV-4.2.3 > > > > POST > > Content-Type: application/json > > > > URL: https://<cfme ip address>/api/provision_requests > > > > Body: > > > > {"additional_values": {"request_id": "1001"}, "ems_custom_attributes": {}, > > "miq_custom_attributes": {}, "requester": {"auto_approve": true, > > "owner_email": "jdoe", "owner_first_name": "John", > > "owner_last_name": "Doe", "user_name": "admin"}, "tags": {"cc": "001", > > "network_location": "Internal"}, "template_fields": {"guid": > > "53dd9846-5462-4be9-ac0c-cea53e1d6c5a"}, "version": "1.1", "vm_fields": > > {"number_of_cpus": 1, "provision_type": "native_clone", "vlan": "ovirt-mgmt > > (ovirtmgmt)", "vm_memory": "2048", "vm_name": "2_vm"}} > > > > > > VM was provisioned successfully, with network interface ovirtmgmt. > > > > Also tested the same, request, but with > > vlan: "vnic profile ID" = Taken from RHV via restapi: > > GET > > https://<RHV fqdn>/ovirt-engine/api/networks/<Network GUID>/vnicprofiles > > > > VM was provisioned successfully, with network interface ovirtmgmt. > > > > > > @Alona, > > > > Would you please add a doc text to this bug for this addition of vlan field > > supporting now also "profile name (network name)". > > Need to emphasize that a space is required between the "profile name" and > > "(network name)", otherwise request will fail. > > > > This doc will be an extension to this doc text: > > https://bugzilla.redhat.com/1449157 I've updated the doc text of bug #1449157 > > > > Thanks. > > Done Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2184 |