2024-10-31 02:26:58,382 - INFO - Domain Default found not creating
2024-10-31 02:26:58,618 - INFO - Project ctest-TestBasicPolicy-73126821 not found, creating it
2024-10-31 02:26:59,471 - INFO - Created Project:ctest-TestBasicPolicy-73126821, ID : 0667a334-10f1-4717-82dd-2d59e0948890
2024-10-31 02:27:00,968 - INFO - ================================================================================
2024-10-31 02:27:00,969 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-31 02:27:00,969 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-10-31 02:27:01,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.6': '0'}} with
2024-10-31 02:27:01,231 - INFO - Initial checks done. Running the testcase now
2024-10-31 02:27:01,231 - INFO -
2024-10-31 02:27:01,794 - DEBUG - Response for create_network : {'network': {'id': 'fe85bc86-d637-4b39-86e2-0cb3c75da8e4', 'name': 'ctest-vn-95239569', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-95239569'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:02,029 - DEBUG - Response for create_subnet : {'subnet': {'id': '0af962a7-317f-429b-8e37-72043f132002', 'name': '', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'network_id': 'fe85bc86-d637-4b39-86e2-0cb3c75da8e4', 'ip_version': 4, 'cidr': '220.23.234.192/26', 'allocation_pools': [{'start': '220.23.234.194', 'end': '220.23.234.254'}], 'gateway_ip': '220.23.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.23.234.194', 'tags': [], 'project_id': '0667a33410f1471782dd2d59e0948890'}}
2024-10-31 02:27:02,052 - INFO - Created VN ctest-vn-95239569
2024-10-31 02:27:02,102 - DEBUG - VN ctest-vn-95239569 UUID is fe85bc86-d637-4b39-86e2-0cb3c75da8e4
2024-10-31 02:27:02,390 - DEBUG - Response for create_network : {'network': {'id': '8eb606d6-b41d-41c5-bdf3-36900e7961a1', 'name': 'ctest-vn-45568094', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-45568094'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:02,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc78275f-da13-433c-bfda-ebfdabbc5207', 'name': '', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'network_id': '8eb606d6-b41d-41c5-bdf3-36900e7961a1', 'ip_version': 4, 'cidr': '193.133.175.64/26', 'allocation_pools': [{'start': '193.133.175.66', 'end': '193.133.175.126'}], 'gateway_ip': '193.133.175.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.133.175.66', 'tags': [], 'project_id': '0667a33410f1471782dd2d59e0948890'}}
2024-10-31 02:27:02,563 - INFO - Created VN ctest-vn-45568094
2024-10-31 02:27:02,614 - DEBUG - VN ctest-vn-45568094 UUID is 8eb606d6-b41d-41c5-bdf3-36900e7961a1
2024-10-31 02:27:02,732 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-10-31 02:27:03,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe85bc86-d637-4b39-86e2-0cb3c75da8e4', 'name': 'ctest-vn-95239569', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0af962a7-317f-429b-8e37-72043f132002'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-95239569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706']], 'subnet_ipam': [{'subnet_cidr': '220.23.234.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:03,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8eb606d6-b41d-41c5-bdf3-36900e7961a1', 'name': 'ctest-vn-45568094', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc78275f-da13-433c-bfda-ebfdabbc5207'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-45568094'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706']], 'subnet_ipam': [{'subnet_cidr': '193.133.175.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:27:03,435 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-31 02:27:03,735 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-31 02:27:03,773 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013
2024-10-31 02:27:03,789 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890
2024-10-31 02:27:03,862 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4
2024-10-31 02:27:03,873 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4
2024-10-31 02:27:03,880 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292
2024-10-31 02:27:03,887 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292
2024-10-31 02:27:03,895 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a9388858-95ea-41a8-9dcd-34b148bae027
2024-10-31 02:27:03,905 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:27:03,905 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4
2024-10-31 02:27:03,913 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292
2024-10-31 02:27:03,926 - INFO - Verified VN network id 8 for VN fe85bc86-d637-4b39-86e2-0cb3c75da8e4
2024-10-31 02:27:03,926 - INFO - Verifications in API Server for VN ctest-vn-95239569 passed
2024-10-31 02:27:03,926 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4
2024-10-31 02:27:03,938 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292
2024-10-31 02:27:03,945 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292
2024-10-31 02:27:03,951 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a9388858-95ea-41a8-9dcd-34b148bae027
2024-10-31 02:27:03,963 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73126821', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18340272344841800505', 'uuid-lslong': '9719344912102435044'}, 'enable': 'true', 'created': '2024-10-31T02:27:01', 'last-modified': '2024-10-31T02:27:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956914'}
2024-10-31 02:27:03,969 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:27:03,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95239569 passed
2024-10-31 02:27:03,970 - DEBUG - ====Verifying policy data for ctest-vn-95239569 in API_Server ======
2024-10-31 02:27:03,970 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-31 02:27:03,975 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013
2024-10-31 02:27:03,985 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890
2024-10-31 02:27:04,056 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4
2024-10-31 02:27:04,064 - DEBUG - ==>Verifying data for policy with id: 61e24bbd-f223-4316-ab2b-838f21fbb91e, fqn: ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706']
2024-10-31 02:27:04,064 - INFO - VN ctest-vn-95239569 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:27:04,064 - DEBUG - Verifying the vn in opserver
2024-10-31 02:27:04,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569 virtual network link through opserver 10.0.0.29
2024-10-31 02:27:04,065 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-31 02:27:04,365 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-31 02:27:04,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569?flat'}
2024-10-31 02:27:04,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569 is found in opserver
2024-10-31 02:27:04,441 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:27:04,446 - DEBUG - VRF ids for VN ctest-vn-95239569: {}
2024-10-31 02:27:04,446 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-31 02:27:04,454 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013
2024-10-31 02:27:04,466 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890
2024-10-31 02:27:04,540 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1
2024-10-31 02:27:04,552 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1
2024-10-31 02:27:04,560 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190
2024-10-31 02:27:04,568 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190
2024-10-31 02:27:04,575 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/17f393eb-a838-4636-ab77-9a70aa26bcbe
2024-10-31 02:27:04,581 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:27:04,581 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1
2024-10-31 02:27:04,590 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190
2024-10-31 02:27:04,602 - INFO - Verified VN network id 9 for VN 8eb606d6-b41d-41c5-bdf3-36900e7961a1
2024-10-31 02:27:04,602 - INFO - Verifications in API Server for VN ctest-vn-45568094 passed
2024-10-31 02:27:04,602 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1
2024-10-31 02:27:04,619 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190
2024-10-31 02:27:04,626 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190
2024-10-31 02:27:04,632 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/17f393eb-a838-4636-ab77-9a70aa26bcbe
2024-10-31 02:27:04,645 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73126821', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10283414318361690565', 'uuid-lslong': '13687343684855095713'}, 'enable': 'true', 'created': '2024-10-31T02:27:02', 'last-modified': '2024-10-31T02:27:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401421'}
2024-10-31 02:27:04,651 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:27:04,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45568094 passed
2024-10-31 02:27:04,651 - DEBUG - ====Verifying policy data for ctest-vn-45568094 in API_Server ======
2024-10-31 02:27:04,651 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-31 02:27:04,656 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013
2024-10-31 02:27:04,668 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890
2024-10-31 02:27:04,737 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1
2024-10-31 02:27:04,745 - DEBUG - ==>Verifying data for policy with id: 61e24bbd-f223-4316-ab2b-838f21fbb91e, fqn: ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706']
2024-10-31 02:27:04,745 - INFO - VN ctest-vn-45568094 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:27:04,745 - DEBUG - Verifying the vn in opserver
2024-10-31 02:27:04,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094 virtual network link through opserver 10.0.0.29
2024-10-31 02:27:04,745 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-31 02:27:04,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094?flat'}
2024-10-31 02:27:04,759 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094 is found in opserver
2024-10-31 02:27:04,774 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:27:04,781 - DEBUG - VRF ids for VN ctest-vn-45568094: {}
2024-10-31 02:27:04,840 - DEBUG - Services list from nova: [