Bug 1535376
Summary: | Unable to create / add new Subnet - User 'admin' is not authorized to access 'Cloud Tenant' record id '0' [cloud_subnet/create] | ||
---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Jan Krocil <jkrocil> |
Component: | UI - OPS | Assignee: | Petr Blaho <pblaho> |
Status: | CLOSED DUPLICATE | QA Contact: | Ola Pavlenko <opavlenk> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 5.8.0 | CC: | cpelland, hkataria, jkrocil, lavenel, maufart, mpovolny, obarenbo, pblaho, sseago |
Target Milestone: | GA | ||
Target Release: | 5.8.3 | ||
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-01-24 16:39:06 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | Openstack | Target Upstream Version: | |
Embargoed: |
Description
Jan Krocil
2018-01-17 09:23:29 UTC
I'm unable to reproduce this in my development environment. I can create a subnet with no errors. The log for the POST request is somewhat suspicious, though: [----] I, [2018-01-17T04:18:37.253561 #2224:bc3824] INFO -- : Parameters: {"name"=>"asd", "ems_id"=>"", "cloud_tenant_id"=>"", "network_id"=>"", "dhcp_enabled"=>"true", "network_protocol"=>"ipv4", "gateway"=> "asdasd", "cidr"=>"sdsadas", "button"=>"add", "id"=>"new"} When I tried using these values for cidr, gateway, etc. I got the expected validation error (sdsadas is not a valid cidr). However, this post is missing ems_id, cloud_tenant_id, and network_id. I could not submit this way, since the 'Add' button was disabled until I'd chosen the EMS, Tenant, and Network. It sounds like at one point the logic around enabling and disabling the 'Add' button was not working properly. Is this still happening? It looks like this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1533011 That's why we're not seeing it on either the 5.8.3 branch or on master. With https://bugzilla.redhat.com/show_bug.cgi?id=1533011 the reported bug was that the "Network" field was missing -- Cloud Tenant was missing as well. This bug reported here is happening due to the missing fields. With the fix in that bug, I'm unable to submit the form until selecting a Tenant and Network, and when I do select them, I'm able to create subnets. |