Commit Graph

2344 Commits

Author SHA1 Message Date
alena b9a2b72047 Fixed a bug in XmlApiDocReader 2011-04-29 10:19:06 -07:00
Alex Huang 99bc15f64a changed getName to getHostname 2011-04-29 08:34:10 -07:00
nit f5cc308e77 bug 7140: Add MAC address in response list of LlistVirtualMachines API.
status 7140: resolved fixed
2011-04-29 18:41:46 +05:30
prachi 25fd7cd999 Merging changes from zonesfeature branch: Adding dhcp_provider parameter to UpdateZoneCmd 2011-04-28 23:28:14 -07:00
prachi 86b386e8c0 Merging changes from zonesfeature branch for Bug 8026 - discern proper cluster/pod/zone for added host (and refactor AgentManagerImpl)
- CreateZone API creates a zoneToken, inserts in DB and returns it in the
response

- UpdateZone API takes in 'details' map that is loaded to data_center_details
2011-04-28 23:08:58 -07:00
alena 11ef6bbbe2 bug 9638: fixed bunch of DB upgrade bugs
status 9638: resolved fixed

Conflicts:

	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
	utils/src/com/cloud/utils/net/NetUtils.java
2011-04-28 18:30:40 -07:00
alena c6d5682579 Modify keys for security groups in java code instead of sql file (need to check if the key exists before dropping it)
Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade218to22.java
2011-04-28 18:23:38 -07:00
Kelven Yang 9b86ef7942 bug 9022: turn off HA for SSVM and Console Proxy VM 2011-04-28 18:03:11 -07:00
Sheng Yang cf114fc7af Enable SSL for mgmt servers and agents
The port remains 8250.

The keystore saved at /etc/cloud/management/cloud.keystore. We also include one
fail-safe keystore/certificate for fallback if we are unable to generate
certificate and keystore. If we use fail-safe keystore, a warning and calltrace would be show.

Notice you need to upgrade agent, as well as systemVM's images.
2011-04-28 17:41:29 -07:00
keshav 828b68186c Added a check for duplicate public networks. 2011-04-28 16:10:48 -07:00
will 4b803d1676 Added default endpointe URL and renamed cloudkit to mycloud in the complete registration servlet. 2011-04-28 16:05:38 -07:00
will 633d024b7c - Merge all CloudZones Registration feature into master 2011-04-28 16:05:36 -07:00
Alex Huang 2aa280ed14 Removed the ugly cglib name 2011-04-28 15:45:09 -07:00
Alex Huang 53949833ac 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:44:46 -07:00
prachi c2824edc03 Bug 9446: Investigator reports that a system vm is down even if it isn't....
Changes:
- Added new Investigator 'ManagementIPSystemVMInvestigator' that checks if Vm is alive only for System VM's that have a management IP address.
- If no management IP is found, ping test cannot be done, so this investigator would return null in that case.
- Current implementation InvestigatorImpl is renamed as 'UserVmDomRInvestigator' and does the ping test for user VMs only.
- Corrected the ping test code that was checking a hard-coded string. Now if the ping answer is negative, we just return null
- Added the new investigator to components.xml
2011-04-28 12:28:51 -07:00
Kelven Yang 814fe02c59 Recalculate and update host used capacity (mem & cpu) in upgrade (2.1.x to 2.2.y)
Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade218to22.java
2011-04-28 10:11:01 -07:00
alena 6352851e43 More logging to consoleProxy start command 2011-04-28 01:19:42 -07:00
alena f8742adcd5 bug 9621: set addressFormat during NicProfile creation
status 9621: resolved fixed
2011-04-27 23:19:43 -07:00
alena 485f7a10cc bug 9621: dbUpgrade - set reservation strategy to be Create for Guest Nics in Basic zone
status 9621: resolved fixed

Conflicts:

	server/src/com/cloud/upgrade/dao/Upgrade218to22.java
	setup/db/db/schema-222to224.sql
