A lot of networks :

mysql> select * from networks where  broadcast_uri ='vlan://2013' ;
+-----+-------------------+-------------------+--------------+-----------------------+---------------+----------------+-------------------+------+---------------------+---------------------+----------------+-----
--------------+---------+---------+-----------+------------+------+------+-----------+------------+------------+---------------------+----------------+---------------------+---------------------+--------------------------------------+------------------+-------------------+----------+--------+-------------+----------+
| id | name | display_text | traffic_type | broadcast_domain_type | broadcast_uri | gateway | cidr | mode | network_offering_id | physical_network_id | data_center_id | guru _name | state | related | domain_id | account_id | dns1 | dns2 | guru_data | set_fields | guest_type | network_domain | reservation_id | created | removed | uuid | restart_required | specify_ip_ranges | acl_type | vpc_id | ip6_gateway | ip6_cidr |
+-----+-------------------+-------------------+--------------+-----------------------+---------------+----------------+-------------------+------+---------------------+---------------------+----------------+-----
--------------+---------+---------+-----------+------------+------+------+-----------+------------+------------+---------------------+----------------+---------------------+---------------------+--------------------------------------+------------------+-------------------+----------+--------+-------------+----------+
| 217 | QUESO_PRP-ADMIN | QUESO_PRP-ADMIN | Guest | Vlan | vlan://2013 | 10.200.245.1 | 10.200.245.0/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 217 | 6 | 7 | NULL | NULL | NULL | 0 | Shared | admin-prp.cloud.mbs | NULL | 2013-02-15 11:07:50 | 2013-07-30 07:34:13 | 217 | 0 | 1 | Account | NULL | NULL | NULL | | 258 | NIMBUS_PRP-ADMIN | NIMBUS_PRP-ADMIN | Guest | Vlan | vlan://2013 | 10.200.245.1 | 10.200.245.0/27 | Dhcp | 7 | 201 | 2 | Dire ctNetworkGuru | Destroy | 258 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-prp.cloud.mbs | NULL | 2013-09-16 09:17:25 | 2014-03-05 15:11:42 | 628b6cf1-b1dc-45 3c-8336-5844dcc7c85d | 0 | 1 | Domain | NULL | NULL | NULL | | 260 | NIMBUS_PRP-ADMIN | NIMBUS_PRP-ADMIN | Guest | Vlan | vlan://2013 | 10.200.245.1 | 10.200.245.0/27 | Dhcp | 7 | 201 | 2 | Dire ctNetworkGuru | Destroy | 260 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-prp.cloud.mbs | NULL | 2013-09-16 15:56:00 | 2014-03-05 15:11:42 | 20a910a6-fb89-47 d1-8d6d-3e72c8168fd8 | 0 | 1 | Domain | NULL | NULL | NULL | | 359 | SARGE_ITG-ADMIN | SARGE_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.65 | 10.200.244.64/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 359 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-01-15 13:19:47 | 2014-03-05 11:26:08 | 3cefddd5-3b7c-4f 72-9da8-a3abc5d2275f | 0 | 1 | Domain | NULL | NULL | NULL | | 362 | SARGE_ITG-ADMIN | SARGE_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.65 | 10.200.244.64/26 | Dhcp | 7 | 202 | 3 | Dire ctNetworkGuru | Destroy | 362 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-01-15 13:19:48 | 2014-03-05 11:26:08 | 9f27e7e7-a00a-40 2f-821b-66154849fea8 | 0 | 1 | Domain | NULL | NULL | NULL | | 396 | CLOUD_ITG-ADMIN | CLOUD_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 396 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-02-28 15:36:23 | 2014-03-05 11:26:56 | 9655256c-42aa-4a 91-b472-64f67a641f2f | 0 | 1 | Domain | NULL | NULL | NULL | | 398 | CLOUD_ITG-ADMIN | CLOUD_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.246.65 | 10.200.246.64/26 | Dhcp | 7 | 202 | 3 | Dire ctNetworkGuru | Destroy | 398 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-02-28 15:36:23 | 2014-03-05 11:26:56 | 557e93bd-329b-41 83-9427-0989e9c4641a | 0 | 1 | Domain | NULL | NULL | NULL | | 408 | BATMAN_ITG-ADMIN | BATMAN_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 408 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-03 13:25:25 | 2014-03-05 11:23:43 | bcfc4684-792f-48 43-bae3-2a99d815d570 | 0 | 1 | Domain | NULL | NULL | NULL | | 410 | BATMAN_ITG-ADMIN | BATMAN_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.246.65 | 10.200.246.64/26 | Dhcp | 7 | 202 | 3 | Dire ctNetworkGuru | Destroy | 410 | 1 | 1 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-03 13:25:25 | 2014-03-05 11:23:43 | 421a3b9d-c394-4d d2-9c55-c295b89fefba | 0 | 1 | Domain | NULL | NULL | NULL | | 433 | MENTOS_ITG-ADMIN | MENTOS_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 433 | 70 | 74 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-03 14:50:24 | 2014-03-03 14:55:03 | f6911818-7182-4e ae-975d-900ff8149863 | 0 | 1 | Account | NULL | NULL | NULL | | 435 | ANDROID_ITG-ADMIN | ANDROID_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 435 | 71 | 75 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-03 14:56:01 | 2014-03-03 15:38:35 | 987cbb0a-55ce-48 d7-b13b-838b563004a7 | 0 | 1 | Account | NULL | NULL | NULL | | 439 | GAIA_ITG-ADMIN | GAIA_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 439 | 73 | 77 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-03 15:40:18 | 2014-03-05 10:16:22 | 2b1d5733-76e0-4a bf-b72a-a54646bc8271 | 0 | 1 | Account | NULL | NULL | NULL | | 441 | SCRATCH_ITG-ADMIN | SCRATCH_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 441 | 74 | 78 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-05 10:33:19 | 2014-03-05 10:34:44 | 3d9baa64-2863-44 1a-914c-44a3ff7098eb | 0 | 1 | Account | NULL | NULL | NULL | | 445 | POCKET_ITG-ADMIN | POCKET_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 445 | 76 | 80 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-05 14:10:12 | 2014-03-05 14:33:47 | 5f3cea91-5822-4e 5c-a664-c8a4b98a0304 | 0 | 1 | Account | NULL | NULL | NULL | | 449 | ARTY_ITG-ADMIN | ARTY_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 449 | 78 | 82 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-05 14:39:51 | 2014-03-05 15:46:39 | dd84e210-89bc-4d 20-b68f-782e22d56ccc | 0 | 1 | Account | NULL | NULL | NULL | | 454 | JANE_ITG-ADMIN | JANE_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 454 | 82 | 86 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-05 16:08:01 | 2014-03-10 08:53:55 | fb1d68ad-c6b5-40 fb-abab-afb0e45abbc4 | 0 | 1 | Account | NULL | NULL | NULL | | 456 | ZAFIRA_ITG-ADMIN | ZAFIRA_ITG-ADMIN | Guest | Vlan | vlan://2013 | 10.200.244.129 | 10.200.244.128/26 | Dhcp | 7 | 200 | 1 | Dire ctNetworkGuru | Destroy | 456 | 83 | 87 | NULL | NULL | NULL | 0 | Shared | admin-dev.cloud.mbs | NULL | 2014-03-10 13:32:58 | 2014-03-12 10:47:24 | 5b555c8d-4437-45 7a-a9c2-6421c20ee6fa | 0 | 1 | Account | NULL | NULL | NULL |
+-----+-------------------+-------------------+--------------+-----------------------+---------------+----------------+-------------------+------+---------------------+---------------------+----------------+-----
--------------+---------+---------+-----------+------------+------+------+-----------+------------+------------+---------------------+----------------+---------------------+---------------------+-----------------
---------------------+------------------+-------------------+----------+--------+-------------+----------+

