I've partially set up dogfood today and wrote up the steps in more detail: https://wiki.linaro.org/Platform/LAVA/DevOps/SettingUpStaging
If someone wants to start automating some of this, I won't be stopping them!
Cheersm mwh
Michael Hudson-Doyle michael.hudson@linaro.org writes:
Michael Hudson-Doyle michael.hudson@linaro.org writes:
Michael Hudson-Doyle michael.hudson@linaro.org writes:
Michael Hudson-Doyle michael.hudson@linaro.org writes:
Luckily lava-deployment-tool makes the set up pretty easy :-)
So ftr, here are the steps involved in setting up staging:
- Create the instance-manager account
- Run ldt setup, ldt install
- Set up the devices
- this was the most tedious step
- this includes copying the reset-serial and pdu control scripts
- run ldt restore-db
- Set up the cronjobs to make the deployment-report and do code updates daily
- Put branches in /srv/lava/branches/
I forgot to set the instance up to _use_ these branches here!
- Set up apache to SetHandler none /deployment-report.xhtml, /staging-updates.txt through + create symlinks for same.
- Allow instance-manger to run appropriate commands without a password
There is more, sadly:
- realize that you should have run restore-staging-db, not ldt restore-db.
- fix the fact that this doesn't work any more due to django being rubbish
- create /linaro/tmp and /linaro/cache directories
- Realize that you need to set up Apache so that the device can download the test image tarballs.
Maybe that's it?
Cheers, mwh
Luckily an awful lot of the staging-specific stuff had not been purged from control so I could copy this across. But it was still a pain -- maybe I'll script it up when I do dogfood!
Cheers, mwh