Browse Source

Merge "docs: Correct issues with 'openstack quota set' commands" into stable/queens

tags/17.0.12
Zuul 1 month ago
parent
commit
fcc412bbc0
1 changed files with 107 additions and 57 deletions
  1. 107
    57
      doc/source/admin/quotas.rst

+ 107
- 57
doc/source/admin/quotas.rst View File

@@ -62,31 +62,55 @@ To view and update default quota values
62 62
    .. code-block:: console
63 63
 
64 64
       $ openstack quota show --default
65
+      +----------------------+----------+
66
+      | Field                | Value    |
67
+      +----------------------+----------+
68
+      | backup-gigabytes     | 1000     |
69
+      | backups              | 10       |
70
+      | cores                | 20       |
71
+      | fixed-ips            | -1       |
72
+      | floating-ips         | 50       |
73
+      | gigabytes            | 1000     |
74
+      | health_monitors      | None     |
75
+      | injected-file-size   | 10240    |
76
+      | injected-files       | 5        |
77
+      | injected-path-size   | 255      |
78
+      | instances            | 10       |
79
+      | key-pairs            | 100      |
80
+      | l7_policies          | None     |
81
+      | listeners            | None     |
82
+      | load_balancers       | None     |
83
+      | location             | None     |
84
+      | name                 | None     |
85
+      | networks             | 10       |
86
+      | per-volume-gigabytes | -1       |
87
+      | pools                | None     |
88
+      | ports                | 50       |
89
+      | project              | None     |
90
+      | project_name         | project  |
91
+      | properties           | 128      |
92
+      | ram                  | 51200    |
93
+      | rbac_policies        | 10       |
94
+      | routers              | 10       |
95
+      | secgroup-rules       | 100      |
96
+      | secgroups            | 10       |
97
+      | server-group-members | 10       |
98
+      | server-groups        | 10       |
99
+      | snapshots            | 10       |
100
+      | subnet_pools         | -1       |
101
+      | subnets              | 10       |
102
+      | volumes              | 10       |
103
+      +----------------------+----------+
65 104
 
66
-      +-----------------------------+-------+
67
-      | Quota                       | Limit |
68
-      +-----------------------------+-------+
69
-      | instances                   | 10    |
70
-      | cores                       | 20    |
71
-      | ram                         | 51200 |
72
-      | floating_ips                | 10    |
73
-      | fixed_ips                   | -1    |
74
-      | metadata_items              | 128   |
75
-      | injected_files              | 5     |
76
-      | injected_file_content_bytes | 10240 |
77
-      | injected_file_path_bytes    | 255   |
78
-      | key_pairs                   | 100   |
79
-      | security_groups             | 10    |
80
-      | security_group_rules        | 20    |
81
-      | server_groups               | 10    |
82
-      | server_group_members        | 10    |
83
-      +-----------------------------+-------+
105
+   .. note::
106
+
107
+      This lists default quotas for all services and not just nova.
84 108
 
85 109
 #. Update a default value for a new project, for example:
86 110
 
87 111
    .. code-block:: console
88 112
 
89
-      $ openstack quota set --instances 15 default
113
+      $ openstack quota set --instances 15 --class default
90 114
 
91 115
 To view quota values for an existing project
92 116
 --------------------------------------------
@@ -96,25 +120,50 @@ To view quota values for an existing project
96 120
    .. code-block:: console
97 121
 
98 122
       $ openstack quota show PROJECT_NAME
