Skip to content

Commit 231f2bd

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

4 files changed

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

0 commit comments

Comments
 (0)