all seems destroyed in db (and in UI too) :

mysql> select * from networks where broadcast_uri ='vlan://2013' and state <> 'Destroy' ;
Empty set (0.00 sec)


Le 12/03/2014 13:12, Wei ZHOU a écrit :
select * from networks where  broadcast_uri ='vlan://2013'


2014-03-12 11:58 GMT+01:00 <nicolas.lamira...@orange.com>:

I've got the same error during creation of a network :

http://pastebin.com/aXryp0jj

Le 11/03/2014 15:13, nicolas.lamira...@orange.com a écrit :

  Hi,
Nobody has ideas for what concerns ?

Le 10/03/2014 17:32, LAMIRAULT Nicolas MBS a écrit :

Hi,

I creates a network using API.
Then, I try to creates a new IP Range associated to this network. I've
got an error. This is the output logs in this paste [1]

Searching into the Cloudstack code, I find that :

if (vlanId.equals(vlan.getVlanTag()) &&
newVlanSubnet.equals(otherVlanSubnet)) {
        if (NetUtils.ipRangesOverlap(startIP, endIP, otherVlanStartIP,
otherVlanEndIP)) {
              throw new InvalidParameterValueException("The IP range with
tag: " + vlan.getVlanTag()
                      + " already has IPs that overlap with the new range.
Please specify a different start IP/end IP.");
        }
        if (!vlanGateway.equals(otherVlanGateway)) {
             throw new InvalidParameterValueException("The IP range with
tag: " + vlan.getVlanTag() + " has already been added with gateway " +
otherVlanGateway
                       + ". Please specify a different tag.");
        }
}

According to database, there is 6 VLANs with same gateway :

mysql> select * from vlan where  vlan_gateway = '10.200.244.129';


+-----+---------+----------------+-----------------+--------
-----------------------+----------------+----------------+--
----------+--------------------------------------+----------
-----------+-------------+----------+-----------+
| id  | vlan_id | vlan_gateway   | vlan_netmask    | description
               | vlan_type      | data_center_id | network_id | uuid
                              | physical_network_id | ip6_gateway |
ip6_cidr | ip6_range |
+-----+---------+----------------+-----------------+--------
-----------------------+----------------+----------------+--
----------+--------------------------------------+----------
-----------+-------------+----------+-----------+
| 114 | 2046    | 10.200.244.129 | 255.255.255.192 |
10.200.244.187-10.200.244.190 | DirectAttached |              1 |
     335 | 9339bbfb-c6e0-43b8-94e1-3b1c0b15d3ed |                 200 |
NULL        | NULL     | NULL      |
| 117 | 2046    | 10.200.244.129 | 255.255.255.192 |
10.200.244.187-10.200.244.190 | DirectAttached |              3 |
     338 | e39717b8-913b-44ba-85cb-449ad5cd8c9a |                 202 |
NULL        | NULL     | NULL      |
| 141 | 2037    | 10.200.244.129 | 255.255.255.192 |
10.200.244.154-10.200.244.158 | DirectAttached |              1 |
     365 | 658b4dbd-295e-4083-9ab2-6a73b324c21a |                 200 |
NULL        | NULL     | NULL      |
| 144 | 2037    | 10.200.244.129 | 255.255.255.192 |
10.200.244.186-10.200.244.190 | DirectAttached |              3 |
     368 | d91846f5-a5c7-40f6-9d59-0a2bc04563c2 |                 202 |
NULL        | NULL     | NULL      |
| 172 | 2013    | 10.200.244.129 | 255.255.255.192 |
10.200.244.185-10.200.244.190 | DirectAttached |              1 |
     396 | f7bd1314-5376-4fa5-b131-89fc37ea480d |                 200 |
NULL        | NULL     | NULL      |
| 182 | 2013    | 10.200.244.129 | 255.255.255.192 |
10.200.244.128-10.200.244.128 | DirectAttached |              1 |
     408 | 8c72cad9-2305-4105-8c26-17cc81af82c9 |                 200 |
NULL        | NULL     | NULL      |
+-----+---------+----------------+-----------------+--------
-----------------------+----------------+----------------+--
----------+--------------------------------------+----------
-----------+-------------+----------+-----------+
6 rows in set (0.00 sec)

But all theses VLANs are associated to 'DESTROY' networks :


mysql> select * from networks where id in (335,338,365,368,396,408);
+-----+------------------+------------------+--------------+
-----------------------+---------------+----------------+---
----------------+------+---------------------+--------------
-------+----------------+-------------------+---------+-----
----+-----------+------------+------+------+-----------+----
--------+------------+---------------------+----------------
+---------------------+---------------------+---------------
-----------------------+------------------+-----------------
--+----------+--------+-------------+----------+
| id  | name             | display_text     | traffic_type |
broadcast_domain_type | broadcast_uri | gateway        | cidr
       | mode | network_offering_id | physical_network_id | data_center_id
| guru_name         | state   | related | domain_id | account_id | dns1
| dns2 | guru_data | set_fields | guest_type | network_domain      |
reservation_id | created             | removed             | uuid
                              | restart_required | specify_ip_ranges |
acl_type | vpc_id | ip6_gateway | ip6_cidr |
+-----+------------------+------------------+--------------+
-----------------------+---------------+----------------+---
----------------+------+---------------------+--------------
-------+----------------+-------------------+---------+-----
----+-----------+------------+------+------+-----------+----
--------+------------+---------------------+----------------
+---------------------+---------------------+---------------
-----------------------+------------------+-----------------
--+----------+--------+-------------+----------+
| 335 | PRS_ITG-ADMIN    | PRS_ITG-ADMIN    | Guest        | Vlan
               | vlan://2046   | 10.200.244.129 | 10.200.244.128/26 |
Dhcp
|                   7 |                 200 |              1 |
DirectNetworkGuru | Destroy |     335 |         1 |          1 | NULL |
NULL | NULL      |          0 | Shared     | admin-dev.cloud.mbs | NULL
              | 2014-01-13 15:43:35 | 2014-03-05 11:26:26 |
8ef8ae2b-c563-40ce-9255-cce3f7728e98 |                0 |
      1 | Domain   |   NULL | NULL        | NULL     |
| 338 | PRS_ITG-ADMIN    | PRS_ITG-ADMIN    | Guest        | Vlan
               | vlan://2046   | 10.200.244.129 | 10.200.244.128/26 |
Dhcp
|                   7 |                 202 |              3 |
DirectNetworkGuru | Destroy |     338 |         1 |          1 | NULL |
NULL | NULL      |          0 | Shared     | admin-dev.cloud.mbs | NULL
              | 2014-01-13 15:43:36 | 2014-03-05 11:26:26 |
31e59134-fa3f-4387-ad75-f1006e0517f8 |                0 |
      1 | Domain   |   NULL | NULL        | NULL     |
| 365 | SARGE_PRP-ADMIN  | SARGE_PRP-ADMIN  | Guest        | Vlan
               | vlan://2037   | 10.200.244.129 | 10.200.244.128/26 |
Dhcp
|                   7 |                 200 |              1 |
DirectNetworkGuru | Destroy |     365 |         1 |          1 | NULL |
NULL | NULL      |          0 | Shared     | admin-prp.cloud.mbs | NULL
              | 2014-01-15 14:53:51 | 2014-03-05 11:26:08 |
2f987f74-c8e1-45f9-b1d9-dfa5425a4398 |                0 |
      1 | Domain   |   NULL | NULL        | NULL     |
| 368 | SARGE_PRP-ADMIN  | SARGE_PRP-ADMIN  | Guest        | Vlan
               | vlan://2037   | 10.200.244.129 | 10.200.244.128/26 |
Dhcp
|                   7 |                 202 |              3 |
DirectNetworkGuru | Destroy |     368 |         1 |          1 | NULL |
NULL | NULL      |          0 | Shared     | admin-prp.cloud.mbs | NULL
              | 2014-01-15 14:53:52 | 2014-03-05 11:26:08 |
20a0fbb7-b307-42e8-a44a-42503610e658 |                0 |
      1 | Domain   |   NULL | NULL        | NULL     |
| 396 | CLOUD_ITG-ADMIN  | CLOUD_ITG-ADMIN  | Guest        | Vlan
               | vlan://2013   | 10.200.244.129 | 10.200.244.128/26 |
Dhcp
|                   7 |                 200 |              1 |
DirectNetworkGuru | Destroy |     396 |         1 |          1 | NULL |
NULL | NULL      |          0 | Shared     | admin-dev.cloud.mbs | NULL
              | 2014-02-28 15:36:23 | 2014-03-05 11:26:56 |
9655256c-42aa-4a91-b472-64f67a641f2f |                0 |
      1 | Domain   |   NULL | NULL        | NULL     |
| 408 | BATMAN_ITG-ADMIN | BATMAN_ITG-ADMIN | Guest        | Vlan
               | vlan://2013   | 10.200.244.129 | 10.200.244.128/26 |
Dhcp
|                   7 |                 200 |              1 |
DirectNetworkGuru | Destroy |     408 |         1 |          1 | NULL |
NULL | NULL      |          0 | Shared     | admin-dev.cloud.mbs | NULL
              | 2014-03-03 13:25:25 | 2014-03-05 11:23:43 |
bcfc4684-792f-4843-bae3-2a99d815d570 |                0 |
      1 | Domain   |   NULL | NULL        | NULL     |
+-----+------------------+------------------+--------------+
-----------------------+---------------+----------------+---
----------------+------+---------------------+--------------
-------+----------------+-------------------+---------+-----
----+-----------+------------+------+------+-----------+----
--------+------------+---------------------+----------------
+---------------------+---------------------+---------------
-----------------------+------------------+-----------------
--+----------+--------+-------------+----------+


I don't really understand the error.
Thanks for any help
Regards.


[1] : http://pastebin.com/KfSaH1zM



--
Nicolas Lamirault

____________________________________________________________
_____________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez
recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme
ou falsifie. Merci.

This message and its attachments may contain confidential or privileged
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and
delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have
been modified, changed or falsified.
Thank you.




--
Nicolas Lamirault

____________________________________________________________
_____________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez
recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou
falsifie. Merci.

This message and its attachments may contain confidential or privileged
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and
delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been
modified, changed or falsified.
Thank you.





--
Nicolas Lamirault

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.

Reply via email to