cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3455) deleteDomain doesn't cleanup the domain level networks
Date Wed, 10 Jul 2013 22:37:48 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705176#comment-13705176
] 

ASF subversion and git services commented on CLOUDSTACK-3455:
-------------------------------------------------------------

Commit 2e0a62749e50f32e099097617d11e36bab718c31 in branch refs/heads/4.2 from [~alena1108]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=2e0a627 ]

CLOUDSTACK-3455: delete Shared networks of the domain when do domain deletion

                
> deleteDomain doesn't cleanup the domain level networks
> ------------------------------------------------------
>
>                 Key: CLOUDSTACK-3455
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3455
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>            Reporter: Alena Prokharchyk
>            Assignee: Alena Prokharchyk
>             Fix For: 4.2.0
>
>
> DeleteDomain doesn't clear the corresponding network resources. The problem happens because
the domain owner is stored in another table -
> network_domain_ref, and the createNetwork caller info (account_id, domain_id)
> gets stored in networks table. Here is the example of the network created in
> domain id=2 by the ROOT admin (who belongs to domain id=1):
> mysql> select id,uuid,name,domain_id from networks where id=204;
> +-----+--------------------------------------+--------+-----------+
> | id  | uuid                                 | name   | domain_id |
> +-----+--------------------------------------+--------+-----------+
> | 204 | 75e20ab4-e133-4c4b-a9be-cc54678ea819 | shared |         1 |
> +-----+--------------------------------------+--------+-----------+
> 1 row in set (0.00 sec)
> mysql> select * from domain_network_ref where network_id=204;
> +----+-----------+------------+------------------+
> | id | domain_id | network_id | subdomain_access |
> +----+-----------+------------+------------------+
> |  1 |         2 |        204 |                0 |
> +----+-----------+------------+------------------+
> But when delete is called for the domain, we try to locate all its networks by
> the network.domain_id reference, and as it always has domain_id=1 there, so the
> network is skipped from the deletion.
> The fix will be - when delete the network, query shared networks by domain_id
> based on the information present in domain_network_ref table.

--
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