Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
events:fusion18:tally [2018/06/27 17:46] frau_lutznevents:fusion18:tally [2024/03/31 13:09] (current) – ↷ Links adapted because of a move operation kunsi
Line 5: Line 5:
 ^ device       ^ ipv4                                                         ^ /etc/issue                ^ config                                                            ^ ^ device       ^ ipv4                                                         ^ /etc/issue                ^ config                                                            ^
 | tallycom2-1  | 10.73.2.15/16                                                | ''Raspbian GNU/Linux 9''  | partially ansibilised, **please redo completely for next event**  | | tallycom2-1  | 10.73.2.15/16                                                | ''Raspbian GNU/Linux 9''  | partially ansibilised, **please redo completely for next event**  |
-| tallycom3-2  | 10.73.2.17/16 (should be [[intern:netzplan|10.73.3.16/16]])  | ''Raspbian GNU/Linux 8''  | partially ansibilised, **please redo completely for next event**  |+| tallycom3-2  | 10.73.2.17/16 (should be [[intern:archive:netzplan|10.73.3.16/16]])  | ''Raspbian GNU/Linux 8''  | partially ansibilised, **please redo completely for next event**  |
  
-Getting voctolight on both tallycoms to (manually) work took unnecessarily much time. It boils down to being new to the matter, wrong labels, wrong config and different behavior after correcting the config, due to different base OS versions ([[https://www.raspberrypi.org/forums/viewtopic.php?t=187225]]).+Getting voctolight on both tallycoms to (manually) work took unnecessarily much time. It boils down to being new to the matter, wrong labels, wrong config and different behaviour after correcting the config, due to different base OS versions ([[https://www.raspberrypi.org/forums/viewtopic.php?t=187225]]).
  
 === Step for step rebuild === === Step for step rebuild ===
-Below is written from scratch, so that someone who brings their (linuxlaptop and never worked with the VOC beforehas good starting pointThis section can be moved to a separate page in true wiki fashion.+This section describes how to (re-)setup a tallycom from scratch, that should enable a VOC rookie with a linux laptop to go right ahead. **WARNING: Due to time constraints no tallycom was actually re-flashed and the steps below are incomplete. If anythingthey should be seen as rough guideFeel free to extend.**
  
-== 1. Flash latest Raspberry lite ==+== 1. Prerequisites ==
   - Ensure that you have access to this wiki. If you haven't, you can't read this. :brain_explosion:   - Ensure that you have access to this wiki. If you haven't, you can't read this. :brain_explosion:
 +  - If DHCP doesn't work, have someone from the VOC team reserve and hand you a [[intern:archive:netzplan|10.73.100.{1..254}/16]] address. Configure it manually. <code>
 +IP: 10.73.100.X
 +SNM: 255.255.0.0
 +GW: 10.73.0.254
 +DNS: 10.73.0.254
 +</code>
 +  - Install ansible and git <code>
 +user@laptop$ sudo {dnf,yum,apt-get} install ansible git
 +</code>
 +
 +== 2. Flash latest Raspberry lite ==
   - Download + unzip the latest Raspbian lite - [[https://downloads.raspberrypi.org/raspbian_latest]] (at the time of writing April 2018)\\ **WARNING: 350 MB** - A lot in case of shitty/shared uplink... <code>   - Download + unzip the latest Raspbian lite - [[https://downloads.raspberrypi.org/raspbian_latest]] (at the time of writing April 2018)\\ **WARNING: 350 MB** - A lot in case of shitty/shared uplink... <code>
 user@laptop$ cd ~/Downloads user@laptop$ cd ~/Downloads
Line 23: Line 34:
 </code> </code>
  
-== 2. Setup ansible + VOC cm repo ==+== 3. Setup ansible + VOC cm repo ==
   - Install ansible and git <code>   - Install ansible and git <code>
 user@laptop$ sudo {dnf,yum,apt-get} install ansible git user@laptop$ sudo {dnf,yum,apt-get} install ansible git
Line 31: Line 42:
 user@laptop$ cd ~/Documents/voc/ user@laptop$ cd ~/Documents/voc/
 user@laptop$ git clone https://github.com/voc/cm.git user@laptop$ git clone https://github.com/voc/cm.git
 +OR
 +user@laptop$ git clone git@mng.ber.c3voc.de:cm
 </code> </code>
  
-== 3Final ansible run ==+== 4Run ansible == 
 +  - Get acquainted with the VOC [[:ansible]] repo structure 
 +  - Checkout the feature/tally-pis branch (**for now**) <code> 
 +user@laptop$ cd ~/Documents/voc/cm/ 
 +user@laptop$ git checkout feature/tally-pis 
 +</code> 
 +  - Check if the event inventory file contains correct mapping of tallycom IP to the variables that end up in the voctolight config <code> 
 +user@laptop$ egrep '(tally|cam)' ~/Documents/voc/cm/ansible/event  
 +[tally-pis] 
 +10.73.1.15 cam=cam2 encoder=encoder1.lan.c3voc.de 
 +10.73.1.16 cam=cam3 encoder=encoder1.lan.c3voc.de 
 +10.73.2.15 cam=cam2 encoder=encoder2.lan.c3voc.de 
 +10.73.2.16 cam=cam3 encoder=encoder2.lan.c3voc.de 
 +10.73.3.16 cam=cam3 encoder=encoder3.lan.c3voc.de 
 +10.73.4.15 cam=cam2 encoder=encoder4.lan.c3voc.de 
 +10.73.4.16 cam=cam3 encoder=encoder4.lan.c3voc.de 
 +#10.73.3.15 cam=cam1 encoder=encoder3.lan.c3voc.de 
 +</code> 
 +  - Check/extend the roles to be applied to the tallycoms <code> 
 +user@laptop$ cat ~/Documents/voc/cm/ansible/tally-pis.yml  
 +--- 
 +  - hosts: tally-pis 
 +    roles: 
 +      - { role: common, tags: ['common'] } 
 +      - { role: tally, tags: ['tally'] } 
 +</code>
   - Run on multiple tallycoms - **WARNING: placeholder only** <code>   - Run on multiple tallycoms - **WARNING: placeholder only** <code>
 user@laptop$ cd ~/Documents/voc/cm/ user@laptop$ cd ~/Documents/voc/cm/
 user@laptop$ ./ansible-playbook-keepass -u voc –ask-pass –become –become-method=sudo –ask-become-pass \ user@laptop$ ./ansible-playbook-keepass -u voc –ask-pass –become –become-method=sudo –ask-become-pass \
--event -tally \+--inventory-file event 
 +--tree tally \
 -l 10.73.1.15,10.73.1.16,10.73.2.15,10.73.2.16,10.73.3.16,10.73.4.15,10.73.4.16 \ -l 10.73.1.15,10.73.1.16,10.73.2.15,10.73.2.16,10.73.3.16,10.73.4.15,10.73.4.16 \
 -t tally \ -t tally \
 tally-pis.yml tally-pis.yml
 </code> </code>
 +
 +=== Conclusion ===
 +The tallycoms were in an undefined state. They should either be checked prior to sending them out to the next event or a solution should be provided to quickly reset them at the event. One solution could be to have (pre-baked) working images per device (on e.g. the local encoder), which just need to be flashed to a microSD card, stuck back into the tallycom and $profit. If pre-baked images seem overkill, the process of flashing them with a base OS and running ansible against them should be made more straight forward/documented better.
  
 === Sources/Hints === === Sources/Hints ===
  • events/fusion18/tally.1530114373.txt.gz
  • Last modified: 2018/06/27 17:46
  • by frau_lutzn