Task #86: Wasabi-Storage-Kosten im Portal auf aktuellen Preis (7 EUR/TB) aktualisiert
This commit is contained in:
parent
528e04c414
commit
03d5393453
29
portal/task-86-wasabi-kosten-portal.md
Normal file
29
portal/task-86-wasabi-kosten-portal.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Task #86 — Wasabi-Storage-Kosten im Portal (cp.go-ki.eu)
|
||||
|
||||
Datum: 2026-07-24
|
||||
|
||||
## Ausgangslage
|
||||
Die Wasabi-Kostenanzeige existierte bereits im Portal (/opt/gpu1-status/app.py, VM201):
|
||||
- Endpoint GET /api/wasabi — liest live die 4 Wasabi-Buckets, summiert Bytes, rundet auf volle TB auf (Wasabi-Minimum 1 TB) und berechnet Kosten.
|
||||
- Frontend: Storage-Tab, Card wasabi-card, Zeile "Kosten/Monat" mit Badge.
|
||||
|
||||
## Was in diesem Task gemacht wurde
|
||||
Preis war veraltet (6.90 EUR/TB). Wasabi hat zum 2026-07-01 den Pay-as-you-go-Preis von 6,99 $ auf 7,99 $/TB/Monat erhoeht. Aktueller EUR/USD-Kurs ~0,876 -> 7,99 $ * 0,876 ~= 7,00 EUR/TB/Monat.
|
||||
|
||||
Geaendert: kosten = tb_count * 7.00 # Wasabi Pay-as-you-go: 7.99 USD/TB/Monat seit 2026-07-01
|
||||
Badge-Schwelle im Frontend von <=6.90 auf <=7.00 angepasst.
|
||||
|
||||
## Ablauf (Skill portal-cp-go-ki)
|
||||
1. Backup: /opt/gpu1-status/app.py.bak-wasabi-price-20260724-010012
|
||||
2. Aenderung per Python-Skript mit eindeutigem Suchmuster
|
||||
3. py_compile OK
|
||||
4. Testinstanz Port 9092 -> HTTP 200, /api/wasabi lieferte netto=21.0, brutto=21.0
|
||||
5. systemctl restart gpu1-portal.service -> aktiv
|
||||
6. Nachkontrolle: https://cp.go-ki.eu/ HTTP 200, /api/wasabi live bestaetigt
|
||||
|
||||
## Beleg (Live-Wert 2026-07-24)
|
||||
total_bytes=2581440720343, total_buckets=4, tb_count=3, netto=21.0, brutto=21.0 EUR
|
||||
= 2404 GB -> aufgerundet 3 TB * 7,00 EUR = 21,00 EUR/Monat
|
||||
|
||||
## Reversibilitaet
|
||||
Rein additiv/reversibel, nur Preis-Konstante geaendert, Rollback via Backup jederzeit moeglich. Kein VM302-Reboot.
|
||||
Loading…
Reference in a new issue