Merge "Change curl to osc for listing resource provider inventories"

This commit is contained in:
Zuul
2019-05-16 23:33:47 +00:00
committed by Gerrit Code Review

View File

@@ -397,34 +397,12 @@ segment contains one IPv4 subnet and one IPv6 subnet.
.. code-block:: console .. code-block:: console
$ SEGMENT_ID=053b7925-9a89-4489-9992-e164c8cc8763 $ SEGMENT_ID=053b7925-9a89-4489-9992-e164c8cc8763
$ curl -s -X GET \ $ openstack resource provider inventory list $SEGMENT_ID
http://localhost/placement/resource_providers/$SEGMENT_ID/inventories \ +----------------+------------------+----------+----------+-----------+----------+-------+
-H "Content-type: application/json" \ | resource_class | allocation_ratio | max_unit | reserved | step_size | min_unit | total |
-H "X-Auth-Token: $TOKEN" \ +----------------+------------------+----------+----------+-----------+----------+-------+
-H "Openstack-Api-Version: placement 1.1" | IPV4_ADDRESS | 1.0 | 1 | 2 | 1 | 1 | 30 |
{ +----------------+------------------+----------+----------+-----------+----------+-------+
"resource_provider_generation": 1,
"inventories": {
"allocation_ratio": 1,
"total": 254,
"reserved": 2,
"step_size": 1,
"min_unit": 1,
"max_unit": 1
}
}
.. note::
As of the writing of this guide, there is not placement API CLI client,
so the :command:`curl` command is used for this example.
.. note::
Service points URLs differ depending on your OpenStack deployment. You
can discover the Placement service URL by executing the
:command:`openstack endpoint list | grep placement` command. This
command has to be executed as admin.
#. Verify that host aggregates were created for each segment in the Compute #. Verify that host aggregates were created for each segment in the Compute
service (for the sake of brevity, only one of the segments is shown in this service (for the sake of brevity, only one of the segments is shown in this