Skip to content

OCM Network

Subnets

There are (at least) four subnets in OCM:

Main Network 192.168.7.0/24 oca.lan

The main scientific network (Unifi VLAN 2). Its routing and name service run as two separate VMs on the router-kvm host (router-kvm0, with router-kvm1 as backup):

  • the gateway 192.168.7.1 (router.oca.lan) — the edge router; it holds both internet uplinks (Paranal and Starlink, below) and selects between them;
  • the DNS server 192.168.7.2 (dns.oca.lan).

The IPs and DNS are configured from the GitLab OCA network repository.

This network is propagated throughout Unifi devices as VLAN profile. The traffic enters the network via SUDM Console port 7. Unifi switch ports operating on this network (ports where our scientific computers and devices are connected) should have VLAN profile set. This is available on all the Unifi switches, as the VLAN propagates everywhere. See the Unifi console for details about current ports profiles.

Be aware of the profile (network) of switch port you are connecting to.

As a rule of thumb, rightmost ports, on Ubiquity switches, have VLAN profile set and devices connected to them have IP from 192.168.7 network. Remaining ports have no VLAN profile set and devices connected to them have IP from 192.168.20 network.

There should be labels on the switch indicating which ports belong to network 192.168.7. If not you can create one.

Maintenance Network 192.168.20.0/24 ocaunifi.lan

Created by the SUDM Unifi Dream Machine Pro (gateway/console 192.168.20.1). All cameras, access points and Unifi devices live here, as do clients of the default WiFi (see WiFi).

It is a NAT LAN uplinked to the main network: SUDM WAN1 (port 9) takes a 192.168.7.0/24 address by DHCP (192.168.7.91), so 192.168.20.0/24 routes out through 192.168.7.0/24.

Paranal Network 192.168.19.0/24

The Paranal uplink (Unifi VLAN 3) — currently the primary internet path. The NAT onto 192.168.7.0/24 is done by the gateway VM (see Main Network above) running on the router-kvm0 host — the physical box labelled Router#0; egress appears in ESO address space. Starlink (Unifi VLAN 5) is the secondary uplink (Santiago); the gateway chooses between the two.

Need Greg's help?

A recommended person from Paranal IT crew to contact in case of internet failure (hardware + software) is Greg. Greg's WhatsApp: +569 3420 2748.

BMK Network

The network over the NAT, connected via firewall bmkfire (192.168.7.150). The network integrates Potsdam BMK telescope devices.

WiFi

There are following WiFi networks in OCM:

  • OCA internet meant to be isolated network with internet access. Currently, this has the same as OCA operators
  • OCA operators the networks which will have access to all devices.
  • OCA VLAN gives you IP from 192.168.7.0/24, may be not needed in the future, but guarantees access to 192.168.7.0/24 in the case of troubles.
  • OCA-Elon spare internet connection via Starlink antenna. This network has no connection with observatory infrastructure. Password is on the label of the router.
  • OCA BMK for BMK telescope devices, DHCP from inside BMK Network.

For the passwords for networks, look at the boards or ask.

Spare Linksys Access Points

There are old decommissioned Linksys access points. They have fixed IPs and password for admin panel like for poweruser without last character. Here is some documentation of their operating system.

We have a backup internet connection via a Starlink antenna. It is located on the roof above the kitchen (held with weights but not screwed) - you can see it from the WK06 dome (Fig 1.). The download/upload are 400/40 Mbps. In the future the Starlink will seamleslly provide backup internet if other devices fail, and widen the bandpass for more data transfer on daily basis. For now it is used in emergency situations - you can connect your laptop to it via an ethernet cable and create a hot spot from your laptop.

Starlink antenna on the top of the roof
Fig. 1. Starlink antenna on the top of the roof.

Unifi Console

Unifi Console - the web application for managing Unifi network, is exposed under address https://192.168.20.1/. There are local admin and local observer accounts. The credentials of both accounts can be provided by Mikolaj if needed.

Tip: Install Ubiquity apps on your phone
  • The UniFi Network Mobile [AppStore][GooglePlay] is helpful tool for configuring network and checking connections/ports etc...
  • The UniFi Protect [AppStore][GooglePlay] is an app for watching the CCTV cameras.

Main Network Devices

The list of network devices and connections between them, are maintained in the spreadsheet 2022_network_devices, tab "DevList".

Warning: Follow the T568-B color coding for patch-panels and Ethernet plugs

Important when connecting Ethernet cables to patch-panels or plugs.

There are two standards of assigning Ethernet wires colors to plug or patch-panel terminals: T568-A and T568-B. We are using newer T568-B! Let it be consistent across OCM.

Rack RS1

Main Rack in Server Room

Devices

Rack contains following devices (from top to bottom):

  • SUDM - Dream Machine, uplinked to hpgtw?
  • RS1P0 - Ethernet patch-panel. Main Ethernet patch-panel for external connections. Use Kron-tool to make connections. Check/update the port designations in the spreadsheet 2022_network_devices, tab "PatchPanels".
  • SAGR - Optical fiber switch. Uplinked to SUDM. Currently not in use until optical fibers are present.
  • RS1P2 - not existing yet Optical Fibers Patch-panel.
  • SS - Main switch, uplinked to SAGR. Some of the ports have VLAN profile for 192.168.7.0/24 network - the ones for connecting servers. Consult the the Unifi console to check or change the profile of the port.
  • RS1P1 - Keystone modules patch-panel. Patch-panel manly for internal (in-rack) connections. RJ45-RJ45 modules are available. Use this panel for server connections. Check/update the port designations in the spreadsheet 2022_network_devices, tab "PatchPanels".
Note: Colors of Patch-cords

For short patch-cords, we used white ones for switch port which have VLAN profile for 192.168.7.0/24 network. The blue ones for profile All where the main network is 192.168.20.0/24, and between Unifi devices all networks are transmitted. And the yellow one for internet signal. As long as it's possible, try to follow this convention.

  • Servers - The Zotac and RACK mounted servers. Ethernet ports of the servers are connected to back of RS1P1 patch-panel using longer patch-cords.
  • UPS

Rack RD08

Rack in ZB08 dome

Devices

Rack contains following devices (from top to bottom):

  • RD08P0 - Ethernet patch-panel. Use Kron-tool to make connections. Check/update the port designations in the spreadsheet 2022_network_devices, tab "PatchPanels".

Pach-panels ports designations

RS1P0 in Rack RS1

