request-vm-on-golem 0.1.9__py3-none-any.whl → 0.1.10__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: request-vm-on-golem
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: VM on Golem Requestor CLI - Create and manage virtual machines on the Golem Network
5
5
  Keywords: golem,vm,cloud,decentralized,cli
6
6
  Author: Phillip Jensen
@@ -46,14 +46,14 @@ graph TB
46
46
  SSH[SSH Manager]
47
47
  PC[Provider Client]
48
48
  end
49
-
49
+
50
50
  subgraph Provider
51
51
  API[Provider API]
52
52
  VM[VM Manager]
53
53
  Proxy[SSH Proxy]
54
54
  RT[Resource Tracker]
55
55
  end
56
-
56
+
57
57
  CLI --> PC
58
58
  PC --> API
59
59
  SSH --> Proxy
@@ -71,7 +71,7 @@ sequenceDiagram
71
71
  participant SSH
72
72
  participant Provider
73
73
  participant VM
74
-
74
+
75
75
  User->>CLI: Create VM Command
76
76
  CLI->>SSH: Generate SSH Key
77
77
  SSH-->>CLI: Key Pair
@@ -84,6 +84,7 @@ sequenceDiagram
84
84
  ```
85
85
 
86
86
  When you create a VM:
87
+
87
88
  1. The requestor generates an SSH key pair or uses your system's existing keys
88
89
  2. The provider receives the public key and injects it during VM creation via cloud-init
89
90
  3. The provider allocates a dedicated port and configures SSH forwarding
@@ -98,7 +99,7 @@ sequenceDiagram
98
99
  participant DB
99
100
  participant Proxy
100
101
  participant VM
101
-
102
+
102
103
  User->>CLI: SSH Command
103
104
  CLI->>DB: Get VM Details
104
105
  DB-->>CLI: Connection Info
@@ -108,6 +109,7 @@ sequenceDiagram
108
109
  ```
109
110
 
110
111
  The SSH connection process:
112
+
111
113
  1. The CLI retrieves stored VM details from the local database
112
114
  2. The provider's proxy system forwards your SSH connection to the VM
113
115
  3. All traffic is securely routed through the allocated port
@@ -135,6 +137,7 @@ golem vm providers
135
137
  ```
136
138
 
137
139
  Example output:
140
+
138
141
  ```
139
142
  ────────────────────────────────────────────────
140
143
  🌍 Available Providers (3 total)
@@ -153,6 +156,7 @@ golem vm create my-webserver --provider-id provider-1 --cpu 2 --memory 4 --stora
153
156
  ```
154
157
 
155
158
  The system will:
159
+
156
160
  1. Verify provider availability
157
161
  2. Check resource requirements
158
162
  3. Set up SSH access
@@ -160,6 +164,7 @@ The system will:
160
164
  5. Save connection details locally
161
165
 
162
166
  Example output:
167
+
163
168
  ```
164
169
  ────────────────────────────────────────────────
165
170
  🎉 VM Deployed Successfully!
@@ -185,11 +190,13 @@ Example output:
185
190
  ### Managing VMs
186
191
 
187
192
  List your VMs:
193
+
188
194
  ```bash
189
195
  golem vm list
190
196
  ```
191
197
 
192
198
  Example output:
199
+
193
200
  ```
194
201
  ────────────────────────────────────────────────
195
202
  📋 Your VMs (2 total)
@@ -201,6 +208,7 @@ my-database ● stopped 192.168.1.101 4 CPU, 8GB RAM
201
208
  ```
202
209
 
203
210
  Other commands:
211
+
204
212
  ```bash
205
213
  # SSH into a VM
206
214
  golem vm ssh my-webserver
@@ -220,9 +228,10 @@ golem vm destroy my-webserver
220
228
  The requestor uses a hierarchical configuration system:
221
229
 
222
230
  1. Environment Variables:
231
+
223
232
  ```bash
224
233
  # Discovery Service
225
- export GOLEM_REQUESTOR_DISCOVERY_URL="http://discovery.golem.network:7465"
234
+ export GOLEM_REQUESTOR_DISCOVERY_URL="http://discovery.golem.network:9001"
226
235
 
227
236
  # Base Directory (default: ~/.golem)
228
237
  export GOLEM_REQUESTOR_BASE_DIR="/path/to/golem/dir"
@@ -237,6 +246,7 @@ export GOLEM_REQUESTOR_FORCE_LOCALHOST="true" # Optional: Force localhost in
237
246
  ```
238
247
 
239
248
  2. Directory Structure:
249
+
240
250
  ```
