On 6/18/12 6:36 AM, "Diego Spinola Castro" <spinolacas...@gmail.com> wrote:

>Hi, i have a vsphere and xenserver cluster in same pod with cs 2.2.13.
>
>Looking in resources dashboard i figured out that there a lot of private
>ips allocated and it is incompatible with systemvm's number.
>
>i don't know what caused it but op_dc_ipaddress_alloc has at least three
>private ip for system vm.
>
>
>mysql> select * from op_dc_ip_address_alloc where nic_id = 269;
>+-----+---------------+----------------+--------+--------+----------------
>----------------------+---------------------+-------------+
>| id  | ip_address    | data_center_id | pod_id | nic_id |
>reservation_id                       | taken               | mac_address |
>+-----+---------------+----------------+--------+--------+----------------
>----------------------+---------------------+-------------+
>| 125 | 10.16.140.164 |              1 |      1 |    269 |
>c1ea70fc-ed28-4c25-b2c9-ac8c4b7abf88 | 2012-05-16 03:43:59 |         125 |
>| 151 | 10.16.140.190 |              1 |      1 |    269 |
>d31d08dc-e3dc-44a5-ba65-fe5984e72a9e | 2012-05-08 18:50:07 |         151 |
>| 160 | 10.16.140.199 |              1 |      1 |    269 |
>019d4b39-534b-4a6e-a02f-99618f20b96a | 2012-06-09 15:54:10 |         160 |
>+-----+---------------+----------------+--------+--------+----------------
>----------------------+---------------------+-------------+
>
>
>
>Any thoughts?
>



Diego, looks similar to this problem:

http://bugs.cloudstack.org/browse/CS-14433 - multiple ip addresses are
allocated for the same nic.



The bug was supposed to be fixed in 3.0.2 build. I see that you are in
2.2.13, so here is the way to workaround the problem:


* verify which ip address is really used by nic id=269:

Select ip4_address from nics where id=269

* mark all the rest of the private ips as free

Update op_dc_address_alloc set nic_id=null, reservation_id=null,
taken=null where id in (list of ids)



-Alena.

Reply via email to