

@validation.required_parameters('driver')
@validation.required_services(consts.Service.IRONIC)
@validation.required_openstack(admin=True)
@scenario.configure(context={
    'admin_cleanup': ['ironic'],
})
def create_and_list_node(self, associated=None, maintenance=None, marker=None, limit=None, detail=False, sort_key=None, sort_dir=None, **kwargs):
    'Create and list nodes.\n\n        :param associated: Optional. Either a Boolean or a string\n                           representation of a Boolean that indicates whether\n                           to return a list of associated (True or "True") or\n                           unassociated (False or "False") nodes.\n        :param maintenance: Optional. Either a Boolean or a string\n                            representation of a Boolean that indicates whether\n                            to return nodes in maintenance mode (True or\n                            "True"), or not in maintenance mode (False or\n                            "False").\n        :param marker: Optional, the UUID of a node, eg the last\n                       node from a previous result set. Return\n                       the next result set.\n        :param limit: The maximum number of results to return per\n                      request, if:\n            1) limit > 0, the maximum number of nodes to return.\n            2) limit == 0, return the entire list of nodes.\n            3) limit param is NOT specified (None), the number of items\n               returned respect the maximum imposed by the Ironic API\n               (see Ironic\'s api.max_limit option).\n        :param detail: Optional, boolean whether to return detailed\n                       information about nodes.\n        :param sort_key: Optional, field used for sorting.\n        :param sort_dir: Optional, direction of sorting, either \'asc\' (the\n                         default) or \'desc\'.\n        :param kwargs: Optional additional arguments for node creation\n        '
    self._create_node(**kwargs)
    self._list_nodes(associated=associated, maintenance=maintenance, marker=marker, limit=limit, detail=detail, sort_key=sort_key, sort_dir=sort_dir)

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/ironic/nodes.py IronicNodes.create_and_list_node/original