Commit graph

280 commits

Author SHA1 Message Date
Jesse Andrews
6b1c26e961 use the provided localrc 2011-11-06 00:13:30 -07:00
Jesse Andrews
9102d454f6 resize the uec image 2011-11-05 23:49:08 -07:00
Jesse Andrews
446a3304bc another attempt at userdata 2011-11-05 23:36:29 -07:00
Jesse Andrews
2d40c26850 git clone 2011-11-05 23:30:22 -07:00
Jesse Andrews
e735833c1f more userdata 2011-11-05 23:20:11 -07:00
Jesse Andrews
63cb9239aa more userdata 2011-11-05 23:16:53 -07:00
Jesse Andrews
7306f3bfc7 more metadata 2011-11-05 23:13:34 -07:00
Jesse Andrews
9645b0c9c9 kill ... 2011-11-05 23:05:33 -07:00
Jesse Andrews
cc03cc8d58 kill works 2011-11-05 22:54:54 -07:00
Jesse Andrews
3ce79aa55b improve kill 2011-11-05 22:52:20 -07:00
Jesse Andrews
947a765130 switch lsof syntax 2011-11-05 22:49:51 -07:00
Jesse Andrews
d7ce7afe0f set the hostname 2011-11-05 22:47:28 -07:00
Jesse Andrews
ee34f62ba7 kill the old metadata process 2011-11-05 22:41:57 -07:00
Jesse Andrews
e49f751aa9 force the uec to be recreated 2011-11-05 22:34:45 -07:00
Jesse Andrews
438ea577c4 typo 2011-11-05 22:33:49 -07:00
Jesse Andrews
f504e281c0 don't need to spawn a bash 2011-11-05 22:29:35 -07:00
Jesse Andrews
9ed6bbd503 attempt to run the metadata service 2011-11-05 22:28:46 -07:00
Jesse Andrews
64164078c1 simple metadata service 2011-11-05 22:15:50 -07:00
Jesse Andrews
63fa7abd56 tweaks 2011-11-05 18:49:36 -07:00
Jesse Andrews
a628262344 let dhcp work 2011-11-05 18:39:33 -07:00
Jesse Andrews
f5a76919b3 closer to fine 2011-11-05 17:47:50 -07:00
Jesse Andrews
3b7685823c extract tarball in image dir 2011-11-05 17:40:20 -07:00
Jesse Andrews
96dffbcdce uec_url should be underscore 2011-11-05 17:37:33 -07:00
Jesse Andrews
228f246a83 work towards booting 2011-11-05 17:36:14 -07:00
Jesse Andrews
8b3eb5ffe3 work towards simpiler uec 2011-11-05 16:05:14 -07:00
Dean Troyer
43392f74b8 Beef up error handling (#886666) 2011-11-05 16:55:15 -05:00
Anthony Young
40b5737c4d fix comment 2011-11-05 00:30:07 -05:00
Anthony Young
346e49131b add script that demonstrates separation of head abd compute roles when using xen 2011-11-05 00:22:47 -05:00
sleepsonthefloor
5f3f21f677 Merge pull request #161 from cloudbuilders/lessapt
rework how pre-caching works.  add the ability to flag  packages #NOPRIME in files/apts so that services that can't be installed with chroot can be skipped.
2011-11-04 11:43:47 -07:00
Anthony Young
ca2c047b6e fix caching so that there is the ability to download services without installing them. This is done with a #NOPRIME comment in apts/files/ 2011-11-03 16:29:32 -07:00
Anthony Young
23324e94e2 create the uec cachedir if it doesn't exist. Otherwise build_libvirt fails on clean installs 2011-11-03 13:47:15 -07:00
Jesse Andrews
df5e9949aa don't install memcached in general list 2011-11-03 09:36:13 -05:00
Anthony Young
af6ed6b1b5 source stackrc 2011-11-02 07:50:27 -05:00
Anthony Young
2cec3dc846 unpause paused instances before terminating 2011-11-02 07:03:38 -05:00
Jesse Andrews
4bd41ad77f deleting build_kvm.sh in favor of build_libvirt.sh 2011-11-01 22:06:41 -07:00
Jesse Andrews
1d1dda1457 allow build_libvirt.sh not to destroy/recreate net 2011-11-01 19:46:17 -07:00
Jesse Andrews
037d3bdea4 Merge pull request #143 from cloudbuilders/fix_races
Fix NBD race conditions
2011-11-01 17:34:35 -07:00
Dean Troyer
55c0273723 Trap SIGINT, etc and release used resources 2011-11-01 17:44:03 -05:00
Anthony Young
f0dca55a29 fix typos 2011-11-01 14:23:14 -07:00
Dean Troyer
2826911a9c Merge remote-tracking branch 'origin/master' into fix_races 2011-11-01 15:47:38 -05:00
Dean Troyer
dccd6b923e Add map_nbd function 2011-11-01 15:46:14 -05:00
Anthony Young
1de18c6250 Changes to make exercise.sh work with xen 2011-11-01 14:22:26 -05:00
Dean Troyer
2567c81b27 Update for variable dist name 2011-11-01 12:36:59 -05:00
Jesse Andrews
a06ac1cb2d build_libvirt should check for completion not failure 2011-10-31 22:29:23 -07:00
Jesse Andrews
02a0869615 Merge pull request #130 from cloudbuilders/fix_races
Address races in NBD and images
2011-10-31 19:02:07 -07:00
Dean Troyer
6fe687b989 Cleanups for NBD and GRUB2 2011-10-31 20:30:04 -05:00
Jesse Andrews
981f194877 Merge pull request #131 from cloudbuilders/xen_env
copy over ssh keys and other env
2011-10-31 15:34:44 -07:00
Dean Troyer
7a56973441 Address NBD race 2011-10-31 17:34:29 -05:00
Anthony Young
a1a90773a0 copy over ssh keys and other env 2011-10-31 15:32:38 -07:00
Dean Troyer
71745fe62a Address races in NBD and images 2011-10-31 16:59:02 -05:00
Dean Troyer
2dfdbc9e65 Fix up sources.list 2011-10-31 15:46:49 -05:00
Dean Troyer
2c1a2d56c1 Switch to e2fsck 2011-10-31 15:32:54 -05:00
Dean Troyer
c2ddc97003 Leave downloaded image untouched 2011-10-31 15:09:43 -05:00
Jesse Andrews
8b42562d0e Merge pull request #128 from cloudbuilders/grub1
Remove GRUB 1 config
2011-10-31 12:24:27 -07:00
Dean Troyer
4e20969e36 Remove GRUB 1 config 2011-10-31 14:18:31 -05:00
Jesse Andrews
04156dbe86 attempt to fix path issues 2011-10-31 11:59:55 -07:00
Jesse Andrews
97c84744ce sources.list needs to support multiple dists - #124 2011-10-31 11:45:27 -07:00
Jesse Andrews
0d0cddd125 don't need to reboot with proper console 2011-10-31 09:18:37 -07:00
Jesse Andrews
16341967b1 don't show the grep in build_libvirt.sh 2011-10-31 00:21:56 -07:00
Jesse Andrews
0a247835ac attempt to get around the tail not outputing issue 2011-10-31 00:05:35 -07:00
Jesse Andrews
b07381f1c3 nbd default via the guest network 2011-10-30 22:55:45 -07:00
Jesse Andrews
ddcc36d445 try to overwrite the overwrite 2011-10-30 22:41:23 -07:00
Jesse Andrews
2c5201b461 can't figure out cloudinit 2011-10-30 20:44:26 -07:00
Jesse Andrews
ed8aa54909 try ds=nocloud-net;h=foo 2011-10-30 20:34:44 -07:00
Jesse Andrews
932649fac3 proper way of setting hostname using uec kernel params 2011-10-30 20:30:39 -07:00
Jesse Andrews
7e4a33bc6b another attemp at setting guest name 2011-10-30 20:02:03 -07:00
Jesse Andrews
fd584eb6bb set hostname using uec kernel options 2011-10-30 19:58:16 -07:00
Jesse Andrews
5f894cd346 typo 2011-10-30 19:52:50 -07:00
Jesse Andrews
b0559b2e4d having work_dir in here complicates jenkins 2011-10-30 19:46:54 -07:00
Jesse Andrews
d6ee73f94f blow up if CACHEDIR doesn't exist 2011-10-30 19:40:38 -07:00
Jesse Andrews
2b7d221e6c switch to uec 2011-10-30 19:37:56 -07:00
Jesse Andrews
19d62879dd another attempt at exclude 2011-10-30 19:26:28 -07:00
Jesse Andrews
16ba919aea use rsync so we can exclude the work_dir 2011-10-30 19:24:05 -07:00
Jesse Andrews
319897424c topdir should be a real path 2011-10-30 18:56:05 -07:00
Jesse Andrews
7fa561371a fix sourcing 2011-10-30 18:43:54 -07:00
Jesse Andrews
489edb0385 don't need bridge 2011-10-30 18:42:16 -07:00
Jesse Andrews
e97a2e79b9 convert build_kvm to build_libvirt - using libvirt net 2011-10-30 18:37:49 -07:00
Tres Henry
ca85b7996a changing dash to horizon 2011-10-28 15:34:44 -07:00
Anthony Young
082cc3bec6 Merge remote-tracking branch 'origin/master' into xen 2011-10-27 17:07:32 -07:00
Anthony Young
1fdddf8d71 remove extraneous doc 2011-10-27 16:28:22 -07:00
Anthony Young
d395b3a29f add --no-check-certificate so that document procedure works 2011-10-27 13:53:05 -07:00
Anthony Young
b957a855f9 fix for #109 - set the hostname to GUEST_NAME 2011-10-27 13:07:37 -07:00
Anthony Young
138b283823 clean up setting of hostname 2011-10-27 13:06:39 -07:00
Anthony Young
ea1290a997 use better bridge names 2011-10-27 12:53:30 -07:00
Anthony Young
d7f29e6366 update docs to tell how to get xs5.6sp2 2011-10-27 09:07:02 -07:00
Anthony Young
f54bc06d91 fix typo 2011-10-27 00:39:30 -07:00
Anthony Young
91f58c90c8 fix grammar 2011-10-26 23:48:43 -07:00
Anthony Young
f6ef5690e7 make vm net ip configurable 2011-10-26 23:40:46 -07:00
Anthony Young
fe1c6dedcb fix license 2011-10-26 23:36:25 -07:00
Anthony Young
2a4a3424b4 fix typo 2011-10-26 23:32:30 -07:00
Anthony Young
a693655cac use GUEST_PASSWORD instead of PASSWORD 2011-10-26 23:29:59 -07:00
Anthony Young
876e4b9a70 give dummy ip to eth1 2011-10-26 23:29:49 -07:00
Anthony Young
3eb8f59d29 some tweaks and doc improvements 2011-10-26 23:11:52 -07:00
Anthony Young
cc5028ded1 Merge remote-tracking branch 'origin/master' into xen 2011-10-26 22:35:17 -07:00
Anthony Young
1a09ea49c6 update docs 2011-10-26 22:34:55 -07:00
Anthony Young
b62b4ca292 Initial commit of xen devstack support 2011-10-26 22:29:08 -07:00
Jesse Andrews
70188b3105 add image caching to lxc 2011-10-26 21:59:45 -07:00
Dean Troyer
f2a343b00f Convert to use UEC images 2011-10-26 16:05:28 -05:00
Dean Troyer
5cc7ebde67 Merge branch 'master' of github.com:cloudbuilders/devstack into uec-image 2011-10-26 15:55:43 -05:00
Dean Troyer
a0cf3c8291 Do update copies 2011-10-26 15:52:34 -05:00
Dean Troyer
e33c5f6327 Extract boot kernel from ramdisk image 2011-10-26 15:13:00 -05:00
Dean Troyer
7920b0f757 Wait for partition device to appear 2011-10-26 15:10:46 -05:00
Jesse Andrews
ad21d1a78e raise an error if stack fails in lxc 2011-10-26 12:39:00 -07:00
Dean Troyer
ae6055685c Always resize the root filesystem 2011-10-26 12:35:22 -05:00
Dean Troyer
ea442c1cb7 Install a generic kernel in the ramdisk image 2011-10-26 12:34:59 -05:00
Jesse Andrews
7b1aa5b6be Merge branch 'master' of github.com:cloudbuilders/devstack 2011-10-26 08:51:59 -07:00
Jesse Andrews
7d45a0fa60 default the root password to admin password and don't fail if group already exists 2011-10-26 08:51:49 -07:00
Jesse Andrews
c99d4ad156 Merge pull request #102 from cloudbuilders/cache_images_kvm
Cache images kvm
2011-10-25 23:55:56 -07:00
Jesse Andrews
00dcc067f7 put them in the right place 2011-10-25 23:51:43 -07:00
Jesse Andrews
244655f0c5 copy to a directory not file 2011-10-25 23:48:39 -07:00
Jesse Andrews
9173d06706 typo 2011-10-25 23:43:03 -07:00
Jesse Andrews
6065772fec cache the images 2011-10-25 23:41:59 -07:00
Dean Troyer
61be924209 Final ramdisk must be a filesystem image 2011-10-25 22:35:23 -05:00
Dean Troyer
a6466e0f67 Initial conversion to use UEC images 2011-10-25 17:53:24 -05:00
Dean Troyer
a03b99dc99 Fix typos 2011-10-25 16:28:49 -05:00
Dean Troyer
42940a4ff2 Merge branch 'image' 2011-10-25 15:51:01 -05:00
Dean Troyer
ecc5a90929 Add check for version compatibility 2011-10-25 15:49:47 -05:00
Dean Troyer
e753fdf42c Add get_uec_image.sh 2011-10-25 15:45:52 -05:00
Anthony Young
6856536144 Fix issue #98 - wait till nbd is connected using method in nova's disk.py 2011-10-24 23:20:12 -07:00
Jesse Andrews
381591ad66 raise error if stack.sh failed 2011-10-24 22:25:16 -07:00
Jesse Andrews
87a73e8216 only run apt-get install if needed - fixes multiple builds being kicked off at once 2011-10-24 17:06:58 -07:00
Dean Troyer
fcfa9c3d1f Add oneiric to supported list 2011-10-24 16:18:52 -05:00
Dean Troyer
9af93e9551 Add oneric to supported list 2011-10-24 16:11:20 -05:00
Jesse Andrews
f5ecd5bcaf Add comment about why the sleep is there 2011-10-24 12:59:29 -07:00
Jesse Andrews
61e0a2e0da don't explode if domain doesn't already exist in build_kvm.sh 2011-10-24 12:47:13 -07:00
Jesse Andrews
b169b6354d typo in setting root password 2011-10-24 12:46:01 -07:00
Jesse Andrews
4b8ab92ebb errexit for build_kvm.sh 2011-10-24 12:42:43 -07:00
Jesse Andrews
1369c05f9b can't unmount if cwd is in copy 2011-10-24 12:38:13 -07:00
Jesse Andrews
82040df0da update build lxc/kvm variables to GUEST instead of CONTAINER 2011-10-22 20:56:23 -07:00
Jesse Andrews
ccc11c9d18 use CONTAINER_NAME instead of CONTAINER like build_kvm.sh 2011-10-22 20:52:29 -07:00
Jesse Andrews
ec1d0318ab libvirt.xml needs to be created in correct location 2011-10-21 19:22:55 -07:00
Dean Troyer
d03329106f Rename BASE_IMAGE_COPY to VM_IMAGE 2011-10-21 14:58:44 -05:00
Dean Troyer
ad57a3a8e8 Change hard-coded natty to DIST_NAME 2011-10-21 14:29:30 -05:00
Dean Troyer
e4f030fef1 Add CONTAINER_NAME to BASE_IMAGE_COPY value 2011-10-21 14:28:03 -05:00
Jesse Andrews
47d265b060 Merge pull request #63 from dtroyer/2-checkout-devstack
checkout devstack
2011-10-21 11:32:46 -07:00
Jesse Andrews
13050a8735 Merge pull request #85 from cloudbuilders/n-vol
initial support for volumes
2011-10-21 11:32:25 -07:00
James E. Blair
698fc619b7 Merge remote-tracking branch 'cloudbuilders/master'
Conflicts:
	stack.sh
2011-10-21 12:07:23 -04:00
Jesse Andrews
6960eff979 parameterize ram/cores in build_kvm 2011-10-20 14:57:18 -07:00
Anthony Young
6993746cac add some sleeps to help figure out mount error 2011-10-20 12:55:46 -07:00
Anthony Young
d781efd87b fix space 2011-10-20 12:36:09 -07:00
Anthony Young
babb2e075a re-order cleanup calls 2011-10-20 12:35:01 -07:00
Anthony Young
03c1fa6012 use CONTAINER_NAME, like lxc, and use default semi-unique mac addresses 2011-10-20 11:35:14 -07:00
Anthony Young
b22263a604 tweaks per jesse comments 2011-10-20 10:26:30 -07:00
James E. Blair
7057ae991d Reduce timeouts to 60 seconds. 2011-10-20 12:23:50 -05:00
Anthony Young
acff87a202 initial support for volumes 2011-10-20 10:12:58 -07:00
Vishvananda Ishaya
9b3536714a fix whitespace 2011-10-20 10:08:20 -07:00
James E. Blair
92e81992c1 Add bare-metal build scripts.
Add ROOTSLEEP parameter to avoid 10 second sleep.

Add host argument to mysql password change command so that it
will still work if mysql is already installed and running
(otherwise, the my.cnf created immediately prior takes precedence).

Add timeouts when waiting for things to start so they aren't in
infinite loops.
2011-10-20 11:26:08 -05:00
Anthony Young
3ee09ec209 now works with natty 2011-10-19 20:35:04 -07:00
Anthony Young
9c0fdd7ded parameterize nbd dev 2011-10-19 20:22:32 -07:00
Anthony Young
d51812d444 working build_kvm 2011-10-19 20:09:43 -07:00