Lingxian Kong
c04e299b1d
Revert "Remove flavor API"
...
Story: 2008341
Task: 41242
This reverts commit 27cf71299e
.
Change-Id: I036a0423263b1a0332415c6403647ae82c9e34c4
2020-11-13 20:53:10 +13:00
Lingxian Kong
27cf71299e
Remove flavor API
...
Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
2020-05-08 00:30:49 -06:00
Yotaro Konishi
84b1b0ae62
Fix wrong keyword arguments
...
Currently 'openstack database flavor list' command fails when using
'--datastore-type' and '--datastore-version-id' options. This change
fixes the issue by correcting keyword arguments.
This change also adds a test case of listing flavors with the optional
arguments.
Change-Id: I37be4911d4dda1529e2550344a912e0aa3c50558
Closes-Bug: #1794663
2018-10-02 16:49:06 +09:00
wangyao
6a373890c3
Add flavor-show to OSC
...
This change adds database support to the python-openstackclient
project for the flavor-show command.
The trove command flavor-show is now:
openstack database flavor show
Change-Id: Ie91f81bad239869bba21e1358cc97e8efa7bf468
Partially-Implements: trove-support-in-python-openstackclient
2017-12-01 17:02:27 +08:00
Trevor McCasland
4eebd56786
Add OpenStackClient plugin and flavor list
...
This change adds database support to the python-openstackclient
through a plugin and tests.
The support can be demonstrated through the implementation of
the trove command flavor-list which is now:
openstack database flavor list
Use the -v or --debug flag to see the calls being made to the correct
flavor list function.
ubuntu@ubuntu:~$ openstack database flavor list -v
START with options: [u'database', u'flavor', u'list', u'-v']
command: database flavor list -> troveclient.osc.v1.flavors.ListFlavors
Using auth plugin: password
+-----+-----------+-------+-------+------+-----------+
| id | name | RAM | vCPUs | Disk | ephemeral |
+-----+-----------+-------+-------+------+-----------+
| 1 | m1.tiny | 512 | 1 | 1 | 0 |
| 2 | m1.small | 2048 | 1 | 20 | 0 |
| 3 | m1.medium | 4096 | 2 | 40 | 0 |
| 4 | m1.large | 8192 | 4 | 80 | 0 |
| 42 | m1.nano | 64 | 1 | 0 | 0 |
| 451 | m1.heat | 512 | 1 | 0 | 0 |
| 5 | m1.xlarge | 16384 | 8 | 160 | 0 |
| 84 | m1.micro | 128 | 1 | 0 | 0 |
| c1 | cirros256 | 256 | 1 | 0 | 0 |
| d1 | ds512M | 512 | 1 | 5 | 0 |
| d2 | ds1G | 1024 | 1 | 10 | 0 |
| d3 | ds2G | 2048 | 2 | 10 | 0 |
| d4 | ds4G | 4096 | 4 | 20 | 0 |
+-----+-----------+-------+-------+------+-----------+
END return value: 0
Change-Id: I308a6c6f3f5ce7dbb814ec0fd8ecb1734a2f137f
Partially-Implements: trove-support-in-python-openstackclient
2017-01-11 16:07:45 -06:00