Description of problem: For a network created user will not be able to assign the glusternw role via API. Version-Release number of selected component (if applicable): python-ovirt-engine-sdk4-4.0.1-1.fc23.x86_64 How reproducible: Always Steps to Reproduce: 1. Create a network. 2. Assign gluster network role to it. 3. Actual results: gluster network role cannot be assigned. Expected results: User should be able to assign gluster network Additional info:
Works fine for me. Can you please take a look at following patch? https://gerrit.ovirt.org/#/c/64436/ It's an example of assigning GlusterAdmin role on network to user. Can you please let as know if it works for you, or share the code you've used? Thanks.
(In reply to Ondra Machacek from comment #1) > Works fine for me. Can you please take a look at following patch? > > https://gerrit.ovirt.org/#/c/64436/ > > It's an example of assigning GlusterAdmin role on network to user. Can you > please let as know if it works for you, or share the code you've used? > Thanks. The bug is about assigning the network role "Gluster" to a network created in cluster..similar to Display and Migration roles. Not about the user roles.
Moving this bug to assigned because i see that assigning glusternw while attaching the network to cluster does not work. clusters_service.cluster_service(cluster.id).networks_service().add(types.Network(name='nw1',required=False,usages=[types.NetworkUsage.GLUSTER,types.NetworkUsage.MIGRATION])) If user wants to get this working he has to attach the network to cluster and later update it. clusters_service.cluster_service(cluster.id).networks_service().network_service(network_list.id).update(types.Network(name='nw1',required=False,usages=[types.NetworkUsage.GLUSTER]))
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
4.0.6 has been the last oVirt 4.0 release, please re-target this bug.
Verified and works fine with python-ovirt-engine-sdk4-4.1.3-1.el7ev.x86_64. i see that assigning glusternw while attaching the network to cluster works fine. clusters_service.cluster_service(cluster.id).networks_service().add(types.Network(name='glusternw',required=False,usages=[types.NetworkUsage.GLUSTER,types.NetworkUsage.MIGRATION]))