2024-09-17 15:04:27,670 - INFO - Domain Default found not creating
2024-09-17 15:04:27,899 - INFO - Project ctest-TestBasicPolicy-58127057 not found, creating it
2024-09-17 15:04:28,459 - INFO - Created Project:ctest-TestBasicPolicy-58127057, ID : fb2d630a-1fff-46bd-afa8-4e58803b0585
2024-09-17 15:04:30,167 - INFO - ================================================================================
2024-09-17 15:04:30,167 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 15:04:30,167 - 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-09-17 15:04:30,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.6': '0'}} with
2024-09-17 15:04:30,427 - INFO - Initial checks done. Running the testcase now
2024-09-17 15:04:30,427 - INFO -
2024-09-17 15:04:31,088 - DEBUG - Response for create_network : {'network': {'id': '842a66d3-b353-47ce-a53e-51288068b7dd', 'name': 'ctest-vn-87107849', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-87107849'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 15:04:31,350 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cefd9dbd-2400-4f83-b2d4-c427f05864cb', 'name': '', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'network_id': '842a66d3-b353-47ce-a53e-51288068b7dd', 'ip_version': 4, 'cidr': '168.171.243.64/26', 'allocation_pools': [{'start': '168.171.243.66', 'end': '168.171.243.126'}], 'gateway_ip': '168.171.243.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.171.243.66', 'tags': [], 'project_id': 'fb2d630a1fff46bdafa84e58803b0585'}}
2024-09-17 15:04:31,374 - INFO - Created VN ctest-vn-87107849
2024-09-17 15:04:31,434 - DEBUG - VN ctest-vn-87107849 UUID is 842a66d3-b353-47ce-a53e-51288068b7dd
2024-09-17 15:04:31,828 - DEBUG - Response for create_network : {'network': {'id': 'dd1285b8-ec83-4869-9d86-e86033c1249c', 'name': 'ctest-vn-35594855', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-35594855'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 15:04:32,066 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ab63c71-38ae-474b-9024-754961481907', 'name': '', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'network_id': 'dd1285b8-ec83-4869-9d86-e86033c1249c', 'ip_version': 4, 'cidr': '120.77.206.192/26', 'allocation_pools': [{'start': '120.77.206.194', 'end': '120.77.206.254'}], 'gateway_ip': '120.77.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.77.206.194', 'tags': [], 'project_id': 'fb2d630a1fff46bdafa84e58803b0585'}}
2024-09-17 15:04:32,086 - INFO - Created VN ctest-vn-35594855
2024-09-17 15:04:32,146 - DEBUG - VN ctest-vn-35594855 UUID is dd1285b8-ec83-4869-9d86-e86033c1249c
2024-09-17 15:04:32,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849, 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-58127057:ctest-vn-35594855, 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-09-17 15:04:32,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '842a66d3-b353-47ce-a53e-51288068b7dd', 'name': 'ctest-vn-87107849', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cefd9dbd-2400-4f83-b2d4-c427f05864cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-87107849'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558']], 'subnet_ipam': [{'subnet_cidr': '168.171.243.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 15:04:32,856 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd1285b8-ec83-4869-9d86-e86033c1249c', 'name': 'ctest-vn-35594855', 'tenant_id': 'fb2d630a1fff46bdafa84e58803b0585', 'project_id': 'fb2d630a1fff46bdafa84e58803b0585', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ab63c71-38ae-474b-9024-754961481907'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-vn-35594855'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558']], 'subnet_ipam': [{'subnet_cidr': '120.77.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 15:04:33,022 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 15:04:33,325 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 15:04:33,360 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21
2024-09-17 15:04:33,375 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585
2024-09-17 15:04:33,459 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd
2024-09-17 15:04:33,475 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd
2024-09-17 15:04:33,490 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55
2024-09-17 15:04:33,501 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55
2024-09-17 15:04:33,512 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8fb5f1a6-d4c0-499a-b4ff-3f45acc2bf54
2024-09-17 15:04:33,520 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 15:04:33,520 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd
2024-09-17 15:04:33,539 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55
2024-09-17 15:04:33,563 - INFO - Verified VN network id 8 for VN 842a66d3-b353-47ce-a53e-51288068b7dd
2024-09-17 15:04:33,563 - INFO - Verifications in API Server for VN ctest-vn-87107849 passed
2024-09-17 15:04:33,564 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd
2024-09-17 15:04:33,583 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55
2024-09-17 15:04:33,593 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fdf532e9-0186-4005-b647-9874ba9e3e55
2024-09-17 15:04:33,601 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8fb5f1a6-d4c0-499a-b4ff-3f45acc2bf54
2024-09-17 15:04:33,615 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58127057', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9523537421461047246', 'uuid-lslong': '11907043699209058269'}, 'enable': 'true', 'created': '2024-09-17T15:04:31', 'last-modified': '2024-09-17T15:04:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035380'}
2024-09-17 15:04:33,623 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 15:04:33,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87107849 passed
2024-09-17 15:04:33,623 - DEBUG - ====Verifying policy data for ctest-vn-87107849 in API_Server ======
2024-09-17 15:04:33,624 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 15:04:33,630 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21
2024-09-17 15:04:33,644 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585
2024-09-17 15:04:33,731 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/842a66d3-b353-47ce-a53e-51288068b7dd
2024-09-17 15:04:33,746 - DEBUG - ==>Verifying data for policy with id: 8401cd9d-16bc-46f2-9c34-a4123767b81c, fqn: ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558']
2024-09-17 15:04:33,746 - INFO - VN ctest-vn-87107849 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 15:04:33,746 - DEBUG - Verifying the vn in opserver
2024-09-17 15:04:33,746 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849 virtual network link through opserver 10.0.0.41
2024-09-17 15:04:33,746 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-17 15:04:34,045 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-17 15:04:34,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849?flat'}
2024-09-17 15:04:34,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-87107849 is found in opserver
2024-09-17 15:04:34,125 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 15:04:34,130 - DEBUG - VRF ids for VN ctest-vn-87107849: {}
2024-09-17 15:04:34,130 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 15:04:34,136 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21
2024-09-17 15:04:34,151 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585
2024-09-17 15:04:34,251 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c
2024-09-17 15:04:34,269 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c
2024-09-17 15:04:34,283 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288
2024-09-17 15:04:34,293 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288
2024-09-17 15:04:34,304 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c8dab2ef-f1a8-4d2a-97d9-bb91d6d014ef
2024-09-17 15:04:34,314 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 15:04:34,314 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c
2024-09-17 15:04:34,330 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288
2024-09-17 15:04:34,356 - INFO - Verified VN network id 9 for VN dd1285b8-ec83-4869-9d86-e86033c1249c
2024-09-17 15:04:34,356 - INFO - Verifications in API Server for VN ctest-vn-35594855 passed
2024-09-17 15:04:34,356 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c
2024-09-17 15:04:34,371 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288
2024-09-17 15:04:34,381 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3838756d-8804-4bf3-968b-79d03a237288
2024-09-17 15:04:34,391 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c8dab2ef-f1a8-4d2a-97d9-bb91d6d014ef
2024-09-17 15:04:34,407 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58127057', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15929941861251369065', 'uuid-lslong': '11351015410716714140'}, 'enable': 'true', 'created': '2024-09-17T15:04:31', 'last-modified': '2024-09-17T15:04:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.576384'}
2024-09-17 15:04:34,414 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 15:04:34,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35594855 passed
2024-09-17 15:04:34,414 - DEBUG - ====Verifying policy data for ctest-vn-35594855 in API_Server ======
2024-09-17 15:04:34,414 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 15:04:34,421 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7da23f2-2d22-486d-a3cd-fc48f5040d21
2024-09-17 15:04:34,434 - DEBUG - Requesting: http://10.0.0.41:8082/project/fb2d630a-1fff-46bd-afa8-4e58803b0585
2024-09-17 15:04:34,514 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/dd1285b8-ec83-4869-9d86-e86033c1249c
2024-09-17 15:04:34,528 - DEBUG - ==>Verifying data for policy with id: 8401cd9d-16bc-46f2-9c34-a4123767b81c, fqn: ['default-domain', 'ctest-TestBasicPolicy-58127057', 'ctest-policy-allow-all-57029558']
2024-09-17 15:04:34,528 - INFO - VN ctest-vn-35594855 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 15:04:34,528 - DEBUG - Verifying the vn in opserver
2024-09-17 15:04:34,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855 virtual network link through opserver 10.0.0.41
2024-09-17 15:04:34,528 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-17 15:04:34,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855?flat'}
2024-09-17 15:04:34,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58127057:ctest-vn-35594855 is found in opserver
2024-09-17 15:04:34,552 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 15:04:34,559 - DEBUG - VRF ids for VN ctest-vn-35594855: {}
2024-09-17 15:04:34,627 - DEBUG - Services list from nova: [