From ea0cd6ee25173a4be2165fabf9c607605905da4d Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Tue, 24 Feb 2026 19:28:46 +0000 Subject: [PATCH] Fix codespell violations across the codebase Add codespell pre-commit hook with a project dictionary (doc/dictionary.txt) to ignore domain-specific terms such as "aaS" (as in FPGAaaS / accelerator-as-a-Service). Fix ~50 spelling errors in source, tests, docs, api-ref, and release notes. No logic changes; comments and strings only. Generated-By: claude-code sonnet 4.6 Change-Id: Idf408d3144973f8415092c6304821543a3675039 Signed-off-by: Sean Mooney --- .pre-commit-config.yaml | 5 +++++ api-ref/source/deployables.inc | 4 ++-- api-ref/source/devices.inc | 4 ++-- api-ref/source/parameters.yaml | 2 +- cyborg/accelerator/accelerator.py | 2 +- cyborg/accelerator/drivers/driver.py | 2 +- cyborg/accelerator/drivers/gpu/nvidia/sysinfo.py | 4 ++-- cyborg/accelerator/drivers/pci/pci/sysinfo.py | 2 +- cyborg/accelerator/drivers/spdk/nvmf/nvmf.py | 4 ++-- cyborg/common/authorize_wsgi.py | 4 ++-- cyborg/common/constants.py | 2 +- cyborg/common/nova_client.py | 2 +- cyborg/common/utils.py | 10 +++++----- cyborg/conductor/manager.py | 6 +++--- cyborg/conductor/rpcapi.py | 2 +- cyborg/conf/devices.py | 2 +- cyborg/db/sqlalchemy/api.py | 4 ++-- cyborg/objects/driver_objects/driver_deployable.py | 4 ++-- cyborg/objects/driver_objects/driver_device.py | 4 ++-- cyborg/tests/unit/api/base.py | 2 +- cyborg/tests/unit/common/test_nova_client.py | 2 +- cyborg/tests/unit/objects/test_device.py | 2 +- devstack/lib/cyborg | 2 +- doc/dictionary.txt | 1 + doc/source/configuration/policy-concepts.rst | 2 +- doc/source/configuration/policy-guide.rst | 2 +- doc/source/contributor/contributing.rst | 4 ++-- doc/source/contributor/devstack_setup.rst | 2 +- doc/source/contributor/index.rst | 2 +- doc/source/index.rst | 4 ++-- .../add_ARQ_UNBIND_FAILED_status-ea8636c64dd616eb.yaml | 2 +- ...4-delete_trait_from_placement-266caf73cf289759.yaml | 2 +- .../notes/generic-driver-88427acd7c7c12df.yaml | 2 +- .../notes/inspur-nvme-ssd-faeddc0b09250acc.yaml | 2 +- .../notes/intel-nic-driver-f93adad86a23ceb9.yaml | 2 +- .../notes/intel-qat-driver-a7b4c8f110d41e0b.yaml | 4 ++-- ...fresh_base_and_device_profile-cef00fca580d2323.yaml | 2 +- .../notes/support-vgpu-managment-39d4366cad5735a9.yaml | 2 +- 38 files changed, 59 insertions(+), 53 deletions(-) create mode 100644 doc/dictionary.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a29729739..1469cb867 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,3 +39,8 @@ repos: - id: hacking additional_dependencies: [] exclude: '^(doc|releasenotes|tools)/.*$' + - repo: https://github.com/codespell-project/codespell + rev: v2.4.1 + hooks: + - id: codespell + args: ['--ignore-words=doc/dictionary.txt'] diff --git a/api-ref/source/deployables.inc b/api-ref/source/deployables.inc index bb9ee7d29..d73f55712 100644 --- a/api-ref/source/deployables.inc +++ b/api-ref/source/deployables.inc @@ -14,7 +14,7 @@ List Deployables .. rest_method:: GET /v2/deployables -Lists UUIDs, names, attribute list and more informations for all deployables. +Lists UUIDs, names, attribute list and more information for all deployables. Normal response codes: 200 @@ -55,7 +55,7 @@ Get One Deployable .. rest_method:: GET /v2/deployables/{deployable_uuid} -Gets the UUID, name, attribute list and more informations for one deployable with the specified UUID. +Gets the UUID, name, attribute list and more information for one deployable with the specified UUID. Normal response codes: 200 diff --git a/api-ref/source/devices.inc b/api-ref/source/devices.inc index b1bc9ce35..feaf0894d 100644 --- a/api-ref/source/devices.inc +++ b/api-ref/source/devices.inc @@ -13,7 +13,7 @@ List Devices .. rest_method:: GET /v2/devices -Lists UUIDs, names, type and more informations for all devices. +Lists UUIDs, names, type and more information for all devices. Normal response codes: 200 @@ -55,7 +55,7 @@ Get One Device .. rest_method:: GET /v2/devices/{device_uuid} -Gets the UUID, name, type and more informations for one device with the specified UUID. +Gets the UUID, name, type and more information for one device with the specified UUID. Normal response codes: 200 diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 1d5bc3b2b..20970fb45 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -183,7 +183,7 @@ deployable_num_accelerators: description: | Number of accelerators spawned by this deployable. in: body - requied: true + required: true type: integer deployable_parent_id: description: | diff --git a/cyborg/accelerator/accelerator.py b/cyborg/accelerator/accelerator.py index 18cc4e909..8cc6b626b 100644 --- a/cyborg/accelerator/accelerator.py +++ b/cyborg/accelerator/accelerator.py @@ -19,7 +19,7 @@ from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() -# A common internal acclerator object for internal use. +# A common internal accelerator object for internal use. class Accelerator(Base): __tablename__ = 'accelerators' accelerator_id = Column(String, primary_key=True) diff --git a/cyborg/accelerator/drivers/driver.py b/cyborg/accelerator/drivers/driver.py index 1135ad992..937c11433 100644 --- a/cyborg/accelerator/drivers/driver.py +++ b/cyborg/accelerator/drivers/driver.py @@ -40,7 +40,7 @@ class GenericDriver(object, metaclass=abc.ABCMeta): """Collects device stats. It is used to collect information from the device about the device - capabilities. Such as performance info like temprature, power, volt, + capabilities. Such as performance info like temperature, power, volt, packet_count info. :return: The stats info of the device. The format should follow the diff --git a/cyborg/accelerator/drivers/gpu/nvidia/sysinfo.py b/cyborg/accelerator/drivers/gpu/nvidia/sysinfo.py index c5db1e0fd..755cd34b4 100644 --- a/cyborg/accelerator/drivers/gpu/nvidia/sysinfo.py +++ b/cyborg/accelerator/drivers/gpu/nvidia/sysinfo.py @@ -98,7 +98,7 @@ def _generate_dep_list(gpu): driver_dep.attribute_list = _generate_attribute_list(gpu) driver_dep.attach_handle_list = [] # NOTE(wangzhh): The name of deployable should be unique, its format is - # under disscussion, may looks like + # under discussion, may looks like # ___ # NOTE(yumeng) Since Wallaby release, the deplpyable_name is named as # _ @@ -178,7 +178,7 @@ def _get_supported_vgpu_types(): for vgpu_type in CONF.gpu_devices.enabled_vgpu_types: group = getattr(CONF, 'vgpu_%s' % vgpu_type, None) if group is None or not group.device_addresses: - # Device addresses must be configured explictly now for every + # Device addresses must be configured explicitly now for every # enabled vgpu type. Will improve after the disable and enable # devices interfaces implemented. raise exception.InvalidvGPUConfig( diff --git a/cyborg/accelerator/drivers/pci/pci/sysinfo.py b/cyborg/accelerator/drivers/pci/pci/sysinfo.py index 130a77f98..768518e8a 100644 --- a/cyborg/accelerator/drivers/pci/pci/sysinfo.py +++ b/cyborg/accelerator/drivers/pci/pci/sysinfo.py @@ -93,7 +93,7 @@ def _generate_dep_list(pci): driver_dep.attribute_list = _generate_attribute_list(pci) driver_dep.attach_handle_list = [] # NOTE(wangzhh): The name of deployable should be unique, its format is - # under disscussion, may looks like + # under discussion, may looks like # ___ # NOTE(yumeng) Since Wallaby release, the deplpyable_name is named as # _ diff --git a/cyborg/accelerator/drivers/spdk/nvmf/nvmf.py b/cyborg/accelerator/drivers/spdk/nvmf/nvmf.py index 65558c6b8..a83a507b6 100644 --- a/cyborg/accelerator/drivers/spdk/nvmf/nvmf.py +++ b/cyborg/accelerator/drivers/spdk/nvmf/nvmf.py @@ -87,7 +87,7 @@ class NVMFDRIVER(SPDKDRIVER): """Delete a nvmf subsystem :param nqn: Target nqn(ASCII). - :raise exception: Invaid + :raise exception: Invalid """ if nqn == "": acc_client = NvmfTgt(self.py) @@ -115,7 +115,7 @@ class NVMFDRIVER(SPDKDRIVER): :param hosts: Whitespace-separated list of host nqn list. :param serial_number: Example: 'SPDK00000000000001. :param namespaces: Whitespace-separated list of namespaces. - :raise exception: Invaid + :raise exception: Invalid """ if ((namespaces != '' and listen != '') and (hosts != '' and serial_number != '')) and nqn != '': diff --git a/cyborg/common/authorize_wsgi.py b/cyborg/common/authorize_wsgi.py index 98a92417a..e6b5ee518 100644 --- a/cyborg/common/authorize_wsgi.py +++ b/cyborg/common/authorize_wsgi.py @@ -112,7 +112,7 @@ def authorize_wsgi(api_name, act=None, need_target=True): def post(self, values): ... """ - def wraper(fn): + def wrapper(fn): action = '%s:%s' % (api_name, act or fn.__name__) # In this authorize method, we return a dict data when authorization @@ -171,4 +171,4 @@ def authorize_wsgi(api_name, act=None, need_target=True): return handle - return wraper + return wrapper diff --git a/cyborg/common/constants.py b/cyborg/common/constants.py index ab1a9f423..3c5cd879e 100644 --- a/cyborg/common/constants.py +++ b/cyborg/common/constants.py @@ -49,7 +49,7 @@ ARQ_BIND_STATES_STATUS_MAP = { # TODO(Shaohe): maybe we can use oslo automaton lib # ref: https://docs.openstack.org/automaton/latest/user/examples.html -# The states in value list can transfrom to the key state +# The states in value list can transform to the key state ARQ_STATES_TRANSFORM_MATRIX = { ARQ_INITIAL: [], ARQ_BIND_STARTED: [ARQ_INITIAL, ARQ_UNBOUND], diff --git a/cyborg/common/nova_client.py b/cyborg/common/nova_client.py index b3197cece..27503495b 100644 --- a/cyborg/common/nova_client.py +++ b/cyborg/common/nova_client.py @@ -44,7 +44,7 @@ class NovaAPI(object): # NOTE(Sundar): Response status should always be 200/207. See # https://review.opendev.org/#/c/698037/ if response.status_code == 200: - LOG.info("Sucessfully sent events to Nova, events: %(events)s", + LOG.info("Successfully sent events to Nova, events: %(events)s", {"events": events}) elif response.status_code == 207: # NOTE(Sundar): If Nova returns per-event code of 422, that diff --git a/cyborg/common/utils.py b/cyborg/common/utils.py index 9c4163a92..2294ed124 100644 --- a/cyborg/common/utils.py +++ b/cyborg/common/utils.py @@ -248,12 +248,12 @@ class ThreadWorks(Singleton): "kwargs: %s", func, args, kwargs) # NOTE(Shaohe) shutdown should be after job submit executor.shutdown(wait=False) - # TODO(Shaohe) we need to consider resouce collection such as the - # follow code to recoder them with timestemp? + # TODO(Shaohe) we need to consider resource collection such as the + # follow code to recoder them with timestamp? # master = {tag: { # "executor": executor, # "job": f, - # "timestemp": time.time(), + # "timestamp": time.time(), # "timeout": timeout}} # self.masters.update(master) return job @@ -334,7 +334,7 @@ class ThreadWorks(Singleton): # info https://www.oreilly.com/library/view/python-cookbook/ # 0596001673/ch14s05.html def format_tb(tb, limit=None): - """Fromat traceback to a string list. + """Format traceback to a string list. Print the usual traceback information, followed by a listing of all the local variables in each frame. @@ -351,7 +351,7 @@ def format_tb(tb, limit=None): def wrap_job_tb(msg="Reason: %s"): - """Wrap a function with a is_job tag added, and catch Excetpion.""" + """Wrap a function with a is_job tag added, and catch Exception.""" def _wrap_job_tb(method): @wraps(method) def _impl(self, *args, **kwargs): diff --git a/cyborg/conductor/manager.py b/cyborg/conductor/manager.py index 45cfd625f..aad4a32eb 100644 --- a/cyborg/conductor/manager.py +++ b/cyborg/conductor/manager.py @@ -112,7 +112,7 @@ class ConductorManager(object): :param driver_device_list: a list of driver_device object discovered by agent in the host. """ - # TODO(): Everytime get from the DB? + # TODO(): Every time get from the DB? # First retrieve the old_device_list from the DB. old_driver_device_list = DriverDevice.list(context, hostname) # TODO(wangzhh): Remove invalid driver_devices without controlpath_id. @@ -185,7 +185,7 @@ class ConductorManager(object): old_driver_dev_obj = old_driver_device_list[old_cpid_list.index(s)] # First, get dev_obj_list from hostname device_obj_list = Device.get_list_by_hostname(context, host) - # Then, use controlpath_id.cpid_info to identiy one Device. + # Then, use controlpath_id.cpid_info to identify one Device. cpid_info = new_driver_dev_obj.controlpath_id.cpid_info for dev_obj in device_obj_list: # get cpid_obj, could be empty or only one value. @@ -424,7 +424,7 @@ class ConductorManager(object): for rp in rp_in_tree[::-1]: if rp["parent_provider_uuid"] == rp_uuid or rp["uuid"] == rp_uuid: self.placement_client.delete_provider(rp["uuid"]) - LOG.info("Sucessfully delete resource provider %(rp_uuid)s", + LOG.info("Successfully delete resource provider %(rp_uuid)s", {"rp_uuid": rp["uuid"]}) if rp["uuid"] == rp_uuid: break diff --git a/cyborg/conductor/rpcapi.py b/cyborg/conductor/rpcapi.py index 93c2034df..ee216d0ae 100644 --- a/cyborg/conductor/rpcapi.py +++ b/cyborg/conductor/rpcapi.py @@ -49,7 +49,7 @@ class ConductorAPI(object): def report_data(self, context, hostname, driver_device_list): """Signal to conductor service to update the cyborg DB - :parma context: request context. + :param context: request context. """ cctxt = self.client.prepare(topic=self.topic) cctxt.call(context, 'report_data', hostname=hostname, diff --git a/cyborg/conf/devices.py b/cyborg/conf/devices.py index 2a70f79d0..4dfec8840 100644 --- a/cyborg/conf/devices.py +++ b/cyborg/conf/devices.py @@ -55,7 +55,7 @@ multiple vGPU types. If more than one single vGPU type are provided, then for each *vGPU type*, you must add an additional section ``[vgpu_$(VGPU_TYPE)]`` with a single configuration option ``device_addresses`` to assign this type to -the target physical GPU(s). PGPUs should be configured explictly now, we will +the target physical GPU(s). PGPUs should be configured explicitly now, we will improve this after we implement the enable/disable interface. If the same PCI address is provided for two different types, cyborg-agent will diff --git a/cyborg/db/sqlalchemy/api.py b/cyborg/db/sqlalchemy/api.py index 7ee2d2ac1..c8ee9d503 100644 --- a/cyborg/db/sqlalchemy/api.py +++ b/cyborg/db/sqlalchemy/api.py @@ -794,7 +794,7 @@ class Connection(api.Connection): return query_prefix.all() # def _exact_attribute_by_filter(self, query, filters): - # """Applies exact match filtering to a atrtribute query. + # """Applies exact match filtering to a attribute query. # Returns the updated query. # :param filters: The filters specified by a dict of kv pairs # """ @@ -1064,7 +1064,7 @@ class Connection(api.Connection): return reservations def _sync_acc_res(self, context, resource, project_id): - """Quota sync funciton""" + """Quota sync function""" res_in_use = self._device_data_get_for_project(context, resource, project_id) return {resource: res_in_use} diff --git a/cyborg/objects/driver_objects/driver_deployable.py b/cyborg/objects/driver_objects/driver_deployable.py index 409dd69ab..6029bc6cc 100644 --- a/cyborg/objects/driver_objects/driver_deployable.py +++ b/cyborg/objects/driver_objects/driver_deployable.py @@ -96,7 +96,7 @@ class DriverDeployable(base.DriverObjectBase, for dep_obj in dep_obj_list: # get driver_ah_obj_list for this dep_obj driver_ah_obj_list = DriverAttachHandle.list(context, dep_obj.id) - # get driver_attr_obj_list fro this dep_obj + # get driver_attr_obj_list for this dep_obj driver_attr_obj_list = DriverAttribute.list(context, dep_obj.id) driver_dep_obj = cls(context=context, name=dep_obj.name, @@ -112,7 +112,7 @@ class DriverDeployable(base.DriverObjectBase, # get deployable_obj_list for one device_id dep_obj = Deployable.get_by_name(context, name) driver_ah_obj_list = DriverAttachHandle.list(context, dep_obj.id) - # get driver_attr_obj_list fro this dep_obj + # get driver_attr_obj_list for this dep_obj driver_attr_obj_list = DriverAttribute.list(context, dep_obj.id) driver_dep_obj = cls(context=context, name=dep_obj.name, num_accelerators=dep_obj.num_accelerators, diff --git a/cyborg/objects/driver_objects/driver_device.py b/cyborg/objects/driver_objects/driver_device.py index 1a3847bfe..264c3e26b 100644 --- a/cyborg/objects/driver_objects/driver_device.py +++ b/cyborg/objects/driver_objects/driver_device.py @@ -102,7 +102,7 @@ class DriverDevice(base.DriverObjectBase, """ # get dev_obj_list from hostname device_obj_list = Device.get_list_by_hostname(context, host) - # use controlpath_id.cpid_info to identiy one Device. + # use controlpath_id.cpid_info to identify one Device. for device_obj in device_obj_list: # get cpid_obj, could be empty or only one value. cpid_obj = ControlpathID.get_by_device_id_cpidinfo( @@ -147,7 +147,7 @@ class DriverDevice(base.DriverObjectBase, """ # get dev_obj_list from hostname device_obj = Device.get_by_device_id(context, device_id) - # use controlpath_id.cpid_info to identiy one Device. + # use controlpath_id.cpid_info to identify one Device. # get cpid_obj, could be empty or only one value. ControlpathID.get_by_device_id_cpidinfo( context, device_obj.id, self.controlpath_id.cpid_info) diff --git a/cyborg/tests/unit/api/base.py b/cyborg/tests/unit/api/base.py index 39d311852..16c2e338b 100644 --- a/cyborg/tests/unit/api/base.py +++ b/cyborg/tests/unit/api/base.py @@ -121,7 +121,7 @@ class BaseApiTest(base.DbTestCase): """Generate a header for a simulated HTTP request to Pecan test app. :param context: context that store the client user information. - :param kw: key word aguments, used to overwrite the context attribute. + :param kw: key word arguments, used to overwrite the context attribute. note: "is_public_api" is not in headers, it should be in environ variables to send along with the request. We can pass it by diff --git a/cyborg/tests/unit/common/test_nova_client.py b/cyborg/tests/unit/common/test_nova_client.py index 2536dca01..762aeb8e5 100644 --- a/cyborg/tests/unit/common/test_nova_client.py +++ b/cyborg/tests/unit/common/test_nova_client.py @@ -46,7 +46,7 @@ class NovaAPITest(base.TestCase): nova = nova_client.NovaAPI() nova._send_events(self.events) - msg = 'Sucessfully sent events to Nova, events: %(events)s' + msg = 'Successfully sent events to Nova, events: %(events)s' self.mock_log_info.assert_called_once_with( msg, {'events': self.events}) diff --git a/cyborg/tests/unit/objects/test_device.py b/cyborg/tests/unit/objects/test_device.py index a51f1ddc5..b90ce5162 100644 --- a/cyborg/tests/unit/objects/test_device.py +++ b/cyborg/tests/unit/objects/test_device.py @@ -149,6 +149,6 @@ class TestDeviceObject(base.DbTestCase): for t in ["GPU", "FPGA", "AICHIP"]: device = objects.Device(self.context, type=t) self.assertEqual(self.context, device._context) - # Invaild type will raise ValueError + # Invalid type will raise ValueError self.assertRaises(ValueError, objects.Device, self.context, type='OTHER_TYPE') diff --git a/devstack/lib/cyborg b/devstack/lib/cyborg index 163e7abd6..ab7b70477 100644 --- a/devstack/lib/cyborg +++ b/devstack/lib/cyborg @@ -191,7 +191,7 @@ function configure_cyborg_conductor { # NOTE(sean-k-mooney) it is not obvious why this is in the conductor # section or what sets is_deployed_by_agent so this should either be - # documented, removed or moved to the correct locaiton. + # documented, removed or moved to the correct location. if is_deployed_by_agent; then iniset $CYBORG_CONF_FILE api ramdisk_heartbeat_timeout 30 fi diff --git a/doc/dictionary.txt b/doc/dictionary.txt new file mode 100644 index 000000000..1e076147b --- /dev/null +++ b/doc/dictionary.txt @@ -0,0 +1 @@ +aaS diff --git a/doc/source/configuration/policy-concepts.rst b/doc/source/configuration/policy-concepts.rst index b4db40007..cc40c2eec 100644 --- a/doc/source/configuration/policy-concepts.rst +++ b/doc/source/configuration/policy-concepts.rst @@ -203,7 +203,7 @@ as at project-level operations. Cyborg policies are defaulted to below rules: With these new defaults, you can solve the problem of: #. Providing the read-only access to the user. Polices are made more granular - and defaulted to reader rules. For exmaple: If you need to let someone audit + and defaulted to reader rules. For example: If you need to let someone audit your deployment for security purposes. #. Customize the policy in better way. For example, you will be able diff --git a/doc/source/configuration/policy-guide.rst b/doc/source/configuration/policy-guide.rst index 542540e86..70baf4a5a 100644 --- a/doc/source/configuration/policy-guide.rst +++ b/doc/source/configuration/policy-guide.rst @@ -27,7 +27,7 @@ permissions on REST API actions. .. # NOTE(mriedem): This is the section where we hide things that we don't # actually want in the table of contents but sphinx build would fail if # they aren't in the toctree somewhere. -.. # NOTE(amotoki): toctree needs to be placed at the end of the secion to +.. # NOTE(amotoki): toctree needs to be placed at the end of the section to # keep the document structure in the PDF doc. .. toctree:: :hidden: diff --git a/doc/source/contributor/contributing.rst b/doc/source/contributor/contributing.rst index 097ac4284..8c7b08a39 100644 --- a/doc/source/contributor/contributing.rst +++ b/doc/source/contributor/contributing.rst @@ -46,7 +46,7 @@ Task Tracking We track our tasks in the `Launchpad `_. -We also have our planed goals and schedule for each OpenStack official release. +We also have our planned goals and schedule for each OpenStack official release. If you are a new contributor who are looking for tasks, please take a look. we have tasks from low-hanging-fruit to middle, and advanced levels. `Development_Release_Schedule @@ -74,7 +74,7 @@ To merge a patch, it must pass all voting Zuul checks and get two +2s from core reviewers. We strive to avoid scenarios where one person from a company or organization proposes a patch, and two other core reviewers from the same organization approve it to get it merged. In other words, at least -one among the patch author and the two approving reviwers must be from +one among the patch author and the two approving reviewers must be from another organization. We are constantly striving to improve quality. Proposed patches must diff --git a/doc/source/contributor/devstack_setup.rst b/doc/source/contributor/devstack_setup.rst index b03fb118a..21a184ca9 100644 --- a/doc/source/contributor/devstack_setup.rst +++ b/doc/source/contributor/devstack_setup.rst @@ -142,7 +142,7 @@ Testing with unmerged changes >>>>>>>>>>>>>>>>>>>>>>>>>>>>> To test with changes that have not been merged, the enable_plugin -line can be modifed to specify the branch/reference to be cloned. +line can be modified to specify the branch/reference to be cloned. :: diff --git a/doc/source/contributor/index.rst b/doc/source/contributor/index.rst index 6f5434e78..547fa8ee0 100644 --- a/doc/source/contributor/index.rst +++ b/doc/source/contributor/index.rst @@ -32,7 +32,7 @@ Reviewing * :doc:`/contributor/release-guide`: Chronological guide for release liaisons -.. # NOTE: toctree needs to be placed at the end of the secion to +.. # NOTE: toctree needs to be placed at the end of the section to # keep the document structure in the PDF doc. .. toctree:: :hidden: diff --git a/doc/source/index.rst b/doc/source/index.rst index 2e50b135d..101de7d0e 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -48,7 +48,7 @@ Once you are running cyborg, the following information is extremely useful. * :doc:`Admin Guide `: A collection of guides for administrating cyborg. -.. # NOTE(amotoki): toctree needs to be placed at the end of the secion to +.. # NOTE(amotoki): toctree needs to be placed at the end of the section to # keep the document structure in the PDF doc. .. toctree:: :hidden: @@ -84,7 +84,7 @@ following endpoints: /v2.0 - same API as v2, except uses microversions -The follwoing guide concentrates on documenting the v2 API, please note that +The following guide concentrates on documenting the v2 API, please note that the v2.0 is the first microversion of the v2 API and are also covered by this guide. diff --git a/releasenotes/notes/add_ARQ_UNBIND_FAILED_status-ea8636c64dd616eb.yaml b/releasenotes/notes/add_ARQ_UNBIND_FAILED_status-ea8636c64dd616eb.yaml index a36fd5975..003db1996 100644 --- a/releasenotes/notes/add_ARQ_UNBIND_FAILED_status-ea8636c64dd616eb.yaml +++ b/releasenotes/notes/add_ARQ_UNBIND_FAILED_status-ea8636c64dd616eb.yaml @@ -1,5 +1,5 @@ --- features: - | - Add ``ARQ_UNBIND_FAILED`` status for Accelerator Requests (arq) unbind process. Nowdays the status is + Add ``ARQ_UNBIND_FAILED`` status for Accelerator Requests (arq) unbind process. Nowadays the status is needed to accurate record the arq status. diff --git a/releasenotes/notes/bug-1928174-delete_trait_from_placement-266caf73cf289759.yaml b/releasenotes/notes/bug-1928174-delete_trait_from_placement-266caf73cf289759.yaml index 473925e45..8e6178a7b 100644 --- a/releasenotes/notes/bug-1928174-delete_trait_from_placement-266caf73cf289759.yaml +++ b/releasenotes/notes/bug-1928174-delete_trait_from_placement-266caf73cf289759.yaml @@ -2,7 +2,7 @@ features: - | `Bug 1928174`_ is cleaned the old device trait on reporting data. the - trait will be removing succesfully if no rp uses, otherwise placement will + trait will be removing successfully if no rp uses, otherwise placement will raise 409 exception. .. _Bug 1928174: https://bugs.launchpad.net/openstack-cyborg/+bug/1928174 \ No newline at end of file diff --git a/releasenotes/notes/generic-driver-88427acd7c7c12df.yaml b/releasenotes/notes/generic-driver-88427acd7c7c12df.yaml index f82f82df8..e414bc705 100644 --- a/releasenotes/notes/generic-driver-88427acd7c7c12df.yaml +++ b/releasenotes/notes/generic-driver-88427acd7c7c12df.yaml @@ -2,5 +2,5 @@ features: - | The cyborg generic driver provide a full implementation of CRUD operations, - for testing purpose only. This is only an examplary implementation of a driver + for testing purpose only. This is only an exemplary implementation of a driver which specific accelerator driver could refer to. diff --git a/releasenotes/notes/inspur-nvme-ssd-faeddc0b09250acc.yaml b/releasenotes/notes/inspur-nvme-ssd-faeddc0b09250acc.yaml index aad3b4777..8c464f8d2 100644 --- a/releasenotes/notes/inspur-nvme-ssd-faeddc0b09250acc.yaml +++ b/releasenotes/notes/inspur-nvme-ssd-faeddc0b09250acc.yaml @@ -4,4 +4,4 @@ features: The Inspur NVMe SSD driver provides the discover and report proposal of Inspur NVMe SSD disks, then we can use these disks binding and unbinding with VM like PGPU to accelerator the io rate for the VM. The Inspur NVMe - SSD doesnot support virtualization, one disk can be only bind to one VM. + SSD does not support virtualization, one disk can be only bind to one VM. diff --git a/releasenotes/notes/intel-nic-driver-f93adad86a23ceb9.yaml b/releasenotes/notes/intel-nic-driver-f93adad86a23ceb9.yaml index 0664f4331..c4f1d8888 100644 --- a/releasenotes/notes/intel-nic-driver-f93adad86a23ceb9.yaml +++ b/releasenotes/notes/intel-nic-driver-f93adad86a23ceb9.yaml @@ -7,4 +7,4 @@ features: Device Personalization) which provides the ability to reconfigure the packet processing pipeline to support a broader range of traffic types. It also supports SR-IOV technology, each physical card can be virtualized - into mulitiple VFs. + into multiple VFs. diff --git a/releasenotes/notes/intel-qat-driver-a7b4c8f110d41e0b.yaml b/releasenotes/notes/intel-qat-driver-a7b4c8f110d41e0b.yaml index c2d30414a..fb770b323 100644 --- a/releasenotes/notes/intel-qat-driver-a7b4c8f110d41e0b.yaml +++ b/releasenotes/notes/intel-qat-driver-a7b4c8f110d41e0b.yaml @@ -3,6 +3,6 @@ features: - | The cyborg-intel-qat-driver-proposal spec defines the Intel QAT accelerator driver managed by Cyborg. Intel QAT card is an accelerator that can - accelerate encrytion and compression/decompression operation in data center. + accelerate encryption and compression/decompression operation in data center. It also support SR-IOV technology, each physical card can be virtualized - into mulitiple VFs. + into multiple VFs. diff --git a/releasenotes/notes/policy_refresh_base_and_device_profile-cef00fca580d2323.yaml b/releasenotes/notes/policy_refresh_base_and_device_profile-cef00fca580d2323.yaml index d7e2693dc..9b57a969d 100644 --- a/releasenotes/notes/policy_refresh_base_and_device_profile-cef00fca580d2323.yaml +++ b/releasenotes/notes/policy_refresh_base_and_device_profile-cef00fca580d2323.yaml @@ -29,7 +29,7 @@ features: - New Defaults Configuration Policies are default to Admin, Member and Reader roles. Old roles - are also supproted. You can switch to new defaults via config option + are also supported. You can switch to new defaults via config option ``[oslo_policy]enforce_new_defaults`` in ``cyborg.conf`` file. - New Base policy roles diff --git a/releasenotes/notes/support-vgpu-managment-39d4366cad5735a9.yaml b/releasenotes/notes/support-vgpu-managment-39d4366cad5735a9.yaml index afbfbbc3a..baf808e2b 100644 --- a/releasenotes/notes/support-vgpu-managment-39d4366cad5735a9.yaml +++ b/releasenotes/notes/support-vgpu-managment-39d4366cad5735a9.yaml @@ -2,6 +2,6 @@ features: - | Complete VGPU management feature. VGPU driver is nvidia_gpu_driver same as - PGPU driver. The GPU devices configration is same as Nova side, the + PGPU driver. The GPU devices configuration is same as Nova side, the difference is we delete mdev when the vm is destroy and assign VGPU trait to create vm.