port destination notes
16 roof3
17 Control room socket B
18 Control room socket A
19 RD06 Rack Dome 0.6m telescope
20 RDIRIS Rack Dome IRIS telescope
21 RD25 Rack Dome 2.5m telescope
22 RV6P0-01 Rack V6 building Patchpanel 0 port 1
23 RD15 Rack Dome 1.5m telescope
24 RD08P0-01 Rack Dome 0.8m telescope

RS1P2 in Rack RS1

port destination notes
1 AS Access-point Salon
2 CES East -- roof1 Cat 5
3 CES West -- roof2 Cat 5
15 nawia-kvm
16 box05
17 perun
18 perun
19 perun
20 Router #0 in
21 Router #0 out
22
23 RV6 2 Rack V6 building, wire 2 (antena-paranal)
24 RV6 1 Rack V6 building, wire 1 (catalyst-fiber)

RD08P0 in Rack RD08

In ZB08 dome

port destination notes
1 RS1P0-24 Uplink to SS

Machines

Servers

perun

Main file server and KVM VM host. The IP is: 192.168.7.23, DNS: perun-kvm.oca.lan. Perun has also second Ethernet for IPMI: with IP and DNS 192.168.7.24 and perun-ipmi.oca.lan respectively.

pieron

The backup for perun and KVM VM host. The IP is: 192.168.7.43, DNS: pieron-kvm.oca.lan. Pieron has also IPMI Ethernet with IP and DNS 192.168.7.40 and pieron-ipmi.oca.lan respectively.

Zotac KVM hosts: box05, nawia-kvm, majka-kvm

Those are general purpose KVM hosts. box05 is going to be reinstalled, do not put your VMs on it.

User: poweruser (sudoer)

DNS IP
box05.oca.lan 192.168.7.22
nawia-kvm.oca.lan 192.168.7.26
majka-kvm.oca.lan 192.168.7.27
Preparation of Zotac KVM hosts

Suppose you are going to setup new fresh Zotac computer as KVM host. The following steps are needed: - Unbox it - Using permanent marker, make small arrow on one of the Ethernet ports. (usually rightmost one) This will be the port for the main network. - Invent the name for the machine. Follow the pattern <name>-kvm. Chose any name you want, but, if you want to be sure that the machine is not going to be renamed, chose from Slovian mythology or ask Marek. - Print the name using label printer (drawer in control room) and stick it to the front of the machine. - Connect machine temporary to power, network (marekd port), keyboard and monitor. - You may use "Portable Monitor" - notebook-like teminal with display, keyboard and tracpad, which can be connected by single USB-C cable. - Turn on the machine and enter BIOS (press DEL key during boot). - Select: "Power Management" - "AC Power Loss" - "Power On". This will make the machine to turn on after power failure. - To install OS, ensure boot from pendrive: "Boot" - "Boot Option Priorities" - "Boot Option #1" - "UEFI: ". - Save and exit BIOS. - Install OS (newest Ubuntu LTS, minimized server variant) from pen-drive — see Ubuntu LTS Server Installation for Dummies. - During installation, create single sudoer user poweruser. - After installation, login as poweruser and: - Configure password-less sudo for poweruser (see Password-less sudo for poweruser). - Install essential packages — vim, git, openssh-server (see Essential packages on a minimized Ubuntu Server). - Configure git with the oca-deployment credentials (see Git Configuration). - Install libvirt and node-manager. - On the Unifi console, find the machine and write down the MAC address of the port with arrow. - Add machine to DHCP/DNS repository on CAMK gitlab: https://gitlab.camk.edu.pl/araucaria/OCA/oca-network providing the desired IP, MAC and DNS name. - Move the computer to the server room to the RACK RS1. - Connect power. - On the Keystone patch panel RS1P2 add new module RJ45-RJ45 to rightmost unoccupied port. - On the back of patch panel, connect the port to the port marked with arrow on the machine, using longer patch-cord. (See RS1P2 for details) - Connect front port to the SS switch, one of ports belonging to network 192.168.7.0/24 using short white patch-cord. - Ensure, power supply, cables and machine location are safe and tidy.

Virtual Machines

Management

The simplest way to manage VMs is to use graphical virtmanager. To do so virtmanager have to be run (on Linux) in the 192.168.7.0/24 network. virtmanager is already installed on aux computer.

Note

For the other operations on VMs, like moving VM between hosts, changing disk size, please consult the section Configuring Machines in OCM Network below.

tic

Description

The tic VM, currently running on the box05, hosts the tic Telescopes and Instruments Controller - the main server controlling the telescopes in OCM based on the ocabox package.

The desired IP is: 192.168.7.37, DNS: tic.oca.lan.

The connection for tic clients is on the port 5558.

Maintenance

The service is started automatically on boot, and is managed by systemctl, to check the status use:

  sudo systemctl status tic

There is also script to update the software:

  update_tic
which stops the service, pulls the latest version from the repository, and starts the service again.

To follow the logs of the server:

  sudo journalctl -u tic -f

Access

There is a sudoer user: poweruser.

Software

The ITC (ocabox) software is in directory /home/poweruser/src/ocabox.

The repository of ocabox is on Araucaria GitHub.

To update the software on machine:

  git pull
This works because the machine has the oca-deployment GitHub credentials configured in its git credential store (see Git Configuration).

The server is started by:

  poetry run server
This is temporary solution for intensive development time. The server will start automatically with the tic machine using systemctrl in the future.

For more information on the TIC software, see

docker

Description

The docker VM, currently running on the box05, it is the host of the Docker containers of OCM.

The desired IP is: 192.168.7.361, DNS: docker.oca.lan.

Access

There is a sudoer user: poweruser.

Software

The dockers source code is in directory /home/poweruser/src/. When installing new service, please make subfolder here and add NOTES.txt with details about installation and starting service.

In general, we are using systemd (systemctrl to start/stop services), look at ASCOM Simulator for the example.

Take a look:

  ls -l /etc/systemd/system/
to see all the services, including custom ones which are symlinks to files in /home/poweruser/src/.

perun

Description

The perun VM, currently running on the perun-kvm. VM is responsible for serving shared NFS storage for all the observatory machines.

The IP is: 192.168.7.34, DNS: perun.oca.lan.

docker02, nats

Description

The docker02, aliases: nats VM, currently running on the perun-kvm. VM is responsible for hosting docker serves: * NATS

The IP is: 192.168.7.38, DNS: docker02.oca.lan.

services01

Description

The services01, VM, currently running on the majka-kvm. VM is responsible for hosting various services: * karolinaforwarder

The IP is: 192.168.7.45, DNS: services01.oca.lan.

halina

Description

