balanced-cookbooks / balanced-ci

Internal configuration for the Jekins CI environment
4 stars 1 forks source link

How to spin up new builder instances? #43

Closed mjallday closed 10 years ago

mjallday commented 10 years ago

I tried launching "more like these" in the AWS console. It spun up a server but did not initiate a chef run on the machine.

The cloud-init.log file looks like

ubuntu@ip-10-199-128-87:~$ cat /var/log/cloud-init.log 
2014-02-27 20:38:07,590 - cloud-init[INFO]: cloud-init start-local running: Thu, 27 Feb 2014 20:38:07 +0000. up 2.13 seconds
2014-02-27 20:38:07,655 - __init__.py[DEBUG]: searching for data source in ['DataSourceNoCloud', 'DataSourceConfigDrive', 'DataSourceOVF']
2014-02-27 20:38:07,839 - __init__.py[DEBUG]: Did not find data source. searched classes: ['DataSourceNoCloud', 'DataSourceConfigDrive', 'DataSourceOVF']
2014-02-27 20:38:08,075 - cloud-init[INFO]: cloud-init start running: Thu, 27 Feb 2014 20:38:08 +0000. up 2.61 seconds
2014-02-27 20:38:08,096 - __init__.py[DEBUG]: searching for data source in ['DataSourceNoCloudNet', 'DataSourceConfigDriveNet', 'DataSourceOVFNet', 'DataSourceMAAS', 'DataSourceEc2']
2014-02-27 20:38:08,228 - DataSourceEc2.py[DEBUG]: Using metadata source: 'http://169.254.169.254'
2014-02-27 20:38:08,240 - DataSourceEc2.py[DEBUG]: crawl of metadata service took 0s
2014-02-27 20:38:08,240 - __init__.py[DEBUG]: found data source DataSourceEc2
2014-02-27 20:38:08,244 - cloud-init[DEBUG]: found data source: DataSourceEc2
2014-02-27 20:38:08,246 - __init__.py[WARNING]: Unhandled non-multipart userdata ''
2014-02-27 20:38:08,255 - __init__.py[DEBUG]: handling bootcmd with freq=None and args=[]
2014-02-27 20:38:08,256 - __init__.py[DEBUG]: handling resizefs with freq=None and args=[]
2014-02-27 20:38:08,275 - cc_resizefs.py[DEBUG]: resize took 0.0105061531067 seconds
2014-02-27 20:38:08,275 - cc_resizefs.py[DEBUG]: resizing root filesystem (type=ext4, maj=202, min=1, val=True)
2014-02-27 20:38:08,275 - __init__.py[DEBUG]: handling set_hostname with freq=None and args=[]
2014-02-27 20:38:08,283 - cc_set_hostname.py[DEBUG]: populated /etc/hostname with ip-10-199-128-87 on first boot
2014-02-27 20:38:08,283 - __init__.py[DEBUG]: handling update_hostname with freq=None and args=[]
2014-02-27 20:38:08,284 - cc_update_hostname.py[DEBUG]: wrote ip-10-199-128-87 to /var/lib/cloud/data/previous-hostname
2014-02-27 20:38:08,284 - __init__.py[DEBUG]: handling update_etc_hosts with freq=None and args=[]
2014-02-27 20:38:08,285 - cc_update_etc_hosts.py[DEBUG]: not managing /etc/hosts
2014-02-27 20:38:08,285 - __init__.py[DEBUG]: handling ca-certs with freq=None and args=[]
2014-02-27 20:38:08,286 - __init__.py[DEBUG]: handling rsyslog with freq=None and args=[]
2014-02-27 20:38:08,286 - __init__.py[DEBUG]: handling ssh with freq=None and args=[]
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] cloud-init-cfg[INFO]: cloud-init-cfg ['all', 'config']
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling disk-setup with freq=None and args=[]
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling mounts with freq=None and args=[]
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] cc_mounts.py[DEBUG]: Attempting to determine the real name of ephemeral0
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] DataSourceEc2.py[DEBUG]: remapped device name /dev/sdb => /dev/xvdb
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] cc_mounts.py[DEBUG]: Mapped metadata name ephemeral0 to /dev/xvdb
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] cc_mounts.py[DEBUG]: changed default device ephemeral0 => /dev/xvdb
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] cc_mounts.py[DEBUG]: Attempting to determine the real name of swap
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] DataSourceEc2.py[DEBUG]: unable to convert swap to a device
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] cc_mounts.py[DEBUG]: Ignoring nonexistant default named mount swap
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] util.py[DEBUG]: Reading from /etc/fstab (quiet=False)
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] util.py[DEBUG]: Read 43 bytes from /etc/fstab
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] future_util.py[DEBUG]: Running command ('mount', '-a') with allowed return codes [0] (shell=False, capture=True)
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling ssh-import-id with freq=None and args=[]
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling locale with freq=None and args=[]
Feb 27 20:38:09 ip-10-199-128-87 [CLOUDINIT] cc_locale.py[DEBUG]: setting locale to en_US.UTF-8
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling set-passwords with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling grub-dpkg with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] cc_grub_dpkg.py[DEBUG]: setting grub debconf-set-selections with '','true'
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling apt-pipelining with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] cc_apt_pipelining.py[DEBUG]: Wrote /etc/apt/apt.conf.d/90cloud-init-pipelining with APT pipeline setting
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling apt-update-upgrade with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] cc_apt_update_upgrade.py[DEBUG]: mirror info: {'security': 'http://security.ubuntu.com/ubuntu', 'primary': 'http://us-west-1.ec2.archive.ubuntu.com/ubuntu/', 'mirror': 'http://us-west-1.ec2.archive.ubuntu.com/ubuntu/'}
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling landscape with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling timezone with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling puppet with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling chef with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling salt-minion with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling mcollective with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling disable-ec2-metadata with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling runcmd with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling byobu with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] cloud-init-cfg[INFO]: cloud-init-cfg ['all', 'final']
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling rightscale_userdata with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling scripts-per-once with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling scripts-per-boot with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling scripts-per-instance with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling scripts-user with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling keys-to-console with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling phone-home with freq=None and args=[]
Feb 27 20:38:10 ip-10-199-128-87 [CLOUDINIT] __init__.py[DEBUG]: handling final-message with freq=None and args=[]
mjallday commented 10 years ago

ping @coderanger

coderanger commented 10 years ago

knife bootstrap -E production -r 'recipe[role-base],recipe[balanced-ci::balanced]' <hostname>

mahmoudimus commented 10 years ago

@mjallday can you write something up?

mjallday commented 10 years ago

@mahmoudimus this is going to go away I believe, next generation will auto bootstrap. right @coderanger ?