ceph-devstack 0.1.0__py3-none-any.whl

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 (44) hide show
  1. ceph_devstack/Dockerfile.selinux +20 -0
  2. ceph_devstack/__init__.py +187 -0
  3. ceph_devstack/ceph_devstack.pp +0 -0
  4. ceph_devstack/ceph_devstack.te +127 -0
  5. ceph_devstack/cli.py +64 -0
  6. ceph_devstack/config.toml +24 -0
  7. ceph_devstack/exec.py +93 -0
  8. ceph_devstack/host.py +154 -0
  9. ceph_devstack/logging.conf +30 -0
  10. ceph_devstack/py.typed +0 -0
  11. ceph_devstack/requirements.py +277 -0
  12. ceph_devstack/resources/__init__.py +115 -0
  13. ceph_devstack/resources/ceph/__init__.py +266 -0
  14. ceph_devstack/resources/ceph/containers.py +419 -0
  15. ceph_devstack/resources/ceph/exceptions.py +3 -0
  16. ceph_devstack/resources/ceph/requirements.py +90 -0
  17. ceph_devstack/resources/ceph/utils.py +45 -0
  18. ceph_devstack/resources/container.py +171 -0
  19. ceph_devstack/resources/misc.py +15 -0
  20. ceph_devstack-0.1.0.dist-info/METADATA +222 -0
  21. ceph_devstack-0.1.0.dist-info/RECORD +44 -0
  22. ceph_devstack-0.1.0.dist-info/WHEEL +5 -0
  23. ceph_devstack-0.1.0.dist-info/entry_points.txt +2 -0
  24. ceph_devstack-0.1.0.dist-info/licenses/LICENSE +21 -0
  25. ceph_devstack-0.1.0.dist-info/top_level.txt +2 -0
  26. tests/__init__.py +0 -0
  27. tests/conftest.py +9 -0
  28. tests/resources/__init__.py +0 -0
  29. tests/resources/ceph/__init__.py +0 -0
  30. tests/resources/ceph/fixtures/__init__.py +0 -0
  31. tests/resources/ceph/fixtures/testnode-config.toml +2 -0
  32. tests/resources/ceph/test_cephdevstack_core.py +459 -0
  33. tests/resources/ceph/test_devstack.py +182 -0
  34. tests/resources/ceph/test_env_vars.py +110 -0
  35. tests/resources/ceph/test_requirements_ceph.py +262 -0
  36. tests/resources/ceph/test_ssh_keypair.py +109 -0
  37. tests/resources/ceph/test_testnode.py +36 -0
  38. tests/resources/test_container.py +247 -0
  39. tests/resources/test_misc.py +46 -0
  40. tests/resources/test_podmanresource.py +59 -0
  41. tests/test_config.py +120 -0
  42. tests/test_deep_merge.py +71 -0
  43. tests/test_parse_args.py +228 -0
  44. tests/test_requirements_core.py +495 -0
