Page MenuHomePhabricator
Paste P29938

Ganeti migration to support rows in Netbox
ActivePublic

Authored by Volans on Jun 21 2022, 3:34 PM.
Tags
None
Referenced Files
F35260301: Ganeti migration to support rows in Netbox
Jun 21 2022, 3:34 PM
Subscribers
None
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg codfw_test
2022-06-21 15:24:39,763 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:24:40,081 [INFO] Creating cluster_group codfw_test with data: {'name': 'codfw_test', 'slug': 'codfw_test'}
2022-06-21 15:24:40,276 [INFO] Creating Cluster row_A-test with data: {'name': 'row_A-test', 'type': 2, 'site': 9, 'group': 1}
2022-06-21 15:24:40,843 [INFO] Setting cluster ID to 40 for device ganeti-test2001
2022-06-21 15:24:41,182 [INFO] Setting cluster ID to 40 for device ganeti-test2003
2022-06-21 15:24:41,505 [INFO] Setting cluster ID to 40 for device ganeti-test2002
2022-06-21 15:24:41,808 [INFO] Syncing VMs for cluster row_A-test
2022-06-21 15:24:43,564 [INFO] Summary of performed actions: Counter({'VMs added': 5, 'Nodes added': 3, 'Cluster groups added': 1, 'Clusters created': 1})
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg drmrs02
2022-06-21 15:26:33,139 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:26:33,421 [INFO] Creating cluster_group drmrs02 with data: {'name': 'drmrs02', 'slug': 'drmrs02'}
2022-06-21 15:26:34,245 [INFO] Creating Cluster row_B13 with data: {'name': 'row_B13', 'type': 2, 'site': 10, 'group': 2}
2022-06-21 15:26:34,718 [INFO] Setting cluster ID to 41 for device ganeti6002
2022-06-21 15:26:35,072 [INFO] Setting cluster ID to 41 for device ganeti6004
2022-06-21 15:26:35,778 [INFO] Syncing VMs for cluster row_B13
2022-06-21 15:26:37,444 [INFO] Summary of performed actions: Counter({'VMs added': 5, 'Nodes added': 2, 'Cluster groups added': 1, 'Clusters created': 1})
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg drmrs01
2022-06-21 15:26:43,654 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:26:43,992 [INFO] Creating cluster_group drmrs01 with data: {'name': 'drmrs01', 'slug': 'drmrs01'}
2022-06-21 15:26:44,707 [INFO] Creating Cluster row_B12 with data: {'name': 'row_B12', 'type': 2, 'site': 10, 'group': 3}
2022-06-21 15:26:45,558 [INFO] Setting cluster ID to 42 for device ganeti6001
2022-06-21 15:26:45,976 [INFO] Setting cluster ID to 42 for device ganeti6003
2022-06-21 15:26:46,756 [INFO] Syncing VMs for cluster row_B12
2022-06-21 15:26:48,530 [INFO] Summary of performed actions: Counter({'VMs added': 5, 'Nodes added': 2, 'Cluster groups added': 1, 'Clusters created': 1})
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg eqsin
2022-06-21 15:26:53,541 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:26:53,814 [INFO] Creating cluster_group eqsin with data: {'name': 'eqsin', 'slug': 'eqsin'}
2022-06-21 15:26:54,835 [INFO] Creating Cluster row_1 with data: {'name': 'row_1', 'type': 2, 'site': 8, 'group': 4}
2022-06-21 15:26:55,238 [INFO] Setting cluster ID to 43 for device ganeti5002
2022-06-21 15:26:55,578 [INFO] Setting cluster ID to 43 for device ganeti5001
2022-06-21 15:26:55,932 [INFO] Setting cluster ID to 43 for device ganeti5003
2022-06-21 15:26:57,372 [INFO] Syncing VMs for cluster row_1
2022-06-21 15:27:00,947 [INFO] Summary of performed actions: Counter({'VMs added': 10, 'Nodes added': 3, 'Cluster groups added': 1, 'Clusters created': 1})
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg esams
2022-06-21 15:27:06,000 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:27:08,218 [INFO] Creating cluster_group esams with data: {'name': 'esams', 'slug': 'esams'}
2022-06-21 15:27:08,915 [INFO] Creating Cluster row_OE with data: {'name': 'row_OE', 'type': 2, 'site': 1, 'group': 5}
2022-06-21 15:27:09,441 [INFO] Setting cluster ID to 44 for device ganeti3001
2022-06-21 15:27:09,872 [INFO] Setting cluster ID to 44 for device ganeti3003
2022-06-21 15:27:10,317 [INFO] Setting cluster ID to 44 for device ganeti3002
2022-06-21 15:27:11,183 [INFO] Syncing VMs for cluster row_OE
2022-06-21 15:27:15,489 [INFO] Summary of performed actions: Counter({'VMs added': 11, 'Nodes added': 3, 'Cluster groups added': 1, 'Clusters created': 1})
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg ulsfo
2022-06-21 15:27:22,015 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:27:22,339 [INFO] Creating cluster_group ulsfo with data: {'name': 'ulsfo', 'slug': 'ulsfo'}
2022-06-21 15:27:22,732 [INFO] Creating Cluster row_1 with data: {'name': 'row_1', 'type': 2, 'site': 2, 'group': 6}
2022-06-21 15:27:23,231 [INFO] Setting cluster ID to 45 for device ganeti4003
2022-06-21 15:27:23,664 [INFO] Setting cluster ID to 45 for device ganeti4001
2022-06-21 15:27:24,074 [INFO] Setting cluster ID to 45 for device ganeti4002
2022-06-21 15:27:24,513 [INFO] Setting cluster ID to 45 for device ganeti4004
2022-06-21 15:27:25,072 [INFO] Syncing VMs for cluster row_1
2022-06-21 15:27:28,391 [INFO] Summary of performed actions: Counter({'VMs added': 10, 'Nodes added': 4, 'Cluster groups added': 1, 'Clusters created': 1})
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg codfw
2022-06-21 15:27:49,774 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:27:50,581 [INFO] Creating cluster_group codfw with data: {'name': 'codfw', 'slug': 'codfw'}
2022-06-21 15:27:50,888 [INFO] Creating Cluster row_A with data: {'name': 'row_A', 'type': 2, 'site': 9, 'group': 7}
2022-06-21 15:27:51,419 [INFO] Creating Cluster row_B with data: {'name': 'row_B', 'type': 2, 'site': 9, 'group': 7}
2022-06-21 15:27:51,864 [INFO] Creating Cluster row_C with data: {'name': 'row_C', 'type': 2, 'site': 9, 'group': 7}
2022-06-21 15:27:52,317 [INFO] Creating Cluster row_D with data: {'name': 'row_D', 'type': 2, 'site': 9, 'group': 7}
2022-06-21 15:27:52,921 [INFO] Setting cluster ID to 46 for device ganeti2023
2022-06-21 15:27:53,481 [INFO] Setting cluster ID to 46 for device ganeti2029
2022-06-21 15:27:54,185 [INFO] Setting cluster ID to 46 for device ganeti2027
2022-06-21 15:27:54,581 [INFO] Setting cluster ID to 46 for device ganeti2030
2022-06-21 15:27:54,977 [INFO] Setting cluster ID to 46 for device ganeti2024
2022-06-21 15:27:55,392 [INFO] Setting cluster ID to 46 for device ganeti2028
2022-06-21 15:27:55,911 [INFO] Setting cluster ID to 47 for device ganeti2022
2022-06-21 15:27:56,302 [INFO] Setting cluster ID to 47 for device ganeti2019
2022-06-21 15:27:56,955 [INFO] Setting cluster ID to 47 for device ganeti2020
2022-06-21 15:27:57,379 [INFO] Setting cluster ID to 47 for device ganeti2021
2022-06-21 15:27:57,876 [INFO] Setting cluster ID to 48 for device ganeti2012
2022-06-21 15:27:58,268 [INFO] Setting cluster ID to 48 for device ganeti2014
2022-06-21 15:27:58,659 [INFO] Setting cluster ID to 48 for device ganeti2011
2022-06-21 15:27:59,050 [INFO] Setting cluster ID to 48 for device ganeti2010
2022-06-21 15:27:59,382 [INFO] Setting cluster ID to 48 for device ganeti2009
2022-06-21 15:27:59,717 [INFO] Setting cluster ID to 48 for device ganeti2013
2022-06-21 15:28:00,369 [INFO] Setting cluster ID to 49 for device ganeti2025
2022-06-21 15:28:00,700 [INFO] Setting cluster ID to 49 for device ganeti2017
2022-06-21 15:28:01,053 [INFO] Setting cluster ID to 49 for device ganeti2026
2022-06-21 15:28:01,409 [INFO] Setting cluster ID to 49 for device ganeti2018
2022-06-21 15:28:01,750 [INFO] Setting cluster ID to 49 for device ganeti2015
2022-06-21 15:28:02,081 [INFO] Setting cluster ID to 49 for device ganeti2016
2022-06-21 15:28:03,595 [INFO] Syncing VMs for cluster row_A
2022-06-21 15:28:12,080 [INFO] Syncing VMs for cluster row_B
2022-06-21 15:28:19,491 [INFO] Syncing VMs for cluster row_C
2022-06-21 15:28:24,109 [INFO] Syncing VMs for cluster row_D
2022-06-21 15:28:29,206 [INFO] Summary of performed actions: Counter({'VMs added': 92, 'Nodes added': 22, 'Clusters created': 4, 'Cluster groups added': 1})
root@netbox-dev2002:~# REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt /srv/deployment/netbox/venv/bin/python3 /home/volans/ganeti-netbox-sync.py -c /home/volans/ganeti-sync.cfg eqiad
2022-06-21 15:28:40,258 [INFO] Loaded /home/volans/ganeti-sync.cfg configuration
2022-06-21 15:28:40,575 [INFO] Creating cluster_group eqiad with data: {'name': 'eqiad', 'slug': 'eqiad'}
2022-06-21 15:28:40,920 [INFO] Creating Cluster row_A with data: {'name': 'row_A', 'type': 2, 'site': 6, 'group': 8}
2022-06-21 15:28:41,136 [INFO] Creating Cluster row_B with data: {'name': 'row_B', 'type': 2, 'site': 6, 'group': 8}
2022-06-21 15:28:41,351 [INFO] Creating Cluster row_C with data: {'name': 'row_C', 'type': 2, 'site': 6, 'group': 8}
2022-06-21 15:28:41,567 [INFO] Creating Cluster row_D with data: {'name': 'row_D', 'type': 2, 'site': 6, 'group': 8}
2022-06-21 15:28:41,948 [INFO] Setting cluster ID to 50 for device ganeti1008
2022-06-21 15:28:42,298 [INFO] Setting cluster ID to 50 for device ganeti1005
2022-06-21 15:28:42,625 [INFO] Setting cluster ID to 50 for device ganeti1025
2022-06-21 15:28:42,941 [INFO] Setting cluster ID to 50 for device ganeti1026
2022-06-21 15:28:43,262 [INFO] Setting cluster ID to 50 for device ganeti1006
2022-06-21 15:28:43,597 [INFO] Setting cluster ID to 50 for device ganeti1023
2022-06-21 15:28:44,125 [INFO] Setting cluster ID to 50 for device ganeti1007
2022-06-21 15:28:44,538 [INFO] Setting cluster ID to 51 for device ganeti1016
2022-06-21 15:28:45,081 [INFO] Setting cluster ID to 51 for device ganeti1017
2022-06-21 15:28:45,416 [INFO] Setting cluster ID to 51 for device ganeti1015
2022-06-21 15:28:45,755 [INFO] Setting cluster ID to 51 for device ganeti1018
2022-06-21 15:28:46,085 [INFO] Setting cluster ID to 51 for device ganeti1014
2022-06-21 15:28:46,414 [INFO] Setting cluster ID to 51 for device ganeti1013
2022-06-21 15:28:46,836 [INFO] Setting cluster ID to 52 for device ganeti1028
2022-06-21 15:28:47,191 [INFO] Setting cluster ID to 52 for device ganeti1009
2022-06-21 15:28:47,534 [INFO] Setting cluster ID to 52 for device ganeti1011
2022-06-21 15:28:47,887 [INFO] Setting cluster ID to 52 for device ganeti1010
2022-06-21 15:28:48,231 [INFO] Setting cluster ID to 52 for device ganeti1024
2022-06-21 15:28:48,596 [INFO] Setting cluster ID to 52 for device ganeti1012
2022-06-21 15:28:48,945 [INFO] Setting cluster ID to 52 for device ganeti1027
2022-06-21 15:28:49,371 [INFO] Setting cluster ID to 53 for device ganeti1021
2022-06-21 15:28:49,704 [INFO] Setting cluster ID to 53 for device ganeti1019
2022-06-21 15:28:50,065 [INFO] Setting cluster ID to 53 for device ganeti1022
2022-06-21 15:28:50,802 [INFO] Setting cluster ID to 53 for device ganeti1020
2022-06-21 15:28:52,723 [INFO] Syncing VMs for cluster row_A
2022-06-21 15:29:03,893 [INFO] Syncing VMs for cluster row_B
2022-06-21 15:29:12,373 [INFO] Syncing VMs for cluster row_C
2022-06-21 15:29:27,476 [INFO] Syncing VMs for cluster row_D
2022-06-21 15:29:39,098 [INFO] Summary of performed actions: Counter({'VMs added': 121, 'Nodes added': 24, 'Clusters created': 4, 'Cluster groups added': 1})