osism 0.20250530.0__tar.gz → 0.20250605.0__tar.gz

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.
Files changed (96) hide show
  1. osism-0.20250605.0/AUTHORS +1 -0
  2. osism-0.20250605.0/ChangeLog +7 -0
  3. {osism-0.20250530.0 → osism-0.20250605.0}/Containerfile +1 -1
  4. {osism-0.20250530.0 → osism-0.20250605.0}/Dockerfile +1 -1
  5. {osism-0.20250530.0/osism.egg-info → osism-0.20250605.0}/PKG-INFO +5 -5
  6. {osism-0.20250530.0 → osism-0.20250605.0}/Pipfile +3 -3
  7. {osism-0.20250530.0 → osism-0.20250605.0}/Pipfile.lock +35 -40
  8. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/apply.py +1 -1
  9. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/baremetal.py +36 -30
  10. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/reconciler.py +2 -1
  11. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/vault.py +9 -1
  12. {osism-0.20250530.0 → osism-0.20250605.0}/osism/core/enums.py +1 -0
  13. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/__init__.py +2 -0
  14. osism-0.20250605.0/osism/tasks/conductor/__init__.py +54 -0
  15. osism-0.20250605.0/osism/tasks/conductor/config.py +92 -0
  16. osism-0.20250530.0/osism/tasks/conductor.py → osism-0.20250605.0/osism/tasks/conductor/ironic.py +66 -215
  17. osism-0.20250605.0/osism/tasks/conductor/netbox.py +50 -0
  18. osism-0.20250605.0/osism/tasks/conductor/utils.py +79 -0
  19. osism-0.20250605.0/osism/tasks/conductor.py +15 -0
  20. {osism-0.20250530.0 → osism-0.20250605.0/osism.egg-info}/PKG-INFO +5 -5
  21. {osism-0.20250530.0 → osism-0.20250605.0}/osism.egg-info/SOURCES.txt +5 -0
  22. osism-0.20250605.0/osism.egg-info/pbr.json +1 -0
  23. {osism-0.20250530.0 → osism-0.20250605.0}/osism.egg-info/requires.txt +4 -4
  24. {osism-0.20250530.0 → osism-0.20250605.0}/requirements.txt +4 -4
  25. osism-0.20250530.0/AUTHORS +0 -1
  26. osism-0.20250530.0/ChangeLog +0 -7
  27. osism-0.20250530.0/osism.egg-info/pbr.json +0 -1
  28. {osism-0.20250530.0 → osism-0.20250605.0}/.flake8 +0 -0
  29. {osism-0.20250530.0 → osism-0.20250605.0}/.github/renovate.json +0 -0
  30. {osism-0.20250530.0 → osism-0.20250605.0}/.github/workflows/publish.yml +0 -0
  31. {osism-0.20250530.0 → osism-0.20250605.0}/.hadolint.yaml +0 -0
  32. {osism-0.20250530.0 → osism-0.20250605.0}/.zuul.yaml +0 -0
  33. {osism-0.20250530.0 → osism-0.20250605.0}/LICENSE +0 -0
  34. {osism-0.20250530.0 → osism-0.20250605.0}/README.md +0 -0
  35. {osism-0.20250530.0 → osism-0.20250605.0}/files/change.sh +0 -0
  36. {osism-0.20250530.0 → osism-0.20250605.0}/files/cleanup-ansible-collections.sh +0 -0
  37. {osism-0.20250530.0 → osism-0.20250605.0}/files/clustershell/clush.conf +0 -0
  38. {osism-0.20250530.0 → osism-0.20250605.0}/files/clustershell/groups.conf +0 -0
  39. {osism-0.20250530.0 → osism-0.20250605.0}/files/data/SCS-Spec.MandatoryFlavors.verbose.yaml +0 -0
  40. {osism-0.20250530.0 → osism-0.20250605.0}/files/netbox-manager/settings.toml +0 -0
  41. {osism-0.20250530.0 → osism-0.20250605.0}/files/run-ansible-console.sh +0 -0
  42. {osism-0.20250530.0 → osism-0.20250605.0}/osism/__init__.py +0 -0
  43. {osism-0.20250530.0 → osism-0.20250605.0}/osism/__main__.py +0 -0
  44. {osism-0.20250530.0 → osism-0.20250605.0}/osism/actions/__init__.py +0 -0
  45. {osism-0.20250530.0 → osism-0.20250605.0}/osism/api.py +0 -0
  46. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/__init__.py +0 -0
  47. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/compose.py +0 -0
  48. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/compute.py +0 -0
  49. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/configuration.py +0 -0
  50. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/console.py +0 -0
  51. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/container.py +0 -0
  52. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/get.py +0 -0
  53. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/log.py +0 -0
  54. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/manage.py +0 -0
  55. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/netbox.py +0 -0
  56. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/noset.py +0 -0
  57. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/server.py +0 -0
  58. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/service.py +0 -0
  59. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/set.py +0 -0
  60. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/status.py +0 -0
  61. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/sync.py +0 -0
  62. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/task.py +0 -0
  63. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/validate.py +0 -0
  64. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/volume.py +0 -0
  65. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/wait.py +0 -0
  66. {osism-0.20250530.0 → osism-0.20250605.0}/osism/commands/worker.py +0 -0
  67. {osism-0.20250530.0 → osism-0.20250605.0}/osism/core/__init__.py +0 -0
  68. {osism-0.20250530.0 → osism-0.20250605.0}/osism/core/playbooks.py +0 -0
  69. {osism-0.20250530.0 → osism-0.20250605.0}/osism/data/__init__.py +0 -0
  70. {osism-0.20250530.0 → osism-0.20250605.0}/osism/main.py +0 -0
  71. {osism-0.20250530.0 → osism-0.20250605.0}/osism/plugins/__init__.py +0 -0
  72. {osism-0.20250530.0 → osism-0.20250605.0}/osism/services/__init__.py +0 -0
  73. {osism-0.20250530.0 → osism-0.20250605.0}/osism/services/listener.py +0 -0
  74. {osism-0.20250530.0 → osism-0.20250605.0}/osism/settings.py +0 -0
  75. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/ansible.py +0 -0
  76. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/ceph.py +0 -0
  77. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/kolla.py +0 -0
  78. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/kubernetes.py +0 -0
  79. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/netbox.py +0 -0
  80. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/openstack.py +0 -0
  81. {osism-0.20250530.0 → osism-0.20250605.0}/osism/tasks/reconciler.py +0 -0
  82. {osism-0.20250530.0 → osism-0.20250605.0}/osism/utils/__init__.py +0 -0
  83. {osism-0.20250530.0 → osism-0.20250605.0}/osism.egg-info/dependency_links.txt +0 -0
  84. {osism-0.20250530.0 → osism-0.20250605.0}/osism.egg-info/entry_points.txt +0 -0
  85. {osism-0.20250530.0 → osism-0.20250605.0}/osism.egg-info/not-zip-safe +0 -0
  86. {osism-0.20250530.0 → osism-0.20250605.0}/osism.egg-info/top_level.txt +0 -0
  87. {osism-0.20250530.0 → osism-0.20250605.0}/playbooks/build.yml +0 -0
  88. {osism-0.20250530.0 → osism-0.20250605.0}/playbooks/pre.yml +0 -0
  89. {osism-0.20250530.0 → osism-0.20250605.0}/playbooks/test-setup.yml +0 -0
  90. {osism-0.20250530.0 → osism-0.20250605.0}/requirements.ansible.txt +0 -0
  91. {osism-0.20250530.0 → osism-0.20250605.0}/requirements.netbox-manager.txt +0 -0
  92. {osism-0.20250530.0 → osism-0.20250605.0}/requirements.openstack-flavor-manager.txt +0 -0
  93. {osism-0.20250530.0 → osism-0.20250605.0}/requirements.openstack-image-manager.txt +0 -0
  94. {osism-0.20250530.0 → osism-0.20250605.0}/requirements.yml +0 -0
  95. {osism-0.20250530.0 → osism-0.20250605.0}/setup.cfg +0 -0
  96. {osism-0.20250530.0 → osism-0.20250605.0}/setup.py +0 -0
