Nova instance custom name
Hi,
I'm running Rally benchmark scenarios related to nova on my openstack setup. Every time it creates an instance with randomly generated name.
I modified the JSON file to have "name" as parameter within "args" which is as shown below:
"args": {
"flavor": {
"name": "m1.tiny"
},
"
"image": {
"name": "cirros"
},
"name": "s_random"
When i executed the scenario, I'm getting the following error:
test scenario NovaServers.
args position 0
args values:
{
"runner": {
"type": "constant",
"concurrency": 1,
"times": 1
},
"args": {
"flavor": {
"name": "m1.tiny"
},
"auto_
"image": {
"name": "cirros"
},
"name": "s_random"
},
"context": {
"users": {
"
"
"
"
"tenants": 3,
"
},
"network": {
"
"
"start_cidr": "10.2.0.0/24",
"
"
}
}
}
-------
Task 228e18ee-
-------
TypeError: create() got multiple values for keyword argument 'name'
Traceback (most recent call last):
File "/usr/lib/
getattr(
File "/usr/lib/
server = self._boot_
File "/usr/lib/
f = func(self, *args, **kwargs)
File "/usr/lib/
server_name, image_id, flavor_id, **kwargs)
TypeError: create() got multiple values for keyword argument 'name'
I have edited the "rally/
changes made in "_boot_server" sub-routine:
def _boot_server(self, image_id, flavor_id,
"""Boot a server.
Returns when the server is actually booted and in "ACTIVE" state.
If multiple networks created by Network context are present, the first
network found that isn't associated with a floating IP pool is used.
:param image_id: int, image ID for server creation
:param flavor_id: int, flavor ID for server creation
:param auto_assign_nic: bool, whether or not to auto assign NICs
:param kwargs: other optional parameters to initialize the server
:returns: nova Server instance
"""
server_name = kwargs["name"]
Can some one please let me know whether the approach which i have followed is correct or not. If not, please advice.
Thanks,
Rajeev
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Rally Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: