herr-ober 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of herr-ober might be problematic. Click here for more details.
- herr_ober-0.1.0/LICENSE +21 -0
- herr_ober-0.1.0/PKG-INFO +198 -0
- herr_ober-0.1.0/README.md +156 -0
- herr_ober-0.1.0/herr_ober.egg-info/PKG-INFO +198 -0
- herr_ober-0.1.0/herr_ober.egg-info/SOURCES.txt +30 -0
- herr_ober-0.1.0/herr_ober.egg-info/dependency_links.txt +1 -0
- herr_ober-0.1.0/herr_ober.egg-info/entry_points.txt +2 -0
- herr_ober-0.1.0/herr_ober.egg-info/requires.txt +17 -0
- herr_ober-0.1.0/herr_ober.egg-info/top_level.txt +1 -0
- herr_ober-0.1.0/ober/__init__.py +10 -0
- herr_ober-0.1.0/ober/cli.py +157 -0
- herr_ober-0.1.0/ober/commands/__init__.py +2 -0
- herr_ober-0.1.0/ober/commands/bootstrap.py +341 -0
- herr_ober-0.1.0/ober/commands/config.py +579 -0
- herr_ober-0.1.0/ober/commands/doctor.py +352 -0
- herr_ober-0.1.0/ober/commands/health.py +158 -0
- herr_ober-0.1.0/ober/commands/logs.py +73 -0
- herr_ober-0.1.0/ober/commands/service.py +196 -0
- herr_ober-0.1.0/ober/commands/status.py +164 -0
- herr_ober-0.1.0/ober/commands/sync.py +235 -0
- herr_ober-0.1.0/ober/commands/test.py +329 -0
- herr_ober-0.1.0/ober/commands/uninstall.py +159 -0
- herr_ober-0.1.0/ober/commands/upgrade.py +263 -0
- herr_ober-0.1.0/ober/config.py +261 -0
- herr_ober-0.1.0/ober/system.py +265 -0
- herr_ober-0.1.0/pyproject.toml +111 -0
- herr_ober-0.1.0/setup.cfg +4 -0
- herr_ober-0.1.0/tests/test_cli.py +243 -0
- herr_ober-0.1.0/tests/test_commands.py +2046 -0
- herr_ober-0.1.0/tests/test_config.py +316 -0
- herr_ober-0.1.0/tests/test_integration.py +231 -0
- herr_ober-0.1.0/tests/test_system.py +305 -0
herr_ober-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Dirk Petersen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
herr_ober-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: herr-ober
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: High-performance S3 ingress controller for Ceph RGW clusters using HAProxy and ExaBGP
|
|
5
|
+
Author-email: Dirk Petersen <dirk@petersen.org>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/dirkpetersen/ober
|
|
8
|
+
Project-URL: Documentation, https://github.com/dirkpetersen/ober#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/dirkpetersen/ober.git
|
|
10
|
+
Project-URL: Issues, https://github.com/dirkpetersen/ober/issues
|
|
11
|
+
Keywords: s3,ceph,rgw,haproxy,bgp,ecmp,load-balancer,ingress
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: System Administrators
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Internet :: Proxy Servers
|
|
21
|
+
Classifier: Topic :: System :: Networking
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: click>=8.1.0
|
|
26
|
+
Requires-Dist: inquirer>=3.1.0
|
|
27
|
+
Requires-Dist: rich>=13.0.0
|
|
28
|
+
Requires-Dist: hostlist>=1.4.0
|
|
29
|
+
Requires-Dist: requests>=2.31.0
|
|
30
|
+
Requires-Dist: pyyaml>=6.0
|
|
31
|
+
Requires-Dist: watchdog>=3.0.0
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest>=7.4.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
35
|
+
Requires-Dist: moto[server]>=4.2.0; extra == "dev"
|
|
36
|
+
Requires-Dist: boto3>=1.28.0; extra == "dev"
|
|
37
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
38
|
+
Requires-Dist: mypy>=1.5.0; extra == "dev"
|
|
39
|
+
Requires-Dist: types-requests>=2.31.0; extra == "dev"
|
|
40
|
+
Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
# Herr Ober
|
|
44
|
+
|
|
45
|
+
[](https://badge.fury.io/py/herr-ober)
|
|
46
|
+
[](https://www.python.org/downloads/)
|
|
47
|
+
[](https://opensource.org/licenses/MIT)
|
|
48
|
+
[](https://github.com/dirkpetersen/ober/actions/workflows/test.yml)
|
|
49
|
+
[](https://codecov.io/gh/dirkpetersen/ober)
|
|
50
|
+
|
|
51
|
+
**High-Performance S3 Ingress Controller (BGP/ECMP)**
|
|
52
|
+
|
|
53
|
+
Herr Ober ("Head Waiter") is a lightweight, high-throughput (50GB/s+) ingress controller designed for Ceph RGW clusters. It uses **HAProxy 3.3 (AWS-LC)** for SSL offloading and **ExaBGP** for Layer 3 High Availability via ECMP.
|
|
54
|
+
|
|
55
|
+
**Supported:** Ubuntu, Debian, RHEL 10+ on Proxmox VMs (KVM)
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Documentation
|
|
60
|
+
|
|
61
|
+
For deep internals, kernel tuning, and failure recovery logic, see **[architecture.md](architecture.md)**.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Quick Start
|
|
66
|
+
|
|
67
|
+
### 1. Proxmox VM Prerequisites
|
|
68
|
+
|
|
69
|
+
Before installing, ensure the VM is configured for 50GB/s throughput:
|
|
70
|
+
|
|
71
|
+
- **CPU:** Type `host` (AES-NI passthrough)
|
|
72
|
+
- **Network:** `VirtIO` with Multiqueue enabled (Queues = vCPUs)
|
|
73
|
+
- **Hardware Watchdog:** Add device `Intel 6300ESB` → Action: `Reset`
|
|
74
|
+
|
|
75
|
+
### 2. Install
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Install via pipx (recommended)
|
|
79
|
+
pipx install herr-ober
|
|
80
|
+
|
|
81
|
+
# Or via pip
|
|
82
|
+
pip install herr-ober
|
|
83
|
+
|
|
84
|
+
# Or via uv
|
|
85
|
+
uv pip install herr-ober
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 3. Bootstrap
|
|
89
|
+
|
|
90
|
+
Run as root. Automatically installs HAProxy, ExaBGP, applies kernel tuning, and generates all configs.
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
sudo ober bootstrap
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 4. Configure
|
|
97
|
+
|
|
98
|
+
Interactive wizard to set up BGP, VIPs, backends, and certificates.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
sudo ober config
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 5. Verify
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Check prerequisites and configuration
|
|
108
|
+
ober doctor
|
|
109
|
+
|
|
110
|
+
# View service status
|
|
111
|
+
ober status
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Usage
|
|
117
|
+
|
|
118
|
+
### CLI Commands
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
ober bootstrap [path] # Install and set up everything
|
|
122
|
+
ober config [--dry-run] # Interactive configuration wizard
|
|
123
|
+
ober sync # Update external system whitelists
|
|
124
|
+
ober status # Show current state (--json for scripting)
|
|
125
|
+
ober start|stop|restart # Service management (stop gracefully withdraws BGP)
|
|
126
|
+
ober logs [-f] [-n N] # View logs (--service http|bgp to filter)
|
|
127
|
+
ober doctor # Diagnostic checks
|
|
128
|
+
ober test # Test BGP connectivity without starting services
|
|
129
|
+
ober upgrade # Check and install updates
|
|
130
|
+
ober uninstall # Clean removal
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Updating Whitelists
|
|
134
|
+
|
|
135
|
+
Update external system whitelists with Slurm hostlists or IP addresses:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Update all whitelists (interactive prompts)
|
|
139
|
+
ober sync
|
|
140
|
+
|
|
141
|
+
# Update specific whitelist
|
|
142
|
+
ober sync --routers "switch[01-04]"
|
|
143
|
+
ober sync --frontend-http "weka[001-100]"
|
|
144
|
+
ober sync --backend-http "rgw[01-08].internal"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Checking Health
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Full status with systemd service info
|
|
151
|
+
ober status
|
|
152
|
+
|
|
153
|
+
# JSON output for monitoring integration
|
|
154
|
+
ober status --json
|
|
155
|
+
|
|
156
|
+
# Direct health endpoint
|
|
157
|
+
curl http://127.0.0.1:8404/health
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Failure & Recovery
|
|
163
|
+
|
|
164
|
+
| Event | Recovery |
|
|
165
|
+
|-------|----------|
|
|
166
|
+
| **Node Crash** | Traffic fails over via ECMP (instant) |
|
|
167
|
+
| **OS Freeze** | Proxmox Watchdog hard-resets VM (10s) |
|
|
168
|
+
| **HAProxy Crash** | BGP withdraws immediately (`BindsTo=`) |
|
|
169
|
+
| **Network Cut** | BFD detects and tears down route (~150ms) |
|
|
170
|
+
|
|
171
|
+
See [architecture.md](architecture.md) for detailed failure scenarios.
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Development
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Clone and install dev dependencies
|
|
179
|
+
git clone https://github.com/dirkpetersen/ober.git
|
|
180
|
+
cd ober
|
|
181
|
+
pip install -e ".[dev]"
|
|
182
|
+
|
|
183
|
+
# Run tests
|
|
184
|
+
pytest
|
|
185
|
+
|
|
186
|
+
# Lint and format
|
|
187
|
+
ruff check .
|
|
188
|
+
ruff format .
|
|
189
|
+
|
|
190
|
+
# Type check
|
|
191
|
+
mypy ober/
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## License
|
|
197
|
+
|
|
198
|
+
MIT
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# Herr Ober
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/py/herr-ober)
|
|
4
|
+
[](https://www.python.org/downloads/)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://github.com/dirkpetersen/ober/actions/workflows/test.yml)
|
|
7
|
+
[](https://codecov.io/gh/dirkpetersen/ober)
|
|
8
|
+
|
|
9
|
+
**High-Performance S3 Ingress Controller (BGP/ECMP)**
|
|
10
|
+
|
|
11
|
+
Herr Ober ("Head Waiter") is a lightweight, high-throughput (50GB/s+) ingress controller designed for Ceph RGW clusters. It uses **HAProxy 3.3 (AWS-LC)** for SSL offloading and **ExaBGP** for Layer 3 High Availability via ECMP.
|
|
12
|
+
|
|
13
|
+
**Supported:** Ubuntu, Debian, RHEL 10+ on Proxmox VMs (KVM)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Documentation
|
|
18
|
+
|
|
19
|
+
For deep internals, kernel tuning, and failure recovery logic, see **[architecture.md](architecture.md)**.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
### 1. Proxmox VM Prerequisites
|
|
26
|
+
|
|
27
|
+
Before installing, ensure the VM is configured for 50GB/s throughput:
|
|
28
|
+
|
|
29
|
+
- **CPU:** Type `host` (AES-NI passthrough)
|
|
30
|
+
- **Network:** `VirtIO` with Multiqueue enabled (Queues = vCPUs)
|
|
31
|
+
- **Hardware Watchdog:** Add device `Intel 6300ESB` → Action: `Reset`
|
|
32
|
+
|
|
33
|
+
### 2. Install
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Install via pipx (recommended)
|
|
37
|
+
pipx install herr-ober
|
|
38
|
+
|
|
39
|
+
# Or via pip
|
|
40
|
+
pip install herr-ober
|
|
41
|
+
|
|
42
|
+
# Or via uv
|
|
43
|
+
uv pip install herr-ober
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 3. Bootstrap
|
|
47
|
+
|
|
48
|
+
Run as root. Automatically installs HAProxy, ExaBGP, applies kernel tuning, and generates all configs.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
sudo ober bootstrap
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 4. Configure
|
|
55
|
+
|
|
56
|
+
Interactive wizard to set up BGP, VIPs, backends, and certificates.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
sudo ober config
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 5. Verify
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Check prerequisites and configuration
|
|
66
|
+
ober doctor
|
|
67
|
+
|
|
68
|
+
# View service status
|
|
69
|
+
ober status
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Usage
|
|
75
|
+
|
|
76
|
+
### CLI Commands
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
ober bootstrap [path] # Install and set up everything
|
|
80
|
+
ober config [--dry-run] # Interactive configuration wizard
|
|
81
|
+
ober sync # Update external system whitelists
|
|
82
|
+
ober status # Show current state (--json for scripting)
|
|
83
|
+
ober start|stop|restart # Service management (stop gracefully withdraws BGP)
|
|
84
|
+
ober logs [-f] [-n N] # View logs (--service http|bgp to filter)
|
|
85
|
+
ober doctor # Diagnostic checks
|
|
86
|
+
ober test # Test BGP connectivity without starting services
|
|
87
|
+
ober upgrade # Check and install updates
|
|
88
|
+
ober uninstall # Clean removal
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Updating Whitelists
|
|
92
|
+
|
|
93
|
+
Update external system whitelists with Slurm hostlists or IP addresses:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# Update all whitelists (interactive prompts)
|
|
97
|
+
ober sync
|
|
98
|
+
|
|
99
|
+
# Update specific whitelist
|
|
100
|
+
ober sync --routers "switch[01-04]"
|
|
101
|
+
ober sync --frontend-http "weka[001-100]"
|
|
102
|
+
ober sync --backend-http "rgw[01-08].internal"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Checking Health
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Full status with systemd service info
|
|
109
|
+
ober status
|
|
110
|
+
|
|
111
|
+
# JSON output for monitoring integration
|
|
112
|
+
ober status --json
|
|
113
|
+
|
|
114
|
+
# Direct health endpoint
|
|
115
|
+
curl http://127.0.0.1:8404/health
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Failure & Recovery
|
|
121
|
+
|
|
122
|
+
| Event | Recovery |
|
|
123
|
+
|-------|----------|
|
|
124
|
+
| **Node Crash** | Traffic fails over via ECMP (instant) |
|
|
125
|
+
| **OS Freeze** | Proxmox Watchdog hard-resets VM (10s) |
|
|
126
|
+
| **HAProxy Crash** | BGP withdraws immediately (`BindsTo=`) |
|
|
127
|
+
| **Network Cut** | BFD detects and tears down route (~150ms) |
|
|
128
|
+
|
|
129
|
+
See [architecture.md](architecture.md) for detailed failure scenarios.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Development
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Clone and install dev dependencies
|
|
137
|
+
git clone https://github.com/dirkpetersen/ober.git
|
|
138
|
+
cd ober
|
|
139
|
+
pip install -e ".[dev]"
|
|
140
|
+
|
|
141
|
+
# Run tests
|
|
142
|
+
pytest
|
|
143
|
+
|
|
144
|
+
# Lint and format
|
|
145
|
+
ruff check .
|
|
146
|
+
ruff format .
|
|
147
|
+
|
|
148
|
+
# Type check
|
|
149
|
+
mypy ober/
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
MIT
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: herr-ober
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: High-performance S3 ingress controller for Ceph RGW clusters using HAProxy and ExaBGP
|
|
5
|
+
Author-email: Dirk Petersen <dirk@petersen.org>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/dirkpetersen/ober
|
|
8
|
+
Project-URL: Documentation, https://github.com/dirkpetersen/ober#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/dirkpetersen/ober.git
|
|
10
|
+
Project-URL: Issues, https://github.com/dirkpetersen/ober/issues
|
|
11
|
+
Keywords: s3,ceph,rgw,haproxy,bgp,ecmp,load-balancer,ingress
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: System Administrators
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Internet :: Proxy Servers
|
|
21
|
+
Classifier: Topic :: System :: Networking
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: click>=8.1.0
|
|
26
|
+
Requires-Dist: inquirer>=3.1.0
|
|
27
|
+
Requires-Dist: rich>=13.0.0
|
|
28
|
+
Requires-Dist: hostlist>=1.4.0
|
|
29
|
+
Requires-Dist: requests>=2.31.0
|
|
30
|
+
Requires-Dist: pyyaml>=6.0
|
|
31
|
+
Requires-Dist: watchdog>=3.0.0
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest>=7.4.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
35
|
+
Requires-Dist: moto[server]>=4.2.0; extra == "dev"
|
|
36
|
+
Requires-Dist: boto3>=1.28.0; extra == "dev"
|
|
37
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
38
|
+
Requires-Dist: mypy>=1.5.0; extra == "dev"
|
|
39
|
+
Requires-Dist: types-requests>=2.31.0; extra == "dev"
|
|
40
|
+
Requires-Dist: types-PyYAML>=6.0.0; extra == "dev"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
# Herr Ober
|
|
44
|
+
|
|
45
|
+
[](https://badge.fury.io/py/herr-ober)
|
|
46
|
+
[](https://www.python.org/downloads/)
|
|
47
|
+
[](https://opensource.org/licenses/MIT)
|
|
48
|
+
[](https://github.com/dirkpetersen/ober/actions/workflows/test.yml)
|
|
49
|
+
[](https://codecov.io/gh/dirkpetersen/ober)
|
|
50
|
+
|
|
51
|
+
**High-Performance S3 Ingress Controller (BGP/ECMP)**
|
|
52
|
+
|
|
53
|
+
Herr Ober ("Head Waiter") is a lightweight, high-throughput (50GB/s+) ingress controller designed for Ceph RGW clusters. It uses **HAProxy 3.3 (AWS-LC)** for SSL offloading and **ExaBGP** for Layer 3 High Availability via ECMP.
|
|
54
|
+
|
|
55
|
+
**Supported:** Ubuntu, Debian, RHEL 10+ on Proxmox VMs (KVM)
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Documentation
|
|
60
|
+
|
|
61
|
+
For deep internals, kernel tuning, and failure recovery logic, see **[architecture.md](architecture.md)**.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Quick Start
|
|
66
|
+
|
|
67
|
+
### 1. Proxmox VM Prerequisites
|
|
68
|
+
|
|
69
|
+
Before installing, ensure the VM is configured for 50GB/s throughput:
|
|
70
|
+
|
|
71
|
+
- **CPU:** Type `host` (AES-NI passthrough)
|
|
72
|
+
- **Network:** `VirtIO` with Multiqueue enabled (Queues = vCPUs)
|
|
73
|
+
- **Hardware Watchdog:** Add device `Intel 6300ESB` → Action: `Reset`
|
|
74
|
+
|
|
75
|
+
### 2. Install
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Install via pipx (recommended)
|
|
79
|
+
pipx install herr-ober
|
|
80
|
+
|
|
81
|
+
# Or via pip
|
|
82
|
+
pip install herr-ober
|
|
83
|
+
|
|
84
|
+
# Or via uv
|
|
85
|
+
uv pip install herr-ober
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 3. Bootstrap
|
|
89
|
+
|
|
90
|
+
Run as root. Automatically installs HAProxy, ExaBGP, applies kernel tuning, and generates all configs.
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
sudo ober bootstrap
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### 4. Configure
|
|
97
|
+
|
|
98
|
+
Interactive wizard to set up BGP, VIPs, backends, and certificates.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
sudo ober config
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 5. Verify
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
# Check prerequisites and configuration
|
|
108
|
+
ober doctor
|
|
109
|
+
|
|
110
|
+
# View service status
|
|
111
|
+
ober status
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Usage
|
|
117
|
+
|
|
118
|
+
### CLI Commands
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
ober bootstrap [path] # Install and set up everything
|
|
122
|
+
ober config [--dry-run] # Interactive configuration wizard
|
|
123
|
+
ober sync # Update external system whitelists
|
|
124
|
+
ober status # Show current state (--json for scripting)
|
|
125
|
+
ober start|stop|restart # Service management (stop gracefully withdraws BGP)
|
|
126
|
+
ober logs [-f] [-n N] # View logs (--service http|bgp to filter)
|
|
127
|
+
ober doctor # Diagnostic checks
|
|
128
|
+
ober test # Test BGP connectivity without starting services
|
|
129
|
+
ober upgrade # Check and install updates
|
|
130
|
+
ober uninstall # Clean removal
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Updating Whitelists
|
|
134
|
+
|
|
135
|
+
Update external system whitelists with Slurm hostlists or IP addresses:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Update all whitelists (interactive prompts)
|
|
139
|
+
ober sync
|
|
140
|
+
|
|
141
|
+
# Update specific whitelist
|
|
142
|
+
ober sync --routers "switch[01-04]"
|
|
143
|
+
ober sync --frontend-http "weka[001-100]"
|
|
144
|
+
ober sync --backend-http "rgw[01-08].internal"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Checking Health
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Full status with systemd service info
|
|
151
|
+
ober status
|
|
152
|
+
|
|
153
|
+
# JSON output for monitoring integration
|
|
154
|
+
ober status --json
|
|
155
|
+
|
|
156
|
+
# Direct health endpoint
|
|
157
|
+
curl http://127.0.0.1:8404/health
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Failure & Recovery
|
|
163
|
+
|
|
164
|
+
| Event | Recovery |
|
|
165
|
+
|-------|----------|
|
|
166
|
+
| **Node Crash** | Traffic fails over via ECMP (instant) |
|
|
167
|
+
| **OS Freeze** | Proxmox Watchdog hard-resets VM (10s) |
|
|
168
|
+
| **HAProxy Crash** | BGP withdraws immediately (`BindsTo=`) |
|
|
169
|
+
| **Network Cut** | BFD detects and tears down route (~150ms) |
|
|
170
|
+
|
|
171
|
+
See [architecture.md](architecture.md) for detailed failure scenarios.
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Development
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Clone and install dev dependencies
|
|
179
|
+
git clone https://github.com/dirkpetersen/ober.git
|
|
180
|
+
cd ober
|
|
181
|
+
pip install -e ".[dev]"
|
|
182
|
+
|
|
183
|
+
# Run tests
|
|
184
|
+
pytest
|
|
185
|
+
|
|
186
|
+
# Lint and format
|
|
187
|
+
ruff check .
|
|
188
|
+
ruff format .
|
|
189
|
+
|
|
190
|
+
# Type check
|
|
191
|
+
mypy ober/
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## License
|
|
197
|
+
|
|
198
|
+
MIT
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
herr_ober.egg-info/PKG-INFO
|
|
5
|
+
herr_ober.egg-info/SOURCES.txt
|
|
6
|
+
herr_ober.egg-info/dependency_links.txt
|
|
7
|
+
herr_ober.egg-info/entry_points.txt
|
|
8
|
+
herr_ober.egg-info/requires.txt
|
|
9
|
+
herr_ober.egg-info/top_level.txt
|
|
10
|
+
ober/__init__.py
|
|
11
|
+
ober/cli.py
|
|
12
|
+
ober/config.py
|
|
13
|
+
ober/system.py
|
|
14
|
+
ober/commands/__init__.py
|
|
15
|
+
ober/commands/bootstrap.py
|
|
16
|
+
ober/commands/config.py
|
|
17
|
+
ober/commands/doctor.py
|
|
18
|
+
ober/commands/health.py
|
|
19
|
+
ober/commands/logs.py
|
|
20
|
+
ober/commands/service.py
|
|
21
|
+
ober/commands/status.py
|
|
22
|
+
ober/commands/sync.py
|
|
23
|
+
ober/commands/test.py
|
|
24
|
+
ober/commands/uninstall.py
|
|
25
|
+
ober/commands/upgrade.py
|
|
26
|
+
tests/test_cli.py
|
|
27
|
+
tests/test_commands.py
|
|
28
|
+
tests/test_config.py
|
|
29
|
+
tests/test_integration.py
|
|
30
|
+
tests/test_system.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
click>=8.1.0
|
|
2
|
+
inquirer>=3.1.0
|
|
3
|
+
rich>=13.0.0
|
|
4
|
+
hostlist>=1.4.0
|
|
5
|
+
requests>=2.31.0
|
|
6
|
+
pyyaml>=6.0
|
|
7
|
+
watchdog>=3.0.0
|
|
8
|
+
|
|
9
|
+
[dev]
|
|
10
|
+
pytest>=7.4.0
|
|
11
|
+
pytest-cov>=4.1.0
|
|
12
|
+
moto[server]>=4.2.0
|
|
13
|
+
boto3>=1.28.0
|
|
14
|
+
ruff>=0.1.0
|
|
15
|
+
mypy>=1.5.0
|
|
16
|
+
types-requests>=2.31.0
|
|
17
|
+
types-PyYAML>=6.0.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ober
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Herr Ober - High-performance S3 ingress controller for Ceph RGW clusters."""
|
|
3
|
+
|
|
4
|
+
__version__ = "0.1.0"
|
|
5
|
+
__author__ = "Dirk Petersen"
|
|
6
|
+
|
|
7
|
+
from ober.config import OberConfig
|
|
8
|
+
from ober.system import SystemInfo
|
|
9
|
+
|
|
10
|
+
__all__ = ["__version__", "OberConfig", "SystemInfo"]
|