@types.convert(image={"type": "glance_image"},
                   flavor={"type": "nova_flavor"})
    @validation.image_valid_on_flavor("flavor", "image")
    @validation.required_services(consts.Service.NOVA)
    @validation.required_openstack(users=True)
    @scenario.configure(context={"cleanup": ["nova"]})
    @logging.log_deprecated_args(
        "'server_kwargs' has been renamed 'boot_server_kwargs'",
        "0.3.2", ["server_kwargs"], once=True)
    def boot_and_delete_server_with_keypair(self, image, flavor,
                                            boot_server_kwargs=None,
                                            server_kwargs=None,
                                            **kwargs):

        boot_server_kwargs = boot_server_kwargs or server_kwargs or {}

        keypair = self._create_keypair(**kwargs)
        server = self._boot_server(image, flavor,
                                   key_name=keypair,
                                   **boot_server_kwargs)
        self._delete_server(server)
        self._delete_keypair(keypair)
Boot and delete server with keypair.
dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/nova/keypairs.py/NovaKeypair.boot_and_delete_server_with_keypair