diff options
26 files changed, 1 insertions, 756 deletions
@@ -1,17 +1,4 @@ ERP Test Automation =================== -Tools and scripts to automate hardware that is not yet in LAVA, for the -purposes of ERP testing. - -Scope ------ - -- PXE-related configuration. -- grub.cfg -- interfaces to test-definitions/test-runner - -Out of Scope ------------- - -Actual tests and test automation should live in https://git.linaro.org/qa/test-definitions.git/. +Repo moved to https://github.com/Linaro/erp-test-automation. diff --git a/erp-playbook/.gitignore b/erp-playbook/.gitignore deleted file mode 100644 index 5e3f80f..0000000 --- a/erp-playbook/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.retry -builds/ -roles/ diff --git a/erp-playbook/LICENSE b/erp-playbook/LICENSE deleted file mode 100644 index 963f5b0..0000000 --- a/erp-playbook/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright (c) 2017, Linaro Limited -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/erp-playbook/Makefile b/erp-playbook/Makefile deleted file mode 100644 index 1749845..0000000 --- a/erp-playbook/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -BUILD_NUM = # retrieve latest build by default -BUILD_ENV = staging # alternately, use stable - -get-last-change: - sh local_scripts/check-for-changes.sh $(BUILD_ENV) - -provision-drue: -ifeq ($(strip $(BUILD_NUM)),) - ansible-playbook -K -t provision -l erp-drue -e erp_debian_installer_environment=$(BUILD_ENV) main.yml -else - ansible-playbook -K -t provision -l erp-drue -e erp_build_number=$(BUILD_NUM) -e erp_debian_installer_environment=$(BUILD_ENV) main.yml -endif - -run-drue: -ifeq ($(strip $(BUILD_NUM)),) - ansible-playbook -t run_test -l erp-drue -e erp_debian_installer_environment=$(BUILD_ENV) main.yml -else - ansible-playbook -t run_test -l erp-drue -e "{erp_build_number: $(BUILD_NUM)}" -e erp_debian_installer_environment=$(BUILD_ENV) main.yml -endif - -roles: - ansible-galaxy install -p roles -r requirements.yml - -clean: - rm -rf roles diff --git a/erp-playbook/README.md b/erp-playbook/README.md deleted file mode 100644 index e1a39b7..0000000 --- a/erp-playbook/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# ERP Test Harness - -This ansible playbook can be used to automate the ERP testing on a set of given -hosts. - -## Roles - -ERP testing is as easy as 1 2 3: -1. Get a build -2. Load a build on a host (provision) -3. Install prerequisites on a host and run the tests autonomously - -The ansible run is idempotent; each time it is run, if the tests are already -running on a host it will not do anything. If the tests are not running on a -host, it will start them. - -### Find ERP build - -The `erp_get_build` role will ask jenkins for the latest build and then -download the build locally. This role is required to be run before the -subsequent roles. - -### Provision Host - -Depending on which lab a host is in (defined by their host group in `hosts`), a -lab-specific role will be run to provision a host. - -The `erp_provision_austin_host` is used to provision hosts in the US Austin -lab. - -The `erp_provision_cambridge_host` is used to provision hosts in the UK -Cambridge lab. - -### Run ERP Test Suite - -The `erp_run_test_suite` will ssh into the given host, install test-definitions -prerequisites, clone test-definitions, run each test plan that is used for ERP -testing, and post the results to https://qa-reports.linaro.org/ using the given -latest build number (discovered in `erp_get_build`). - -## Usage - -See the `Makefile` for example usecases. - -Note that 'hosts' and 'group_vars/all' files are encrypted using ansible vault. -To use, the vault password will have to be available in ~/.vault_pass_erp.txt. -Once set, use `ansible-vault edit` to view and modify. - -See `hosts.dist` and `group_vars/erp_all.dist` for examples of inventory -definitions. - -To run against a given host or host group, run `ansible-playbook -l -<hostname|hostgroup> main.yml`. If -l (limit) is not used, ansible will attempt -to run against every host defined in `hosts`. - -## Examples - -Provision hosts in the 'erp-drue' hostgroup: - - make run-drue - -Run tests against already-provisioned hosts in the 'erp-drue' hostgroup, but -set build number explicitly: - - make run-drue BUILD_NUM=450 - -Provision and run against hosts using the stable build number 321: - - make provision-drue BUILD_ENV=staging BUILD_NUM=321 - make run-drue BUILD_ENV=staging BUILD_NUM=321 diff --git a/erp-playbook/ansible.cfg b/erp-playbook/ansible.cfg deleted file mode 100644 index c32c89d..0000000 --- a/erp-playbook/ansible.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[defaults] -host_key_checking = False -vault_password_file = ~/.vault_pass_erp.txt -inventory = hosts -roles_path = local_roles diff --git a/erp-playbook/group_vars/all_erp b/erp-playbook/group_vars/all_erp deleted file mode 100644 index a4bee1a..0000000 --- a/erp-playbook/group_vars/all_erp +++ /dev/null @@ -1,33 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -34363566636365366565343930313763386334356434393862356437316233373961373161343338 -3962623131383930363539336336626161613136656133390a376234623965333739366637393465 -61663861373533363739643864613364633963393563623132626138636334616339356366613333 -6265653534386137640a313534333739383232366337393538656262336639623336353063393031 -66353864383535643463393864363430336366646265613663323032633430663165386634656135 -38633738346464376239633136623061303136363336386531643138366464323538346239623265 -37393037643964656361656433366366373330643066343734636237316439373132663938346666 -65643863306136323236356430346365363962363161616637633131333664663661353231643838 -31346265383833613439666439356431366437663738666631376238303730636332643632353538 -32666266373030393733313935653664386162303363356130366536643235313834646363626435 -61316361613765353139363030336366643334326164663562373238613539303166373230396566 -32373933323531353031346337633838326166633837333937666632363835323165393564376462 -37616435336433363863316261633932646539313063626335656536636462616662663366653961 -36386231623862313661303230303363656638633639366162386465366635356161373837383433 -33333034346232393636353165306636656566306638336539663233336331376433303364326336 -39643339313031343831333437376535393566333666666432346231396230623832653462363934 -30363161303731336338303162636336613930636162306134653962666136376365363735623734 -39313363343666343862393737313131306465323263303235363664353938343939326266653832 -39343835366262396637646166383835366463633335323339643763356132666364656531383536 -30336634613563346461383663393663323433663130373736393736653334333464333037303064 -62313136346466616534633465336662636535366265373232303731623337353333383636383532 -37373636373939326632616533313537343064613261653430303433316266366164653062316239 -63636666363162626361356432363464356436353239656130633635343165346139346534656135 -32613531656234616162376538633530313864313331303235613631333463393636323334313962 -62613831366432663734396438663333333932653837306464346530353064383137313261383135 -36326562396535346335666364626131663162666262626633333136616539343535313964386664 -31313264333465663032613065646361306331333362653330303038616662396532323364303233 -30626530333065323361303664366234336638643938623835383836613234383665663064666465 -62636633366666396132343463653637666437633830396164346166653038363836313635303031 -39613866643634303765336662333565313633313634346630323831346335323461396132396232 -30313935393537313835386361373630643863373438613836393639373363656337656530346231 -36663666663838633638 diff --git a/erp-playbook/group_vars/all_erp.dist b/erp-playbook/group_vars/all_erp.dist deleted file mode 100644 index 66478c9..0000000 --- a/erp-playbook/group_vars/all_erp.dist +++ /dev/null @@ -1,14 +0,0 @@ -# Default username and password for each host in ../hosts -# If a host needs a different settings, put it in ../hosts -# These should match the preseed file used during host provisioning. -ansible_user: linaro -ansible_ssh_pass: linaro -ansible_become_pass: root -ansible_become: yes -ansible_become_method: su - -squad_auth_tokens: - production: "MY_SECRET_TOKEN" - staging: "MY_SECRET_TOKEN" - -ansible_ssh_common_args: '-o UserKnownHostsFile=/dev/null' diff --git a/erp-playbook/hosts b/erp-playbook/hosts deleted file mode 100644 index 4c30dc2..0000000 --- a/erp-playbook/hosts +++ /dev/null @@ -1,86 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -38373839383836313434363333636337343461643064633364646461306366656565383832616663 -3466373964313366383964633832386638373165336463660a363265366436633031366437646263 -65373362373934363263303365343761396332636437356635626330663136386535373936326339 -6661633466383363330a316333396464363539633136623433343737353862356138316633626562 -64653764383135666536636338323663643134633232653464623931646537323061666361623739 -33383231336266373161633163336461393466336636663534373563626539633339633534663632 -30366566663239343665336635393131323633336137316230643264633839356461626465383935 -36643631316363303061373632633737626662653030373433363932373561353566313432356238 -30373130326234623734613539343131613933363733363832363033666563666131353134366666 -38646234373161396632326430616265343830393164356264666434343733383535303561663766 -33303262383263373330346332313630613465373730333633333839343834346333363436663230 -35333732373965383539333236643766306663313637383562623436376336353433383534666163 -65636361663737316133316233323431333262303963376635316261353637323438643065323539 -35356235356265346364326261646665653466386634633064336165373636623231363531316533 -36323363653636613965323836316566373438643132653038343935656239373433653265386362 -66346466353963326333336264323036393734336465623435326666323961396532633563396331 -65396465626133363962333130323166393466346635323335383861356563313032666661613339 -30323339336331346136386163303534343732626564623461326661386530616661306639373661 -32343262353532326164396666333137643935653862346631333830636261353962663734663732 -62373166346437376565356235613934653963653832633730326261643131353465383231666564 -39663835616131626333623961303764343439323866303038396237636636616635383633663038 -61336132623162323934303861353334383636373763313933626265646265653730313335333333 -39616437303531383637366633653561623434656463396261393164666466313234636363343138 -37393061313732383635313138356564653131316430363232646237336561633863343032343230 -32353866353735363634316663333166316663383633626134333863613633663632333231333935 -36363131643661666132383838313163363665316332326336666165646662653465616566323939 -32313538626530626666363335373833326264313763353738653132353438376562373266303865 -62656666653036373334663034653635346164326531393932363362346266613831666265633330 -36356533663937356435366666633264356330643765333937626663653566343961323835313564 -36646361626564363361303233353030393732386336363732626264336239623566663239353435 -63343339313166386261363137636537316435343233393962376539623130653833663239303462 -33343931626661366436306632323462363263663864373862363133393766653539363166323263 -37643632343435393166303661346431306638386263636563396366656634356339323535313639 -64663932356538316139343031356335323665633235633637623930306263636130333662613961 -64383964313739323238323062633433653631316561613235623665623933366337353036343333 -33376138386564623761396562336665663732353465356462396138376161396139313037366366 -33356664373062623630326666376266363536386539316437613635306331396334363662636537 -37366465383865323130396531326530303135376236616334653866306661633962323861666665 -64326137346235383863323363633736323533343236613137366664306566333738633537353864 -35333932663464653837376530613766666332626531646564396239346639666263323966623830 -30366437653332303530363435376261383836313237336532343230353662366232616135363733 -34383537383066373339303337643037666232343664326166666563626539383461356131643365 -39333837313466353664343630393632383332623539616330383661363564643962653862333761 -39336436613631626233383132663439353865366539636430303863303964396431333434653066 -35383039623434656636653933656664633133303132376231366263633438366439353137386536 -33313736386263386462336264646538303464633530323539303132323634313535666231316137 -62333036346265663462313365653663386431343731626362353932383061643864623165323363 -66663962343731323835626461653937343936303566346430653264373666626266663830313236 -31366237626330386134623964393836303232666538383739646664306332616162666539616330 -65663031653439623864663363636166636139646264613262623639323135336165636538653564 -30353535393662366537623137363437303832633364636561663565333830386338643938656131 -35356133633530653662623037353965616631623762353664653939353435663730363561363132 -65383461373932356564656334333334383231653530626336376566326161353930316230613335 -38366636643865643631613237356363633934343238353264653461326266386363363737363939 -31643934343838386632623362373637366262346139326338373737633564323338356139613264 -34616231353739626531636637393139663234346264306638643430663738323731393365653464 -34343233343238323132333932393031313838393232343130653936323165313930313466393032 -33373763623539633766623165356132373336346436313438366131376339653430656539323266 -32666330663466656633616233323838643533393162353131333736396566353635643431656137 -30313463353930663266396461646432313836356233343237353437633564313461613166636565 -32646539386139313930396538663939626438383237313330663036666466303164326132313238 -38306635613764333665663539316161323538643130373465343130373838373038313763613533 -61616631653838313230653963656366353430663339626133636464306266336665393663383533 -38373937383439336363393230356434396538393539626333383466313863643262626333623438 -30373836386137643039653839616362343934663434393437663632333431623965663731326163 -34613734623166333639366661353733626363313366373335636434366338633830323837333832 -61396138356336636434623832393963346630633433393132626662393535663136363937633633 -62316639393166333734636233656136346531366362376463656536643963366461643234346439 -38623939343634333433363662343536653031643930656331353961646564643033343361303135 -36396333323362373066316238393163396635643437396461333763313830663937366663626364 -64356265303863393037383766623066643132363731326566306232613935373436353138653131 -65653063313333323437616565313336633537663363653166383230303962353161663663653966 -33313533653762323565666461383532636432326437613336303235336363343864386530666662 -64666566353836363231376634333066666332383864326634306138343037613739663337363234 -64373263663637393130323037393134663236616136393931666238303263333363386461323231 -63303034373531666662323061646338343738633766626439383165333136633131323833613636 -37376331376435303764633363373238343865663839306334383735663538646339653062316438 -32333139313037666664666430363830656430363564396330386661396563313337636438646330 -63313564306561623833323432363166383565373463626234363866306434313266653365373233 -33393338396264366436653937613735353336326362616536663632663434383062656365336239 -39333739356535383465376632333464323739396564373834363266346239343331613236336332 -38323466613235333362626239663065343135333031373837613237626538633537343539393432 -31356535313962656465343961643663653664396538383136306630636333373762626432656234 -36353461383737656232653163613434636561623039613035366665396364636230663336643436 -64653639666664643130306136396330336566653334376565333163653439363638 diff --git a/erp-playbook/hosts.dist b/erp-playbook/hosts.dist deleted file mode 100644 index 64876f6..0000000 --- a/erp-playbook/hosts.dist +++ /dev/null @@ -1,30 +0,0 @@ -# *_erp groups are groups of ERP boards, with the same user and passwords -# all_erp is a meta-group that contains all erp boards. - -[local] -localhost ansible_connection=local - -[cambridge_erp] -# Cambridge Lab -cb-r1-crb1s-02 ansible_host=10.101.2.100 -cb-r2-d03-04 ansible_host=10.101.2.111 -cb-r2-d05-01 ansible_host=10.101.2.107 -cb-r2-d05-03 ansible_host=10.101.2.22 -cb-r1-m1-c33n1 ansible_host=10.101.3.88 -cb-r1-m1-c34n1 ansible_host=10.101.3.89 - -[open_estuary_erp] -# Open Estuary Lab -oe-d03-251 # Connection parameters in ~/.ssh/config - -[all_erp:children] -# All erp hosts -cambridge_erp -open_estuary_erp - -[erp-drue] -# Specific run group consisting of already defined hosts -cb-r1-crb1s-02 # ThunderX -cb-r2-d03-04 # D03 -cb-r2-d05-01 # D05 -cb-r1-m1-c33n1 # Moonshot diff --git a/erp-playbook/local_roles/erp-provision-austin-host/README.md b/erp-playbook/local_roles/erp-provision-austin-host/README.md deleted file mode 100644 index 1bf44f7..0000000 --- a/erp-playbook/local_roles/erp-provision-austin-host/README.md +++ /dev/null @@ -1,31 +0,0 @@ -ERP Provision Austin Host -========================= - -Provision a host in the Austin lab. - -Requirements ------------- - -This role expects -[Linaro:erp-get-build](https://galaxy.ansible.com/Linaro/erp-get-build/) to run -first. - -Role Variables --------------- - -None - -Dependencies ------------- - -[Linaro:erp-get-build](https://galaxy.ansible.com/Linaro/erp-get-build/) role. - -License -------- - -BSD - -Author Information ------------------- - -Dan Rue <dan.rue@linaro.org> diff --git a/erp-playbook/local_roles/erp-provision-austin-host/defaults/main.yml b/erp-playbook/local_roles/erp-provision-austin-host/defaults/main.yml deleted file mode 100644 index e2d4b45..0000000 --- a/erp-playbook/local_roles/erp-provision-austin-host/defaults/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# defaults file for erp_provision_cambridge_lab
\ No newline at end of file diff --git a/erp-playbook/local_roles/erp-provision-austin-host/meta/main.yml b/erp-playbook/local_roles/erp-provision-austin-host/meta/main.yml deleted file mode 100644 index 809040d..0000000 --- a/erp-playbook/local_roles/erp-provision-austin-host/meta/main.yml +++ /dev/null @@ -1,12 +0,0 @@ -galaxy_info: - author: Dan Rue <dan.rue@linaro.org> - description: Provision a host in the Cambridge lab. - company: Linaro - - license: BSD - - min_ansible_version: 2.2 - - galaxy_tags: [] - -dependencies: [] diff --git a/erp-playbook/local_roles/erp-provision-austin-host/tasks/main.yml b/erp-playbook/local_roles/erp-provision-austin-host/tasks/main.yml deleted file mode 100644 index 2c8d896..0000000 --- a/erp-playbook/local_roles/erp-provision-austin-host/tasks/main.yml +++ /dev/null @@ -1,54 +0,0 @@ ---- -- name: Verify variables are set - assert: - that: "{{ item }} is defined" - msg: Run erp_get_build role first - with_items: - - erp_debian_installer_environment - - erp_build_number - -- name: Create destination path - file: - path: "/var/lib/tftpboot/debian-{{erp_debian_installer_environment}}/{{erp_build_number}}" - state: directory -- name: Copy over new build - copy: - src: "./builds/debian-{{erp_debian_installer_environment}}/{{erp_build_number}}/{{item}}" - dest: "/var/lib/tftpboot/debian-{{erp_debian_installer_environment}}/{{erp_build_number}}/{{item}}" - with_items: - - "initrd.gz" - - "linux" -- name: Update default for host /var/lib/tftpboot/grub.cfg - blockinfile: - backup: yes - path: /var/lib/tftpboot/grub.cfg - marker: "# {mark} Default for {{macaddress}}" - block: | - if [ "${net_default_mac}" = "{{macaddress}}" ]; then - set timeout=5 - set default='Install Debian Jessie - RP {{erp_debian_installer_environment}} - Image {{erp_build_number}} - Automated' - fi - -- name: Update menuentry /var/lib/tftpboot/grub.cfg - blockinfile: - path: /var/lib/tftpboot/grub.cfg - insertafter: EOF - marker: "# {mark} debian-{{erp_debian_installer_environment}} {{erp_build_number}}" - block: | - menuentry 'Install Debian Jessie - RP {{erp_debian_installer_environment}} - Image {{erp_build_number}} - Automated' { - linux /debian-{{erp_debian_installer_environment}}/{{erp_build_number}}/linux module_blacklist=mlx5_core auto=true interface=auto priority=critical noshell BOOT_DEBUG=1 DEBIAN_FRONTEND=text url=http://people.linaro.org/~dan.rue/erp-test-automation/releases/17.08/debian/preseed.cfg --- - initrd /debian-{{erp_debian_installer_environment}}/{{erp_build_number}}/initrd.gz - } - -# XXX: Replace with automation script -- name: Connect to console - pause: - prompt: "In a separate window, run the following to attach to the amberwing: 'ssh -t aus-colo.linaro.org ipmitool -I lanplus -A PASSWORD -U admin -P Password1 -H {{inventory_hostname}}-bmc sol activate' and then press <enter> to reboot" - -- name: amberwing - reboot - command: ipmitool -I lanplus -A PASSWORD -U admin -P Password1 -H {{inventory_hostname}}-bmc chassis power cycle - -# TODO: Replace with automation script -- name: Reboot machines and install OS - pause: - prompt: "Install new OS. <enter> once complete" diff --git a/erp-playbook/local_roles/erp-provision-cambridge-host/README.md b/erp-playbook/local_roles/erp-provision-cambridge-host/README.md deleted file mode 100644 index 2e4577b..0000000 --- a/erp-playbook/local_roles/erp-provision-cambridge-host/README.md +++ /dev/null @@ -1,30 +0,0 @@ -ERP Provision Cambridge Host -============================ - -Provision a host in the Cambridge lab. - -Requirements ------------- - -This role expects -[erp-get-build](https://galaxy.ansible.com/Linaro/erp-get-build/) to run first. - -Role Variables --------------- - -None - -Dependencies ------------- - -[erp-get-build](https://galaxy.ansible.com/Linaro/erp-get-build/) role. - -License -------- - -BSD - -Author Information ------------------- - -Dan Rue <dan.rue@linaro.org> diff --git a/erp-playbook/local_roles/erp-provision-cambridge-host/defaults/main.yml b/erp-playbook/local_roles/erp-provision-cambridge-host/defaults/main.yml deleted file mode 100644 index e2d4b45..0000000 --- a/erp-playbook/local_roles/erp-provision-cambridge-host/defaults/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# defaults file for erp_provision_cambridge_lab
\ No newline at end of file diff --git a/erp-playbook/local_roles/erp-provision-cambridge-host/meta/main.yml b/erp-playbook/local_roles/erp-provision-cambridge-host/meta/main.yml deleted file mode 100644 index 809040d..0000000 --- a/erp-playbook/local_roles/erp-provision-cambridge-host/meta/main.yml +++ /dev/null @@ -1,12 +0,0 @@ -galaxy_info: - author: Dan Rue <dan.rue@linaro.org> - description: Provision a host in the Cambridge lab. - company: Linaro - - license: BSD - - min_ansible_version: 2.2 - - galaxy_tags: [] - -dependencies: [] diff --git a/erp-playbook/local_roles/erp-provision-cambridge-host/tasks/main.yml b/erp-playbook/local_roles/erp-provision-cambridge-host/tasks/main.yml deleted file mode 100644 index d3d7904..0000000 --- a/erp-playbook/local_roles/erp-provision-cambridge-host/tasks/main.yml +++ /dev/null @@ -1,22 +0,0 @@ -- name: Verify variables are set - assert: - that: "{{ item }} is defined" - msg: Run erp_get_build role first - with_items: - - erp_debian_installer_environment - - erp_build_number - -# TODO: Replace with API call, once supported. -- name: Upload build to Cambridge Lab - pause: - prompt: "Upload ./builds/debian-{{erp_debian_installer_environment}}/{{erp_build_number}}/ files to http://172.27.80.1:5000/admin/images with description 'debian-installer {{erp_debian_installer_environment}} Build {{erp_build_number}}'. Press <enter> key when complete" - -# TODO: Replace with API call, once supported. -- name: Edit Machines - pause: - prompt: "In Mr. Provisioner, modify each machine in your host group to {{erp_build_number}}. <enter> once complete" - -# TODO: Replace with API call, once supported. -- name: Reboot machines and install OS - pause: - prompt: "In Mr. Provisioner, PXE Reboot each machine to install new OS. <enter> once complete" diff --git a/erp-playbook/local_scripts/check-for-changes.sh b/erp-playbook/local_scripts/check-for-changes.sh deleted file mode 100755 index b223fb2..0000000 --- a/erp-playbook/local_scripts/check-for-changes.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -BUILD_ENV=$1 - -if [ "${BUILD_ENV}" != "staging" -a "${BUILD_ENV}" != "stable" ]; then - echo "Usage: $0 [staging|stable]" - exit 1 -fi - -if [ "${BUILD_ENV}" = "staging" ]; then - URLs=$(cat <<EOF - http://repo.linaro.org/debian/erp-17.08-stable/dists/jessie/main/binary-arm64/Packages.bz2 - http://repo.linaro.org/debian/erp-17.08-staging/dists/jessie/main/binary-arm64/Packages.bz2 - http://repo.linaro.org/debian/erp-17.08-staging/dists/jessie/main/debian-installer/binary-arm64/Packages.gz -EOF - ) -elif [ "${BUILD_ENV}" = "stable" ]; then - URLs=$(cat <<EOF - http://repo.linaro.org/debian/erp-17.08-stable/dists/jessie/main/binary-arm64/Packages.bz2 - http://repo.linaro.org/debian/erp-17.08-stable/dists/jessie/main/debian-installer/binary-arm64/Packages.gz -EOF - ) -else - echo "ERROR: Unknown value ${BUILD_ENV}" - exit 1 -fi - -RESULT="" -for url in $URLs; do - - LAST_CHANGE="$(curl --silent -I ${url} | grep ^Last-Modified | sed 's/Last-Modified: //')" - # Convert to a sortable datetime - LAST_CHANGE=$(date -d "${LAST_CHANGE}" --iso-8601=seconds --utc) - - if [ -n "${RESULT}" ]; then - RESULT="${RESULT}"$'\n' - fi - RESULT="${RESULT}${LAST_CHANGE}" - -done - -#echo "${RESULT}" -#echo "" -echo "Last Change: $(echo "${RESULT}" | sort -n | tail -1)" - diff --git a/erp-playbook/main.yml b/erp-playbook/main.yml deleted file mode 100644 index 23468d5..0000000 --- a/erp-playbook/main.yml +++ /dev/null @@ -1,34 +0,0 @@ -- name: ERP Testing - hosts: all_erp - gather_facts: false - vars: - squad_environment: production - erp_debian_installer_environment: stable - - pre_tasks: - - set_fact: - erp_squad_auth_token: "{{squad_auth_tokens[squad_environment]}}" - tags: - - always - - roles: - - role: Linaro.erp-get-build - delegate_to: localhost - run_once: true - tags: - - always - - role: erp-provision-cambridge-host - delegate_to: localhost - when: "'cambridge_erp' in group_names" - tags: - - provision - - role: erp-provision-austin-host - delegate_to: qa-pxe - become: true - become_method: sudo - when: "'austin_erp' in group_names" - tags: - - provision - - role: Linaro.erp-run-test-suite - tags: - - run_test diff --git a/erp-playbook/requirements.yml b/erp-playbook/requirements.yml deleted file mode 100644 index 047422f..0000000 --- a/erp-playbook/requirements.yml +++ /dev/null @@ -1,4 +0,0 @@ -- src: Linaro.erp-get-build - version: master -- src: Linaro.erp-run-test-suite - version: master diff --git a/releases/17.08/debian/README.md b/releases/17.08/debian/README.md deleted file mode 100644 index 1bde790..0000000 --- a/releases/17.08/debian/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Cambridge - -Run "setup-local.sh <build-num>" -Upload $HOME/<build-num>/ to http://172.27.80.1:5000/admin/images - -Open http://172.27.80.1:5000/admin/machines/5 - - Edit to latest build - - Reboot - -## ThunderX - -Open ipmitool -v -I lanplus -H 172.27.64.111 -U admin -P 'admin' sol activate - - Press any key for boot selection - - Boot #3, PXE - - If "Network autoconfiguration failed", reboot and it will work the second time. - - -# Austin - -scp setup-austin.sh qa-pxe:~/ -ssh -t qa-pxe sudo sh setup-austin.sh <build-num> - -## Amberwing - -ssh -t aus-colo.linaro.org ipmitool -I lanplus -A PASSWORD -U admin -P Password1 -H r3-a14-bmc chassis power reset -ssh -t aus-colo.linaro.org ipmitool -I lanplus -A PASSWORD -U admin -P Password1 -H r3-a14-bmc sol activate - -hit "Space", select EFI Network in boot menu. - -# Open Estuary - -scp setup-openestuary.sh oe-board-server:~/ -ssh -t oe-board-server sh setup-openestuary.sh <build-num> - -## D03/D05 -board_reboot 2 -board_connect 2 - -# From boot menu, select EFI Network 2 diff --git a/releases/17.08/debian/preseed.cfg b/releases/17.08/debian/preseed.cfg deleted file mode 100644 index 567664d..0000000 --- a/releases/17.08/debian/preseed.cfg +++ /dev/null @@ -1,59 +0,0 @@ -# Kernel boot args: linux auto=true interface=auto priority=critical http://people.linaro.org/~chase.qi/configs/preseed.cfg -# Pure text mode: linux auto=true interface=auto priority=critical noshell BOOT_DEBUG=1 DEBIAN_FRONTEND=text url=http://people.linaro.org/~chase.qi/configs/preseed.cfg - -# Notes: -# When adding preseed/late_command line please make sure 'apt-get install -y linux-image-reference-arm64' included. -# Both local0 and local1 for repo adding occupied by the embedded preseed.cfg in initrd.gz, don't use them. - -# Localization -d-i debian-installer/locale string en_US -d-i keyboard-configuration/xkb-keymap select us - -# Network configuration -d-i netcfg/choose_interface select auto -d-i netcfg/dhcp_timeout string 60 - -# Any hostname and domain names assigned from dhcp take precedence over -# values set here. However, setting the values still prevents the questions -# from being shown, even if values come from dhcp. -d-i netcfg/get_hostname string unassigned-hostname -d-i netcfg/get_domain string unassigned-domain - -# Mirror settings -d-i mirror/country string US -d-i mirror/http/hostname string deb.debian.org # Debian CDN -d-i mirror/http/directory string /debian -d-i mirror/http/proxy string - -# Account setup -d-i passwd/root-password password root -d-i passwd/root-password-again password root -d-i passwd/user-fullname string linaro -d-i passwd/username string linaro -d-i passwd/user-password password linaro -d-i passwd/user-password-again password linaro - -# Clock and time zone setup -d-i clock-setup/utc boolean true -d-i time/zone string GMT -d-i clock-setup/ntp boolean true - -# Partitioning -d-i partman-auto/disk string /dev/sda -d-i partman-auto/method string regular -d-i partman-lvm/device_remove_lvm boolean true -d-i partman-md/device_remove_md boolean true -d-i partman-auto/choose_recipe select atomic -d-i partman/confirm_write_new_label boolean true -d-i partman/choose_partition select finish -d-i partman/confirm boolean true -d-i partman/confirm_nooverwrite boolean true - -# Package selection -tasksel tasksel/first multiselect standard -d-i pkgsel/include string openssh-server -d-i pkgsel/upgrade select none -popularity-contest popularity-contest/participate boolean false - -# Misc options -d-i finish-install/reboot_in_progress note diff --git a/releases/17.08/debian/setup-austin.sh b/releases/17.08/debian/setup-austin.sh deleted file mode 100644 index 8d6a465..0000000 --- a/releases/17.08/debian/setup-austin.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -set -e -set -x - -VERSION=$1 - -if [ -z ${VERSION} ]; then - echo "Usage: $0 <debian-installer staging build number>" - echo "See http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/" - exit 1 -fi - -if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root" 1>&2 - exit 1 -fi - -TFTP_PATH=/var/lib/tftpboot/debian-staging/${VERSION} - -mkdir -p ${TFTP_PATH} -if [ ! -f ${TFTP_PATH}/initrd.gz ]; then - curl -f -L -o ${TFTP_PATH}/initrd.gz http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/${VERSION}/debian-installer/arm64/initrd.gz -fi -if [ ! -f ${TFTP_PATH}/linux ]; then - curl -f -L -o ${TFTP_PATH}/linux http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/${VERSION}/debian-installer/arm64/linux -fi - -grep -q "Install Debian Jessie - RP Staging - Image $VERSION - Automated" /var/lib/tftpboot/grub.cfg || \ -cp /var/lib/tftpboot/grub.cfg /var/lib/tftpboot/.grub.cfg.$(date +%s) && \ -cat << EOF >> /var/lib/tftpboot/grub.cfg -menuentry 'Install Debian Jessie - RP Staging - Image $VERSION - Automated' { - linux /debian-staging/$VERSION/linux auto=true interface=auto priority=critical noshell BOOT_DEBUG=1 DEBIAN_FRONTEND=text url=http://people.linaro.org/~dan.rue/erp-test-automation/releases/17.08/debian/preseed.cfg --- - initrd /debian-staging/$VERSION/initrd.gz -} - -EOF - diff --git a/releases/17.08/debian/setup-local.sh b/releases/17.08/debian/setup-local.sh deleted file mode 100644 index 0276438..0000000 --- a/releases/17.08/debian/setup-local.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -set -e -set -x - -VERSION=$1 - -if [ -z ${VERSION} ]; then - echo "Usage: $0 <debian-installer staging build number>" - echo "See http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/" - exit 1 -fi - -DOWNLOAD_PATH=$HOME/debian-staging/${VERSION} - -mkdir -p ${DOWNLOAD_PATH} -if [ ! -f ${DOWNLOAD_PATH}/initrd.gz ]; then - curl -f -L -o ${DOWNLOAD_PATH}/initrd.gz http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/${VERSION}/debian-installer/arm64/initrd.gz -fi -if [ ! -f ${DOWNLOAD_PATH}/linux ]; then - curl -f -L -o ${DOWNLOAD_PATH}/linux http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/${VERSION}/debian-installer/arm64/linux -fi diff --git a/releases/17.08/debian/setup-openestuary.sh b/releases/17.08/debian/setup-openestuary.sh deleted file mode 100644 index 028f2b8..0000000 --- a/releases/17.08/debian/setup-openestuary.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -set -e -set -x - -VERSION=$1 - -if [ -z ${VERSION} ]; then - echo "Usage: $0 <debian-installer staging build number>" - echo "See http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/" - exit 1 -fi - -TFTP_PATH=${HOME}/tftp/debian-staging/${VERSION} - -mkdir -p ${TFTP_PATH} -if [ ! -f ${TFTP_PATH}/initrd.gz ]; then - curl -f -L -o ${TFTP_PATH}/initrd.gz http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/${VERSION}/debian-installer/arm64/initrd.gz -fi -if [ ! -f ${TFTP_PATH}/linux ]; then - curl -f -L -o ${TFTP_PATH}/linux http://builds.96boards.org/snapshots/reference-platform/components/debian-installer-staging/${VERSION}/debian-installer/arm64/linux -fi -if [ -f ${HOME}/grub.cfg ]; then - mv ${HOME}/grub.cfg ${HOME}/.grub.cfg.$(date +%s) -fi - - -# linux /$USERNAME/debian-installer/$VERSION/linux \ -# pcie_aspm=off \ -# acpi=force \ -# console=ttyS0,115200 \ -# earlycon=hisilpcuart,mmio,0xa01b0000,0,0x2f8 \ -# auto=true \ -# priority=critical -# #url=http://people.linaro.org/~dan.rue/erp-1708/preseed.cfg --- -# initrd /$USERNAME/debian-installer/$VERSION/initrd.gz - -cat << EOF > ${HOME}/grub.cfg -menuentry 'debian-erp-${VERSION}-installer' --id debian-erp-${VERSION}-installer { - linux /${USER}/debian-staging/${VERSION}/linux \ - pcie_aspm=off \ - acpi=force \ - console=ttyS0,115200 \ - earlycon=hisilpcuart,mmio,0xa01b0000,0,0x2f8 \ - auto=true \ - priority=critical \ - url=http://people.linaro.org/~dan.rue/erp-test-automation/releases/17.08/debian/preseed.cfg --- - initrd /${USER}/debian-staging/${VERSION}/initrd.gz -} -EOF |