[ Pobierz całość w formacie PDF ]

Orchestration service offers access to all OpenStack core services via a single modular
template, with additional orchestration capabilities such as auto-scaling and basic high
availability.
For information about the:
Basic creation and deletion of Orchestration stacks, see the End User Guide at
https://access.redhat.com/site/documentation/en-
US/Red_Hat_Enterprise_Linux_OpenStack_Platform/.
heat CLI commands, see the Command Line Reference Guide at
https://access.redhat.com/site/documentation/en-
US/Red_Hat_Enterprise_Linux_OpenStack_Platform/.
As an administrator, you can also carry out stack functions on behalf of your users. For
example, to resume, suspend, or delete a stack, run:
$ action-resume stackID
$ action-suspend stackID
$ stack-delete stackID
10. Manage quot as
To prevent system capacities from being exhausted without notification, you can set up
quotas. Quotas are operational limits. For example, the number of gigabytes allowed for
each tenant can be controlled so that cloud resources are optimized. Quotas can be
enforced at both the tenant (or project) and the tenant-user level.
Using the command-line interface, you can manage quotas for the OpenStack Compute
service, the OpenStack Block Storage service, and the OpenStack Networking service.
The cloud operator typically changes default values because a tenant requires more than
ten volumes or 1 TB on a compute node.
76
Chapt er 3. OpenSt ack command- line client s
Note
To view all tenants (projects), run:
$ keystone tenant-list
+----------------------------------+--------
--+---------+
| id | name
| enabled |
+----------------------------------+--------
--+---------+
| e66d97ac1b704897853412fc8450f7b9 | admin
| True |
| bf4a37b885fe46bd86e999e50adad1d3 |
services | True |
| 21bd1c7c95234fd28f589b60903606fa |
tenant01 | True |
| f599c5cd1cba4125ae3d7caed08e288c |
tenant02 | True |
+----------------------------------+--------
--+---------+
To display all current users for a tenant, run:
$ keystone user-list --tenant-id tenantID
+----------------------------------+--------
+---------+-------+
| id | name
| enabled | email |
+----------------------------------+--------
+---------+-------+
| ea30aa434ab24a139b0e85125ec8a217 | demo00
| True | |
| 4f8113c1d838467cad0c2f337b3dfded | demo01
| True | |
+----------------------------------+--------
+---------+-------+
77
Red Hat Ent erprise Linux OpenSt ack Plat form 5 Administ rat ion User Guide
10.1. Manage Compute service quotas
As an administrative user, you can use the nova quota-* commands, which are provided
by the python-novaclient package, to update the Compute service quotas for a specific
tenant or tenant user, as well as update the quota defaults for a new tenant.
Table 3.4 . Compute quota descriptions
Q uota name Description
Number of instance cores (VCPUs) allowed per
cores
tenant.
Number of fixed IP addresses allowed per tenant.
fixed-ips
This number must be equal to or greater than the
number of allowed instances.
Number of floating IP addresses allowed per tenant.
floating-ips
Number of content bytes allowed per injected file.
injected-file-content-
bytes
Length of injected file path.
injected-file-path-bytes
Number of injected files allowed per tenant.
injected-files
Number of instances allowed per tenant.
instances
Number of key pairs allowed per user.
key-pairs
Number of metadata items allowed per instance.
metadata-items
Megabytes of instance ram allowed per tenant.
ram
Number of security groups per tenant.
security-groups
Number of rules per security group.
security-group-rules
78
Chapt er 3. OpenSt ack command- line client s
10.1.1. View and updat e Co mput e quo t as fo r a t enant (pro ject )
Procedure 3.5. To view and update default quota values
1. List all default quotas for all tenants, as follows:
$ nova quota-defaults
For example:
$ nova quota-defaults
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
+-----------------------------+-------+
2. Update a default value for a new tenant, as follows:
$ nova quota-class-update --key value
default
For example:
$ nova quota-class-update --instances 15
default
Procedure 3.6 . To view quota values for an existing tenant (project)
1. Place the tenant ID in a usable variable, as follows:
79
Red Hat Ent erprise Linux OpenSt ack Plat form 5 Administ rat ion User Guide
$ tenant=$(keystone tenant-list | awk
'/tenantName/ {print $2}')
2. List the currently set quota values for a tenant, as follows:
$ nova quota-show --tenant $tenant
For example:
$ nova quota-show --tenant $tenant
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 10 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
+-----------------------------+-------+
Procedure 3.7. To update quota values for an existing tenant (project)
1. Obtain the tenant ID, as follows:
$ tenant=$(keystone tenant-list | awk
'/tenantName/ {print $2}')
2. Update a particular quota value, as follows:
$ nova quota-update --quotaName quotaValue
tenantID
80
Chapt er 3. OpenSt ack command- line client s
For example:
$ nova quota-update --floating-ips 20
$tenant
$ nova quota-show --tenant $tenant
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 20 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
+-----------------------------+-------+
Note
To view a list of options for the quota-update command, run:
$ nova help quota-update
10.1.2. View and updat e Co mput e quo t as fo r a t enant user
Procedure 3.8. To view quota values for a tenant user
1. Place the user ID in a usable variable, as follows:
$ tenantUser=$(keystone user-list | awk
'/userName/ {print $2}')
2. Place the user's tenant ID in a usable variable, as follows:
81
Red Hat Ent erprise Linux OpenSt ack Plat form 5 Administ rat ion User Guide
$ tenant=$(keystone tenant-list | awk
'/tenantName/ {print $2}')
3. List the currently set quota values for a tenant user, as follows:
$ nova quota-show --user $tenantUser --
tenant $tenant
For example:
$ nova quota-show --user $tenantUser --
tenant $tenant
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 20 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 |
| injected_file_path_bytes | 255 |
| key_pairs | 100 |
| security_groups | 10 |
| security_group_rules | 20 |
+-----------------------------+-------+
Procedure 3.9 . To update quota values for a tenant user
1. Place the user ID in a usable variable, as follows:
$ tenantUser=$(keystone user-list | awk
'/userName/ {print $2}')
2. Place the user's tenant ID in a usable variable, as follows:
82
Chapt er 3. OpenSt ack command- line client s
$ tenant=$(keystone tenant-list | awk
'/userName/ {print $2}')
3. Update a particular quota value, as follows:
$ nova quota-update --user $tenantUser -
-quotaName quotaValue $tenant
For example:
$ nova quota-update --user $tenantUser --
floating-ips 12 $tenant
$ nova quota-show --user $tenantUser --
tenant $tenant
+-----------------------------+-------+
| Quota | Limit |
+-----------------------------+-------+
| instances | 10 |
| cores | 20 |
| ram | 51200 |
| floating_ips | 12 |
| fixed_ips | -1 |
| metadata_items | 128 |
| injected_files | 5 |
| injected_file_content_bytes | 10240 | [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • mexxo.keep.pl