Skip to content

Commit b486003

Browse files
committed
Migration to 0.1.X
Signed-off-by: Anton Kremenetsky <anton.kremenetsky@gmail.com>
1 parent f1ffb80 commit b486003

4 files changed

Lines changed: 1645 additions & 2 deletions

File tree

exordos_core/bootstrap/defaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ def add_core_set(
132132
node_uuids=[sys_uuid.UUID(spec["stand"]["bootstraps"][0]["uuid"])],
133133
)
134134

135-
prefix = spec["stand"]["hypervisors"][0]["machine_prefix"]
135+
# prefix = spec["stand"]["hypervisors"][0]["machine_prefix"]
136136
for i, node in enumerate(nodes):
137137
bootstrap_spec = spec["stand"]["bootstraps"][i]
138138

139139
# Special naming for core nodes
140-
node.name = f"{prefix}{str(node.uuid)[:8]}-{node.name}"
140+
node.name = f"{node.name}"
141141
node.insert()
142142

143143
if set_active:

tools/core_set_spec.json.template

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"_description": "Core Set Specification Template - Generated by migration_final_0.1.X_phoenix.sh",
3+
"admin_password": "{{ADMIN_PASSWORD}}",
4+
"iam": {
5+
"default_client_id": "{{IAM_DEFAULT_CLIENT_ID}}",
6+
"default_client_secret": "{{IAM_DEFAULT_CLIENT_SECRET}}",
7+
"default_client_uuid": "{{IAM_DEFAULT_CLIENT_UUID}}"
8+
},
9+
"stand": {
10+
"hypervisors": [
11+
{
12+
"machine_prefix": "{{MACHINE_PREFIX}}",
13+
"_comment": "Machine prefix used for VM naming"
14+
}
15+
],
16+
"network": {
17+
"name": "{{NETWORK}}",
18+
"cidr": "{{NETWORK_CIDR}}",
19+
"_comment": "Network name and CIDR for core node ports"
20+
},
21+
"boot_network": {
22+
"cidr": "{{BOOT_NETWORK_CIDR}}",
23+
"_comment": "Boot network CIDR"
24+
},
25+
"bootstraps": [
26+
{
27+
"uuid": "{{NODE_UUID}}",
28+
"_comment_uuid": "VM UUID from virsh dumpxml",
29+
"name": "exordos-core-bootstrap",
30+
"_comment_name": "Name of the bootstrap node",
31+
"image": "{{IMAGE_PATH}}",
32+
"_comment_image_local": "Local path to the QCOW2 image file",
33+
"image_uri": "{{IMAGE_URI}}",
34+
"_comment_image_uri": "URI to the Exordos Core image for the system disk (for reference)",
35+
"cores": {{CORES}},
36+
"_comment_cores": "Number of CPU cores for the core node",
37+
"memory": {{RAM}},
38+
"_comment_memory": "Memory in MB for the core node",
39+
"disks": [
40+
{
41+
"size": {{DISK_ROOT_SIZE}},
42+
"label": "root-volume",
43+
"_comment": "Root disk size in GB"
44+
},
45+
{
46+
"size": {{DISK_DATA_SIZE}},
47+
"label": "data",
48+
"_comment": "Data disk size in GB for PostgreSQL"
49+
}
50+
],
51+
"ports": [
52+
{
53+
"ip": "{{PORT_MAIN_IP}}",
54+
"mac": "{{PORT_MAIN_MAC}}",
55+
"_comment": "Primary IP address of the core node VM"
56+
},
57+
{
58+
"ip": null,
59+
"mac": "{{PORT_BOOT_MAC}}",
60+
"_comment": "Secondary port (boot/MAC only)"
61+
}
62+
],
63+
"_comment_ports": "Network ports configuration for the core node"
64+
}
65+
]
66+
}
67+
}

0 commit comments

Comments
 (0)