The halina, VM, currently running on the nawia-kvm. VM is responsible for hosting HALina Observatory Assistant:

The IP is: 192.168.7.44, DNS: halina.oca.lan.

ofp

Description

The ofp VM, currently running on the perun-kvm. VM hosts the OCA FITS Processor (OFP) pipeline.

The IP is: 192.168.7.39, DNS: ofp.oca.lan.

iot

Description

The iot VM, currently running on the nawia-kvm. VM hosts the Piotrek's IOT project.

Access

CAMK Admins has the access and may install users ssh keys, if really needed.

Hosted Docker Containers
OCM homepage

OCM homepage is hosted2 on the Joomla! container. It's intended to be easily modified by the users. Fill free to add important information and links to other resources.

In the OCM network, the OCM homepage is going to be on:

There is a user observer. Logging in allows edition.

The admin panel is at: http://docker.oca.lan/administrator/.

Installation follows the guide. The /home/poweruser/src/oca-homepage.jomla/docker-compose.yml was created.

OCM Manual

Online version of the OCM Manual is served from docker. The work directory is: /home/poweruser/src/oca-manual.

The Manual is written in Material for mkdocs. The source code (source text?) for the manual is on the GitHub repository. See the chapter Contributing for more details.

In the OCM network, Manual is on one of the following URL (for API connection only, now WWW page):

To update manual to the last version from GitHub, login as poweruser to machine docker:

  ssh poweruser@docker.oca.lan
  cd /home/poweruser/src/oca-manual
  git pull
sometimes, when there is an update to the mkdocs plugins, do also the following:
  sudo systemctl stop oca-manual
  poetry update
  poetry install
  sudo systemctl start oca-manual

ASCOM APLACA Simulator

This is the ASCOM Telescope Simulator.

The docker-compose.yml have been modified to expose GUI and API on the port 8089. For details see /home/poweruser/src/ASCOM.Alpaca.Simulators/NOTES.txt

In the OCM network, GUI is on one of the following URL:

Mosquitto MQTT Broker

The docker-compose.yml have been modified to set volumes. For details see /home/poweruser/src/mqtt.mosquitto/NOTES.txt

The MQTT id currently serving weather station data from aagsolo. (Topic aagsolo)

In the OCM network, MQTT is on one of the following URL (for API connection only, now WWW page):

InfluxDB with Telegraf

InfluxDB is not currently used; we are now using Prometheus + Grafana for telemetry (see Monitoring). The notes below remain for reference in case we revisit the InfluxDB stack.

InfluxDB collects all telemetry from the observatory. It includes data sent to the MQTT queue (via Telegraf).

  • TBD: Tutorial of writing telemetry: Python → MQTT → InfluxDB → Grafana
  • TBD: Tutorial of reading telemetry: MQTT → Python and → InfluxDB → Python (see OCA Monitor for reference).

docker-compose.yml in working directory /home/poweruser/src/influxdb-telegraf sets up two containers together for InfluxDB and Telegraf. Like other dockerized applications, this is started as systemd service influxdb-telegraf.service.

In the OCM network, InfluxDB is on one of the following URL (for API connection and WWW page):

Grafana (TBD)

Monitoring OCM telemetry based on the Grafana

Gray Log (TBD)

Access to TIC server logs based on the Graylog.

Jenkins (TBD)

Automatization of network tasks based on the Jenkins.

OCM AllSky (TBD)

The AllSky browser view based on https://github.com/thomasjacquin/allsky-website.

This is subject to be exposed on the internet or araucaria intranet for easy access e.g. for ESO staff.

If we will not Dockerize it, it will be served from another location.

OCM AllSky Manager (TBD)

The AllSky browser view based on https://github.com/thomasjacquin/allsky-website.

If we will not Dockerize it, it will be served from another location.

Raspberry Pi and Similar

aagsolo Weather, Clouds (and allsky?)

Description

This is Raspberry Pi computer provided by AGG for the weather station. Computer is in the V6 room.

There is a possibility to put allsky software on this computer also.

The IP is 192.168.7.70 (aagsolo.oca.lan).

The UI is on the address: http://aagsolo.oca.lan

The config is on the address: http://aagsolo.oca.lan/config

Access

There is a ssh server, user: solo.

MQTT

In the config there is defined pushing the readings to the MQTT server. The MQTT server is on the address: http://docker.oca.lan:1883. The topic is aagsolo.

Desktop computers

Telescope operator consoles zenith and nadir.

Description

Two Zotac computers in Control Room:

  • system: Ubuntu 22 LTS
  • software:
  • [TOI]
  • ocabox-cli: Command oca --help for help.
Users on desktop machines:

Create two users: * poweruser first, which became sudoer (user which have privilege to use sudo command - have root power) * observer regular user. To set up the password for observer, use sudo passwd observer from poweruser account.

Software installation on jaga:

(Ubuntu 26.04 LTS) Following steps where performed as poweruser: - instalation of NFS

sudo apt-get install python3-pip
apt install git
git config --global credential.helper store
pip install pipx
pipx ensurepath
apt install curl
curl -LsSf https://astral.sh/uv/install.sh | sh
pipx install poetry
bash
poetry config virtualenvs.in-project true
Software installation on zenith and nadir:

The zenith and nadir computers, are meant to be identical and to work the same way. (???)

Any software installed, changed or configured on one of them, should be done on the other one the same way.

zenith and nadir are intended for observers, which may have minimal knowledge of OCM infrastructure. They expect to follow procedures and find exactly the same software and configuration on both computers as in the documentation.

If you need experiment with the software, use aux machine instead.

Installation of Python on zenith and nadir:

Following steps where performed:

sudo apt-get install python3-pip
git config --global credential.helper store
sudo apt install pipx
Note on sudo

To install something systemwide, like sudo apt-get install python3-pip command, you must be sudoer. So the command on typical OCM configuration should be run by poweruser. Then other user(s) can run remaining commands which are affecting current user only.

Wayland versus X11 (OpenX)

Because Wayland is not supported by DWService, we need to use X11 (OpenX) instead. Wayland is default in Ubuntu 22 LTS, so we need to switch to X11.

To change the default session to X11, we need to edit the file /etc/gdm3/custom.conf and uncomment the line #WaylandEnable=false (remove the # character).

Then we need to reboot the computer.

DWSerice agent

