tests failing with :`Only volume-backed servers are allowed for flavors with zero disk on stein`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Traceback (most recent call last):
File "tempest/
networks=
File "tempest/
**kwargs)
File "tempest/
**kwargs)
File "tempest/
resp, body = self.post(
File "tempest/
return self.request(
File "tempest/
method, url, extra_headers, headers, body, chunked)
File "tempest/
self.
File "tempest/
raise exceptions.
tempest.
Details: {u'message': u'Only volume-backed servers are allowed for flavors with zero disk.', u'code': 403}
I believe the issue is that we are creating servers with a zero disk flavor:
and the policy has changed in stein:
The defalut value for policy rule
``os_
``rule:
users without the admin role will not be allowed to create servers using
a flavor with ``disk=0`` *unless* they are creating a volume-backed server.
If you have these kinds of flavors, you may need to take action or
temporarily override the policy rule. Refer to
`bug 1739646 <https:/
The question is what should we set the disk size to be for these auto generated flavors?
Reviewed: https:/ /review. opendev. org/678901 /git.openstack. org/cgit/ openstack/ rally-openstack /commit/ ?id=824d8613235 c52f9ec77b66984 23f15dc1a8a086
Committed: https:/
Submitter: Zuul
Branch: master
commit 824d8613235c52f 9ec77b6698423f1 5dc1a8a086
Author: Will Szumski <email address hidden>
Date: Tue Aug 27 17:28:23 2019 +0100
Add option to configure flavor disk size
Since stein, creating a instance with a zero disk flavor (and no volume)
is an admin only operation (by default), see:
https:/ /review. opendev. org/#/c/ 603910/
To support stein installations we should request some disk space.
Change-Id: I185abfffb68466 6349a82b2c31bc8 85f87ef23d9
Closes-Bug: #1841609