@@ -0,0 +1,171 @@
1
+ import asyncio
2
+ import json
3
+ import os
4
+
5
+ from typing import Dict, List, Optional
6
+
7
+ from ceph_devstack import config, logger
8
+ from ceph_devstack.resources import PodmanResource
9
+
10
+
11
+ class Container(PodmanResource):
12
+ network: str
13
+ secret: List[str]
14
+ cmd_vars: List[str] = ["name", "image", "image_name", "image_tag"]
15
+ build_cmd: List[str] = [
16
+ "podman",
17
+ "build",
18
+ "-t",
19
+ "{image_name}:{image_tag}",
20
+ ".",
21
+ ]
22
+ create_cmd: List[str] = ["podman", "container", "create", "{name}"]
23
+ remove_cmd: List[str] = ["podman", "container", "rm", "-f", "{name}"]
24
+ start_cmd: List[str] = ["podman", "container", "start", "{name}"]
25
+ stop_cmd: List[str] = ["podman", "container", "stop", "{name}"]
26
+ exists_cmd: List[str] = ["podman", "container", "inspect", "{name}"]
27
+ pull_cmd: List[str] = ["podman", "pull", "{image}"]
28
+ wait_cmd: List[str] = ["podman", "wait", "{name}"]
29
+ env_vars: Dict[str, Optional[str]] = {}
30
+ _image_name: str | None = None
31
+
32
+ def __init__(self, name: str = ""):
33
+ super().__init__(name)
34
+ self.env_vars = {**self.__class__.env_vars}
35
+ for key in self.env_vars:
36
+ if os.environ.get(key):
37
+ self.env_vars[key] = os.environ[key]
38
+
39
+ def add_env_to_args(self, args: List):
40
+ args = super().format_cmd(args)
41
+ for key, value in self.env_vars.items():
42
+ if not value:
43
+ continue
44
+ args.insert(-1, "-e")
45
+ args.insert(-1, f"{key}={value}")
46
+ return args
47
+
48
+ @property
49
+ def config(self):
50
+ return config["containers"].get(self.__class__.__name__.lower(), {})
51
+
52
+ @property
53
+ def image_name(self) -> str:
54
+ if self._image_name is not None:
55
+ return self._image_name
56
+ return self.__class__.__name__.lower()
57
+
58
+ @property
59
+ def image(self):
60
+ if self.repo:
61
+ return f"localhost/{self.image_name}"
62
+ return self.config["image"]
63
+
64
+ @property
65
+ def image_tag(self):
66
+ if ":" not in self.image:
67
+ return "latest"
68
+ return self.image.split(":")[-1]
69
+
70
+ @property
71
+ def repo(self):
72
+ repo = self.config.get("repo", "")
73
+ try:
74
+ return repo.expanduser()
75
+ except AttributeError:
76
+ return os.path.expanduser(repo)
77
+
78
+ @property
79
+ def cwd(self):
80
+ return self.repo or "."
81
+
82
+ async def pull(self):
83
+ if not getattr(self, "pull_cmd", None):
84
+ return
85
+ if self.image.startswith("localhost/"):
86
+ return
87
+ logger.debug(f"{self.name}: pulling from: {self.image}")
88
+ await self.cmd(
89
+ self.format_cmd(self.pull_cmd),
90
+ check=True,
91
+ stream_output=True,
92
+ )
93
+
94
+ async def build(self):
95
+ if not getattr(self, "repo", None):
96
+ return
97
+ logger.debug(f"{self.name}: building from repo: {self.repo}")
98
+ await self.cmd(
99
+ self.format_cmd(self.build_cmd),
100
+ check=True,
101
+ stream_output=True,
102
+ )
103
+ logger.debug(f"{self.name}: built")
104
+
105
+ async def create(self):
106
+ if not getattr(self, "create_cmd", None):
107
+ return
108
+ if await self.exists():
109
+ return
110
+ args = self.add_env_to_args(self.format_cmd(self.create_cmd))
111
+ logger.debug(f"{self.name}: creating")
112
+ await self.cmd(
113
+ args,
114
+ check=True,
115
+ stream_output=True,
116
+ )
117
+ logger.debug(f"{self.name}: created")
118
+
119
+ async def start(self):
120
+ if not getattr(self, "start_cmd", None):
121
+ return
122
+ logger.debug(f"{self.name}: starting")
123
+ await self.cmd(
124
+ self.format_cmd(self.start_cmd),
125
+ check=True,
126
+ stream_output=True,
127
+ )
128
+ if "--health-cmd" in self.create_cmd or "--healthcheck-cmd" in self.create_cmd:
129
+ rc = None
130
+ while rc != 0:
131
+ proc = await self.cmd(
132
+ self.format_cmd(["podman", "healthcheck", "run", "{name}"]),
133
+ )
134
+ rc = await proc.wait()
135
+ await asyncio.sleep(1)
136
+ logger.debug(f"{self.name}: started")
137
+
138
+ async def stop(self):
139
+ if not getattr(self, "stop_cmd", None):
140
+ return
141
+ logger.debug(f"{self.name}: stopping")
142
+ await self.cmd(
143
+ self.format_cmd(self.stop_cmd),
144
+ stream_output=True,
145
+ )
146
+ logger.debug(f"{self.name}: stopping")
147
+
148
+ async def remove(self):
149
+ if not getattr(self, "remove_cmd", None):
150
+ return
151
+ logger.debug(f"{self.name}: removing")
152
+ await super().remove()
153
+ logger.debug(f"{self.name}: removed")
154
+
155
+ async def is_running(self):
156
+ proc = await self.cmd(self.format_cmd(self.exists_cmd))
157
+ assert proc.stdout is not None
158
+ if not await self.exists():
159
+ return False
160
+ result = json.loads(await proc.stdout.read())
161
+ if not result:
162
+ return False
163
+ return result[0]["State"]["Status"].lower() == "running"
164
+
165
+ async def wait(self) -> Optional[int]:
166
+ proc = await self.cmd(self.format_cmd(self.wait_cmd))
167
+ out, err = await proc.communicate()
168
+ if proc.returncode:
169
+ logger.error(f"Could not wait for {self.name}: {err.decode().strip()}")
170
+ return proc.returncode
171
+ return int(out.decode().strip())
@@ -0,0 +1,15 @@
1
+ from typing import List
2
+
3
+ from ceph_devstack.resources import PodmanResource
4
+
5
+
6
+ class Network(PodmanResource):
7
+ exists_cmd: List[str] = ["podman", "network", "inspect", "{name}"]
8
+ create_cmd: List[str] = ["podman", "network", "create", "{name}"]
9
+ remove_cmd: List[str] = ["podman", "network", "rm", "{name}"]
10
+
11
+
12
+ class Secret(PodmanResource):
13
+ exists_cmd: List[str] = ["podman", "secret", "inspect", "{name}"]
14
+ create_cmd: List[str] = ["podman", "secret", "create", "{name}"]
15
+ remove_cmd: List[str] = ["podman", "secret", "rm", "{name}"]
@@ -0,0 +1,222 @@
1
+ Metadata-Version: 2.4
2
+ Name: ceph-devstack
3
+ Version: 0.1.0
4
+ Summary: Run a full teuthology lab on your laptop!
5
+ Author-email: Zack Cerza <zack@cerza.org>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/ceph/ceph-devstack
8
+ Keywords: podman,ceph
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Natural Language :: English
11
+ Classifier: Operating System :: POSIX :: Linux
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Requires-Python: >=3.10
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Requires-Dist: packaging
18
+ Requires-Dist: pre-commit
19
+ Requires-Dist: PyYAML
20
+ Requires-Dist: tomlkit
21
+ Provides-Extra: test
22
+ Requires-Dist: pytest; extra == "test"
23
+ Requires-Dist: pytest-asyncio; extra == "test"
24
+ Requires-Dist: tox; extra == "test"
25
+ Requires-Dist: tox-uv; extra == "test"
26
+ Dynamic: license-file
27
+
28
+ # ceph-devstack
29
+ A tool for testing [Ceph](https://github.com/ceph/ceph) locally using [nested rootless podman containers](https://www.redhat.com/sysadmin/podman-inside-container)
30
+
31
+ ## Overview
32
+ ceph-devstack is a tool that can deploy and manage containerized versions of [teuthology](https://github.com/ceph/teuthology) and its associated services, to test Ceph (or just teuthology) on your local machine. It lets you avoid:
33
+
34
+ - Accessing Ceph's [Sepia lab](https://wiki.sepia.ceph.com/)
35
+ - Needing dedicated storage devices to test Ceph OSDs
36
+
37
+ Basically, the goal is that you can test your Ceph branch locally using containers
38
+ as storage test nodes.
39
+
40
+ It is currently under active development and has not yet had a formal release.
41
+
42
+ ## Supported Operating Systems
43
+
44
+ ☑︎ CentOS 9.Stream should work out of the box
45
+
46
+ ☑︎ CentOS 8.Stream mostly works - but has not yet passed a Ceph test
47
+
48
+ ☐ A recent Fedora should work but has not been tested
49
+
50
+ ☒ Ubuntu does not currently ship a new enough podman
51
+
52
+ ☒ MacOS will require special effort to support since podman operations are done inside a VM
53
+
54
+ ## Requirements
55
+
56
+ * A supported operating system
57
+ * podman 4.0+ using the `crun` runtime.
58
+ * On CentOS 8, modify `/etc/containers/containers.conf` to set the runtime
59
+ * Linux kernel 5.12+, or 4.15+ _and_ `fuse-overlayfs`
60
+ * cgroup v2
61
+ * On CentOS 8, see [./docs/cgroup_v2.md](./docs/cgroup_v2.md)
62
+ * With podman <5.0, podman's DNS plugin, from the `podman-plugins` package
63
+ * A user account that has `sudo` access and also is a member of the `disk` group
64
+ * The following sysctl settings:
65
+ * `fs.aio-max-nr=1048576`
66
+ * `kernel.pid_max=4194304`
67
+ * If using SELinux in enforcing mode:
68
+ * `setsebool -P container_manage_cgroup=true`
69
+ * `setsebool -P container_use_devices=true`
70
+
71
+ `ceph-devstack doctor` will check the above and report any issues along with suggested remedies; its `--fix` flag will apply them for you.
72
+
73
+ ## Setup
74
+
75
+ ```bash
76
+ sudo usermod -a -G disk $(whoami) # and re-login afterward
77
+ git clone https://github.com/ceph/teuthology/
78
+ cd teuthology && ./bootstrap
79
+ python3 -m venv venv
80
+ source ./venv/bin/activate
81
+ python3 -m pip install git+https://github.com/zmc/ceph-devstack.git
82
+ ```
83
+
84
+ ## Configuration
85
+ `ceph-devstack` 's default configuration is [here](./ceph_devstack/config.toml). It can be extended by placing a file at `~/.config/ceph-devstack/config.toml` or by using the `--config-file` flag.
86
+
87
+ `ceph-devstack config dump` will output the current configuration.
88
+
89
+ As an example, the following configuration will use a local image for paddles with the tag `TEST`; it will also create ten testnode containers; and will build its teuthology container from the git repo at `~/src/teuthology`:
90
+ ```
91
+ containers:
92
+ paddles:
93
+ image: localhost/paddles:TEST
94
+ testnode:
95
+ count: 10
96
+ teuthology:
97
+ repo: ~/src/teuthology
98
+ ```
99
+ ## Usage
100
+ By default, pre-built container images are pulled from [quay.io/ceph-infra](https://quay.io/organization/ceph-infra). The images can be overridden via the config file. It's also possible to _build_ images from on-disk git repositories.
101
+
102
+ First, you'll want to pull all the images:
103
+
104
+ ```bash
105
+ ceph-devstack pull
106
+ ```
107
+
108
+ Optional: If building any images from repos:
109
+ ```bash
110
+ ceph-devstack build
111
+ ```
112
+
113
+ Next, you can start the containers with:
114
+
115
+ ```bash
116
+ ceph-devstack start
117
+ ```
118
+
119
+ Once everything is started, a message similar to this will be logged:
120
+
121
+ `View test results at http://smithi065.front.sepia.ceph.com:8081/`
122
+
123
+ This link points to the running Pulpito instance. Test archives are also stored in the `--data-dir` (default: `~/.local/share/ceph-devstack`).
124
+
125
+ To watch teuthology's output, you can:
126
+
127
+ ```bash
128
+ podman logs -f teuthology
129
+ ```
130
+
131
+ If you want testnode containers to be replaced as they are stopped and destroyed, you can:
132
+
133
+ ```bash
134
+ ceph-devstack watch
135
+ ```
136
+
137
+ When finished, this command removes all the resources that were created:
138
+
139
+ ```bash
140
+ ceph-devstack remove
141
+ ```
142
+
143
+ ### Specifying a Test Suite
144
+ By default, we run the `teuthology:no-ceph` suite to self-test teuthology. If we wanted to test Ceph itself, we could use the `orch:cephadm:smoke-small` suite:
145
+
146
+ ```bash
147
+ export TEUTHOLOGY_SUITE=orch:cephadm:smoke-small
148
+ ```
149
+
150
+ It's possible to skip the automatic suite-scheduling behavior:
151
+
152
+ ```bash
153
+ export TEUTHOLOGY_SUITE=none
154
+ ```
155
+
156
+ ### Using testnodes from an existing lab
157
+ If you need to use "real" testnodes and have access to a lab, there are a few additonal steps to take. We will use the Sepia lab as an example below:
158
+
159
+ To give the teuthology container access to your SSH private key (via `podman secret`):
160
+
161
+ ```bash
162
+ export SSH_PRIVKEY_PATH=$HOME/.ssh/id_rsa
163
+ ```
164
+
165
+ To lock machines from the lab:
166
+
167
+ ```bash
168
+ ssh teuthology.front.sepia.ceph.com
169
+ ~/teuthology/virtualenv/bin/teuthology-lock \
170
+ --lock-many 1 \
171
+ --machine-type smithi \
172
+ --desc "teuthology dev testing"
173
+ ```
174
+
175
+ Once you have your machines locked, you need to provide a list of their hostnames and their machine type:
176
+
177
+ ```bash
178
+ export TEUTHOLOGY_TESTNODES="smithiXXX.front.sepia.ceph.com,smithiYYY.front.sepia.ceph.com"
179
+ export TEUTHOLOGY_MACHINE_TYPE="smithi"
180
+ ```
181
+
182
+ ### Setup for development
183
+
184
+ 1. First fork the repo if you have not done so.
185
+ 2. Clone your forked repo
186
+ ```bash
187
+ git clone https://github.com/<user-name>/ceph-devstack
188
+ ```
189
+
190
+ 3. Setup the remote repo as upstream (this will prevent creating additional branches)
191
+ ```bash
192
+ git remote add upstream https://github.com/zmc/ceph-devstack
193
+ ```
194
+
195
+ 4. Create virtual env in the root directory of ceph-devstack & install python dependencies
196
+ ```bash
197
+ python3 -m venv venv
198
+ ./venv/bin/pip3 install -e .
199
+ ```
200
+
201
+ 5. Activate venv
202
+ ```bash
203
+ source venv/bin/activate
204
+ ```
205
+
206
+ 6. Run doctor command to check & fix the dependencies that you need for ceph-devstack
207
+ ```bash
208
+ ceph-devstack -v doctor --fix
209
+ ```
210
+
211
+ 7. Build, Create and Start the all containers in ceph-devstack
212
+ ```bash
213
+ ceph-devstack -v build
214
+ ceph-devstack -v create
215
+ ceph-devstack -v start
216
+ ```
217
+
218
+ 8. Test the containers by waiting for teuthology to finish and print the logs
219
+ ```bash
220
+ ceph-devstack wait teuthology
221
+ podman logs -f teuthology
222
+ ```
@@ -0,0 +1,44 @@
1
+ ceph_devstack/Dockerfile.selinux,sha256=5i8leCmaa5Hx8w4zIZcLoq7aTbxxwee44e2phWY7_zY,497
2
+ ceph_devstack/__init__.py,sha256=16mCW0UIlCWviTfBOKtWtE6G36xgaYpnno7QjUC2Eg8,6012
3
+ ceph_devstack/ceph_devstack.pp,sha256=kiVP5xcwYigjKlNoGHVh2PwPKvr6HZZl5NyjY31jXWM,14537
4
+ ceph_devstack/ceph_devstack.te,sha256=68i9sBb1TAEnCJn2JtyM-ECzPSuZck4vKoymcTbptXc,3461
5
+ ceph_devstack/cli.py,sha256=lSYwXrwfP8D-k60XuwSqhwZSZNKJFFQfvRM-av1rePM,2057
6
+ ceph_devstack/config.toml,sha256=HsxO3FhwZkHomde69QfElztuN8U1bxk7cQk1_iWB4w0,562
7
+ ceph_devstack/exec.py,sha256=gn95GEQttB6xgdWXXvTsxUxcQsx9TUu6PC8QVQ0_Y7w,2674
8
+ ceph_devstack/host.py,sha256=cShqi4FORP_cFTP2u33BYfhPpI0Nsd-bx9YLNfqBhUA,4556
9
+ ceph_devstack/logging.conf,sha256=bGlswYcL_fz522y9EoKZOLInrSss8D44glNq0FievFY,521
10
+ ceph_devstack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ ceph_devstack/requirements.py,sha256=NgH0k8qU-cSvuZqp-TsM9CNiki2CsQKGuZM_vCq9SDQ,9192
12
+ ceph_devstack/resources/__init__.py,sha256=D0vhJBU9Pqslq7hg2qreW_ZhndcRIOHZVVUA0zAIeDM,3386
13
+ ceph_devstack/resources/container.py,sha256=suJNOQ9fMRfCnXQwvEZOcg4jnPtrxb-d17a3Y1s1xG0,5388
14
+ ceph_devstack/resources/misc.py,sha256=iGD_3Xsqako-dOZrHJFEJbMWoQIzy7Q_KkEnkdBb8m0,552
15
+ ceph_devstack/resources/ceph/__init__.py,sha256=EAm6dJZ9Hq7HoA2TeInsBd12YnI_zxqHOL_gBoE0IMQ,9265
16
+ ceph_devstack/resources/ceph/containers.py,sha256=3QEwkh3I7f3r47SnlnMB-_mU8fYGR08WyUrrbdohmto,11494
17
+ ceph_devstack/resources/ceph/exceptions.py,sha256=C4ldyEA7Cukp-QUOwL-MnQ8kpgMDIQ6r_JQe0E9q4eM,101
18
+ ceph_devstack/resources/ceph/requirements.py,sha256=ZJt7Eeb5y2bOc7dJN3-15ftAyySi80phD7erBsGdqSU,2691
19
+ ceph_devstack/resources/ceph/utils.py,sha256=6-1sageEiLMcx53KHo_GKlIjaGw3swoZk8cQ-e-tDP0,1276
20
+ ceph_devstack-0.1.0.dist-info/licenses/LICENSE,sha256=bFeYufyeS1qw0W8pkW1Wj09F2itqX7TAGTnA2NIpApU,1067
21
+ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ tests/conftest.py,sha256=qulfsMZz3PyAFMdWQ_VWpOFT9L_BiavRax_yQF2Ne24,128
23
+ tests/test_config.py,sha256=RLAjt9DAcAo8GQXgv9dc3Ka3hhtongMs6ioz5YQwKhY,4394
24
+ tests/test_deep_merge.py,sha256=IP9zzCThmhVghl9XjAAiSrKsPdouH3KbEUaKq8n3Soc,2178
25
+ tests/test_parse_args.py,sha256=2JDAT4Id88Ywl5QmiUHqq5IDGm_j5Yl3Kk7pbl3sOEk,7550
26
+ tests/test_requirements_core.py,sha256=9IqpcbnatnFJrjp4_fb1arJ-nNO4KXdWjXNMzNzRjNk,18636
27
+ tests/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
+ tests/resources/test_container.py,sha256=Xc4IGLf0PViSBIhUQXZHZQtRc-uI2R3PyNjU8lpX6BE,9081
29
+ tests/resources/test_misc.py,sha256=dtOAPngMCTE9bYuYjNuxBiRaxvEibXuBq5VwVsWBdnY,1560
30
+ tests/resources/test_podmanresource.py,sha256=bQz77l4AosIDyuG1cG89egY9NLuAl-OMvlrkPEJt7us,1765
31
+ tests/resources/ceph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
+ tests/resources/ceph/test_cephdevstack_core.py,sha256=2Zopu-3TkXyj1amQbMG1KpsVXyRDJts73e6TLYNyz3Y,18340
33
+ tests/resources/ceph/test_devstack.py,sha256=PRsEyYy9EKFIiZKkHYZh6vGffIzlZuW9jA9XEt7xz5M,6201
34
+ tests/resources/ceph/test_env_vars.py,sha256=bLTcEJQJSQp0iiJBunPdGHtVQ94KRWSNEkK8HtXZQn0,2741
35
+ tests/resources/ceph/test_requirements_ceph.py,sha256=R3oqC9wu5VXJfa4aWpRYOSPh8wt25RPVuUxhzuyCtSw,9548
36
+ tests/resources/ceph/test_ssh_keypair.py,sha256=M8Tc1CY9zb_1WaccMSfnSN35tyjR-CblNtTP0s4OsYU,4019
37
+ tests/resources/ceph/test_testnode.py,sha256=wiftdOU058z9IKp5LeUNlv81U9XjojRUI0fYt8mrbgg,1253
38
+ tests/resources/ceph/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ tests/resources/ceph/fixtures/testnode-config.toml,sha256=XaI4VACYHeshb7LLxN3viKBNxOBLOUpPuwlcQJyQO-U,44
40
+ ceph_devstack-0.1.0.dist-info/METADATA,sha256=vRtYDGquw7pUJ45MTHe3HGf762f7UDUM-z5L7XxxGw4,6877
41
+ ceph_devstack-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
42
+ ceph_devstack-0.1.0.dist-info/entry_points.txt,sha256=3cXOGOSb23ATcOZVQFBTY_imM4VFgFddXlYi-m8PA10,57
43
+ ceph_devstack-0.1.0.dist-info/top_level.txt,sha256=NzTr-vAk2OWL08T8PsmfqkJZNEuezF5oaiHCMJBhHPM,20
44
+ ceph_devstack-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ceph-devstack = ceph_devstack.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Zack Cerza
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ ceph_devstack
2
+ tests
tests/__init__.py ADDED
File without changes
tests/conftest.py ADDED
@@ -0,0 +1,9 @@
1
+ import pytest
2
+
3
+ from ceph_devstack import config
4
+
5
+
6
+ @pytest.fixture(autouse=True)
7
+ def reset_config():
8
+ config.load()
9
+ yield
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ [containers.testnode]
2
+ loop_device_count = 4