In order to allow remote operation of the desktop computers, we use DWService agent. DWService agent is installed in the standard way, starting from adding the agent in our DWService account (https://www.dwservice.net/).

Universal console aux.

Description

The Dell computer in Control Room:

  • system: Ubuntu 22 LTS
  • software:
  • [TOI]
  • ocabox-cli: Command oca --help for help.

This is the computer which can act as operator console, but also as a development, tests or general purpose machine.

Telescope devices

All telescopes have several networked devices. ASA telescopes have very similar set of devices. The names of devices belonging to a specific telescope are prefixed with the telescope name, e.g. zb08-tcu is the name of TCU computer of ZB08 telescope. Here we will use the xxx as a placeholder for the telescope name.

Telescope Control Units (TCU)

Description

The TCU is the main computer of the ASA telescope installed in the telescope mount. Those are Windows machines. The software on that computers is provided by ASA.

The TCU computers have the name xxxx-tcu.oca.lan, e.g. zb08-tcu.oca.lan is the TCU computer of ZB08 telescope. The IP address is 192.168.7.yy0.

The TCU computer is present in all ASA telescopes:

  • wk06-tcu
  • zb08-tcu
  • jk15-tcu
Access

The TCU is accessible remotely via DWSservice (via web browser from remote location) or via RemoteDesktop from OCM:

$ rdesktop -u asaroot -p - zb08-tcu.oca.lan
(replace zb08-tcu.oca.lan with the appropriate name of the TCU computer).

Reset

If needed TCU's can be restarted remotely (especially if they go unavailable, see Troubleshooting):

  1. Click a link on the OCA Home webpage to direct you to the telescopes' Power Distribution Unit panels (PDU panels or power panels): wk06-power, zb08-power, jk15-power
  2. Log in as observer if necessary
  3. For WK06 and JK15 reseting TCU is straighforward: simply push a button "Reset" in the last row showing "TCU" or "DDM200 TCU". For ZB08 click: PDU → Outlet Action → Control → Drop-down menu Control Action: Reboot → tick TCU → Next → Reset.
  4. Wait about a minute until a given TCU is available again.

CCD computers

For the JK15 and WK06 telescopes, the CCD cameras are connected to dedicated TCU-like computer. Those are also Windows machines, mounted in the telescope mount. The access is the same as for the TCU computers.

The computers have the following names:

  • wk06-ccd
  • jk15-ccd

There is no CCD computer for the ZB08 telescope, camera is controlled by the TCU computer directly.

Power Distribution Unit (PDU)

The PDU is the main power distribution unit of the ASA telescope installed in the telescope box.

The PDUs have names xxxx-power.oca.lan, e.g. zb08-power.oca.lan is the PDU of ZB08 telescope. The IP address is 192.168.7.yy2.

The web interface is on the address: http://xxx-power.oca.lan.

User, should be set to poweruser with appropriate password.

Auxiliary Devices Hub (ADH)

The ADHs are small computers installed in the telescope mount controlling a focuser, mirror covers and other peripherals. The ASA user interface for those peripherals is programm ACC installed on the TCU computer.

The ADHs have names xxxx-adh.oca.lan, e.g. zb08-adh.oca.lan is the ADH of ZB08 telescope. The IP address is 192.168.7.yy3.

Dome Controllers

The Dome Controllers are small computers installed in the dome controller boxes, on the upper floor of each dome. The ASA user interface for those peripherals is program DomeController installed on the TCU computer.

The Dome Controllers have names xxxx-dome.oca.lan, e.g. zb08-dome.oca.lan is the Dome Controller of ZB08 telescope. The IP address is 192.168.7.yy1.

Filter Wheels

The JK15 telescope has ASA Filter Wheel which has its own controller with Ethernet connection. Other telescope's filter wheels are controlled by the TCU computer via USB.

The ASA Filter Wheel has the name jk15-fw.oca.lan and the IP address 192.168.7.124.

Telescope UPS

The Telescope UPS are installed in the telescope rack cabinets, on the lower floor of each dome.

The Telescope UPS have names xxxx-ups.oca.lan, e.g. zb08-ups.oca.lan is the Dome Controller of ZB08 telescope. The IP address is 192.168.7.yy5.

Note: List of IP addresses and DNS names of the telescope devices

Here is the list of IP addresses and DNS names of the telescope devices as for 2023-06-19:

  # Telescopes 100-149

  100     84:a9:38:aa:6c:e5 wk06-tcu
  101     00:30:f9:15:76:99 wk06-dome
  102     00:19:32:01:0e:94 wk06-power
  # 103  wk06-adh ?
  # 104
  # 105  wk06-ups
  # ...
  110     84:a9:38:aa:6b:dd zb08-tcu
  111     00:30:f9:17:cb:82 zb08-dome
  112     00:0c:15:40:f0:5d zb08-power
  113     00:30:f9:17:cc:5a zb08-adh
  # 114
  115     00:20:85:d2:02:e4 zb08-ups


  120     38:f3:ab:19:9a:58 jk15-tcu
  121     00:30:f9:15:76:34 jk15-dome
  122     00:19:32:01:01:23 jk15-power
  123     00:30:f9:17:cb:78 jk15-adh
  124     00:30:f9:17:cc:5b jk15-fw
  125     00:20:85:d2:02:ef jk15-ups

  # iris IPs are to be consistent with old configuration. I am using the 2018_network-inventory spreadsheet (OCM Google Docs) as a source (mka 2023-02)
  # 130     ??:??:??:??:??:?? irisp
  # 131     # From documentation - irisccd (invisible - not appeared in net scan)
  # 132     # irisccd.shadow.oca.net # CCD readout
  # 133     ??:??:??:??:??:?? irisc
  139     00:30:f9:17:cb:83 iris-dome

  # 140     ??:??:??:??:??:?? wg25-tcu
  # 141     ??:??:??:??:??:?? wg25-dome
  # 142     ??:??:??:??:??:?? wg25-power

NFS Resources

There is shared NFS network in the OCM observatory. The NFS server is perun.oca.lan and the exported directories are in /data. The NFS server is accessible from all computers in the OCM network.

The instructions for configuring NFS clients are in the section Mounting NFS Resources.

The shares are mounted (on demand, via autofs) on the observatory machines that need them — e.g. ofp, aux, zenith and nadir:

  • /data/fits,
  • /data/misc,

FITS Storage - directory structure

Under new NFS architecture in OCM, the directories are as follows:

/data/fits/<telescope_name>/ FITS files storage

inside, we have the following entries:

  • dddd/ - four digits directories indicating reduced UTC Julian day of the beginning of the night (RUJDBN). Reduced means \(RJD = JD - 2460000\) here. Those directories contain RAW FITS files from specific telescope and night. The RAW files names follow the naming convention:
    • <telescope><instrument>_<RUJDBN>_<monotonic_id>.fits, e.g. zb08c_0356_89113.fits (instrument is one character indicator, currently we are using only c for CCD).
  • yyyy-mm-dd/ directories (e.g. 2023_06_12/) being the symlinks to corresponding RUJDBN directories, for users convenience.
  • actual/ - the variable symlink to the current (newest) dddd/ directory.
  • last_shoot.fits - the variable symlink to the last shoot file.
  • processed-ofp/ - the directory with the results of OFP (OCA FITS Processor) pipeline.

/data/misc/ Shared files storage

In this directory various systems writes their files, e.g. AllSky images.

Configuring Machines in OCM Network

This section is about the configuration of different kind of machines for the OCM network:

  • Virtual machines
  • Desktop computers
  • Raspberry Pi and similar
  • other

Some of the subsections may apply to some of those categories only.

Set up Users

For the sake of uniformity (We are the Navy), the users should be the same on all the machines. On all machines managed by the sudoer user (this is the default case for modern Ubuntu, Raspberry Pi OS and true for most of the machines in the observatory) there should be following users with the appropriate UIDs:

  • poweruser 1000 - a sudoer
  • observer 1001 - optional (is rather pointless on machines running server services).

Note

The server/daemon software should be installed for, and run by, the user poweruser (because non-admin person have no interest in interacting with the server software).

User Interface software should be installed for, and run by, the user observer.

This schema is important when using observatory NFS for enforcing proper access rights.

Password-less sudo for poweruser

On observatory machines, poweruser is granted password-less sudo so that automated maintenance (deployments, service restarts, NFS auto-mounts, monitoring agents) can run without interactive prompts. To configure this, log in as poweruser (or any sudoer) and create a dedicated drop-in file under /etc/sudoers.d/:

  sudo visudo -f /etc/sudoers.d/poweruser

Add the single line:

  poweruser ALL=(ALL) NOPASSWD: ALL

Save and exit. visudo validates the syntax before writing — if it reports an error, do not bypass it, fix the line and retry. A broken sudoers file can lock you out of sudo on the machine.

Why a drop-in file, not /etc/sudoers?

Editing the main /etc/sudoers file directly risks conflicts with package upgrades. Drop-in files in /etc/sudoers.d/ are the standard, upgrade-safe place for local policy. The filename should match the user (poweruser) for discoverability.

Virtual Machine set-up for Dummies with virt-manager

Note

Consider cloning existing VMs instead of creating new ones from scratch. We have prepared yummy VM template for you. Check section Cloning from OCM VM Template below.

run virt-manager, select VM host, and click on the icon create new VM.

At this point make sure, that the image You are selecting is a valid file (check size).

Consult what should be the size of a disk image. It should be minimal, just for system operations, and NFS should be used for data

Now is time to change settings for br_lan

After the set up of the VM, usually we should restart the machine to install ubuntu.

Ubuntu LTS Server Installation for Dummies

remember to set up proper user and name of the machine.

Prefer the minimized server install for VMs

For virtual machines (and headless servers in general), pick the "Ubuntu Server (minimized)" variant during installation. It produces a smaller, leaner image without snap or unattended preloads — better fit for VMs where disk and memory matter, and the missing tools (vim, git, etc.) are easy to add on demand (see Essential packages on a minimized Ubuntu Server).

Always pick the latest Ubuntu LTS (currently 24.04 LTS).

remember to set up proper IP in the DNS.

Essential packages on a minimized Ubuntu Server

The minimized server install ships without many tools we rely on day-to-day. Right after the first login as poweruser, refresh the package index and install the basics:

  sudo apt update
  sudo apt install -y vim git openssh-server

What each one buys you:

  • vim - editing config files (visudo, /etc/hosts, service unit files, …). The minimized image only ships vi from busybox, which has no syntax highlighting and quirky cursor behaviour over SSH.
  • git - cloning and pulling our repositories from GitHub/GitLab, including the observatory configuration and service code under /home/poweruser/src/.
  • openssh-server - remote login. Usually present after the standard installer asks about it, but the minimized image may skip it. To enable on boot:
  sudo systemctl enable --now ssh

See also Enabling SSH access below for the full SSH section.

Git Configuration

Most observatory machines clone code from private repositories on GitHub and CAMK GitLab. To avoid being prompted for a password on every git pull, configure the credential store globally and seed it with the oca-deployment token.

Enable the global credential store

On a fresh machine, as poweruser, run:

  git config --global credential.helper store

The store helper persists credentials in ~/.git-credentials in plain text. This is acceptable on observatory machines because they live in a controlled, trusted network and the tokens used are scoped service-account tokens (see below) — never put a personal token there.

Why no user.name / user.email here?

user.name and user.email only label the author of new commits — they are not used for GitHub authentication (that is purely the credential store + token). Most observatory machines only git pull and never make commits, so leaving these unset keeps the bootstrap minimal.

If you actually need to commit from a machine (e.g. ad-hoc fixes to a deployed config repo), set them at that point with your own identity:

  git config --global user.name  "Your Name"
  git config --global user.email "you@example.com"

Seed oca-deployment GitHub credentials

oca-deployment is the shared service GitHub account used by all observatory machines for read-only git pull operations. It has read access to the private araucaria-project repositories and nothing else.

To seed the credential store, append a single line to ~/.git-credentials in the canonical https://<user>:<token>@<host> form:

  echo "https://oca-deployment:<TOKEN>@github.com" >> ~/.git-credentials
  chmod 600 ~/.git-credentials

Replace <TOKEN> with the current oca-deployment Personal Access Token (starts with ghp_…). After this, git clone / git pull of any https://github.com/araucaria-project/... URL will authenticate transparently.

Where to obtain the oca-deployment token

The active token is not stored in this manual or in any repository. Ask Mikolaj (or any other admin with access to the shared OCA password vault) to provide the current token. Tokens are rotated periodically; after a rotation, the line in ~/.git-credentials must be updated on every machine that uses it.

To mint a new token (admins only):

  1. Log in to GitHub as oca-deployment. Credentials for the GitHub account itself are kept in the shared OCA password vault.
  2. Go to Settings → Developer settings → Personal access tokens → Tokens (classic) and generate a new token with the repo scope (sufficient for read-only access to private araucaria repos).
  3. Set a reasonable expiration (e.g. 1 year) and record the new token in the password vault. Roll it out to machines by updating their ~/.git-credentials.
Verifying the configuration

A quick smoke test from poweruser:

  git ls-remote https://github.com/araucaria-project/ocabox.git HEAD

If you get a list of refs without being prompted for credentials, the credential store is working.

Resize Virtual Machine Disk Space

This instruction is valid (have been tested) for VM running Ubuntu 22LST. On other Ubuntu-alike OSes some adjustment may be needed.

The operation requires access to KVM hosts virsh as well as sudo user on VM.

Make a backup or snapshot of the machine

No snapshot or backup - big chance you lost the VM.

Usually snapshot is enough, moreover it does not need too much rights for host filesystem, and conserves disk space.

Check the name of your VM:

  virsh list --all

Create snapshot of the VM:

  virsh snapshot-create-as <name-of-vm> <name-of-snapshot>
Chose name-of-snapshot wisely, it should give a clue about the operation you are going to perform (e.g "before-resize").

List snapshots and examine new one:

  virsh snapshot-list <name-of-vm>
  virsh snapshot-info <name-of-vm> <name-of-snapshot>

Resize the disk file on the host

First, shut down the VM:

  virsh shutdown <name-of-vm>
Now you have to determine the path to the disk file. It's usually in /var/lib/libvirt/images/ directory. To list the volumes of the VM:
  virsh vol-list --pool default
To get the path to the disk file:
  virsh vol-path --pool default <name-of-vm>.qcow2
Then, resize the disk file, e.g. the following command will add 10GB to the disk:
  virsh vol-resize --pool default <name-of-vm>.qcow2 +10G
Alternatively, if you have the absolute path to the disk file, you can use qemu-img directly:
  qemu-img resize /var/lib/libvirt/images/<name-of-vm>.qcow2 +10G
Note, that physical size of the disk file does not correspond to the size of the disk seen by the VM. The qcow2 file is a sparse file, so the physical size will be expanded only when the VM writes to the new space.

Now start the VM:

  virsh start <name-of-vm>

To make machine start on boot:

  virsh autostart <name-of-vm>

Resize the partition on the VM

First, log in to the VM (usually as sudoer poweruser) and check the partition table:

  sudo fdisk -l
Then, resize the partition, in the example below the partition is /dev/vda1:
  sudo fdisk /dev/vda
Then, delete the partition and create a new one with the same start sector and the new end sector. Then, write the changes and exit fdisk.

Now, check the filesystem:

  sudo e2fsck -f /dev/vda1
Then, resize the filesystem:
  sudo resize2fs /dev/vda1
The partition name may be different, check the output of fdisk -l command. If you use LVM, it may be /dev/mapper/ubuntu--vg-ubuntu--lv or something like that.

Move Virtual Machine to Another Host

(This procedure is not tested and has to be updated - 02.01.2024) You have to: switch off the VM, copy VM disc file to desired host, dump and copy VM configuration to desired host, define on a new host, and start. Example:

login to actual-host, and stop VM.

virsh list --all
cd /var/lib/libvirt/images/
virsh shutdown
virsh dumpxml exampleVM > exampleVM.xml

login to new-host, with ssh: ssh user@kvm-host.oca.lan -A

cd /var/lib/libvirt/images/
rsync -avzP --sparse user@old_host.oca.lan:/var/lib/libvirt/images/exampleVM.qcow2 .
rsync -avzP --sparse user@old_host.oca.lan:/var/lib/libvirt/images/exampleVM.xml .
virsh define exampleVM.xml --validate
virsh start exampleVM

pliki qcow2 trzeba wziąć z exampleVM.xml lub obejrzeć managerem

Cloning from OCM VM Template

The new (2025-03-09) template for OCM VM is prepared on majka-kvm machine in:

/data/libvirt/images/template.qcow

Also, corresponding, inactive machine template is defined on majka-kvm ready to be cloned.

This template contains a basic Ubuntu 24.04 LTS installation configured for use in the OCM environment.

Specifications

  • OS: Ubuntu 24.04 LTS Server
  • Disk: 20GB (LVM with free space for expansion)
  • User: poweruser (ID 1000) with password-less sudo privileges
  • Network: br_lan bridge

Installed Components

  • OpenSSH Server
  • QEMU Guest Agent (better communication with KVM host)
  • Prometheus Node Exporter (system monitoring on port 9100)
  • NFS Client (prepared for mounting observatory resources)
  • OCA admins' SSH keys

Cloning Instructions

1. Clone the Virtual Machine
# Clone from template
virt-clone --original template --name new-machine --file /data/libvirt/images/new-machine.qcow2

# Start the new machine
virsh start new-machine
2. Check IP Address
# Wait for the machine to boot
sleep 30

# Check IP using QEMU Guest Agent
virsh qemu-agent-command new-machine '{"execute":"guest-network-get-interfaces"}'

# Or traditionally
virsh domifaddr new-machine
3. Login to the New Machine
ssh poweruser@IP_ADDRESS
4. Change Hostname

After logging into the new machine:

# Change hostname
sudo hostnamectl set-hostname new-name

# Edit /etc/hosts to add the new name
sudo vi /etc/hosts
# Change the old name (vm-template) to the new name
5. Mounting NFS Resources (optional)

The instructions for configuring NFS clients are in the section Mounting NFS Resources.

6. DNS/DHCP Update

To update DNS/DHCP with the VM's MAC address and set fixed IP assignment:

# Get the VM's MAC address
virsh domiflist new-machine
# The output will contain a line with the MAC address, e.g.:
# vnet0 bridge br_lan virtio 52:54:00:xx:xx:xx

# Alternatively, using qemu-agent to get more details
virsh qemu-agent-command new-machine '{"execute":"guest-network-get-interfaces"}'
# Look for the "hardware-address" field in the output
Add this MAC address to OCM dhcp configuration, assigning IP and DNS hostname.

https://gitlab.camk.edu.pl/araucaria/OCA/oca-network/-/blob/main/dns/data.txt

After pushing configuration repo, new settings will be applied into OCAM in minutes automatically.

Modifying CPU and RAM

Checking host resources

Before assigning CPU and memory, check the availability and usage of host CPU and memory.

CPU cores

Total Number of CPUs on Host:

grep -c ^processor /proc/cpuinfo
````
CPUs Assigned to Running VMs:
```bash
for vm in $(virsh list --name); do
    echo "$vm $(virsh vcpucount $vm --live)"
done
Note, that the CPU cores are shared between VMs, so the sum of the cores assigned to VMs may be greater than the total number of CPUs on the host.

Memory Assigned to Running VMs and Total/Remaining on Host

Total memory on host:

free -h
Memory assigned to each running VM:
for vm in $(virsh list --name); do
    echo "$vm $(virsh dommemstat $vm | grep actual | awk '{print $2}')"
done
This will list each VM's name followed by its allocated memory in KiB.

The safe choice for the new VM is to assign the same amount of memory in a way that total memory assigned to VMs does not exceed the total memory on the host. If the VMs does not have tendency to use all the memory assigned to them, you may assign more memory to the new VM, but keep the overcommit ratio below 1.5:1.

Setting VM resources

To change CPU and RAM allocation for a cloned VM:

# Edit VM configuration
virsh edit new-machine

# Find and modify these lines:
# For CPU:
#   <vcpu placement='static'>2</vcpu>  <!-- Change 2 to desired number -->

# For RAM (memory in KiB, e.g., 2097152 = 2GB):
#   <memory unit='KiB'>2097152</memory>
#   <currentMemory unit='KiB'>2097152</currentMemory>

# Save and exit the editor

Alternatively, use virsh command line:

# Set 4 CPUs
virsh setvcpus new-machine 4 --config --maximum
virsh setvcpus new-machine 4 --config

# Set 4GB RAM (4194304 KiB)
virsh setmaxmem new-machine 4G --config
virsh setmem new-machine 4G --config

Restart the VM for changes to take effect:

virsh shutdown new-machine
virsh start new-machine

LVM Disk Management

The template uses LVM with free space, making disk management flexible.

Checking available space
# Check free space in the volume group
sudo vgs

# Check logical volumes
sudo lvs
Adding a new logical volume

The template already has free space in the volume group. To create a new logical volume:

# Create a new logical volume (e.g., 5GB)
sudo lvcreate -L 5G -n storage ubuntu-vg

# Format the new volume
sudo mkfs.ext4 /dev/ubuntu-vg/storage

# Create mount point
sudo mkdir /storage

# Add to fstab for persistent mounting
echo '/dev/ubuntu-vg/storage /storage ext4 defaults 0 2' | sudo tee -a /etc/fstab

# Mount immediately
sudo mount /storage
Expanding the disk

If you need more space than available in the volume group:

# On the host, shutdown VM
virsh shutdown new-machine

# Resize the disk image
qemu-img resize /data/libvirt/images/new-machine.qcow2 +10G

# Start the VM
virsh start new-machine

# On the VM, check the disk
sudo fdisk -l

# Create a new partition
sudo cfdisk /dev/vda  # Create new partition in the free space

# Add new partition to LVM
sudo pvcreate /dev/vda4  # Assuming vda4 is the new partition
sudo vgextend ubuntu-vg /dev/vda4

# Now you can create new logical volumes or extend existing ones
sudo lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv

Monitoring

Node Exporter is installed and running on port 9100. To monitor the machine, add it to your Prometheus configuration.

Setting up DWService agent

For machines with graphical interface, installing DWService agent is recommended. It allows remote access to the machine graphical interface.

Warning

DWService agent currently does not support Wayland, so if you are using Ubuntu 22 LTS or last Raspberry Pi OS, you have to switch to X11 (OpenX).

To install DWService agent, follow the instructions on the DWService website, install the agent as sudoer user (usually poweruser), agent will be installed for all users.

Enabling SSH access

For all machines, enabling SSH access is recommended. It allows remote access to the machine command line interface.

Needed on Raspberry Pi OS. For Ubuntu-alike OSes, the openssh-server package is installed by default. If not, install it:

  sudo apt-get install openssh-server

To enable the service, run:

  sudo systemctl enable ssh
  sudo systemctl start ssh
First command will make the service to start on boot, the second will start it now.

Mounting NFS resources

To enable on-demand mounting of NFS resources from perun.oca.lan, follow the procedure below. This configuration uses a centralized definition synchronized directly from the server via rsync.

Install Required Packages

Update the repository cache and install both the automounter and the NFS client utilities:

sudo apt update
sudo apt install -y nfs-common autofs rsync

Synchronize Configuration from perun

The standard configuration is maintained centrally. Sync the configuration files to the /opt/autofs/ directory (standard OCM location).

  1. Ensure the destination directory exists:
sudo mkdir -p /opt/autofs
  1. Pull the configuration using rsync:
sudo rsync -av perun.oca.lan::autofs/ /opt/autofs/

Direct the system autofs daemon to use the configuration residing in /opt. This is done by symlinking the main configuration file.

Backup the default configuration (if present) and create the symlink. The first line is the backup step — it renames the stock package file to .bak (a rename, not a copy, so the original content is preserved), and only then does the second line put the symlink in its place:

# Back up the stock config, but only if it is a real file (not already our symlink),
# so re-running this procedure never clobbers the original backup:
[ -f /etc/autofs.conf ] && [ ! -L /etc/autofs.conf ] && sudo mv /etc/autofs.conf /etc/autofs.conf.bak
# Point autofs at the centrally-managed config:
sudo ln -sf /opt/autofs/autofs.conf /etc/autofs.conf

Test and Reload autofs

Restart the service to load the new configuration:

sudo systemctl restart autofs

Verification: Verify the service status is active (running) and attempt to list a remote directory to trigger the mount:

systemctl status autofs
ls -la /data/misc

(If the directory list is displayed, the configuration is correct.)

/data looks empty until you enter a subdirectory

The map runs with browse_mode = no, so ls /data on its own shows nothing — this is expected, not a failure. autofs mounts each share on first access, so you must reference a concrete path (ls /data/misc, cd /data/fits) to trigger the mount.

Refreshing the configuration later

The synced bundle includes resync-from-perun.sh. When the central configuration on perun changes, you do not need to repeat this whole procedure — just re-pull and reload with:

sudo /opt/autofs/resync-from-perun.sh
It runs rsync --delete against perun.oca.lan::autofs and reloads autofs only if something actually changed.

Preparation of Python Environment

Most observatory software is written in Python, so it's good to have Python environment prepared on the machines.

Python Version Compatibility: - We maintain compatibility from Python 3.11 up to the current latest release. - For any new environments, it is highly recommended to use Python 3.13. - Python 3.10 should only be used in special, legacy cases where absolutely necessary.

Currently, uv is the standard tool for managing Python versions, dependencies, and projects in our new repositories. However, poetry is still perfectly fine and supported for existing projects.

This instructions should work for Ubuntu 22 LTS and Raspberry Pi OS.

Warning

Do not install any python packages outside the virtual environment. uv, pipx, and poetry are managing virtual environments for packages they install.

For other software create and activate virtual environments using venv or uv venv:

  uv venv /path/to/new/virtual/environment
  source /path/to/new/virtual/environment/bin/activate

Installing pipx

pipx is a package manager for Python applications that are installed in isolated environments and are executed from the command line. We use it e.g. to install poetry package manager.

To install pipx, login as sudoer user (usually poweruser) and run:

    sudo apt update
    sudo apt install pipx
    pipx ensurepath
Then, log out and log in again to apply the changes instructed by pipx ensurepath.

You have to repeat pipx ensurepath command for every user which is going to use pipx. The command adds ~/.local/bin to the PATH variable, which is the place where pipx installs the applications scripts.

uv is an extremely fast package and project manager written in Rust. It is our new standard for installing Python versions and managing environments. Because it is a standalone binary with its own tools, we recommend installing it using its official standalone installer rather than pipx.

    curl -LsSf https://astral.sh/uv/install.sh | sh
This script will download and install the uv executable, usually placing it in ~/.local/bin and updating your shell configuration. You may need to restart your terminal or source ~/.bashrc (or .zshrc) to use it.

Installing different Python versions with uv: You can easily install and manage multiple Python versions using uv. Since our standard for new environments is 3.13, you can install it simply by running:

    uv python install 3.13
If you specifically need the minimum supported version (3.11) or the legacy version (3.10), you can install them similarly:
    uv python install 3.11
    uv python install 3.10

Installing poetry (Supported)

poetry is a package manager for Python, which is used to manage the dependencies of our software. We are recommending to install poetry similarly in the user space using pipx.

    pipx install poetry
Note, that it will install poetry for the current user only. Then, log out and log in again to apply the changes instructed by pipx ensurepath.

After installing, configure poetry globally to keep each project's virtual environment inside the project directory as .venv/, rather than under ~/.cache/pypoetry/virtualenvs/:

    poetry config virtualenvs.in-project true

This is the OCM convention for both human and service accounts. It makes the venv co-located with the source tree, which:

  • matches the layout uv produces by default (.venv next to pyproject.toml), so tooling and muscle memory stay consistent across the two managers;
  • makes IDEs (PyCharm, VS Code) auto-discover the interpreter;
  • makes "blow it away and start over" a single rm -rf .venv instead of hunting in ~/.cache;
  • keeps the venv on the same filesystem as the code (relevant for NFS-mounted homes — we don't want venvs traveling over NFS).

The setting is stored in ~/.config/pypoetry/config.toml and applies to every project this user runs poetry in. Repeat it on each new machine and for each user that uses poetry.

On headless machines (most observatory hosts, including Raspberry Pi) there is no desktop keyring daemon running, so poetry will hang or error when it tries to reach one for credential storage. Disable the keyring backend:

    poetry config keyring.enabled false

This is needed once per user, on every new machine.

Tip: Managing environments with uv and poetry

With uv: During development, prefer using uv sync --all-extras as the command for installing everything in a uv managed virtual environment.

With poetry: To remove envirinment and start over, use:

  poetry env remove --all

Preparing PyQt6 on ARM machines (Raspberry Pi)

Because of the lack of PyQt6/PyQt5 packages in the pip repository for ARM architecture, we have to install it on system level for default Python interpreter.

Then we use dirty trick to make it available for poetry virtual environments.

First install PyQt on system level:

  sudo apt-get install python3-pyqt6
Then, create a symlink to the PyQt6 package in the site-packages directory of the poetry virtual environment. To find a path to the directory of the poetry virtual environment of specific project, use:
  poetry env info
Then, create a symlink to the PyQt6 package in the site-packages directory of the poetry virtual environment:
  ln -s /usr/lib/python3/dist-packages/PyQt6 /path/to/virtual/environment/lib/python3.11/site-packages/PyQt6

Useful settings

git credential storage

On observatory machines (including Raspberry Pi) we typically clone repositories over HTTPS using a personal access token. To avoid being prompted for the token on every git pull/push, enable the plain-file credential helper for the current user:

  git config --global credential.helper store

After the first authenticated operation, the credentials are saved to ~/.git-credentials and reused automatically. Repeat this on each new machine and for every user that interacts with the OCA git repositories.

Warning

Credentials are stored in plaintext in the user's home directory. This is acceptable on the trusted internal observatory machines we control, but do not use this helper on shared or untrusted hosts.

vi editor

Usually vi editor is installed by default, in fact it's a symlink to vim.

If you have problems with the cursor keys, you can add the following lines to your ~/.vimrc file:

  set nocompatible
  set backspace=2

Monitoring

Prometheus Node Exporter and Windows Exporter

Prometheus Node Exporter is installed on all most in the observatory. It provides system metrics like CPU, memory, disk usage, etc. on port 9100.

On Windows machines, Prometheus Windows Exporter is installed, providing similar metrics.

To access the metrics, use the following URLs: http://machine-name:9100/metrics

Prometheus and Grafana

Grafana dashboards presenting the metrics from OCM machines are available on address http://dashboard.oca.lan:3000. (dashboard.oca.lan is one of the aliases of docker.oca.lan machine).

Public dashboards are available without authentication. To access the dashboards, use the following URLs: - (OCM machines Disk/Memory/CPU)[http://dashboard.oca.lan:3000/public-dashboards/fe75211d9a244a029fdcfaea9e3a2333?orgId=1&refresh=5s&from=now-3h&to=now&timezone=browser]

On the docker.oca.lan machine, Prometheus and Grafana are installed in /home/poweruser/src/prometheus directory. The stack is managed by docker compose amd it's lifecycle is controlled by systemd, look for prometheus service, e.g.:

  sudo systemctl status prometheus

The prometheus stack repository is in the araucaria-project organization on GitLab.

Observatory Configuration

The configuration of the OCM observatory telescopes instruments is maintained and propagated via NATS. All the software components read the configuration from the NATS server on startup. The configuration is stored in a GitHub repository in YAML format file config.yaml.

As the configuration barely changes, the components usually cache the configuration locally after the first read. Thus after configuration change, the components have to be restarted.

The procedure for changing the configuration is as follows:

  1. Edit the configuration file config.yaml located and push the changes to the configuration repository: ocabox-config-ocm
  2. Login as poweruser to tic.oca.lan machine.
  3. Follow the instruction in the Repository README.md file to pull the changes from the repository and restart the TIC service. This will publish the new configuration to the NATS server.
  4. Restart the components which should read the new configuration:
  5. All the TOI instances running on observer workstations.
  6. other?

  1. At the time of writing the Static IP have been set following this guide, (temporary IP of the docker was 192.168.7.201). ↩

  2. To be done yet. ↩