@@ -0,0 +1 @@
1
+ Christian Berendt <berendt@osism.tech>
@@ -0,0 +1,7 @@
1
+ CHANGES
2
+ =======
3
+
4
+ v0.20250605.0
5
+ -------------
6
+
7
+ * Use password as default value for remote\_board\_password (#1401)
@@ -7,7 +7,7 @@ FROM ${IMAGE}:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
7
7
  ENV PYTHONWARNINGS="ignore::UserWarning"
8
8
 
9
9
  COPY . /src
10
- COPY --from=ghcr.io/astral-sh/uv:0.7.8 /uv /usr/local/bin/uv
10
+ COPY --from=ghcr.io/astral-sh/uv:0.7.11 /uv /usr/local/bin/uv
11
11
 
12
12
  COPY files/data /data
13
13
  COPY files/change.sh /change.sh
@@ -7,7 +7,7 @@ FROM ${IMAGE}:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
7
7
  ENV PYTHONWARNINGS="ignore::UserWarning"
8
8
 
9
9
  COPY . /src
10
- COPY --from=ghcr.io/astral-sh/uv:0.7.8 /uv /usr/local/bin/uv
10
+ COPY --from=ghcr.io/astral-sh/uv:0.7.11 /uv /usr/local/bin/uv
11
11
 
12
12
  COPY files/data /data
13
13
  COPY files/change.sh /change.sh
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: osism
3
- Version: 0.20250530.0
3
+ Version: 0.20250605.0
4
4
  Summary: OSISM manager interface
5
5
  Home-page: https://github.com/osism/python-osism
6
6
  Author: OSISM GmbH
@@ -26,7 +26,7 @@ Requires-Dist: GitPython==3.1.44
26
26
  Requires-Dist: Jinja2==3.1.6
27
27
  Requires-Dist: PyYAML==6.0.2
28
28
  Requires-Dist: ara==1.7.2
29
- Requires-Dist: celery[redis]==5.5.2
29
+ Requires-Dist: celery[redis]==5.5.3
30
30
  Requires-Dist: cliff==4.10.0
31
31
  Requires-Dist: deepdiff==8.5.0
32
32
  Requires-Dist: docker==7.1.0
@@ -36,12 +36,12 @@ Requires-Dist: flower==2.0.1
36
36
  Requires-Dist: hiredis==3.2.1
37
37
  Requires-Dist: jc==1.25.5
38
38
  Requires-Dist: keystoneauth1==5.11.0
39
- Requires-Dist: kombu==5.5.3
39
+ Requires-Dist: kombu==5.5.4
40
40
  Requires-Dist: kubernetes==32.0.1
41
41
  Requires-Dist: loguru==0.7.3
42
42
  Requires-Dist: nbcli==0.10.0.dev2
43
43
  Requires-Dist: netmiko==4.5.0
44
- Requires-Dist: openstacksdk==4.5.0
44
+ Requires-Dist: openstacksdk==4.6.0
45
45
  Requires-Dist: pottery==3.0.1
46
46
  Requires-Dist: prompt-toolkit==3.0.51
47
47
  Requires-Dist: pynetbox==7.5.0
@@ -52,7 +52,7 @@ Requires-Dist: sqlmodel==0.0.24
52
52
  Requires-Dist: sushy==5.6.0
53
53
  Requires-Dist: tabulate==0.9.0
54
54
  Requires-Dist: transitions==0.9.2
55
- Requires-Dist: uvicorn[standard]==0.34.2
55
+ Requires-Dist: uvicorn[standard]==0.34.3
56
56
  Requires-Dist: watchdog==6.0.0
57
57
  Provides-Extra: ansible
58
58
  Requires-Dist: ansible-runner==2.4.1; extra == "ansible"
@@ -10,7 +10,7 @@ Jinja2 = "==3.1.6"
10
10
  PyYAML = "==6.0.2"
11
11
  ansible-runner = "==2.4.1"
12
12
  ara = "==1.7.2"
13
- celery = {version = "==5.5.2", extras = ["redis"]}
13
+ celery = {version = "==5.5.3", extras = ["redis"]}
14
14
  cliff = "==4.10.0"
15
15
  deepdiff = "==8.5.0"
16
16
  docker = "==7.1.0"
@@ -20,12 +20,12 @@ hiredis = "==3.2.1"
20
20
  huey = "==2.5.3"
21
21
  jc = "==1.25.5"
22
22
  keystoneauth1 = "==5.11.0"
23
- kombu = "==5.5.3"
23
+ kombu = "==5.5.4"
24
24
  kubernetes = "==32.0.1"
25
25
  loguru = "==0.7.3"
26
26
  nbcli = "0.10.0.dev2"
27
27
  netmiko = "==4.5.0"
28
- openstacksdk = "==4.5.0"
28
+ openstacksdk = "==4.6.0"
29
29
  pottery = "==3.0.1"
30
30
  prompt-toolkit = "==3.0.51"
31
31
  pynetbox = "==7.5.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_meta": {
3
3
  "hash": {
4
- "sha256": "502a46cada14b55db06ae7c1b0c578400f1880cf539b7a7c59a79d14c9c240d8"
4
+ "sha256": "2c0211f42b6765854a69f4900797638c04652c2852298fb20cf1ec26ae0fdf5e"
5
5
  },
6
6
  "pipfile-spec": 6,
7
7
  "requires": {},
@@ -134,11 +134,11 @@
134
134
  "redis"
135
135
  ],
136
136
  "hashes": [
137
- "sha256:4d6930f354f9d29295425d7a37261245c74a32807c45d764bedc286afd0e724e",
138
- "sha256:54425a067afdc88b57cd8d94ed4af2ffaf13ab8c7680041ac2c4ac44357bdf4c"
137
+ "sha256:0b5761a07057acee94694464ca482416b959568904c9dfa41ce8413a7d65d525",
138
+ "sha256:6c972ae7968c2b5281227f01c3a3f984037d21c5129d07bf3550cc2afc6b10a5"
139
139
  ],
140
140
  "markers": "python_version >= '3.8'",
141
- "version": "==5.5.2"
141
+ "version": "==5.5.3"
142
142
  },
