Bug 1268298 - Users in user portal can't assign vNIC profiles in spite of having VnicProfileUser permission
Summary: Users in user portal can't assign vNIC profiles in spite of having VnicProfil...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-3.6.2
: ---
Assignee: Alona Kaplan
QA Contact:
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-02 13:13 UTC by David Jaša
Modified: 2016-02-10 19:16 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-03 11:45:23 UTC
oVirt Team: Network
Embargoed:
ylavi: ovirt-3.6.z?
pm-rhel: blocker?
rule-engine: planning_ack?
djasa: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
UP exception and API example (3.42 KB, text/plain)
2015-10-02 13:13 UTC, David Jaša
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1293294 0 high CLOSED cannot add NIC using user portal (but it works in Admin portal) 2021-02-22 00:41:40 UTC

Internal Links: 1293294

Description David Jaša 2015-10-02 13:13:25 UTC
Created attachment 1079434 [details]
UP exception and API example

Description of problem:
Users in user portal can't assign vNIC profiles in spite of having VnicProfileUser permission

Version-Release number of selected component (if applicable):
3.6.0-15 / rhevm-backend-3.6.0-0.18.el6.noarch

How reproducible:
always on my setup

Steps to Reproduce:
1. create a separate VM network, make sure that Everyone has
    VnicProfileUser permission
2. as a power user, add a nic with <empty> vnic profile to the VM
3. try to assign the network profile to the VM

Actual results:
  * userportal:
    * "SEVERE: Uncaught exception" in Error Console on open of Edit NIC dialog
    * Profile is empty, as is it's drop-down menu
    * Type, Custom MAC address and Link state are disabled
  * filtered API returns "detail" : "Network not found in cluster"

Expected results:
Users are able to assign profiles as in previous 3.6 builds & releases (such as 3.5 --> Regression)

Additional info:
*

Comment 3 Alona Kaplan 2015-10-07 16:56:45 UTC
1. David, you wrote- "Users in user portal can't assign vNIC profiles in spite of having VnicProfileUser permission".
Do you mean the current user/everyone has VnicProfileUser role on the selected profile?
Can you please attach a screenshot of the webadmin->configure dialog, when VnicProfileUser is selected.

2. Also attach a screenshot of the edit vnic dialog- with the vnic profiles list opened.

3. Try to add a new vnic profile to the desired network, make sure the "Allow all users to use this Profile" checkbox of the profile is checked.
Do you manage to assign this new profile to the vnic?

4. Please attach the engine logs to the bug.

Comment 4 David Jaša 2015-10-08 11:31:16 UTC
REST API part of the bug is gone, I can successfully:
  * create a nic: empty or with network or with vnic_profile specified
  * update a network-/profileless nic with either a network or a profile

So the issue is now only in User Portal (whose behaviour didn't change) as of versions:e
rhevm-backend-3.6.0-0.18.el6.noarch
rhevm-userportal-3.6.0-0.18.el6.noarch
rhevm-webadmin-portal-3.6.0-0.18.el6.noarch
rhevm-restapi-3.6.0-0.18.el6.noarch

Comment 5 Barak 2015-10-08 13:02:50 UTC
this happens only on the reporter's environment and we can't reproduce it.
Hence moving to 3.6.1

Comment 7 Alona Kaplan 2015-11-18 08:37:06 UTC
I cannot reproduce the bug.

David, is it still reproducible on your environment?

Meni, can your team try to reproduce it?

Comment 8 Michael Burman 2015-11-18 09:56:17 UTC
Hi Alona, David

I can't reproduce this report on  3.6.0.3-0.1.el6

Comment 9 David Jaša 2015-11-18 13:38:41 UTC
(In reply to Alona Kaplan from comment #7)
> I cannot reproduce the bug.
> 
> David, is it still reproducible on your environment?
> 

Yes, it is. I can't choose even <Empty> profile for new NICs. The environment is upgraded to latest build (3.6.0-20) with these versions:
rhevm-backend-3.6.0.3-0.1.el6.noarch
rhevm-webadmin-portal-3.6.0.3-0.1.el6.noarch
rhevm-userportal-3.6.0.3-0.1.el6.noarch

Comment 10 Alona Kaplan 2015-11-19 08:25:21 UTC
Since we cannot reproduce it I'm moving it to 3.6.2.
David, please check if it is still happening in 3.6.1.

Comment 12 David Jaša 2015-12-23 18:12:18 UTC
Update: in 3.6.2-2 build (rhevm-backend-3.6.2-0.1.el6.noarch), granting VnicProfile to Everyone on logical network made things work, even after removal of that permission. Now all the profiles created with "Public" or "Allow all users to use this Profile" are available for choice.

I'd close as CURRENTRELEASE if new installs are not affected (as comments #c7, #c8 and #c10 suggest).


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