161 Commits

Author SHA1 Message Date
edison
d933f19d35 bug 5800: add cluster for KVM
TODO: need to make sure the host cpu is from the same vender in a cluster
2010-09-10 16:00:36 -07:00
Alex Huang
7249f168d5 more file changes 2010-09-09 13:27:20 -07:00
Manuel Amador (Rudd-O)
b0acdbcf8b Split out build responsibility into per-project wscript_build files. Installation of generic directories like bindir, and creation of systemvms, remain in toplevel wscript_build. Make some waf code useful and reusable in the form of tools. 2010-08-31 20:40:17 -07:00
Manuel Amador (Rudd-O)
b5436693f3 Fix build by temporarily re-zoning very cool incubation software cloud-web-ipallocator to incubation directory until it is ready for production 2010-08-26 19:18:37 -07:00
edison
4fe1d8f335 add a web-based Ip Allocator:
In external-ip mode, management server can get user VM's ip from
direct.attach.network.externalIpAllocator.url.
This simple tool provides such kind of ip allocator service.

How to:
1. setup the dnsmasq:
	add the following in dnsmasq.conf:
		dhcp-range=starting-ip-allocate-to-vm,end-ip,netmask,static
    		dhcp-option=option:router,gateway
2. run cloud-web-ipallocator,
	The default listing port is 8080, if it's used by others, change the port by:
		cloud-web-ipallocator other-port
3. set the following in direct.attach.network.externalIpAllocator.url:
	http://your-host-ip:listening-port/ipallocator
2010-08-25 12:25:05 -07:00
Manuel Amador (Rudd-O)
e94d21be0f Remove cloud_utils.pyc 2010-08-19 10:50:39 -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)
a2cf253b20 bug 5876: Fix error reporting in agent setup so it will not cause a nested exception
The function stderr was being called with the wrong name of interpolation parameters.  The exception was missing from the arguments to the function.

status 5876: resolved fixed
2010-08-12 15:22:34 -07:00
Manuel Amador (Rudd-O)
b97899b2cf Correct indentationerror in python 2010-08-12 15:21:51 -07:00
edison
dc005b9b9c add setup_agent.sh, the first script running during add host
Make cloud-setup-agent/console-proxy in unattended mode
2010-08-11 19:31:07 -07:00
Manuel Amador (Rudd-O)
05c020e1f6 Source code committed 2010-08-11 09:13:29 -07:00