Fix the create instance error

Bug #1402482 reported by warewang
This bug report is a duplicate of:  Bug #1333852: Trove does not support flavor UUIDs. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
New
Undecided
Unassigned

Bug Description

I create a flavor in nova, but I use flavor to create the db_instance error.

root@ubuntu:/home/devstack# nova flavor-list
+--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 913236e8-767a-4e64-bdb1-46ae625103ec | m1.middle | 512 | 5 | 0 | | 1 | 1.0 | True |
+--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+

root@ubuntu:/home/devstack# trove create vm_db_instance 913236e8-767a-4e64-bdb1-46ae625103ec --size 2 --databases mytest
ERROR: Validation error: instance['flavorRef'] u'913236e8-767a-4e64-bdb1-46ae625103ec' is not valid under any of the given schemas; u'913236e8-767a-4e64-bdb1-46ae625103ec' does not match 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'; u'913236e8-767a-4e64-bdb1-46ae625103ec' is too long; u'913236e8-767a-4e64-bdb1-46ae625103ec' is not of type 'integer' (HTTP 400)
sudo -i

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.