Exemplo n.º 1
0
def creation_validation(openstack_resource):
    """
    This method is to check if we can create server group resource in openstack
    :param openstack_resource: Instance of current openstack server group
    """
    validate_resource_quota(openstack_resource, SERVER_GROUP_OPENSTACK_TYPE)
    ctx.logger.debug('OK: server group configuration is valid')
def creation_validation(openstack_resource):
    """
    This method is to check if we can create network resource in openstack
    :param openstack_resource: Instance of current openstack network
    """
    validate_resource_quota(openstack_resource, NETWORK_OPENSTACK_TYPE)
    ctx.logger.debug('OK: network configuration is valid')
Exemplo n.º 3
0
def creation_validation(openstack_resource):
    """
    This method is to check if we can create floating ip resource in openstack
    :param openstack_resource: Instance of current openstack floating ip
    """
    validate_resource_quota(openstack_resource, FLOATING_IP_OPENSTACK_TYPE)
    ctx.logger.debug('OK: floating ip configuration is valid')
def creation_validation(openstack_resource):
    """
    This method is to check if we can create subnet resource in openstack
    :param openstack_resource: Instance of current openstack subnet
    """
    validate_resource_quota(openstack_resource, SUBNET_OPENSTACK_TYPE)
    ctx.logger.debug('OK: port configuration is valid')
Exemplo n.º 5
0
def creation_validation(openstack_resource):
    """
    This method is to check if we can create project resource in openstack
    :param openstack_resource: Instance of current openstack project
    """
    validate_resource_quota(openstack_resource, PROJECT_OPENSTACK_TYPE)
    ctx.logger.debug('OK: project configuration is valid')
Exemplo n.º 6
0
def creation_validation(openstack_resource):
    """
    This method is to check if we can create keypair resource in openstack
    :param openstack_resource: Instance of current openstack keypair
    """
    validate_resource_quota(openstack_resource, KEYPAIR_OPENSTACK_TYPE)
    ctx.logger.debug('OK: key pair configuration is valid')
Exemplo n.º 7
0
def creation_validation(openstack_resource):
    """
    This method is to check if we can create volume resource in openstack
    :param openstack_resource: Instance of current openstack volume
    """
    validate_resource_quota(openstack_resource, VOLUME_OPENSTACK_TYPE)
    ctx.logger.debug('OK: volume configuration is valid')
Exemplo n.º 8
0
def creation_validation(openstack_resource):
    """
    This method is to check if we can create rbac policy resource in openstack
    :param openstack_resource: Instance of current openstack rbac policy
    """
    validate_resource_quota(openstack_resource, RBAC_POLICY_OPENSTACK_TYPE)
    ctx.logger.debug('OK: rbac policy configuration is valid')
def creation_validation(openstack_resource):
    """
    This method is to check if we can create security group rule resource
    in openstack
    :param openstack_resource: Instance of current openstack security rule
    group
    """
    validate_resource_quota(openstack_resource,
                            SECURITY_GROUP_RULE_OPENSTACK_TYPE)
    ctx.logger.debug('OK: security group rule configuration is valid')