123
+      +----------------------+----------------------------------+
124
+      | Field                | Value                            |
125
+      +----------------------+----------------------------------+
126
+      | backup-gigabytes     | 1000                             |
127
+      | backups              | 10                               |
128
+      | cores                | 32                               |
129
+      | fixed-ips            | -1                               |
130
+      | floating-ips         | 10                               |
131
+      | gigabytes            | 1000                             |
132
+      | health_monitors      | None                             |
133
+      | injected-file-size   | 10240                            |
134
+      | injected-files       | 5                                |
135
+      | injected-path-size   | 255                              |
136
+      | instances            | 10                               |
137
+      | key-pairs            | 100                              |
138
+      | l7_policies          | None                             |
139
+      | listeners            | None                             |
140
+      | load_balancers       | None                             |
141
+      | location             | None                             |
142
+      | name                 | None                             |
143
+      | networks             | 20                               |
144
+      | per-volume-gigabytes | -1                               |
145
+      | pools                | None                             |
146
+      | ports                | 60                               |
147
+      | project              | c8156b55ec3b486193e73d2974196993 |
148
+      | project_name         | project                          |
149
+      | properties           | 128                              |
150
+      | ram                  | 65536                            |
151
+      | rbac_policies        | 10                               |
152
+      | routers              | 10                               |
153
+      | secgroup-rules       | 50                               |
154
+      | secgroups            | 50                               |
155
+      | server-group-members | 10                               |
156
+      | server-groups        | 10                               |
157
+      | snapshots            | 10                               |
158
+      | subnet_pools         | -1                               |
159
+      | subnets              | 20                               |
160
+      | volumes              | 10                               |
161
+      +----------------------+----------------------------------+
162
+
163
+   .. note::
164
+
165
+      This lists quotas for all services and not just nova.
99 166
 
100
-      +-----------------------------+-------+
101
-      | Quota                       | Limit |
102
-      +-----------------------------+-------+
103
-      | instances                   | 10    |
104
-      | cores                       | 20    |
105
-      | ram                         | 51200 |
106
-      | floating_ips                | 10    |
107
-      | fixed_ips                   | -1    |
108
-      | metadata_items              | 128   |
109
-      | injected_files              | 5     |
110
-      | injected_file_content_bytes | 10240 |
111
-      | injected_file_path_bytes    | 255   |
112
-      | key_pairs                   | 100   |
113
-      | security_groups             | 10    |
114
-      | security_group_rules        | 20    |
115
-      | server_groups               | 10    |
116
-      | server_group_members        | 10    |
117
-      +-----------------------------+-------+
118 167
 
119 168
 To update quota values for an existing project
120 169
 ----------------------------------------------
@@ -127,34 +176,35 @@ To update quota values for an existing project
127 176
 
128 177
 #. Update a particular quota value.
129 178
 
179
+   To update quotas for a project:
180
+
181
+   .. code-block:: console
182
+
183
+      $ openstack quota set --QUOTA_NAME QUOTA_VALUE PROJECT_NAME
184
+
185
+   To update quotas for a class:
186
+
130 187
    .. code-block:: console
131 188
 
132
-      $ openstack quota set --QUOTA_NAME QUOTA_VALUE PROJECT_OR_CLASS
189
+      $ openstack quota set --class --QUOTA_NAME QUOTA_VALUE CLASS_NAME
190
+
191
+   .. note::
192
+
193
+      Only the ``default`` class is supported by nova.
133 194
 
134 195
    For example:
135 196
 
136 197
    .. code-block:: console
137 198
 
138
-      $ openstack quota set --floating-ips 20 PROJECT_OR_CLASS
199
+      $ openstack quota set --instances 50 PROJECT_NAME
139 200
       $ openstack quota show PROJECT_NAME
140
-      +-----------------------------+-------+
141
-      | Quota                       | Limit |
142
-      +-----------------------------+-------+
143
-      | instances                   | 10    |
144
-      | cores                       | 20    |
145
-      | ram                         | 51200 |
146
-      | floating_ips                | 20    |
147
-      | fixed_ips                   | -1    |
148
-      | metadata_items              | 128   |
149
-      | injected_files              | 5     |
150
-      | injected_file_content_bytes | 10240 |
151
-      | injected_file_path_bytes    | 255   |
152
-      | key_pairs                   | 100   |
153
-      | security_groups             | 10    |
154
-      | security_group_rules        | 20    |
155
-      | server_groups               | 10    |
156
-      | server_group_members        | 10    |
157
-      +-----------------------------+-------+
201
+      +----------------------+----------------------------------+
202
+      | Field                | Value                            |
203
+      +----------------------+----------------------------------+
204
+      | ...                  | ...                              |
205
+      | instances            | 50                               |
206
+      | ...                  | ...                              |
207
+      +----------------------+----------------------------------+
158 208
 
159 209
    .. note::
160 210
 

Loading…
Cancel
Save