anthony
37bae606d0
fixed string comparation
2011-05-06 11:04:03 -07:00
Frank
d43e6fef9c
Fix string comparsion issue
2011-05-06 10:24:32 -07:00
Alex Huang
d077caa0d2
Eliminate the initialize call if we know someone else is connecting to a host
2011-05-06 09:50:10 -07:00
Alex Huang
e132246f1b
make agent load size configurable
2011-05-06 09:12:59 -07:00
Alex Huang
02bd10ae09
make agent load size configurable
2011-05-06 09:11:47 -07:00
Alex Huang
1e797c6ecb
white space
2011-05-05 16:16:36 -07:00
anthony
385f6ed04b
typo fix
2011-05-05 14:35:26 -07:00
Alex Huang
36807a815d
bug 9741: somehow some of the removed code got back into the code path. Must have hit one undo too many.
2011-05-05 14:12:16 -07:00
Alex Huang
7c27864ba9
No Point in checking down hosts
2011-05-05 12:02:55 -07:00
alena
762730341a
bug 9745: Fixed security issue in listAccounts api call
...
status 9745: resolved fixed
2011-05-05 10:06:14 -07:00
alena
66d6e1259a
bug 9740: fixed DB upgrade for Direct Tagged networks in Advance zone
...
status 9740: resolved fixed
2011-05-05 09:28:15 -07:00
Alex Huang
9b784edec4
be more responsible if we decide the agent should not connect
2011-05-04 18:48:58 -07:00
Alex Huang
aa25cfa676
fixes bug with two agents connecting to the same host
2011-05-04 18:41:17 -07:00
Alex Huang
0008dfc3a9
Added code to prevent two management servers
2011-05-04 18:41:17 -07:00
alena
4128c82018
DB upgrade: Reverting partial commit
2011-05-04 18:24:49 -07:00
alena
ddb64dd196
Removed unused logging
2011-05-04 18:20:24 -07:00
alena
a9477be053
bug 9738: DB upgrade - fixed NPE happening during events migration
...
status 9738: resolved fixed
2011-05-04 18:18:42 -07:00
alena
04a344ce2a
Fixed bunch of DB upgrade bugs related with the fact that DB was manually upated in 2.1.x setup (some records were deleted from the DB)
2011-05-04 17:34:36 -07:00
alena
40bd77525f
bug 9734: update op_ha_work table in mysql file instead of java code
...
status 9734: resolved fixed
2011-05-04 15:34:50 -07:00
alena
e7033702be
bug 9734: remove records having non-existing hostId from op_ha_work table
...
status 9734: resolved fixed
2011-05-04 13:42:46 -07:00
alena
bac0fdb87f
DB upgrade: respect domain hierarchy when update resource_count for domain during the upgrade
2011-05-04 11:56:07 -07:00
alena
1ef546e588
bug 9564: 1) For all list commands set pageSize() to default.page.size if not specified 2) When pageSize is specified in the request, and it's more than default.page.size - throw an exception
...
status 9564: resolved fixed
Conflicts:
server/src/com/cloud/api/ApiDBUtils.java
server/src/com/cloud/api/ApiResponseHelper.java
server/src/com/cloud/api/ApiServer.java
server/src/com/cloud/server/ManagementServer.java
server/src/com/cloud/server/ManagementServerImpl.java
2011-05-04 10:22:29 -07:00
Murali Reddy
9a983d3bd8
bug 9720: 2.1.x to 2.2.x upgrade: need to create Domain level records in resource_count table
...
status 9720: resolved fixed
During DB upgrade evalute per domain resource counts and populate resource_count table
2011-05-04 19:28:27 +05:30
alena
85541705b6
bug 9722: db upgrade - when upgrade user_statistics, skip ExternalFirewall/ExternalLb records
...
status 9722: resolved fixed
2011-05-03 18:09:42 -07:00
alena
8f198b69f8
bug 9693: generate usage event when release Direct ip address.
...
status 9693: resolved fixed
2 more fixes with this commit:
* bug 9692 is fixed - we don't increment resource count when Direct ip address is allocated.
* as a part of 2.2.2->2.2.4 upgrade resource_count for public_ip records is recalculated - count only Virtual Ip addresses
2011-05-03 17:33:47 -07:00
Alex Huang
5acf721c80
bug 9615: Part of the HA cleanup
2011-05-03 16:34:24 -07:00
kishan
8c87c48486
bug 9678: update user statistics in cloud_usage. Send network usage command to routers of virtual network only
...
status 9678: resolved fixed
2011-05-04 02:37:07 +05:30
alena
6502171f39
bug 9663: do account permission check against the volume when create snapshot
...
status 9663: resolved fixed
2011-05-03 11:33:35 -07:00
alena
99badfd54c
Fixed NPE in listNetworks
2011-05-03 10:21:44 -07:00
alena
e3ed681be6
listNetworks: allow seeing Guest system network in Basic zone
2011-05-03 10:21:44 -07:00
alena
3e6cabc31b
Fixed the bug in listNetworks when isSystem parameter was ignored if it was specified along with account/domainId parameter
2011-05-03 10:21:44 -07:00
kishan
3daa9b0137
bug 9686,9676,9677: Create usage events for existing resources for port forwarding, load balancer and network offering usage
...
status 9686,9676,9677: resolved fixed
2011-05-03 20:03:29 +05:30
nit
76d48485a5
bug 9664: username parameter for API listuser should search for exact string
...
status 9664: resolved fixed
2011-05-03 13:07:21 +05:30
alena
96043d4326
bug 9688: remove orphaned lb/vm mappings as a part of db upgrade (there was a bug in 2.1.x when the LB rule was removed, but mapping was left in the DB)
...
status 9688: resolved fixed
To verify that the rule was removed:
* make sure that there is no record with lb id in load_balancer table
* verify that lb.delete event was generated for this rule
2011-05-02 18:52:50 -07:00
alena
5b28d4bf10
bug 9683: DB upgrade - generate usage_event for source nat ip addresses
...
status 9683: resolved fixed
2011-05-02 15:54:03 -07:00
prachi
d8a68a1083
Bug 9666 - hostId and spoolId overlap in op_host_capacity table
...
Changes:
- When a host connects, we check if it has a CPU and RAM entry in capacity table. If the entry is found, the values are updated if possible. If the entry is not found a new one is inserted.
- The searchCriteria used to check if CPU entry is present was wrong. We were passing in a criteria which did not specify capacityType. So for hostId >= 200, the serach would return capacity entries of storage pools also since poolIDs start from 200 onwards.
- Since an entry was found (although the wrong one), we tried to update it. But update does not happen since the capacity ranges dont match.
And a new insert for CPU also does not happen since an entry is found.
- So as a result CPU entries are never inserted in the table for hostIds >=200
- As a fix, corrected the search criteria.
- During VM deployment, when the entry is not found, we get a NPE. Added a null check to avoid that.
2011-05-02 15:33:10 -07:00
alena
3a5b185972
bug 9675: Usage DB upgrade - set missing fields for snapshot.create/snapshot.delete events
...
status 9675: resolved fixed
2011-05-02 15:17:00 -07:00
alena
14e857a978
bug 9674: Usage db upgrade - set resource_name for volume.create/volume.delete usage events
...
status 9674: resolved fixed
2011-05-02 14:29:54 -07:00
Alex Huang
cbc26756d8
bug 8745: we decided on not implementing revert on the agent because it really requires business logic above. Stop if the checkSsh doesn't work
2011-05-02 14:26:29 -07:00
alena
175fc53b53
bug 9672: usage db upgrade - set resource_id for NET.IPASSIGN/RELEASE events
...
status 9672: resolved fixed
2011-05-02 14:15:36 -07:00
alena
a225eb3c0e
bug 9682: DB upgrade - create vm.destroy event in usage_events table
...
status 9682: resolved fixed
2011-05-02 13:54:33 -07:00
alena
d8a4a5be52
bug 9658: added missing indexes to 2.1.x-2.2.x upgrade files
...
status 9658: resolved fixed
2011-05-01 12:50:26 -07:00
anthony
ad981cb245
misuse instanceName and name, which causes vm sync behavior weirdly
2011-04-29 19:01:21 -07:00
alena
b808604dde
bug 9623: set ha_enable to false for consoleProxy vms and service_offering.
...
status 9623: resolved fixed
Also set ram_size to 1024 for console proxy offering during the upgrade
2011-04-29 11:38:53 -07:00
Alex Huang
204370fa8b
bug 9643: connect pool is only for shared access
2011-04-29 11:05:56 -07:00
Alex Huang
124274ec80
Removed a potentially dangerous
2011-04-29 11:05:55 -07:00
alena
d4dc90d9fc
Fixed a bug in XmlApiDocReader
2011-04-29 10:16:28 -07:00
alena
3ea4b18311
bug 9638: fixed bunch of DB upgrade bugs
...
status 9638: resolved fixed
2011-04-28 18:18:56 -07:00
alena
5ad7730e06
Modify keys for security groups in java code instead of sql file (need to check if the key exists before dropping it)
2011-04-28 18:18:56 -07:00
keshav
14d280634e
Added a check for duplicate public networks.
2011-04-28 16:06:17 -07:00
Alex Huang
b273d74c35
bug 9456: added the host id that was already tried to avoid list. Added more debug logs in case that condition happens.
2011-04-28 14:43:44 -07:00
alena
9b799ae4b3
More logging to consoleProxy start command
2011-04-28 01:17:03 -07:00
alena
bd0259c59f
bug 9621: set addressFormat during NicProfile creation
...
status 9621: resolved fixed
2011-04-27 23:25:41 -07:00
alena
a4645ac925
bug 9621: dbUpgrade - set reservation strategy to be Create for Guest Nics in Basic zone
...
status 9621: resolved fixed
2011-04-27 22:45:29 -07:00
alena
a35088d545
Fixed upgrade from 2.1.9 to 2.2.x
2011-04-27 21:27:50 -07:00
alena
a9dded4d27
bug 9622: update mode for nics
...
status 9622: resolved fixed
2011-04-27 21:03:20 -07:00
anthony
2ba4f60a8b
bug 9619: handle two types of domr name
...
status 9619: resolved fixed
2011-04-27 18:44:05 -07:00
anthony
f890c49272
bug 9617: fixed snapshot upgrade from 223 to 224
...
status 9617: resolved fixed
2011-04-27 15:52:05 -07:00
Alex Huang
e8e9bbccfb
fixes a bug where management server has conflicts causes problems
2011-04-27 14:07:18 -07:00
Alex Huang
e66baae84e
bug 9610: Added VERSION table and related index change
2011-04-27 13:53:19 -07:00
Alex Huang
2c64193646
storage stats can be such that it doesn't work if one storage pool cannot be reached.
2011-04-27 13:53:19 -07:00
prachi
fc784f1530
Bug 9585 - Existing Data Disk is being destroyed and recreated on Stop and Start of a User VM.
...
Changes:
- When the ROOT volume of a VM is found to be READY, changed planner to reuse the pool for every volume(root or data) that is READY and that has a pool not in maintenance and not in avoid state
- If ROOT volume is not ready, we dont care about the DATA disk. Both would get re-allocated.
- When a pool is reused for a ready volume, Planner does not call storagepool allocators. And such volumes are not assigned a pool in the deployment destination returned by the planner. Accordingly StorageManager :: prepare method wont recreate these volumes since they are not mentioned in the destination.
2011-04-27 11:56:14 -07:00
Murali Reddy
c909057b90
bug 9595 : Negative resource counts exception when destroying VM account
...
Avoiding double decrement for same VM instance
2011-04-27 23:40:04 +05:30
Kelven Yang
b8d9513309
bug 9605: exclude virtual interfaces when searching for cidrs
2011-04-26 17:52:31 -07:00
alena
1bd0496bd0
Apply nic profile to nic: don't set reservationStrategy for DB object when it's value is NULL
2011-04-26 17:49:05 -07:00
Alex Huang
d5c7258b71
bug 9597: Fixed the recreatable problem. Also added the 2.2.1 upgrade step
2011-04-26 15:43:43 -07:00
Alex Huang
f6258dae08
bug 9445: Signal alert for the host if a primary storage pool was unavailable on that host
2011-04-26 15:14:55 -07:00
alena
bb0c0234bc
bug 9578: when deploy dhcp in Basic zone, put pod information to deploymentPlan
...
status 9578: resolved fixed
2011-04-26 14:41:21 -07:00
Kelven Yang
2b3c3cf949
Recalculate and update host used capacity (mem & cpu) in upgrade (2.1.x to 2.2.y)
2011-04-26 12:09:59 -07:00
prachi
ee598d44c5
Bug 9548 [Cloud Stack Upgrade - 2.1.8 to 2.2.4] System VM's Volumes Recreation is not happening on an event of New Volume creation Failures
...
Changes:
- Reason was that the old volume's templateId was being updated before volume creation was attempted. So on the retry, we dint find a difference in volume's templateId and VM's templateId and did not enter the recreation logic.
- Fix is to update the new volume's templateId with the VM's templateId while creating the new volume. The old volume's templateId stays the same and the volume is marked as 'Destroy' when a new volume is created.
2011-04-26 11:55:05 -07:00
alena
25017382b6
bug 9563: fixed DB upgrade from 2.2.2/2.2.3 to 2.2.4
...
status 9563: resolved fixed
Also added unittest for 2.2.2 to 2.2.4 upgrade
2011-04-23 23:03:45 -07:00
alena
6f76104a0e
DB upgrade: use is_static_nat field to distinguish between 2.2.1 and 2.2.2 versions
2011-04-23 21:23:07 -07:00
alena
eb7a158e72
bug 9555: db upgrade for Basic zone - set default nic for the domR
...
status 9555: resolved fixed
2011-04-23 20:03:33 -07:00
alena
8b0b503861
bug 9556: set ip_type=ip4 for guestVm nics in Basic zone setup
...
status 9556: resolved fixed
2011-04-23 19:56:08 -07:00
alena
c8f4dacb0a
bug 9550: get storagePool to Host mappings before doing processDisconnect because these references are being deleted as a part of processDisconnect call.
...
status 9550: resolved fixed
2011-04-23 18:34:39 -07:00
prachi
074e143986
Manually Merged from master the remaining changes for Bug 9539 - cpu.overprovisioning.factor does not work
2011-04-22 18:58:00 -07:00
prachi
5706041ef7
Manual merge of Bug 9539 - cpu.overprovisioning.factor does not work
...
Partial Changes:
- Changed host allocators/planner to use cpu.overprovisioning.factor
- Removed following: while adding a new host, we were setting the total_cpu in op_host_capacity to be actual_cpu * cpu.overprovisioning.factor. Now we set it to actual_cpu.
- ListCapacities response now calculates the total CPU as actual * cpu.overprovisioning.factor (This change does not add anything new - listCapacities was pulling total CPU from op_host_capacity DB earlier which had the cpu.overprovisioning.factor applied already. Now we need to apply it over the DB entry.)
- HostResponse has a new field: 'cpuWithOverprovisioning' that returns the cpu after applying the cpu.overprovisioning.factor
- Db Upgrade 222 to 224 now updates the total_cpu in op_host_capacity to be the actual_cpu for each Routing host.
Conflicts:
server/src/com/cloud/agent/manager/AgentManagerImpl.java
server/src/com/cloud/api/ApiDBUtils.java
server/src/com/cloud/api/ApiResponseHelper.java
server/src/com/cloud/deploy/BareMetalPlanner.java
server/src/com/cloud/server/ManagementServerImpl.java
2011-04-22 18:54:16 -07:00
anthony
eccec4ff11
bug 9541: fix one snapshot DB migrate, one java check and one script typo
...
status 9541: resolved fixed
2011-04-22 12:50:40 -07:00
anthony
b219d3e83e
cluster guid is set up when old host reconnect happens after upgrade, prohibit adding host to the cluster before guid is etup
2011-04-21 16:01:04 -07:00
anthony
71f968a3e1
bug 9282: set cluster guid if it is null
...
status 9282: resolved fixed
2011-04-21 15:41:54 -07:00
Murali Reddy
d1650c6e60
Bug 9273: resource count going -ve
...
adding addtional check that ensure we decrease the count in advanceStart only on new vm creation
2011-04-22 01:37:45 +05:30
root
c8d5ef8c29
Merge branch '2.2.4' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.4
2011-04-21 09:59:48 +05:30
Abhinandan Prateek
b979b782c1
bug 9487: race condition in taking ownership
2011-04-21 09:20:50 +05:30
alena
e5286339f1
bug 9521: fixed NPE in finalizeCommandsOnStart() method by adding vm's nic to vm profile during the vm to vmProfile conversion.
...
status 9521: resolved fixed
2011-04-20 16:16:27 -07:00
Abhinandan Prateek
48eebe8e7a
bug 9503: race condition in taking ownership of a Host when a Management server is restarted
...
status 9503: resolved fixed
2011-04-20 16:37:12 +05:30
alena
a99f925de1
bug 9383: createStaticNat rule - allow opening the same port for tcp/udp traffic
...
status 9383: resolved fixed
2011-04-18 18:18:44 -07:00
alena
b7a89f2229
bug 9493: fixed the bug in Basic zone when nic_count was updated incorrectly due to multiple domRs per network
...
status 9493: resolved fixed
2011-04-18 16:49:12 -07:00
alena
4c53dc8d46
Throw server api exception with correct error code
2011-04-18 15:16:06 -07:00
alena
c6e1a26934
Update volumes having destroyed=127 with Destroyed state only after ensuring that corresponding account is removed, or instance is expunged
2011-04-18 13:34:59 -07:00
alena
9c8ff68ca7
Added more logging to DB upgrade code
2011-04-18 11:39:44 -07:00
alena
a43a7993cb
bug 9483: delete records from template_spool_ref if corresponding storage pool doesn't exist any more
...
status 9483: resolved fixed
2011-04-15 17:07:39 -07:00
will
b897508c03
bug 9468: DiskOfferings are now sorted by created date to keep consistent with other objects returned in CloudStack.
...
Merge from master
2011-04-15 14:27:46 -07:00
alena
fcdf791645
bug 9475: don't update vlan in "networks" tab for non-implemented guest networks
...
status 9475: resolved fixed
2011-04-15 12:00:41 -07:00
alena
5778204e54
Fixed Db upgrade from 2.1.9 to 2.2.2 which wasn't supported before.
2011-04-15 10:17:08 -07:00
alena
c2455017e0
Fixed logging for remote access vpn code
2011-04-15 09:58:48 -07:00
alena
234917780e
218-222 upgrade - no need to update user statistics with deviceId if account doesn't own any domRs
2011-04-15 09:45:19 -07:00
alena
ce984ce89c
bug 9453: Fixed PF rules upgrade.
...
status 9453: resolved fixed
1) Problem #1 was that in 2.1.x there was a bug when we didn't delete pf rules for expunged vms. These kind of rules will be ignored during the db upgrade
2) Problem #2 . We didn't trim the spaces for PF/LB ports in 2.1.x, and DB upgrade code was failing because of that.
2011-04-14 20:35:34 -07:00
alena
fba10b1cb8
bug 9461: don't update user_statistics with the network id if the domR is already expunged
...
status 9461: resolved fixed
2011-04-14 17:53:38 -07:00
alena
c3c80006ca
bug 9453: domain path is not unique value, removed the constraint added during 2.1.8-2.2.2 upgrade
2011-04-14 16:55:55 -07:00
Edison Su
8b9fc424d5
bug 8532,8755: don't create multiple HA work if there already has one of HAwork of this VM is created, but not finished
...
status 8532: resolved fixed
status 8755: resolved fixed
2011-04-14 16:55:06 -04:00