Ask Your Question

Rally VMTasks.boot_runcommand_delete boot on Volume

asked 2017-03-06 13:40:06 -0500

Don Nalezyty gravatar image

We've been using Rally and it's VMTasks.boot_runcommand_delete plugin to benchmark performance in our UAT environment. The default behavior of the plugin is to take an image and perform an ephemeral boot using the image.

Since most of our users are leveraging boot on volume from volume snapshots, I'd like to benchmark the same, but I can't seem to figure out how to get the plugin to boot from volume regardless of what the volume is based on.

Using 'rally plugin show ' I can see there is an argument for this purpose:

volume_args      | volume args for booting server from volume

I've tried a few different things using the 'nova boot server' command as a model, but thus far I've only managed to add a secondary volume based on whatever volume or snapshot I pass the ID for. I tried dropping the image arg, since that would imply that it must boot from an image, but the plugin gives an error indicating an image must be specified.

Can anyone help me figure out how to get this working or does the plugin just not support it despite what the inline help for the plugin says?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-10-10 04:37:15 -0500

Moss gravatar image

Hey Don, A small patch is needed in (verified for rally version 0.8.2, hopefully it still works):

rally --version

vim /usr/lib/python2.7/site-packages/rally/plugins/openstack/scenarios/vm/ +154
        if volume_args:
#            volume = self._create_volume(volume_args["size"], imageRef=None)
            volume = self._create_volume(volume_args["size"], imageRef=image)
            kwargs["block_device_mapping"] = {"vdrally": "%s:::1" %}

Then I was able to create a volume from an image and boot from that volume instead of attaching it aside.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-06 13:40:06 -0500

Seen: 120 times

Last updated: Oct 10 '19