cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhinav Roy (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CLOUDSTACK-2084) [UI][Dedicated Resources : Public IP Addresses per tenant]When an IP range is dedicated to a project account, UI doesn't recognise that account and displays "add account" instead of the account name.
Date Mon, 24 Jun 2013 09:30:20 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Abhinav Roy reopened CLOUDSTACK-2084:
-------------------------------------


Re-opening the issue as it still exists...........

Hi Jessica,

When I refer to the Project account here then it is not the account under which the project
is created. It is actually an entry for that particular project in the accounts table as an
account. Then we dedicate ip address range to that account and observed this issue.

Steps :
==================
1. Deploy an advanced networking setup and create an account A1 
2. Now login as user of account A1 and create a project P1. This leads to the creation of
a project account AP1. 

Take a Look at this Table,

mysql> select * from account;
+----+-----------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
| id | account_name    | uuid                                 | type | domain_id | state 
 | removed | cleanup_needed | network_domain | default_zone_id | default |
+----+-----------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
|  1 | system          | 277b589c-d96e-11e2-a5a9-fef34996d384 |    1 |         1 | enabled
| NULL    |              0 | NULL           |            NULL |       1 |
|  2 | admin           | 277bdfec-d96e-11e2-a5a9-fef34996d384 |    1 |         1 | enabled
| NULL    |              0 | NULL           |            NULL |       1 |
|  3 | user            | 0206bf87-08aa-439e-844e-23864e18a913 |    0 |         1 | enabled
| NULL    |              0 | NULL           |            NULL |       0 |
|  4 | ec2-user        | 5c4a0a2b-5acb-449a-ae64-405e7c5fcc43 |    0 |         1 | enabled
| NULL    |              0 | NULL           |            NULL |       0 |
|  5 | u1d1            | e1b20121-c97d-45ce-855f-1dcb8eb8ec68 |    0 |         2 | enabled
| NULL    |              0 | NULL           |            NULL |       0 |
|  6 | PrjAcct-admin-1 | e7b5ee59-b0b3-4363-8435-b4e210138edd |    5 |         1 | enabled
| NULL    |              0 | NULL           |            NULL |       0 |
+----+-----------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
6 rows in set (0.00 sec)


Here the entry no 6 is a system generated account for a project as soon as a project is created,
then try to dedicate an ip range to this account

The issue will be seen.
                
> [UI][Dedicated Resources : Public IP Addresses per tenant]When an IP range is dedicated
to a project account, UI doesn't recognise that account and displays "add account" instead
of the account name.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2084
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2084
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: UI
>    Affects Versions: 4.2.0
>            Reporter: Abhinav Roy
>            Assignee: Jessica Wang
>             Fix For: 4.2.0
>
>         Attachments: UI-CS2084.jpg
>
>
> Steps :
> ===============================
> 1. Deploy an advanced networking setup and create an account A1
> 2. Now login as user of account A1 and create a project P1. This leads to the creation
of a project account AP1.
> 3. Now dedicate an IP range R1 to this project account AP1.
> Expected behaviour :
> ===============================
> 1. UI should display the project account name to which the IP range is dedicated.
> Observed behaviour :
> ===============================
> 1. UI doesn't show the project account name, instead it displays "add account" in that
tab
> Reason :
> ==============================
> when we dedicate an IP range to a project account through the following API
> http://10.102.192.125:8096/client/api?command=dedicatePublicIpRange&id=9&domainid=4&account=PrjAcct-dom11-user-project-4
> We get this response :
> <dedicatepubliciprangeresponse cloud-stack-version="4.2.0-SNAPSHOT">
> <vlan>
> <id>f24eeee0-5b93-4b8b-979d-1d3d95787a66</id>
> <forvirtualnetwork>true</forvirtualnetwork>
> <zoneid>004140d7-4270-45b1-86b1-2308af1de434</zoneid>
> <vlan>untagged</vlan>
> <domainid>efceb0a6-1ac9-4cb7-8d10-26ab664b53d9</domainid>
> <domain>dom11</domain>
> <gateway>10.102.192.1</gateway>
> <netmask>255.255.252.0</netmask>
> <startip>10.102.195.61</startip>
> <endip>10.102.195.70</endip>
> <networkid>40a04ee7-246f-4c80-bc18-13c68805b464</networkid>
> <projectid>1027c082-fadd-44c2-a1e8-1397b10b55bc</projectid>
> <project>dom11-user-project</project>
> <physicalnetworkid>278c8249-0161-4a5a-bb24-91d4fa9f6e97</physicalnetworkid>
> </vlan>
> </dedicatepubliciprangeresponse>
> In this response we don't see the account name, instead we see the project id and the
project name. Hence the UI filter doesn't recognise the account name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message