143
143
  "certifi": {
144
144
  "hashes": [
@@ -368,11 +368,11 @@
368
368
  },
369
369
  "cmd2": {
370
370
  "hashes": [
371
- "sha256:30a0d385021fbe4a4116672845e5695bbe56eb682f9096066776394f954a7429",
372
- "sha256:cbc79525e423dc2085ef7922cdc5586d1fedaecb768cdfb05e5482ee0740b755"
371
+ "sha256:832f8121c4f21ebf2af4292051b34579d7d4c9e917dc54f8e322feb911d76da1",
372
+ "sha256:8cffaba7810526421cab3bfa0101b4907e1298ff2bcd8119615965a2eae5d95f"
373
373
  ],
374
- "markers": "python_version >= '3.8'",
375
- "version": "==2.5.11"
374
+ "markers": "python_version >= '3.9'",
375
+ "version": "==2.6.0"
376
376
  },
377
377
  "cryptography": {
378
378
  "hashes": [
@@ -777,13 +777,16 @@
777
777
  "version": "==5.11.0"
778
778
  },
779
779
  "kombu": {
780
+ "extras": [
781
+ "redis"
782
+ ],
780
783
  "hashes": [
781
- "sha256:021a0e11fcfcd9b0260ef1fb64088c0e92beb976eb59c1dfca7ddd4ad4562ea2",
782
- "sha256:5b0dbceb4edee50aa464f59469d34b97864be09111338cfb224a10b6a163909b"
784
+ "sha256:886600168275ebeada93b888e831352fe578168342f0d1d5833d88ba0d847363",
785
+ "sha256:a12ed0557c238897d8e518f1d1fdf84bd1516c5e305af2dacd85c2015115feb8"
783
786
  ],
784
787
  "index": "pypi",
785
788
  "markers": "python_version >= '3.8'",
786
- "version": "==5.5.3"
789
+ "version": "==5.5.4"
787
790
  },
788
791
  "kubernetes": {
789
792
  "hashes": [
@@ -1016,12 +1019,12 @@
1016
1019
  },
1017
1020
  "openstacksdk": {
1018
1021
  "hashes": [
1019
- "sha256:8ee80c594a2b710a3f4dc6a75334455bb8deb40f0bd42a706520210e82efc171",
1020
- "sha256:ab7a1240207a6969ba09ceee8f16653805730677b4497a806cd956733651fe68"
1022
+ "sha256:0ea54ce3005d48c5134f77dce8df7dd6b4c52d2a103472abc99db19cd4382638",
1023
+ "sha256:e47e166c4732e9aea65228e618d490e4be5df06526a1b95e2d5995d7d0977d3d"
1021
1024
  ],
1022
1025
  "index": "pypi",
1023
- "markers": "python_version >= '3.9'",
1024
- "version": "==4.5.0"
1026
+ "markers": "python_version >= '3.10'",
1027
+ "version": "==4.6.0"
1025
1028
  },
1026
1029
  "orderly-set": {
1027
1030
  "hashes": [
@@ -1110,11 +1113,11 @@
1110
1113
  },
1111
1114
  "prometheus-client": {
1112
1115
  "hashes": [
1113
- "sha256:18da1d2241ac2d10c8d2110f13eedcd5c7c0c8af18c926e8731f04fc10cd575c",
1114
- "sha256:c8951bbe64e62b96cd8e8f5d917279d1b9b91ab766793f33d4dce6c228558713"
1116
+ "sha256:190f1331e783cf21eb60bca559354e0a4d4378facecf78f5428c39b675d20d28",
1117
+ "sha256:cca895342e308174341b2cbf99a56bef291fbc0ef7b9e5412a0f26d653ba7094"
1115
1118
  ],
1116
1119
  "markers": "python_version >= '3.9'",
1117
- "version": "==0.22.0"
1120
+ "version": "==0.22.1"
1118
1121
  },
1119
1122
  "prompt-toolkit": {
1120
1123
  "hashes": [
@@ -1293,14 +1296,6 @@
1293
1296
  "markers": "python_version >= '3.8'",
1294
1297
  "version": "==2.19.1"
1295
1298
  },
1296
- "pyjwt": {
1297
- "hashes": [
1298
- "sha256:3b02fb0f44517787776cf48f2ae25d8e14f300e6d7545a4315cee571a415e850",
1299
- "sha256:7e1e5b56cc735432a7369cbfa0efe50fa113ebecdc04ae6922deba8b84582d0c"
1300
- ],
1301
- "markers": "python_version >= '3.8'",
1302
- "version": "==2.9.0"
1303
- },
1304
1299
  "pynacl": {
1305
1300
  "hashes": [
1306
1301
  "sha256:06b8f6fa7f5de8d5d2f7573fe8c863c051225a27b61e6860fd047b1775807858",
@@ -1340,11 +1335,11 @@
1340
1335
  },
1341
1336
  "pytest": {
1342
1337
  "hashes": [
1343
- "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820",
1344
- "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845"
1338
+ "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6",
1339
+ "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e"
1345
1340
  ],
1346
- "markers": "python_version >= '3.8'",
1347
- "version": "==8.3.5"
1341
+ "markers": "python_version >= '3.9'",
1342
+ "version": "==8.4.0"
1348
1343
  },
1349
1344
  "pytest-testinfra": {
1350
1345
  "hashes": [
@@ -1441,11 +1436,11 @@
1441
1436
  },
1442
1437
  "redis": {
1443
1438
  "hashes": [
1444
- "sha256:8d69d2dde11a12dc85d0dbf5c45577a5af048e2456f7077d87ad35c1c81c310e",
1445
- "sha256:f1deeca1ea2ef25c1e4e46b07f4ea1275140526b1feea4c6459c0ec27a10ef83"
1439
+ "sha256:16f2e22dff21d5125e8481515e386711a34cbec50f0e44413dd7d9c060a54e0f",
1440
+ "sha256:ee7e1056b9aea0f04c6c2ed59452947f34c4940ee025f5dd83e6a6418b6989e4"
1446
1441
  ],
1447
1442
  "markers": "python_version >= '3.8'",
1448
- "version": "==5.3.0"
1443
+ "version": "==5.2.1"
1449
1444
  },
1450
1445
  "requests": {
1451
1446
  "hashes": [
@@ -1488,11 +1483,11 @@
1488
1483
  },
1489
1484
  "ruamel.yaml": {
1490
1485
  "hashes": [
1491
- "sha256:b586a3416676566ed45bf679a0909719f7ea7b58c03a9b6e03f905a1e2cd5076",
1492
- "sha256:eca06c9fce6ee3220845c4c54e58376586e041a6127e4d1958e12a3142084897"
1486
+ "sha256:5a38fd5ce39d223bebb9e3a6779e86b9427a03fb0bf9f270060f8b149cffe5e2",
1487
+ "sha256:790ba4c48b6a6e6b12b532a7308779eb12d2aaab3a80fdb8389216f28ea2b287"
1493
1488
  ],
1494
1489
  "markers": "python_version >= '3.7'",
1495
- "version": "==0.18.11"
1490
+ "version": "==0.18.12"
1496
1491
  },
1497
1492
  "ruamel.yaml.clib": {
1498
1493
  "hashes": [
@@ -1702,11 +1697,11 @@
1702
1697
  },
1703
1698
  "typing-extensions": {
1704
1699
  "hashes": [
1705
- "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c",
1706
- "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"
1700
+ "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4",
1701
+ "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af"
1707
1702
  ],
1708
- "markers": "python_version >= '3.8'",
1709
- "version": "==4.13.2"
1703
+ "markers": "python_version >= '3.9'",
1704
+ "version": "==4.14.0"
1710
1705
  },
1711
1706
  "typing-inspection": {
1712
1707
  "hashes": [
@@ -69,7 +69,7 @@ class Run(Command):
69
69
  )
70
70
  parser.add_argument(
71
71
  "--timeout",
72
- default=300,
72
+ default=os.environ.get("OSISM_TASK_TIMEOUT", 300),
73
73
  type=int,
74
74
  help="Timeout to end if there is no output",
75
75
  )
@@ -70,19 +70,18 @@ class BaremetalDeploy(Command):
70
70
  def get_parser(self, prog_name):
71
71
  parser = super(BaremetalDeploy, self).get_parser(prog_name)
72
72
 
73
- parser_exc_group = parser.add_mutually_exclusive_group(required=True)
74
- parser_exc_group.add_argument(
73
+ parser.add_argument(
74
+ "name",
75
+ nargs="?",
76
+ type=str,
77
+ help="Deploy given baremetal node when in provision state available",
78
+ )
79
+ parser.add_argument(
75
80
  "--all",
76
81
  default=False,
77
82
  help="Deploy all baremetal nodes in provision state available",
78
83
  action="store_true",
79
84
  )
80
- parser_exc_group.add_argument(
81
- "--name",
82
- default=[],
83
- help="Deploy given baremetal node when in provision state available. May be specified multiple times",
84
- action="append",
85
- )
86
85
  parser.add_argument(
87
86
  "--rebuild",
88
87
  default=False,
@@ -99,10 +98,14 @@ class BaremetalDeploy(Command):
99
98
 
100
99
  def take_action(self, parsed_args):
101
100
  all_nodes = parsed_args.all
102
- names = parsed_args.name
101
+ name = parsed_args.name
103
102
  rebuild = parsed_args.rebuild
104
103
  yes_i_really_really_mean_it = parsed_args.yes_i_really_really_mean_it
105
104
 
105
+ if not all_nodes and not name:
106
+ logger.error("Please specify a node name or use --all")
107
+ return
108
+
106
109
  if all_nodes and rebuild and not yes_i_really_really_mean_it:
107
110
  logger.error(
108
111
  "Please confirm that you wish to rebuild all nodes by specifying '--yes-i-really-really-mean-it'"
@@ -114,14 +117,14 @@ class BaremetalDeploy(Command):
114
117
  if all_nodes:
115
118
  deploy_nodes = list(conn.baremetal.nodes(details=True))
116
119
  else:
117
- deploy_nodes = [
118
- conn.baremetal.find_node(name, ignore_missing=True, details=True)
119
- for name in names
120
- ]
120
+ node = conn.baremetal.find_node(name, ignore_missing=True, details=True)
121
+ if not node:
122
+ logger.warning(f"Could not find node {name}")
123
+ return
124
+ deploy_nodes = [node]
121
125
 
122
- for node_idx, node in enumerate(deploy_nodes):
126
+ for node in deploy_nodes:
123
127
  if not node:
124
- logger.warning(f"Could not find node {names[node_idx]}")
125
128
  continue
126
129
 
127
130
  if node.provision_state in ["available", "deploy failed"]:
@@ -176,19 +179,18 @@ class BaremetalUndeploy(Command):
176
179
  def get_parser(self, prog_name):
177
180
  parser = super(BaremetalUndeploy, self).get_parser(prog_name)
178
181
 
179
- parser_exc_group = parser.add_mutually_exclusive_group(required=True)
180
- parser_exc_group.add_argument(
182
+ parser.add_argument(
183
+ "name",
184
+ nargs="?",
185
+ type=str,
186
+ help="Undeploy given baremetal node",
187
+ )
188
+ parser.add_argument(
181
189
  "--all",
182
190
  default=False,
183
191
  help="Undeploy all baremetal nodes",
184
192
  action="store_true",
185
193
  )
186
- parser_exc_group.add_argument(
187
- "--name",
188
- default=[],
189
- help="Undeploy given baremetal node. May be specified multiple times",
190
- action="append",
191
- )
192
194
  parser.add_argument(
193
195
  "--yes-i-really-really-mean-it",
194
196
  default=False,
@@ -199,9 +201,13 @@ class BaremetalUndeploy(Command):
199
201
 
200
202
  def take_action(self, parsed_args):
201
203
  all_nodes = parsed_args.all
202
- names = parsed_args.name
204
+ name = parsed_args.name
203
205
  yes_i_really_really_mean_it = parsed_args.yes_i_really_really_mean_it
204
206
 
207
+ if not all_nodes and not name:
208
+ logger.error("Please specify a node name or use --all")
209
+ return
210
+
205
211
  if all_nodes and not yes_i_really_really_mean_it:
206
212
  logger.error(
207
213
  "Please confirm that you wish to undeploy all nodes by specifying '--yes-i-really-really-mean-it'"
@@ -213,14 +219,14 @@ class BaremetalUndeploy(Command):
213
219
  if all_nodes:
214
220
  deploy_nodes = list(conn.baremetal.nodes())
215
221
  else:
216
- deploy_nodes = [
217
- conn.baremetal.find_node(name, ignore_missing=True, details=False)
218
- for name in names
219
- ]
222
+ node = conn.baremetal.find_node(name, ignore_missing=True, details=False)
223
+ if not node:
224
+ logger.warning(f"Could not find node {name}")
225
+ return
226
+ deploy_nodes = [node]
220
227
 
221
- for node_idx, node in enumerate(deploy_nodes):
228
+ for node in deploy_nodes:
222
229
  if not node:
223
- logger.warning(f"Could not find node {names[node_idx]}")
224
230
  continue
225
231
 
226
232
  if node.provision_state in ["active", "deploy failed", "error"]:
@@ -1,5 +1,6 @@
1
1
  # SPDX-License-Identifier: Apache-2.0
2
2
 
3
+ import os
3
4
  import subprocess
4
5
  import time
5
6
 
@@ -34,7 +35,7 @@ class Sync(Command):
34
35
  )
35
36
  parser.add_argument(
36
37
  "--task-timeout",
37
- default=3600,
38
+ default=os.environ.get("OSISM_TASK_TIMEOUT", 300),
38
39
  type=int,
39
40
  help="Timeout for a scheduled task that has not been executed yet",
40
41
  )
@@ -5,6 +5,7 @@
5
5
 
6
6
  import os
7
7
  import subprocess
8
+ import sys
8
9
 
9
10
  from cliff.command import Command
10
11
  from cryptography.fernet import Fernet
@@ -31,7 +32,14 @@ class SetPassword(Command):
31
32
 
32
33
  f = Fernet(key)
33
34
 
34
- ansible_vault_password = prompt("Ansible Vault password: ", is_password=True)
35
+ # Check if password is being piped from STDIN
36
+ if not sys.stdin.isatty():
37
+ ansible_vault_password = sys.stdin.read().strip()
38
+ else:
39
+ ansible_vault_password = prompt(
40
+ "Ansible Vault password: ", is_password=True
41
+ )
42
+
35
43
  redis.set(
36
44
  "ansible_vault_password", f.encrypt(ansible_vault_password.encode("utf-8"))
37
45
  )
@@ -102,6 +102,7 @@ VALIDATE_PLAYBOOKS = {
102
102
  "ceph-osds": {"environment": "ceph", "runtime": "osism-ansible"},
103
103
  "container-status": {"environment": "generic", "runtime": "osism-ansible"},
104
104
  "kernel-version": {"environment": "generic", "runtime": "osism-ansible"},
105
+ "docker-version": {"environment": "generic", "runtime": "osism-ansible"},
105
106
  "kolla-connectivity": {"environment": "kolla", "runtime": "osism-ansible"},
106
107
  "mysql-open-files-limit": {"environment": "generic", "runtime": "osism-ansible"},
107
108
  "ntp": {"environment": "generic", "runtime": "osism-ansible"},
@@ -1,5 +1,6 @@
1
1
  # SPDX-License-Identifier: Apache-2.0
2
2
 
3
+ import logging
3
4
  import os
4
5
  import re
5
6
  import subprocess
@@ -77,6 +78,7 @@ def run_ansible_in_environment(
77
78
 
78
79
  # NOTE: Consider arguments in the future
79
80
  if locking:
81
+ logging.getLogger("redlock").setLevel(logging.WARNING)
80
82
  lock = Redlock(
81
83
  key=f"lock-ansible-{environment}-{role}",
82
84
  masters={utils.redis},
@@ -0,0 +1,54 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ import copy
4
+ from celery import Celery
5
+ from celery.signals import worker_process_init
6
+ from loguru import logger
7
+
8
+ from osism.tasks import Config
9
+ from osism.tasks.conductor.config import get_configuration
10
+ from osism.tasks.conductor.ironic import sync_ironic as _sync_ironic
11
+
12
+
13
+ # App configuration
14
+ app = Celery("conductor")
15
+ app.config_from_object(Config)
16
+
17
+
18
+ @worker_process_init.connect
19
+ def celery_init_worker(**kwargs):
20
+ pass
21
+
22
+
23
+ @app.on_after_configure.connect
24
+ def setup_periodic_tasks(sender, **kwargs):
25
+ pass
26
+
27
+
28
+ # Tasks
29
+ @app.task(bind=True, name="osism.tasks.conductor.get_ironic_parameters")
30
+ def get_ironic_parameters(self):
31
+ configuration = get_configuration()
32
+ if "ironic_parameters" in configuration:
33
+ # NOTE: Do not pass by reference, everybody gets their own copy to work with
34
+ return copy.deepcopy(configuration["ironic_parameters"])
35
+
36
+ return {}
37
+
38
+
39
+ @app.task(bind=True, name="osism.tasks.conductor.sync_netbox")
40
+ def sync_netbox(self, force_update=False):
41
+ logger.info("Not implemented")
42
+
43
+
44
+ @app.task(bind=True, name="osism.tasks.conductor.sync_ironic")
45
+ def sync_ironic(self, force_update=False):
46
+ _sync_ironic(get_ironic_parameters, force_update)
47
+
48
+
49
+ __all__ = [
50
+ "app",
51
+ "get_ironic_parameters",
52
+ "sync_netbox",
53
+ "sync_ironic",
54
+ ]
@@ -0,0 +1,92 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ import uuid
4
+
5
+ from loguru import logger
6
+ import yaml
7
+
8
+ from osism.tasks import Config, openstack
9
+
10
+
11
+ def is_uuid(value):
12
+ """Check if a string is a valid UUID."""
13
+ try:
14
+ uuid.UUID(value)
15
+ return True
16
+ except (ValueError, AttributeError):
17
+ return False
18
+
19
+
20
+ def get_configuration():
21
+ with open("/etc/conductor.yml") as fp:
22
+ configuration = yaml.load(fp, Loader=yaml.SafeLoader)
23
+
24
+ if not configuration:
25
+ logger.warning(
26
+ "The conductor configuration is empty. That's probably wrong"
27
+ )
28
+ return {}
29
+
30
+ if Config.enable_ironic.lower() not in ["true", "yes"]:
31
+ return configuration
32
+
33
+ if "ironic_parameters" not in configuration:
34
+ logger.error("ironic_parameters not found in the conductor configuration")
35
+ return configuration
36
+
37
+ if "instance_info" in configuration["ironic_parameters"]:
38
+ if "image_source" in configuration["ironic_parameters"]["instance_info"]:
39
+ image_source = configuration["ironic_parameters"]["instance_info"][
40
+ "image_source"
41
+ ]
42
+ if not is_uuid(image_source):
43
+ result = openstack.image_get(image_source)
44
+ configuration["ironic_parameters"]["instance_info"][
45
+ "image_source"
46
+ ] = result.id
47
+
48
+ if "driver_info" in configuration["ironic_parameters"]:
49
+ if "deploy_kernel" in configuration["ironic_parameters"]["driver_info"]:
50
+ deploy_kernel = configuration["ironic_parameters"]["driver_info"][
51
+ "deploy_kernel"
52
+ ]
53
+ if not is_uuid(deploy_kernel):
54
+ result = openstack.image_get(deploy_kernel)
55
+ configuration["ironic_parameters"]["driver_info"][
56
+ "deploy_kernel"
57
+ ] = result.id
58
+
59
+ if "deploy_ramdisk" in configuration["ironic_parameters"]["driver_info"]:
60
+ deploy_ramdisk = configuration["ironic_parameters"]["driver_info"][
61
+ "deploy_ramdisk"
62
+ ]
63
+ if not is_uuid(deploy_ramdisk):
64
+ result = openstack.image_get(deploy_ramdisk)
65
+ configuration["ironic_parameters"]["driver_info"][
66
+ "deploy_ramdisk"
67
+ ] = result.id
68
+
69
+ if "cleaning_network" in configuration["ironic_parameters"]["driver_info"]:
70
+ result = openstack.network_get(
71
+ configuration["ironic_parameters"]["driver_info"][
72
+ "cleaning_network"
73
+ ]
74
+ )
75
+ configuration["ironic_parameters"]["driver_info"][
76
+ "cleaning_network"
77
+ ] = result.id
78
+
79
+ if (
80
+ "provisioning_network"
81
+ in configuration["ironic_parameters"]["driver_info"]
82
+ ):
83
+ result = openstack.network_get(
84
+ configuration["ironic_parameters"]["driver_info"][
85
+ "provisioning_network"
86
+ ]
87
+ )
88
+ configuration["ironic_parameters"]["driver_info"][
89
+ "provisioning_network"
90
+ ] = result.id
91
+
92
+ return configuration