241
251
  ~/.golem/
242
252
  ├── ssh/ # SSH keys
@@ -250,6 +260,7 @@ export GOLEM_REQUESTOR_FORCE_LOCALHOST="true" # Optional: Force localhost in
250
260
  ### SSH Key Management
251
261
 
252
262
  The system intelligently handles SSH keys:
263
+
253
264
  1. Uses existing system SSH keys if available
254
265
  2. Generates and manages Golem-specific keys if needed
255
266
  3. Ensures proper key permissions (0600 for private, 0644 for public)
@@ -258,14 +269,16 @@ The system intelligently handles SSH keys:
258
269
  ### State Management
259
270
 
260
271
  Local state is maintained in SQLite:
261
- - VM details and configuration
262
- - Provider information
263
- - Connection parameters
264
- - VM status tracking
272
+
273
+ - VM details and configuration
274
+ - Provider information
275
+ - Connection parameters
276
+ - VM status tracking
265
277
 
266
278
  ### Provider Integration
267
279
 
268
280
  The requestor communicates with providers through:
281
+
269
282
  1. Discovery service for provider location
270
283
  2. Direct API calls for VM management
271
284
  3. SSH proxy system for secure access
@@ -1,7 +1,7 @@
1
1
  requestor/__init__.py,sha256=OqSUAh1uZBMx7GW0MoSMg967PVdmT8XdPJx3QYjwkak,116
2
2
  requestor/cli/__init__.py,sha256=e3E4oEGxmGj-STPtFkQwg_qIWhR0JAiAQdw3G1hXciU,37
3
3
  requestor/cli/commands.py,sha256=RCdAAoyFbzfAxd2_EXXCymSEP7VQMGu7VjnsYWd-tB8,24223
4
- requestor/config.py,sha256=MCfmZSOtpGzz0REM1Qkh9jExusOyu3ILS19IRU2PAFY,2146
4
+ requestor/config.py,sha256=3e0xAuteZ3JiE6uWHipQLQQklGN59hiqdqZUT2mUutM,2146
5
5
  requestor/db/__init__.py,sha256=Gm5DfWls6uvCZZ3HGGnyRHswbUQdeA5OGN8yPwH0hc8,88
6
6
  requestor/db/sqlite.py,sha256=kqutQMs3srcZHa5kI1cbHvOYr66cCfQCb2xuioNAbLc,4638
7
7
  requestor/errors.py,sha256=wVpHBuYgQx5pTe_SamugfK-k768noikY1RxvPOjQGko,665
@@ -12,7 +12,7 @@ requestor/ssh/__init__.py,sha256=hNgSqJ5s1_AwwxVRyFjUqh_LTBpI4Hmzq0F-f_wXN9g,119
12
12
  requestor/ssh/manager.py,sha256=h-93AXFJqzGo2lNTG2u-q4ivU9cCFeNDhYN55skPLBo,6566
13
13
  requestor/utils/logging.py,sha256=oFNpO8pJboYM8Wp7g3HOU4HFyBTKypVdY15lUiz1a4I,3721
14
14
  requestor/utils/spinner.py,sha256=PUHJdTD9jpUHur__01_qxXy87WFfNmjQbD_sLG-KlGo,2459
15
- request_vm_on_golem-0.1.9.dist-info/METADATA,sha256=jZUIvF0duWM6Q2g7Z2iw3V1URzp9CNFxZssBpThs65M,9054
16
- request_vm_on_golem-0.1.9.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
17
- request_vm_on_golem-0.1.9.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
18
- request_vm_on_golem-0.1.9.dist-info/RECORD,,
15
+ request_vm_on_golem-0.1.10.dist-info/METADATA,sha256=0dJfszr1J4f_jYpoVXFAuO1AtIAGICUNLWxLOi_xwj0,9060
16
+ request_vm_on_golem-0.1.10.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
17
+ request_vm_on_golem-0.1.10.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
18
+ request_vm_on_golem-0.1.10.dist-info/RECORD,,
requestor/config.py CHANGED
@@ -22,7 +22,7 @@ class RequestorConfig(BaseSettings):
22
22
 
23
23
  # Discovery Service
24
24
  discovery_url: str = Field(
25
- default="http://195.201.39.101:7465",
25
+ default="http://195.201.39.101:9001",
26
26
  description="URL of the discovery service"
27
27
  )
28
28