2011-04-27 22:51:56 -07:00
alena 012d2f1a5d Fixed upgrade from 2.1.9 to 2.2.x 2011-04-27 22:49:28 -07:00
alena b8f2a69c05 bug 9622: update mode for nics
status 9622: resolved fixed
2011-04-27 20:57:27 -07:00
Frank ef10dab968 Intrdouce adapter to template manager
small fix
2011-04-27 14:04:37 -07:00
Frank 504eb25c37 Intrdouce adapter to template manager. 2011-04-27 14:04:37 -07:00
alena 2aa5f8996b listNetworks: allow seeing Guest system network in Basic zone 2011-04-27 13:57:24 -07:00
Alex Huang cc8bdf354b storage stats can be such that it doesn't work if one storage pool cannot be reached. 2011-04-27 13:56:52 -07:00
Alex Huang b4f6cdda66 bug 9610: Added VERSION table and related index change 2011-04-27 13:56:52 -07:00
Alex Huang 5b361e5e8f bug 9597: Fixed the recreatable problem. Also added the 2.2.1 upgrade step 2011-04-27 13:56:52 -07:00
prachi 209be1065b 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:36:51 -07:00
alena 81e7b25217 Fixed ipAssoc in Basic zone (elastic IP) 2011-04-27 11:15:30 -07:00
kishan 42a9c49712 bug 8866: ignore network usage for system account 2011-04-27 19:44:52 +05:30
kishan 341e553b8a bug 8866: added support for direct network usage tracking using traffic sentinel 2011-04-27 19:03:02 +05:30
Murali Reddy c12ccbd06f Bug 9534 : implement CPU cap
Introducing new boolean flag in service offering to restrict the user VM's CPU utilization to what service offering it is entitled for.
2011-04-27 13:54:45 +05:30
Abhinandan Prateek 7960a499dc bug 6451: XenServer username/password should be changable through API 2011-04-27 12:14:51 +05:30
Abhinandan Prateek 0fc005f20a bug 6451: XenServer username/password should be changable through API 2011-04-27 12:08:02 +05:30
alena 508fef2269 Apply nic profile to nic: don't set reservationStrategy for DB object when it's value is NULL 2011-04-26 17:51:49 -07:00
alena 584718ceb6 bug 9571: respect allocatedOnly flag in listPublicIpAddresses API
status 9571: resolved fixed
2011-04-26 17:51:49 -07:00
Alex Huang 9909371eaa bug 9445: Signal alert for the host if a primary storage pool was unavailable on that host 2011-04-26 15:09:36 -07:00
alena 4290abb57c bug 9578: when deploy dhcp in Basic zone, put pod information to deploymentPlan
status 9578: resolved fixed
2011-04-26 14:57:40 -07:00
prachi 6e39019b6a 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:35:24 -07:00
alena 5db28c57e4 bug 9492: allow security group removal when it has ingress rules, but not assigned to any vms yet
status 9492: resolved fixed
2011-04-25 16:43:39 -07:00
alena 4953461e57 bug 8809: listHypervisors api - when zoneId=-1 is specified, only hypervisors availble in all zones are being returned 2011-04-25 10:39:51 -07:00
nit 49bb7dba00 bug 9013: Adding hypercisor type for xs-tools.iso when inserting it into vm_template.
status 9013: resolved fixed
2011-04-25 17:03:57 +05:30
alena afa7d3f34d 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

Conflicts:

	setup/db/db/schema-222to224.sql
2011-04-23 23:05:42 -07:00
alena 1915b51a83 DB upgrade: use is_static_nat field to distinguish between 2.2.1 and 2.2.2 versions 2011-04-23 21:24:37 -07:00
alena 1efc45a241 bug 9555: db upgrade for Basic zone - set default nic for the domR
status 9555: resolved fixed
2011-04-23 20:44:09 -07:00
alena 3c48d8d432 bug 9556: set ip_type=ip4 for guestVm nics in Basic zone setup
status 9556: resolved fixed
2011-04-23 20:43:37 -07:00
alena b749c64d4e 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

Conflicts:

	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/storage/StorageManagerImpl.java
2011-04-23 20:43:24 -07:00
prachi c157d3375c More changes for Bug 9539 - cpu.overprovisioning.factor does not work
- After p4merge some weird character was getting added.
2011-04-22 18:17:08 -07:00
prachi b84a7477f0 Bug 9539 - cpu.overprovisioning.factor does not work
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.
2011-04-22 18:09:31 -07:00
will ff2d7fcf4a bug 9468: DiskOfferings are now sorted by created date to keep consistent with other objects returned in CloudStack. 2011-04-22 15:12:59 -07:00