Nitin Mehta
54956280e6
Preliminary upload and attach changes work ..
2012-04-23 12:28:36 +05:30
Nitin Mehta
564cef8ddf
More changes for uploadVolume. Create framework for upload volume progress communication between MS and SSVM.
2012-04-23 12:14:35 +05:30
kishan
2e80fba2b6
bug CS-14587: Process 500 rows at a time to encrypt vnc_password in vm_instance table. Added addtional logging.
...
status CS-14587: resolved fixed
reviewed-by: Alena
2012-04-22 22:33:37 +05:30
Alena Prokharchyk
3b4fb0b55e
Fixed db upgrade bug: do vnc password encryption only for non-removed vms
2012-04-21 22:30:21 -07:00
Alena Prokharchyk
7990e15f09
More logging to the db upgrade
2012-04-21 22:29:51 -07:00
anthony
bbd0259ad2
bug 14582: fix one big in upgrade from 2.1.4 to 3.0.2
...
status 14582: resolved
2012-04-20 17:02:57 -07:00
Alena Prokharchyk
e4e0fff2eb
Fixed db upgrade for 2.1-3.0
2012-04-20 12:00:37 -07:00
Kelven Yang
102bc1f39f
Don't use dynamic quiried key size as it varies on different JVM implementation and security providers
2012-04-20 11:43:06 -07:00
kishan
316267f684
bug CS-14576: Fail 2.2.14 to 3.0.0 upgrade if encryption is not enabled
...
status CS-14576: resolved fixed
reviewed-by: Nitin
2012-04-20 16:12:03 +05:30
Nitin Mehta
44f4a5219a
bug CS-14530: Whwnever creating an agent of type Routing update the capacity state as there is a transition in the resource state of the host.
...
Reviewed By: Kishan
2012-04-20 10:34:15 +05:30
Sheng Yang
329b06087e
CS-14542: Fix wrong traffic label for KVM agent
...
Conflicts:
agent/src/com/cloud/agent/resource/computing/LibvirtComputingResource.java
2012-04-19 18:29:36 -07:00
prachi
f76ad76775
Bug 14158 - 2.2.x - 3.0 db upgrade for multiple physical networks
...
-Create multiple physical networks if there are distinct tags found in network_tags table.
-One physical network per tag.
-Currently all tags flow to xenserver traffic type label.
2012-04-19 15:29:09 -07:00
Kelven Yang
c5083787c2
Hardening console proxy AJAX protocol to address security concerns
2012-04-19 12:10:33 -07:00
kishan
e5571480d4
bug CS-14566: set up physical networks before encrypting config values
...
status CS-14566: resolved fixed
reviewed-by: Nitin
2012-04-19 21:59:51 +05:30
Rajesh Battala
327049b5c5
CS-14546: Fixed bug Unable to view console in System and Guest VMs and Added Upgrade script
2012-04-19 21:15:45 +05:30
Nitin Mehta
0b18117db9
bug CS-14530: Whwnever creating an agent for the host put in enabled and disabled according to the hierarchy.
...
Reviewed By: Kishan
2012-04-19 19:00:53 +05:30
Nitin Mehta
e04822eb70
bug CS-14530: Whenver adding a new capacity check the state of the resource - if its disabled/enabled.
...
Reviewed By: Kishan
2012-04-19 14:24:12 +05:30
Alena Prokharchyk
d7f4d5d4ec
CS-14553: db upgrade - for default network offerings:
...
1) Change display text to match fresh 3.0.2
2) Delete lb service for the offerings using VR as a provider and not having source nat service
2012-04-18 17:10:52 -07:00
kishan
7be811905f
bug CS-14532: during 2211-2212 upgrade, do not add resource count entries for resourceTypes that were added in later releases
...
status CS-14532: resolved fixed
reviewed-by: Nitin
2012-04-18 15:39:21 +05:30
Alena Prokharchyk
03ccb7f313
CS-14512: fixed deployVm with ipToNetworkList when uuid is used for networkIds
...
Conflicts:
server/src/com/cloud/api/ApiResponseHelper.java
2012-04-16 15:43:56 -07:00
Vijayendra Bhamidipati
1543c01e8d
Bug CS-14448: Wrong error message on using the createVlanIpRange cmd
...
Description:
Fixing two other scenarios apart from the reported one
where we were not passing in database IDs for translation
into uuids, in the exception.
2012-04-16 15:27:52 -07:00
Alena Prokharchyk
662a234916
CS-14297: added "forced" option to deleteStoragePool command. If forced=true, all destroyed volumes are marked as Expunged even when we can't reach primary storage at the moment of deletion.
...
Conflicts:
api/src/com/cloud/api/commands/StopVMCmd.java
2012-04-16 13:22:46 -07:00
Alena Prokharchyk
9b089f2eb7
AdvanceStart: do cleanup() call with force=true when the start command wasn't sent to the backend yet
2012-04-13 17:19:02 -07:00
Sheng Yang
f6383f844d
bug 14470: Return true for applyRules unless specified
...
Only DHCP entry need to know if no one apply the entries(when VM is starting
up), other rules should be safe when return true anyway.
status 14470: resolved fixed
2012-04-13 14:51:25 -07:00
Alena Prokharchyk
76c7c22b34
Bug CS-14447: set crossZones attribute for the template before persisting it to the db
2012-04-13 14:16:18 -07:00
Abhi
a8ab24be96
bug CS-14466: removing blank statement
2012-04-13 13:49:09 +05:30
frank
cc4e4e69d8
CS-14341 Order of Compute offerings does not stick
...
resolved fixed
2012-04-12 17:26:09 -07:00
Alena Prokharchyk
676a28177b
Added one more parameter - haHost(boolean) - to listHosts api command. The parameter identifies if the host is dedicated for ha only
...
Conflicts:
server/src/com/cloud/api/ApiResponseHelper.java
2012-04-12 11:50:36 -07:00
Alex Huang
7c6932ef80
some reformatting and a new way to get vos into the system
2012-04-12 11:04:38 -07:00
Abhi
2c3c0f06ca
bug CS-13303: updating resource state on upgrade
2012-04-12 17:46:18 +05:30
frank
9684ea7397
CS-14429 Cloud db schema differences between fresh installed 3.0.2 & upgraded 3.0.2
...
do check befor droping index i_host__allocation_state`(`allocation_state`)
2012-04-11 17:25:35 -07:00
prachi
4f116fb24f
Bug 14646 - Enabling Host into maintenance mode is stopping the VMs instead of live migrating them to other hosts in the cluster.
...
Changes:
- While listing UP hosts in the cluster of the host, the query has changed and now also considers the Host 'resourceState' field and picks only those hosts that have value 'enabled'.
This query result does not include the host being put in maintainance; unlike the earlier query that used to include it.
- But the logic to find out if this is the last host in the Cluster is not updated and has a bug when it compares the list size.
- Fixed this.
2012-04-11 16:24:31 -07:00
Alena Prokharchyk
8084318e5e
Remove obsolete network_tags table as a part of db upgrade cleanup
2012-04-11 16:23:51 -07:00
Kelven Yang
8b8973f941
Complete XenServer Secure Console proxy implementation
2012-04-10 15:57:52 -07:00
Alena Prokharchyk
52539e798d
bug 14449: added logging to createVlanIpRange
...
status 14449: resolved fixed
2012-04-10 11:24:36 -07:00
Rajesh Battala
3cbb8bc198
Xenserver Secure Console Proxy Phase I
2012-04-10 18:01:56 +05:30
Alena Prokharchyk
85b35978de
Db upgrade path for 3.0.2 to 3.0.3
2012-04-09 15:50:10 -07:00
Alena Prokharchyk
98fd5cf959
bug 14622: introduced ha tagging for host
...
status 14622: resolved fixed
Conflicts:
server/src/com/cloud/host/dao/HostDao.java
2012-04-09 15:18:01 -07:00
Abhi
d6e9f49c09
bug CS-14396: the VMs with current host id should be listed here, probably this fix did not make to this branch, is there is 2.2.14 branch
2012-04-09 12:27:18 +05:30
David Nalley
59436be4ee
fixing line endings in server
2012-04-07 20:13:10 -04:00
Alena Prokharchyk
6ff3dc3951
Return password as a result of startVm command if the vm was originally deployed with startVm=false parameter
2012-04-06 13:46:49 -07:00
Alena Prokharchyk
2d1a6b0b35
bug 14615: deployVm can work 2 diff ways now: 1) Default way - create and start the vm. 2) Create the vm without starting it. Note that vm's volumes stay in Allocated state -not created on the backend till the point where vm starts
...
status 14615: resolved fixed
2012-04-06 11:30:48 -07:00
Kelven Yang
c112088fc5
bug 14618: Protect servlet container from shutting down on unexpected runtime exceptions
...
Reviewed-By: Kelven
2012-04-05 15:06:39 -07:00
Kelven Yang
93a5b7c0bc
Bug 14301: Perform socket-level only management server pings
...
Reviewed-By: kelven
2012-04-05 15:06:25 -07:00
Alena Prokharchyk
1dc99a17eb
Fixed unittest
2012-04-04 16:13:51 -07:00
Alena Prokharchyk
c0130a5c41
Code cleanup for createVlanRange api
2012-04-04 15:03:04 -07:00
Alena Prokharchyk
25e85e177e
bug 14589: don't accept empty username/firstname/lastname in update/createUser apis
2012-04-04 12:55:02 -07:00
Alena Prokharchyk
b14bac0977
bug 14539: 1) introduced 2 new config parameters defining default offerings for ssvm and cpvm - consoleproxy.service.offering and secstorage.service.offering
...
2) Added new api - changeServiceForSystemVm - to support service offering upgrade for system vms
3) Removed global config parameters that are not in use anymore: consoleproxy.ram.size, consoleproxy.cpu.mhz, secstorage.vm.ram.size, secstorage.vm.cpu.mhz
2012-04-03 10:52:32 -07:00
frank
2f634c0913
Switch to Apache license
2012-04-03 04:50:05 -07:00
Alena Prokharchyk
def05c9da5
bug 14567: put db entry insertion in try/catch block and fail gracefully when the insertion fails (can happen when 2 MS try to insert the same entry)
...
status 14567: resolved fixed
2012-04-02 14:21:29 -07:00
Kelven Yang
74754f0a56
bug 14564: Upon management server startup, for detected inactive management server (based on timestamp), perform ping-test before we really mark it as down
...
Reviewed-By: kelven
2012-03-30 16:46:13 -07:00
Alena Prokharchyk
a4e8133b78
bug 14559: podId is required parameter in addCluster api
...
status 14559: resolved fixed
2012-03-30 10:37:14 -07:00
Kelven Yang
c12b00099b
Bug 14551: add top-level catch clause to protect task/thread from stalling
...
Reviewed-By: Kelven
2012-03-29 18:25:53 -07:00
prachi
1b6e38f3d5
Bug 14536 - DB exception while trying to delete physical network
...
Reviewed-By: Sheng Yang
Changes:
Added proper cleanup for virtual router elements.
2012-03-29 12:40:06 -07:00
prachi
23915b7481
Bug 14536 - DB exception while trying to delete physical network
...
Reviewed-By: Sheng Yang
Changes:
Added 'removed' column to physical_network_service_providers to avoid the Foreign Key constraint error.
Conflicts:
setup/db/db/schema-30to301.sql
2012-03-29 10:15:30 -07:00
frank
f53dc35d9f
change a comment in ApiResponseGsonHelper.java
...
reviewed-by: edison
2012-03-28 16:18:42 -07:00
Kelven Yang
16ab819502
bug 14301: suppress expected exceptions from showing annoying stack dump, the message will be logged at TRACE level.
...
Reviewed-By: Kelven
2012-03-28 15:47:00 -07:00
Alena Prokharchyk
d6cf594ef7
bug 14292: don't try to reboot vm as part of resetVmPassword if the vm is in Stopped state
...
status 14292: resolved fixed
2012-03-28 13:51:14 -07:00
Alena Prokharchyk
dc1af9e5f4
bug 14444: specifyVlan should always be false for the network offering of type Isolated supporting sourceNat service
...
status 14444: resolved fixed
2012-03-28 11:24:09 -07:00
Alena Prokharchyk
e4d16551fc
bug 14465: throw exception when try to send email invitation while smtp session wasn't configured
...
status 14465: resolved fixed
2012-03-28 10:05:54 -07:00
Kelven Yang
5602f3b550
bug 14301:
...
1) Support HTTP keep-alive in clustering communication channel
2) Increase concurrency level for clustering message delivery
Reviewed-By: Kelven (with unit test)
2012-03-27 16:37:22 -07:00
Kelven Yang
7d87f48ef4
bug 14301:
...
1) Drop synchronized call semantic for ClusterManagerImpl.broadcast()
2) Have no choice now but to use an unbound thread pool to notify upper layer. This is to prevent thread starvation when we have cross-management server waitings.
Reviewed-By: Kelven(with unit test)
2012-03-27 16:09:55 -07:00
Kelven Yang
880188466c
bug 14301: fix regressions caused by new clustering transport. Correct usage of HttpClient to avoid socket staying in CLOSE_WAIT state for too long. Reviewed-By: Kelven
2012-03-27 16:08:57 -07:00
Kelven Yang
b0e8f08a3e
bug 14301: Decouple synchronized crosss management server call with clustering transport. Reviewed-by: Kelven
2012-03-27 16:05:52 -07:00
Kelven Yang
0f34744c9e
bug 14301: Decouple synchronized crosss management server call with clustering transport. Reviewed-by: Kelven
2012-03-27 16:01:54 -07:00
kishan
bed3f7f7e2
bug 14512: Create user_stats entry for router while persisting routerVO
...
status 14512: resolved fixed
reviewed-by: Nitin
2012-03-27 19:04:34 +05:30
kishan
57f935ca03
Added since version to API response docs
2012-03-27 11:12:59 +05:30
prachi
c2570b9e7d
Bug 14482 - When user tries to delete an acquired Ip address ,right after this is successful, UI calls listRemoteAccessVpns() which results in java.lang.NullPointerException.User is presented with "Internal error executing command" error
...
Reviewed-By: Sheng
Changes:
- Added the null check for account object.
2012-03-26 14:43:49 -07:00
Sheng Yang
b409615a32
bug 14484: Apply existed firewall rules when associating IP
...
It's not a elegant fix. The status for firewall rules should remain unchanged
before/after ip association/disassociation. But the related change is tricky
than this fix, may not get enough test for 3.0.1. So we would apply existed
firewall rules again, which would work, just result in some unnecessary
commands.
status 14484: resolved fixed
Reviewed-by: Edison Su
2012-03-26 13:55:43 -07:00
frank
c504e8aa35
Bug 14492 - Stop and start of SSVM in Zone1 fails if Zone2 is configured with Storage network
...
status 14492: resolved fixed
reviewed-by: edison
2012-03-26 11:58:12 -07:00
Alena Prokharchyk
ce8e9a9f51
bug 14500: set default value for is_system field as a part of 3.0 to 3.0.1 upgrade
...
status 14500: resolved fixed
reviwed-by: Frank Zhang
Conflicts:
server/test/com/cloud/network/MockNetworkManagerImpl.java
setup/db/db/schema-30to301.sql
2012-03-26 10:27:15 -07:00
Nitin Mehta
a78537398c
Bug 14490: Fix NPE in ListCapacity
2012-03-24 16:24:51 +05:30
Nitin Mehta
a5a7be4c7e
Bug 10808: Add Upload Volume api and do validation.
2012-03-24 13:59:59 +05:30
Edison Su
1e4893b69c
bug 1443: even adding host failed, return success in api. status 14443: resolved fixed; Reviewed-by: sheng
2012-03-23 18:23:10 -07:00
Alena Prokharchyk
4060be1842
bug 14445: automatically enable firewall service for VR when VR is a provider for PF/StaticNat services
...
status 14445: resolved fixed
reviewed-by: Sheng Yang
2012-03-22 14:17:15 -07:00
Alena Prokharchyk
15019d1e5c
bug 14439: added search by name/description to listGuestOS and listGuestOSCategories apis
...
status 14439: resolved fixed
reviewed-by: Frank Zhang
2012-03-22 11:33:22 -07:00
Alena Prokharchyk
c42fceab27
bug 14446: removed elasticLBVm from components.xml
...
status 14446: resolved fixed
reviewed-by: Frank Zhang
2012-03-22 10:26:48 -07:00
Abhi
90da4d1c92
bug 12947: support for 1.5 beta; reviewed-by: nitin
2012-03-22 17:30:56 +05:30
Nitin Mehta
2a837c3ebd
Bug 14345: DB discrepecy for capacity.check.period, cluster.memory.allocated.capacity.disablethreshold, pool.storage.allocated.capacity.disablethreshold, pool.storage.capacity.disablethreshold.
...
Reviewed-By: Kishan
2012-03-22 10:01:49 +05:30
prachi
45c7ad63bf
Bug 14299 - Fix adding public ip range per account
...
Changes:
Fixed as described in the bug.
* CreateVlanIpRangeCmd still accept account/domainId info
* if account owns:
- one Isolated network with source nat service enabled, use this network
- more than one Isolated network with source nat service enabled - error out
- none Isolated networks with source nat service enabled, create it only in
case when there is an Isolated network offering with Availability=Required and
source nat service enabled.
2012-03-21 16:52:32 -07:00
Kelven Yang
9c55b7b695
bug 14313: add map type adapter to ApiGsonBuilder as some API response classes are using Map<String, String>
2012-03-21 15:16:47 -07:00
Kelven Yang
7c327ec658
bug 14188: always make sure to inject SSH keys before copying systemvm ISO to secondary storage
2012-03-21 14:24:52 -07:00
Sheng Yang
1ca493e4fa
bug 14042: Don't set dhcp:router option on DHCP server for non-default network on CentOS/RHEL
...
The routing table with two nics may be messed up, due to we sent same
router(gateway) information from different DHCP server, in order to specify
default gateway. E.g.
Network A: 192.168.1.0/24, gw 192.168.1.1
Network B: 192.168.2.0/24, gw 192.168.2.1
User VM: Nic 1 connect to network A, get ip 192.168.1.10; nic 2 connect to
network B, get ip 192.168.2.10.
Set network A as the default network of user VM.
Currently we would send this information to user VM through DHCP offer:
In network A: dhcp-option:router 192.168.1.1
In network B: dhcp-option:router 192.168.1.1
So both NIC in the guest VM would receive 192.168.1.1 as router(gateway).
But, in CentOS 5.6, dhclient-scripts try to tell if the gateway is reachable
for current subnet.
So when we try to enable nic 2(eth1) of user VM, dhclient would receive:
IP: 192.168.2.10
Mask: 255.255.255.0
Router: 192.168.1.1
Then it would found that the specified gateway(router) is not within its own
subnet(192.168.2.0/24). But since we send out this ip(192.168.1.1) as the
gateway for it, dhclient thought that it should got someway to access the
network through this IP. So it would execute:
ip route add 192.168.1.1 dev eth1
ip route replace default via 192.168.1.1 dev eth1
But it can never reach 192.168.1.1(which is in the eth0's subnet and the
gateway of eth0) by go through eth1 interface. So it is messed up.
We've tested Windows 2008 R2, CentOS 5.3, CentOS 5.6 and Ubuntu 10.04. Windows
and Ubuntu are fine with above policy.
To solve this, we send different dhcp:router option according to the guest OS
type now.
We may need expand this list later, but for now we only know that CentOS and
RHEL would behavior in this way.
status 14042: resolved fixed
2012-03-21 10:38:18 -07:00
Sheng Yang
319dbccabf
Fix not sending DNS in DHCP command
2012-03-21 10:38:12 -07:00
Murali reddy
99e1ca123f
bug 13899: CloudStack (Advanced Mode) should not allow "NetScaler" as provider for StaticNAT service
...
status 13899: resolved fixed
2012-03-21 16:54:44 +05:30
Abhi
d3673506cf
bug 14216: rightly initializing to avoid NPE
2012-03-21 15:33:05 +05:30
Abhi
d354897780
bug 12947: enabling XCP 1.5
2012-03-21 10:23:04 +05:30
prachi
e43914ab58
Bug 14336 - Login API does not return UUID's
...
Changes done:
- Provide UUID for userid and domainid only while constructing the login response. Session will hold the DB id's as before, to ensure other parts keep working.
- This reverts commit de28aa3ddde5b601f2f234f2eccef871fbaf1a06.
2012-03-20 16:59:04 -07:00
prachi
a5d7cd3d51
Bug 14336 - Login API does not return UUID's
...
Changes:
- login API now returns back UUID for user and domain
2012-03-20 16:59:02 -07:00
prachi
280d533a6f
Bug 14047 - login API fails when UUID is used for domain_id
...
Changes:
- API should accept UUID for domain and convert to id when needed
2012-03-20 16:59:00 -07:00
Vijayendra Bhamidipati
24e57e283e
Bug 14071: queryAsyncJobResult in xml format gives incorrect UUIDs back
...
Description:
Incorrectly removed part of the XML serializer that serialized
the IdentityProxy object in normal responses, when putting in
support for serialization of lists of IdentityProxy objects in
exception responses as part of the code changes put in for bug
13217, resulting in this bug. Putting it back in place.
2012-03-20 16:22:43 -07:00
Alena Prokharchyk
29c61e6341
bug 14369: remove host entry when destroy CPVM/SSVM instances
...
status 14369: resolved fixed
2012-03-20 14:10:18 -07:00
Alena Prokharchyk
5599713268
bug 14401: return juniper srx as a firewall provider along with the Virtual router
...
status 14401: resolved fixed
2012-03-20 11:51:48 -07:00
Alena Prokharchyk
59a05660ab
bug 14420: listNetworkOfferings by networkId - respect specifyVlan flag of the original offering
...
status 14420: resolved fixed
2012-03-20 11:31:13 -07:00
Alena Prokharchyk
81d7f9bdbf
bug 14407: update network count for account/domain as a part of 3.0 to 3.0.1 upgrade
...
status 14407: resolved fixed
2012-03-20 10:40:32 -07:00
Alena Prokharchyk
e53cfeceb6
bug 14379: don't enable 8096 port by default (set global config variable to null by default, and don't create a listener on this port unless its set to valid integer)
2012-03-19 16:19:38 -07:00
frank
4303e30ae0
add missing cleanup.sql
2012-03-19 15:27:43 -07:00
Alena Prokharchyk
fec3a87d09
bug 14388: don't return console proxy / ssvm service offerings
...
status 14388: resolved fixed
2012-03-19 14:50:09 -07:00
frank
3773b52b2f
add cleanup.sql to DB upgrade test
2012-03-19 14:36:57 -07:00
Alena Prokharchyk
c01ed2f754
Added upgrade path from 3.0.x to 3.0.1
2012-03-19 13:38:38 -07:00