Project

General

Profile

Actions

Task #6068

closed

Move redash (lorawan.ungleich.ch) to a new IPv6 only VM in place6

Added by Nico Schottelius over 5 years ago. Updated 4 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/16/2018
Due date:
12/07/2018
% Done:

40%

Estimated time:
PM Check date:
02/23/2019

Description

Hey Dongwoo,

this is a great task for practising. It's a lot of small and easy steps to ensure everything works.
When migrating to a new IPv6 only VM, we might need to change our setup from "TTN sends data via http post" to "We poll data from TTN via ? (where ? might be MQTT)"

  • Create a new VM
  • Create a new integration so that you can get the data
  • Create a new script similar to ttnv2receiver.py (from https://code.ungleich.ch/ungleich-public/lorawan/) that polls the data and writes it into the database
  • Install monit and configure monit to ensure that the script is always working
  • Configure redash to use LDAP based login

At this point we should have a full replacement of lorawan.ungleich.ch. Now we make things pretty:

  • Put all steps into cdist
  • Create a new VM
  • Setup DNS lorawan-new.ungleich.ch
  • Only run cdist against it
  • The new VM should be in the same state as the previous VM
  • Delete the previous VM lorawan-dev.ungleich.ch

Now we do the migration:

  • Delete database on lorawan-new.ungleich.ch (i.e. make it clean)
  • Export old data from lorawan.ungleich.ch to lorawan-new.ungleich.ch
  • Ensure that new data is still added on lorawan-new.ungleich.ch
  • If everything is good:
    • Delete old VM
    • Rename new VM in DNS to lorawan.ungleich.ch

Files

lorawan2.lab.ungleich.ch.JPG (44.6 KB) lorawan2.lab.ungleich.ch.JPG Dong Woo Koh, 12/17/2018 02:57 PM
lorawan2.lab.ungleich.ch2.JPG (53.4 KB) lorawan2.lab.ungleich.ch2.JPG Dong Woo Koh, 12/17/2018 02:59 PM
TTN_Join.JPG (34.8 KB) TTN_Join.JPG Dong Woo Koh, 12/18/2018 02:16 PM
TTN_Console_20181219_01.pptx (270 KB) TTN_Console_20181219_01.pptx Dong Woo Koh, 12/19/2018 03:55 PM
redash_test_connection.JPG (43.3 KB) redash_test_connection.JPG Dong Woo Koh, 12/23/2018 04:32 AM
redash_test_connection2.JPG (17.3 KB) redash_test_connection2.JPG Dong Woo Koh, 12/23/2018 04:45 AM
redash_test_connection3.JPG (55.5 KB) redash_test_connection3.JPG Dong Woo Koh, 12/24/2018 03:52 PM
lorawan-dev.ttn.JPG (59.9 KB) lorawan-dev.ttn.JPG Dong Woo Koh, 12/26/2018 12:37 PM
glarus_googlemap.JPG (88.6 KB) glarus_googlemap.JPG Dong Woo Koh, 12/28/2018 10:13 AM
TTN_Console_20181219_20190105_working01.pptx (664 KB) TTN_Console_20181219_20190105_working01.pptx Dong Woo Koh, 01/05/2019 03:35 PM
data_gathering.JPG (68.5 KB) data_gathering.JPG Dong Woo Koh, 01/18/2019 03:26 PM
lorawan_checking result_linthal.png (29.2 KB) lorawan_checking result_linthal.png Dong Woo Koh, 01/19/2019 02:29 AM
Actions

Also available in: Atom PDF