From e36b5315a1469a0b2fdd279274300d2373a4a186 Mon Sep 17 00:00:00 2001 From: melanie witt Date: Wed, 18 Oct 2023 21:56:03 +0000 Subject: [PATCH] docs: Fix unified limits code block text alignment The text alignment for one of the code blocks on the unified limits admin doc page being off by one causes the rendered code block to be slightly askew. This fixes the alignment and also adjusts inconsistencies in code block text alignment throughout the unified limits docs. Change-Id: I52b61ad63a9788fe6443284db1a4e9012674aafe --- doc/source/admin/unified-limits.rst | 16 ++++----- doc/source/user/unified-limits.rst | 56 ++++++++++++++--------------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/doc/source/admin/unified-limits.rst b/doc/source/admin/unified-limits.rst index 70df629b36..8f762f3c8a 100644 --- a/doc/source/admin/unified-limits.rst +++ b/doc/source/admin/unified-limits.rst @@ -50,14 +50,14 @@ are made in order: .. code-block:: console - $ openstack limit create --service nova --project --resource-limit 5 servers + $ openstack limit create --service nova --project --resource-limit 5 servers #. Default limits Use the Keystone registered limit for the resource as the limit. You can create these default limits using: - .. code-block:: console + .. code-block:: console $ openstack registered limit create --service nova --default-limit 5 servers @@ -129,11 +129,11 @@ To list all default quotas for a project, run: .. code-block:: console - $ openstack registered limit list + $ openstack registered limit list .. note:: - This lists default quotas for all services and not just nova. + This lists default quotas for all services and not just nova. To show details about a default limit, run: @@ -159,7 +159,7 @@ To update a default quota value, run: .. code-block:: console - $ openstack registered limit set --default-limit + $ openstack registered limit set --default-limit To delete a default quota limit, run: @@ -174,11 +174,11 @@ To list quotas for a project, run: .. code-block:: console - $ openstack limit list --project + $ openstack limit list --project .. note:: - This lists project quotas for all services and not just nova. + This lists project quotas for all services and not just nova. To list quotas for all projects, you must have a system-scoped authorization token and run: @@ -203,7 +203,7 @@ To update quotas for a project, run: .. code-block:: console - $ openstack limit set --resource-limit + $ openstack limit set --resource-limit To delete quotas for a project, run: diff --git a/doc/source/user/unified-limits.rst b/doc/source/user/unified-limits.rst index fc4841156c..7934dbb912 100644 --- a/doc/source/user/unified-limits.rst +++ b/doc/source/user/unified-limits.rst @@ -104,35 +104,35 @@ To list all default quotas for projects, run: .. code-block:: console - $ openstack registered limit list + $ openstack registered limit list .. note:: - This lists default quotas for all services and not just nova. + This lists default quotas for all services and not just nova. For example: .. code-block:: console - $ openstack registered limit list - +----------------------------------+----------------------------------+------------------------------------+---------------+-------------+-----------+ - | ID | Service ID | Resource Name | Default Limit | Description | Region ID | - +----------------------------------+----------------------------------+------------------------------------+---------------+-------------+-----------+ - | eeee406035fc4a7892c6fc6fcc76e61a | b5d97619e6354c03be50c6b1589e6547 | image_size_total | 1000 | None | RegionOne | - | b99d35b1b7b74cd0a26a6311963328af | b5d97619e6354c03be50c6b1589e6547 | image_stage_total | 1000 | None | RegionOne | - | 70945789dad24082bc2a8cdbf53a5091 | b5d97619e6354c03be50c6b1589e6547 | image_count_total | 100 | None | RegionOne | - | 908d86c0ac3f46d0bb45ed9194710ea7 | b5d97619e6354c03be50c6b1589e6547 | image_count_uploading | 100 | None | RegionOne | - | be6dfeebb7c340e8b93b602d41fbff9b | 8b22bf8a66fa4524a522b2a21865bbf2 | servers | 10 | None | None | - | 8a658096236549788e61f4fcbd5a4a12 | 8b22bf8a66fa4524a522b2a21865bbf2 | class:VCPU | 20 | None | None | - | 63890db7d6a14401ba55e7f7022b95d0 | 8b22bf8a66fa4524a522b2a21865bbf2 | class:MEMORY_MB | 51200 | None | None | - | 221ba1c19d2c4272952663828d659013 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_metadata_items | 128 | None | None | - | 8e61cabd2e854a11bdd2cf94efd702d1 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_injected_files | 5 | None | None | - | 3d259390f70e4e9b88ecb2b0fa075f9b | 8b22bf8a66fa4524a522b2a21865bbf2 | server_injected_file_content_bytes | 10240 | None | None | - | a12e10b991cc4bdd8e6ff30f6e6c15ac | 8b22bf8a66fa4524a522b2a21865bbf2 | server_injected_file_path_bytes | 255 | None | None | - | a32a9080be6b4a5481c16a91fe329e6f | 8b22bf8a66fa4524a522b2a21865bbf2 | server_key_pairs | 100 | None | None | - | 86408bb7a0e542b18404ec7d348da820 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_groups | 10 | None | None | - | 17c4552c5aad4afca4813f37530fc897 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_group_members | 10 | None | None | - +----------------------------------+----------------------------------+------------------------------------+---------------+-------------+-----------+ + $ openstack registered limit list + +----------------------------------+----------------------------------+------------------------------------+---------------+-------------+-----------+ + | ID | Service ID | Resource Name | Default Limit | Description | Region ID | + +----------------------------------+----------------------------------+------------------------------------+---------------+-------------+-----------+ + | eeee406035fc4a7892c6fc6fcc76e61a | b5d97619e6354c03be50c6b1589e6547 | image_size_total | 1000 | None | RegionOne | + | b99d35b1b7b74cd0a26a6311963328af | b5d97619e6354c03be50c6b1589e6547 | image_stage_total | 1000 | None | RegionOne | + | 70945789dad24082bc2a8cdbf53a5091 | b5d97619e6354c03be50c6b1589e6547 | image_count_total | 100 | None | RegionOne | + | 908d86c0ac3f46d0bb45ed9194710ea7 | b5d97619e6354c03be50c6b1589e6547 | image_count_uploading | 100 | None | RegionOne | + | be6dfeebb7c340e8b93b602d41fbff9b | 8b22bf8a66fa4524a522b2a21865bbf2 | servers | 10 | None | None | + | 8a658096236549788e61f4fcbd5a4a12 | 8b22bf8a66fa4524a522b2a21865bbf2 | class:VCPU | 20 | None | None | + | 63890db7d6a14401ba55e7f7022b95d0 | 8b22bf8a66fa4524a522b2a21865bbf2 | class:MEMORY_MB | 51200 | None | None | + | 221ba1c19d2c4272952663828d659013 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_metadata_items | 128 | None | None | + | 8e61cabd2e854a11bdd2cf94efd702d1 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_injected_files | 5 | None | None | + | 3d259390f70e4e9b88ecb2b0fa075f9b | 8b22bf8a66fa4524a522b2a21865bbf2 | server_injected_file_content_bytes | 10240 | None | None | + | a12e10b991cc4bdd8e6ff30f6e6c15ac | 8b22bf8a66fa4524a522b2a21865bbf2 | server_injected_file_path_bytes | 255 | None | None | + | a32a9080be6b4a5481c16a91fe329e6f | 8b22bf8a66fa4524a522b2a21865bbf2 | server_key_pairs | 100 | None | None | + | 86408bb7a0e542b18404ec7d348da820 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_groups | 10 | None | None | + | 17c4552c5aad4afca4813f37530fc897 | 8b22bf8a66fa4524a522b2a21865bbf2 | server_group_members | 10 | None | None | + +----------------------------------+----------------------------------+------------------------------------+---------------+-------------+-----------+ To show details about a default limit, run: @@ -160,18 +160,18 @@ To list the currently set quota values for your project, run: .. code-block:: console - $ openstack limit list + $ openstack limit list For example: .. code-block:: console - $ openstack limit list - +----------------------------------+----------------------------------+----------------------------------+---------------+----------------+-------------+-----------+ - | ID | Project ID | Service ID | Resource Name | Resource Limit | Description | Region ID | - +----------------------------------+----------------------------------+----------------------------------+---------------+----------------+-------------+-----------+ - | 8b3364b2241e4090aaaa49355c7a5b56 | 5cd3281595a9497ba87209701cd9f3f2 | 8b22bf8a66fa4524a522b2a21865bbf2 | class:VCPU | 5 | None | None | - +----------------------------------+----------------------------------+----------------------------------+---------------+----------------+-------------+-----------+ + $ openstack limit list + +----------------------------------+----------------------------------+----------------------------------+---------------+----------------+-------------+-----------+ + | ID | Project ID | Service ID | Resource Name | Resource Limit | Description | Region ID | + +----------------------------------+----------------------------------+----------------------------------+---------------+----------------+-------------+-----------+ + | 8b3364b2241e4090aaaa49355c7a5b56 | 5cd3281595a9497ba87209701cd9f3f2 | 8b22bf8a66fa4524a522b2a21865bbf2 | class:VCPU | 5 | None | None | + +----------------------------------+----------------------------------+----------------------------------+---------------+----------------+-------------+-----------+ To show details about a quota limimt, run: