Hi Mice, The usage is correct but the total is wrong, FYI, my previous total ip is 10 now i got 20 ip, but it report only 10 . is it save to modify 'total_capacity' on 'op_host_capacity' table ?
Regards, Heince On 13-Aug-2012, at 10:04 PM, Mice Xia wrote: > Heince, > > Total public IP number should be equal to total count of rows in > user_ip_address; while a background thread sums it up and update to > op_host_capacity periodically (interval ' capacity.check.period') > You can check these two tables and see if their values are correct. > > Regards > Mice > > -----Original Message----- > From: heince kurniawan [mailto:[email protected]] > Sent: Monday, August 13, 2012 8:43 PM > To: [email protected] > Subject: Re: change / replace public ip range > > @ChunFeng, > > I didn't have vms in 'expunge' state and system vms are destroyed immediately. > > @Mice > I did the DB change and system vms can apply new ip, thanks for the tips, but > public ip capacity still showing previous value thus produce wrong total ip, > do you know how to trigger / run the updates ? > > Regards, > Heince > > > On 13-Aug-2012, at 6:20 PM, Chunzi Oks wrote: > >> For this error msg : >> >> "Can't delete the network, not all user vms are expunged. Vm >> VM[User|i-2-7-VM] is in Stopped state" >> >> I am not sure this take effects against systemVM , but you can try by >> changing VM expunge interval seconds in global config : >> expunge.delay =1 (sec) >> expunge.interval=1(sec) >> >> After change the interval value , such as 1 secs , the destroyed VM will >> immediately go into expunge status . >> >> >> Regards, >> >> Tian ChunFeng >> >> >> >> On Mon, Aug 13, 2012 at 4:16 PM, Mice Xia >> <[email protected]>wrote: >> >>> In database there is a table 'user_ip_address' for public IP address >>> allocation, maybe you can try changing its address and restart network on >>> UI. >>> There is also a table 'vlan', and you may want to change its description >>> to reflect your new IP range in UI. >>> >>> It seems to work for trunk, not sure if it's applicable for 3.0.2. >>> >>> Caution: >>> Don’t forget to backup your database (or everything) before you try this >>> workaround. >>> >>> Regards >>> Mice >>> >>> -----Original Message----- >>> From: heince kurniawan [mailto:[email protected]] >>> Sent: Monday, August 13, 2012 12:28 PM >>> To: [email protected] >>> Subject: change / replace public ip range >>> >>> Hi, >>> >>> I'm using CS 3.0.2 advanced networking , just changed our ISP with new IP >>> ranges, and I'm trying to change the previous ip assignment. >>> >>> This is what i've done: >>> - stop all vms >>> - maintenance all hosts >>> - destroy router and system vms >>> - disable zone >>> >>> but i still can't delete the public ip, status : "The IP range can't be >>> deleted because it has allocated public IP addresses." >>> >>> Even though i have destroyed router, the guest network mapping to public >>> ip is still on state 'allocated', i can't delete the guest network : >>> "Can't delete the network, not all user vms are expunged. Vm >>> VM[User|i-2-7-VM] is in Stopped state" >>> >>> And i don't want to destroy all the vms, any workaround ? >>> >>> Bottom line: i just need to change the public ip range without destroying >>> any user's vm. >>> >>> Regards, >>> Heince >>> >
