[
https://issues.apache.org/jira/browse/CLOUDSTACK-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
angeline shen reopened CLOUDSTACK-3307:
---------------------------------------
1. test case: addUCSmanager with correct credentials multiple times.
result: dialog: duplicate UCS manager. url[10.223.184.2] is used by
another UCS manager already
PASS
2. test case: addUCSmanager with incorrect credentials multiple times - IP,
username, password
result: dialog: cannot get cookie
DB: entry added to ucs_manager
mysql> select * from ucs_manager;
+----+--------------------------------------+---------+------------+---------------+----------+----------------------------------+
| id | uuid | zone_id | name | url
| username | password |
+----+--------------------------------------+---------+------------+---------------+----------+----------------------------------+
| 1 | e17249fa-edfe-460c-a6e5-67e539976789 | 1 | ucsmanager |
10.223.184.2 | admin | 1GE4BEd5GNCzZDEqo5wXb+Z7AUCH8j7G |
| 2 | b8339971-7caf-4049-8313-0c425c2e0b35 | 1 | u2 |
10.223.184.3 | admin | q/spkOsltim3eIQV2gL//jRO1IOlSOki |
| 3 | 4307860a-1332-46d1-af6d-1ac0951bfb74 | 1 | u3 |
10.223.183.99 | who | J6iZR5ZrjSZ4Pfa8ngWxKw== |
4 | 1b6168d0-c899-4b04-94be-ee63f5d53631 | 1 | u4 |
10.223.195.113 | whoami | VecoTjJPGGr+4mcTkZQkP7yi7nLy76Rc |
+----+--------------------------------------+---------+------------+---------------+----------+----------------------------------+
> UCS:DB: Same UCS manager can be added multiple times
> ----------------------------------------------------
>
> Key: CLOUDSTACK-3307
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3307
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: UCS
> Affects Versions: 4.2.0
> Environment: Master with UCS and Basic Baremetal
> Reporter: Parth Jagirdar
> Assignee: frank zhang
> Priority: Critical
> Fix For: 4.2.0
>
>
> Same UCS manager can be added multiple times to a Zone with multiple
> redundant entries in database.
> Observe below table; Upon adding a UCS manager with incorrect credentials;
> API error out with cannot get the cookie; however it still adds an entry into
> the database.
> mysql> select * from ucs_manager;
> +----+--------------------------------------+---------+------------+--------------+----------+----------------+
> | id | uuid | zone_id | name | url
> | username | password |
> +----+--------------------------------------+---------+------------+--------------+----------+----------------+
> | 1 | ec179fa5-a38c-4df0-a688-b89c29764b1d | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 2 | c14c6917-274b-47f1-b2f8-e7af767fe5c6 | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 3 | 10e7ef23-f9b9-49f4-aac5-8508eb882a52 | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 4 | be42a44f-4ae6-41ba-9e13-76a7707dcf5e | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 5 | b464511b-e961-4b65-9c9c-9cf5974f5cd1 | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 6 | dd669374-27f8-49d3-9425-498af6bbc16e | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 7 | 7e902e15-e634-41a9-9bed-d6134bb7a377 | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 8 | 1d6775c8-270a-461c-9b28-7b1b2acbbd5e | 2 | ucsmanager |
> 10.223.184.2 | aa | C1tr1x99 |
> | 9 | 4da9accc-eb7c-42fb-a23c-3c45716db1f5 | 2 | ucsmanager |
> 10.223.184.2 | admin | C1tr1x99 |
> | 10 | 55023c65-4470-4ee7-b264-f19cd4065c75 | 2 | ucsmanager |
> 10.223.184.2 | admin | wrong-password |
> +----+--------------------------------------+---------+------------+--------------+----------+----------------+
> 10 rows in set (0.00 sec)
--
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