18 Commits

Author SHA1 Message Date
edison
ad1ef80459 Now we have multiple routing template and buitin templates now, refactor template download code, that can handle it.
Basically, change the meaning of type field in template table: SYSTEM means sytem vm template, BUILIIN means buildin templates.
2010-09-29 18:41:55 -07:00
edison
abba8398b3 fix add xen-pv-iso, add cloud-guest as the xen.guest.network 2010-09-29 18:41:54 -07:00
edison
9e0f57bc0e change code for new UI 2010-09-29 18:40:52 -07:00
edison
8943cc6745 create volume
Conflicts:

	api/src/com/cloud/vm/VmCharacteristics.java
	core/src/com/cloud/dc/ClusterVO.java
	core/src/com/cloud/server/ManagementServer.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/storage/allocator/AbstractStoragePoolAllocator.java
2010-09-29 18:40:51 -07:00
edison
e2282ba800 don't throw exceptions when you can't add host 2010-09-29 18:40:48 -07:00
edison
edb16aa117 change storage allocator policy based on hypervisor 2010-09-29 18:40:47 -07:00
edison
3aef9f408e step1 2010-09-29 18:40:47 -07:00
anthony
7ca2adeb67 first host doesn't need to switch master 2010-09-15 21:24:52 -07:00
anthony
ec8a2a9579 always add master host first 2010-09-15 19:56:06 -07:00
anthony
05499fa5f6 execute only emergency command with slaveconn. othersiwe api call hands 2010-09-14 19:22:24 -07:00
Anthony Xu
d72e0538da Revert "Revert "use iso to patch systemvm""
This reverts commit 145e2e0aaa9b57286102664787e8e40ad3d75e26.
2010-08-26 16:06:28 -07:00
Anthony Xu
145e2e0aaa Revert "use iso to patch systemvm"
This reverts commit 3565f8d21b331745b99ce3a09a35d642f2f7bcfe.
2010-08-26 16:03:34 -07:00
root
3565f8d21b use iso to patch systemvm
Conflicts:

	core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
	scripts/vm/hypervisor/xenserver/xenserver56/patch
2010-08-26 15:56:02 -07:00
Alex Huang
415bc8ae20 bug 5764: checkin before I switch to work on 2.1.x 2010-08-24 14:40:29 -07:00
Anthony Xu
0366dd093c use slaveconnection instead of masterconnection for all host plugin calls.
tested by creating domr and user vm and migrating them

1. if you add host for kvm , you need specify kvm://ip_address, otherwiset there is no to differ kvm and xenserver hosts, edison cloud you please test this, may need some minor fixes.

2. if you want to session inside your plugin call, you can not use the one which is passed in, due to it is a slavesession, you need to call get_xapi_session() to get a new local session and use it. I have modified some of these, I may ignore some. Please let me know if you see XENAPI_PLUGIN_EXCEPTION.
2010-08-23 18:01:39 -07:00
Anthony Xu
41f7c745bd bug 5934: if it is standalone, give cluser name as Standalone-ip/name
status 5934: resolved fixed

Conflicts:

	server/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
2010-08-18 17:33:25 -07:00
edison
53df26daaa "Add host" for kvm:
The sequence:
1. add host in UI
2. scp setup_agent.sh to agent host, and execute it. This script receives hostip,zoneid, podid and guid, then runs "cloud-setup-agent" and "cloud-setup-console-proxy". Here, we assume that network/hostname and cloud-agent are already configed and installed.
3. Write a dummy kvm resource into the database, then wait for agent connects to server, by polling the database for every 1 minutes. If it finds the agent is in UP state in database, then return, or wait for at least 10 minutes.
2010-08-13 23:19:36 -07:00
Manuel Amador (Rudd-O)
05c020e1f6 Source code committed 2010-08-11 09:13:29 -07:00