-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
689 lines (545 loc) · 24.8 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
from kubernetes import client, config, watch
from kubernetes.client.exceptions import ApiException
from flask_sse import sse
from flask import Flask, render_template, request, jsonify, send_file, flash, redirect, Response
from flask_cors import CORS
import subprocess
import os
import socket
import re
import requests
import json
import platform
import cpuinfo
import functools
import time
import traceback
app = Flask(__name__)
CORS(app) # This will enable CORS for all routes
app.secret_key = 'my_secret_key'
port_check_api = 'http://193.29.62.183:8081/check-port'
# Custom cache dictionary to store the cached results
cache = {}
def get_cached_result(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
key = (func.__name__, args, frozenset(kwargs.items()))
# Check if the result is already cached and not expired
if key in cache and time.time() - cache[key][1] <= 3600:
return cache[key][0]
# Invoke the function and store the result in the cache
result = func(*args, **kwargs)
cache[key] = (result, time.time())
return result
return wrapper
@app.route('/set_static_ip')
def set_static_ip():
try:
# Load current netplan configuration
with open('/etc/netplan/00-installer-config.yaml', 'r') as f:
config = yaml.safe_load(f)
# Check if already static
if not config.get('network', {}).get('ethernets', {}).get('enp6s18', {}).get('dhcp4', True):
return "IP address is already static."
# Get current IP and Netmask
ip_and_mask = subprocess.check_output(['hostname', '-I']).decode('utf-8').strip()
ip, mask = ip_and_mask.split(' ')[0], '255.255.255.0' # You might need to modify this to get the correct mask
# Get Gateway
gateway = subprocess.check_output(['ip', 'route', 'show', 'default']).decode('utf-8').strip().split(' ')[2]
# Update netplan configuration
config['network']['ethernets']['enp6s18'] = {
'dhcp4': False,
'addresses': [f"{ip}/{mask}"],
'gateway4': gateway,
'nameservers': {'addresses': ['8.8.8.8', '8.8.4.4']}
}
with open('/etc/netplan/00-installer-config.yaml', 'w') as f:
yaml.dump(config, f)
# Apply the configuration
subprocess.check_output(['netplan', 'apply'])
return f"Static IP set to: {ip}, Netmask: {mask}, Gateway: {gateway}"
except Exception as e:
return f"Error occurred: {str(e)}"
# Check Helm versions installed vs. in repo
@app.route('/check-helm-versions', methods=['GET'])
def check_helm_versions():
try:
# Get the deployed helm chart versions
print("Retrieving deployed releases in 'akash-services' namespace")
deployed_version_output = subprocess.check_output(
["helm", "list", "-n", "akash-services", "-o", "json"],
text=True # To get the output as a string instead of bytes
)
deployed_versions_list = json.loads(deployed_version_output) if deployed_version_output else []
print(f"Deployed Releases: {deployed_versions_list}")
# Extract the deployed version for each release
deployed_versions = {release['name']: release['chart'].split('-')[-1] for release in deployed_versions_list}
print(f"Extracted deployed versions: {deployed_versions}")
# Get the available helm chart versions
print("Retrieving available versions from Helm repo")
available_version_output = subprocess.check_output(
["helm", "search", "repo", "akash", "-o", "json"],
text=True
)
available_versions = json.loads(available_version_output) if available_version_output else []
print(f"Available Versions: {available_versions}")
latest_versions = {entry['name'].split('/')[1]: entry['version'] for entry in available_versions}
print(f"Latest Available Versions: {latest_versions}")
update_available = any(deployed_versions.get(chart_name) != latest_versions.get(chart_name)
for chart_name in deployed_versions)
print(f"Update Available: {update_available}")
return jsonify({
'deployed_versions': deployed_versions,
'latest_versions': latest_versions,
'update_available': update_available
})
except subprocess.CalledProcessError as e:
print(f"Subprocess Error occurred: {str(e)}")
print(f"Command: {e.cmd}, Return Code: {e.returncode}, Output: {e.output}")
return jsonify({'error': 'Subprocess Error occurred while checking Helm Chart versions'})
except Exception as e:
print(f"General Error occurred: {str(e)}")
print("Exception Type: ", type(e))
print("Traceback: ", traceback.format_exc())
return jsonify({'error': 'General Error occurred while checking Helm Chart versions'})
def get_balance(account_address):
gpu_enabled = False
variables_file_path = '/home/akash/variables'
if os.path.exists(variables_file_path):
with open(variables_file_path, 'r') as variables_file:
variables = variables_file.read()
if 'GPU_ENABLED=' in variables:
gpu_enabled = True
api_url = 'https://akash-api.polkachu.com:443' if not gpu_enabled else 'https://akash-api.polkachu.com:443'
try:
with requests.get(f'{api_url}/cosmos/bank/v1beta1/balances/{account_address}') as response:
print(f"API Response: {response.text}") # Debugging line
# Check if the request was successful
if response.status_code == 200:
data = response.json()
balances = data.get('balances', [])
if len(balances) > 0:
for balance in balances:
amount = balance.get('amount')
if amount:
amount = int(amount) # Convert amount to an integer
return amount / 1000000 # Divide amount by 1,000,000
else:
print(f"Failed to get balance. Status code: {response.status_code}")
except requests.RequestException as e:
print(f"An error occurred while fetching the balance: {e}")
return 0 # Set balance to 0 if no balance is found or an error occurs
@get_cached_result
def get_location(public_ip):
try:
response = requests.get(f'http://ip-api.com/json/{public_ip}')
data = response.json()
return data['regionName']
except:
return "Unknown"
@get_cached_result
def get_public_ip():
services = [
'https://api.ipify.org',
'https://icanhazip.com',
'https://ident.me',
'https://checkip.amazonaws.com'
]
for service in services:
try:
response = requests.get(service)
if response.status_code == 200:
return response.text.strip()
except requests.RequestException:
pass
return None
@get_cached_result
def get_local_ip():
try:
# Run the ifconfig command to get the network interfaces information
output = subprocess.check_output(["ifconfig"]).decode("utf-8")
# Use regular expressions to find the local IP address
ip_regex = r"inet (?:addr:)?([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)"
match = re.search(ip_regex, output)
if match:
return match.group(1)
else:
return None
except subprocess.CalledProcessError:
return None
def get_pod_status(api_instance, pod_name, namespace):
try:
pod_info = api_instance.read_namespaced_pod_status(pod_name, namespace)
return pod_info.status.phase
except client.exceptions.ApiException as e:
if e.status == 404:
return 'Not Found'
else:
# Print the exception for debugging purposes
print(f"Exception occurred while retrieving pod status: {str(e)}")
return 'Error'
except Exception as e:
# Print the exception for debugging purposes
print(f"Exception occurred while retrieving pod status: {str(e)}")
return 'Error'
def check_service_status():
try:
config.load_kube_config()
api_instance = client.CoreV1Api()
namespace = 'akash-services'
rpc_node_status = get_pod_status(api_instance, 'akash-node-1-0', namespace)
provider_status = get_pod_status(api_instance, 'akash-provider-0', namespace)
both_services_status = 'Online' if rpc_node_status == 'Running' and provider_status == 'Running' else 'Provider Offline'
return rpc_node_status, provider_status, both_services_status
except Exception as e:
# Print the exception for debugging purposes
print(f"Exception occurred while checking service status: {str(e)}")
return 'Error', 'Error', 'Error'
@app.route('/', methods=['GET', 'POST'])
def dashboard():
if request.method == 'POST':
# Save the variables from the form
new_variables = request.form.to_dict()
# Read the existing variables
existing_variables = {}
with open('/home/akash/variables', 'r') as f:
for line in f:
key, value = line.strip().split('=')
existing_variables[key] = value
# Update the existing variables with the new ones
existing_variables.update({
key: f'"{value}"' if key in ['CPU', 'REGION', 'UPLOAD', 'DOWNLOAD', 'CPU_PRICE', 'MEMORY_PRICE', 'DISK_PRICE'] else value
for key, value in new_variables.items()
})
# Write the updated variables back to the file
with open('/home/akash/variables', 'w') as f:
for key, value in existing_variables.items():
f.write(f'{key}={value}\n')
# Update the values in bid-engine-script.sh
bid_engine_script_path = '/home/akash/bid-engine-script.sh'
with open(bid_engine_script_path, 'r') as f:
script_lines = f.readlines()
updated_script_lines = []
for line in script_lines:
if line.startswith('TARGET_MEMORY='):
line = f'TARGET_MEMORY="{existing_variables.get("MEMORY_PRICE", "0.75")}"\n'
elif line.startswith('TARGET_HD='):
line = f'TARGET_HD="{existing_variables.get("DISK_PRICE", "0.25")}"\n'
elif line.startswith('TARGET_CPU='):
line = f'TARGET_CPU="{existing_variables.get("CPU_PRICE", "5.00")}"\n'
updated_script_lines.append(line)
with open(bid_engine_script_path, 'w') as f:
f.writelines(updated_script_lines)
flash('Variables saved successfully. Click Re-Deploy Provider.', 'success')
return redirect('/')
else:
# Read the variables file
with open('/home/akash/variables', 'r') as f:
variables = dict(line.strip().split('=') for line in f)
# If 'ACCOUNT_ADDRESS' is not in variables, return or handle it properly
if 'ACCOUNT_ADDRESS' not in variables:
return "Account address not found in variables."
account_address = variables['ACCOUNT_ADDRESS']
balance = get_balance(account_address)
# Read the DNS records file
with open('/home/akash/dns-records.txt', 'r') as f:
dns_records = f.read()
# Read the firewall ports file
with open('/home/akash/firewall-ports.txt', 'r') as f:
firewall_ports = f.read()
with open('/home/akash/wallet_qr_code.txt', 'r') as f:
qr_code = f.read()
local_ip = get_local_ip()
public_ip = get_public_ip()
info = cpuinfo.get_cpu_info()
location = get_location(public_ip)
if 'AMD' in info['brand_raw']:
processor = 'AMD'
elif 'Intel' in info['brand_raw']:
processor = 'Intel'
else:
processor = 'Unknown'
# Check service status
rpc_node_status, provider_status, both_services_status = check_service_status()
# Render the dashboard page with the variables, DNS records, firewall ports, and service status
return render_template('dashboard.html',
variables=variables,
dns_records=dns_records,
firewall_ports=firewall_ports,
local_ip=local_ip,
public_ip=public_ip,
qr_code=qr_code,
processor=info['brand_raw'],
region=location,
balance=balance,
rpc_node_status=rpc_node_status,
provider_status=provider_status,
both_services_status=both_services_status)
@app.route('/deploy-update-provider', methods=['GET'])
def deploy_update_provider():
script_path = '/home/akash/run-helm-k3s.sh'
user = 'akash' # Replace 'your_system_user' with the actual system username
result = subprocess.run(['sudo', '-u', user, 'bash', script_path, 'provider_setup'], shell=False)
if result.returncode == 0:
return 'Script executed successfully.'
else:
return 'Failed to execute script.'
@app.route('/deploy-update', methods=['GET'])
def deploy_update():
script_path = '/home/akash/run-helm-k3s.sh'
user = 'akash' # Replace 'your_system_user' with the actual system username
result = subprocess.run(['sudo', '-u', user, 'bash', script_path], shell=False)
if result.returncode == 0:
return 'Script executed successfully.'
else:
return 'Failed to execute script.'
@app.route('/ports', methods=['GET'])
def ports():
# Check if ports are reachable and display the information
ports_info = subprocess.check_output(["port-check-command"])
return jsonify(ports_info=ports_info)
@app.route('/download_key', methods=['GET'])
def download_key():
# Handle private key download
# Use Akash CLI to export the private key
# subprocess.run(["akash", "keys", "export", "default"])
return send_file('/home/akash/key.pem', as_attachment=True)
@app.route('/download_variables', methods=['GET'])
def download_variables():
# Handle private key download
# Use Akash CLI to export the private key
# subprocess.run(["akash", "keys", "export", "default"])
return send_file('/home/akash/variables', as_attachment=True)
@app.route('/download_kubeconfig', methods=['GET'])
def download_kubeconfig():
# Read the variables file
with open('/home/akash/variables', 'r') as f:
variables = dict(line.strip().split('=') for line in f)
kubeconfig_path = variables.get('KUBECONFIG')
if kubeconfig_path:
return send_file(kubeconfig_path, as_attachment=True)
else:
return "Kubeconfig path not found in variables."
# Function to retrieve the Hostname Operator pod status
def get_hostname_operator_status():
config.load_kube_config()
api_instance = client.CoreV1Api()
namespace = 'akash-services'
try:
# Retrieve the list of all pods in the specified namespace
pod_list = api_instance.list_namespaced_pod(namespace)
# Find the pod with 'corehostname_operator-' in its name
hostname_operator_pod = next((pod for pod in pod_list.items if 'operator-hostname-' in pod.metadata.name), None)
if hostname_operator_pod is not None:
# Retrieve the status of the 'coredns-' pod
pod_info = api_instance.read_namespaced_pod_status(hostname_operator_pod.metadata.name, namespace)
return pod_info.status.phase
else:
# If no pod with 'coredns-' in its name is found, return 'Not Found'
return 'Not Found'
except ApiException as e:
# Handle Kubernetes API exceptions
if e.status == 404:
return 'Not Found'
else:
print(f"APIException occurred while retrieving hostname_operator pod status: {str(e)}")
return 'Error'
except Exception as e:
# Handle any other exceptions that occur during retrieval
print(f"Exception occurred while retrieving hostname_operator pod status: {str(e)}")
return 'Error'
# Function to subscribe to hostname_operator status updates
def subscribe_to_hostname_operator_status():
while True:
# Retrieve the hostname_operator status
hostname_operator_status = get_hostname_operator_status()
# Yield the hostname_operator status as SSE data
yield 'data: ' + json.dumps({'status': hostname_operator_status}) + '\n\n'
@app.route('/stream/hostname_operator_status', methods=['GET'])
def stream_hostname_operator_status():
return Response(subscribe_to_hostname_operator_status(), mimetype='text/event-stream')
# Function to retrieve the DNS pod status
def get_dns_status():
config.load_kube_config()
api_instance = client.CoreV1Api()
namespace = 'kube-system'
try:
# Retrieve the list of all pods in the specified namespace
pod_list = api_instance.list_namespaced_pod(namespace)
# Find the pod with 'coredns-' in its name
coredns_pod = next((pod for pod in pod_list.items if 'coredns-' in pod.metadata.name), None)
if coredns_pod is not None:
# Retrieve the status of the 'coredns-' pod
pod_info = api_instance.read_namespaced_pod_status(coredns_pod.metadata.name, namespace)
return pod_info.status.phase
else:
# If no pod with 'coredns-' in its name is found, return 'Not Found'
return 'Not Found'
except ApiException as e:
# Handle Kubernetes API exceptions
if e.status == 404:
return 'Not Found'
else:
print(f"APIException occurred while retrieving DNS pod status: {str(e)}")
return 'Error'
except Exception as e:
# Handle any other exceptions that occur during retrieval
print(f"Exception occurred while retrieving DNS pod status: {str(e)}")
return 'Error'
# Function to subscribe to dns status updates
def subscribe_to_dns_status():
while True:
# Retrieve the dns status
dns_status = get_dns_status()
# Yield the dns status as SSE data
yield 'data: ' + json.dumps({'status': dns_status}) + '\n\n'
@app.route('/stream/dns_status', methods=['GET'])
def stream_dns_status():
return Response(subscribe_to_dns_status(), mimetype='text/event-stream')
# Function to retrieve the Provider pod status
def get_provider_status():
config.load_kube_config()
api_instance = client.CoreV1Api()
namespace = 'akash-services'
try:
# Retrieve the provider pod status from Kubernetes
pod_info = api_instance.read_namespaced_pod_status('akash-provider-0', namespace)
return pod_info.status.phase
except ApiException as e:
# Handle Kubernetes API exceptions
if e.status == 404:
return 'Not Found'
else:
print(f"APIException occurred while retrieving provider pod status: {str(e)}")
return 'Error'
except Exception as e:
# Handle any other exceptions that occur during retrieval
print(f"Exception occurred while retrieving provider pod status: {str(e)}")
return 'Error'
# Function to subscribe to provider status updates
def subscribe_to_provider_status():
while True:
# Retrieve the provider status
provider_status = get_provider_status()
# Yield the provider status as SSE data
yield 'data: ' + json.dumps({'status': provider_status}) + '\n\n'
@app.route('/stream/provider_status', methods=['GET'])
def stream_provider_status():
return Response(subscribe_to_provider_status(), mimetype='text/event-stream')
# Function to retrieve the RPC pod status
def get_rpc_status():
config.load_kube_config()
api_instance = client.CoreV1Api()
namespace = 'akash-services'
try:
# Retrieve the RPC pod status from Kubernetes
pod_info = api_instance.read_namespaced_pod_status('akash-node-1-0', namespace)
return pod_info.status.phase
except ApiException as e:
# Handle Kubernetes API exceptions
if e.status == 404:
return 'Not Found'
else:
print(f"APIException occurred while retrieving RPC pod status: {str(e)}")
return 'Error'
except Exception as e:
# Handle any other exceptions that occur during retrieval
print(f"Exception occurred while retrieving RPC pod status: {str(e)}")
return 'Error'
# Function to subscribe to RPC status updates
def subscribe_to_rpc_status():
while True:
rpc_status = get_rpc_status()
if rpc_status == 'Running':
try:
output = subprocess.check_output(['curl', '-s', 'http://localhost:26657/status'])
data = json.loads(output)
catching_up = data['result']['sync_info']['catching_up']
if catching_up:
rpc_status = 'Running - Node still syncing'
except Exception as e:
rpc_status = 'Error: ' + str(e)
yield 'data: ' + json.dumps({'status': rpc_status}) + '\n\n'
time.sleep(15) # Wait for 15 seconds before checking again
@app.route('/stream/rpc_status', methods=['GET'])
def stream_rpc_status():
return Response(subscribe_to_rpc_status(), mimetype='text/event-stream')
@app.route('/stop_service', methods=['POST'])
def stop_service():
service_name = request.form.get('service_name')
namespace = 'akash-services'
if service_name == 'rpc':
scale_down_stateful_set(namespace, 'akash-node-1')
elif service_name == 'provider':
scale_down_stateful_set(namespace, 'akash-provider')
elif service_name == 'both':
scale_down_stateful_set(namespace, 'akash-node-1')
scale_down_stateful_set(namespace, 'akash-provider')
return redirect('/')
@app.route('/start_service', methods=['POST'])
def start_service():
service_name = request.form.get('service_name')
namespace = 'akash-services'
if service_name == 'rpc':
scale_up_stateful_set(namespace, 'akash-node-1')
elif service_name == 'provider':
scale_up_stateful_set(namespace, 'akash-provider')
elif service_name == 'both':
scale_up_stateful_set(namespace, 'akash-node-1')
scale_up_stateful_set(namespace, 'akash-provider')
return redirect('/')
@app.route('/restart_service', methods=['POST'])
def restart_service():
service_name = request.form.get('service_name')
namespace = 'akash-services'
if service_name == 'rpc':
scale_down_stateful_set(namespace, 'akash-node-1')
scale_up_stateful_set(namespace, 'akash-node-1')
elif service_name == 'provider':
scale_down_stateful_set(namespace, 'akash-provider')
scale_up_stateful_set(namespace, 'akash-provder')
elif service_name == 'both':
scale_down_stateful_set(namespace, 'akash-node-1')
scale_up_stateful_set(namespace, 'akash-node-1')
scale_down_stateful_set(namespace, 'akash-provider')
scale_up_stateful_set(namespace, 'akash-provder')
return redirect('/')
@app.route('/get_service_status', methods=['POST'])
def get_service_status():
config.load_kube_config()
api_instance = client.CoreV1Api()
namespace = 'akash-services'
# Get status for RPC Node
rpc_node_status = get_pod_status(api_instance, 'akash-node-1', namespace)
# Get status for Provider
provider_status = get_pod_status(api_instance, 'akash-provider', namespace)
# Get status for both services
both_services_status = 'Online' if rpc_node_status == 'Running' and provider_status == 'Running' else 'Offline'
return jsonify({
'rpc_node_status': rpc_node_status,
'provider_status': provider_status,
'both_services_status': both_services_status
})
def scale_down_stateful_set(namespace, stateful_set_name):
config.load_kube_config()
api_instance = client.AppsV1Api()
stateful_set = api_instance.read_namespaced_stateful_set(stateful_set_name, namespace)
stateful_set.spec.replicas = 0
api_instance.replace_namespaced_stateful_set(stateful_set_name, namespace, stateful_set)
def scale_up_stateful_set(namespace, stateful_set_name):
config.load_kube_config()
api_instance = client.AppsV1Api()
stateful_set = api_instance.read_namespaced_stateful_set(stateful_set_name, namespace)
stateful_set.spec.replicas = 1
api_instance.replace_namespaced_stateful_set(stateful_set_name, namespace, stateful_set)
def restart_stateful_set(namespace, stateful_set_name):
config.load_kube_config()
api_instance = client.AppsV1Api()
body = client.V1beta1RollbackConfig()
body.rollback_to = client.V1beta1RollbackDeployment()
body.rollback_to.revision = 0
body.rollback_to.rollback_to = None
api_instance.create_namespaced_stateful_set_rollback(stateful_set_name, namespace, body)
# Usage
if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080)