@arg('server', metavar='<server>', help='Name or ID of server.')
    @arg('image', metavar='<image>', help="Name or ID of new image.")
    def do_rebuild(self, args):
        server = self._find_server(args.server)
        image = self._find_image(args.image)
        server.rebuild(image)
Shutdown, re-image, and re-boot a server.
dataset/ETHPy150Open jacobian-archive/openstack.compute/openstack/compute/shell.py/ComputeShell.do_rebuild