2024-09-12 19:12:21,634 - INFO - Domain Default found not creating
2024-09-12 19:12:21,960 - INFO - Project ctest-TestBasicPolicy-76004063 not found, creating it
2024-09-12 19:12:22,795 - INFO - Created Project:ctest-TestBasicPolicy-76004063, ID : a9691ed1-812b-4e6f-aa68-5c47b5e543ae
2024-09-12 19:12:25,280 - INFO - ================================================================================
2024-09-12 19:12:25,281 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-12 19:12:25,281 - 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-12 19:12:25,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.12': '0'}} with
2024-09-12 19:12:25,611 - INFO - Initial checks done. Running the testcase now
2024-09-12 19:12:25,612 - INFO -
2024-09-12 19:12:26,609 - DEBUG - Response for create_network : {'network': {'id': 'f5c9c2f8-01b4-4d12-b189-3e29904bbefa', 'name': 'ctest-vn-97824834', 'tenant_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'project_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-vn-97824834'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 19:12:26,810 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1a46c23-b92a-40b7-ac47-00888d9714da', 'name': '', 'tenant_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'network_id': 'f5c9c2f8-01b4-4d12-b189-3e29904bbefa', 'ip_version': 4, 'cidr': '189.72.171.128/26', 'allocation_pools': [{'start': '189.72.171.130', 'end': '189.72.171.190'}], 'gateway_ip': '189.72.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.72.171.130', 'tags': [], 'project_id': 'a9691ed1812b4e6faa685c47b5e543ae'}}
2024-09-12 19:12:26,830 - INFO - Created VN ctest-vn-97824834
2024-09-12 19:12:26,890 - DEBUG - VN ctest-vn-97824834 UUID is f5c9c2f8-01b4-4d12-b189-3e29904bbefa
2024-09-12 19:12:27,586 - DEBUG - Response for create_network : {'network': {'id': '2df75181-7816-49f5-b689-55da9383bcad', 'name': 'ctest-vn-06951464', 'tenant_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'project_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-vn-06951464'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 19:12:27,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '92c14059-fb41-46b5-b761-39b26cefb845', 'name': '', 'tenant_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'network_id': '2df75181-7816-49f5-b689-55da9383bcad', 'ip_version': 4, 'cidr': '153.185.100.64/26', 'allocation_pools': [{'start': '153.185.100.66', 'end': '153.185.100.126'}], 'gateway_ip': '153.185.100.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.185.100.66', 'tags': [], 'project_id': 'a9691ed1812b4e6faa685c47b5e543ae'}}
2024-09-12 19:12:27,977 - INFO - Created VN ctest-vn-06951464
2024-09-12 19:12:28,063 - DEBUG - VN ctest-vn-06951464 UUID is 2df75181-7816-49f5-b689-55da9383bcad
2024-09-12 19:12:28,293 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-97824834, 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-76004063:ctest-vn-06951464, 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-12 19:12:28,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5c9c2f8-01b4-4d12-b189-3e29904bbefa', 'name': 'ctest-vn-97824834', 'tenant_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'project_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1a46c23-b92a-40b7-ac47-00888d9714da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-vn-97824834'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-policy-allow-all-71377521']], 'subnet_ipam': [{'subnet_cidr': '189.72.171.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 19:12:29,266 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2df75181-7816-49f5-b689-55da9383bcad', 'name': 'ctest-vn-06951464', 'tenant_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'project_id': 'a9691ed1812b4e6faa685c47b5e543ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92c14059-fb41-46b5-b761-39b26cefb845'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-vn-06951464'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-policy-allow-all-71377521']], 'subnet_ipam': [{'subnet_cidr': '153.185.100.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 19:12:29,495 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-12 19:12:29,853 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-12 19:12:29,911 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1194b7e-72dc-4862-8077-340f353bdbff
2024-09-12 19:12:29,959 - DEBUG - Requesting: http://10.0.0.28:8082/project/a9691ed1-812b-4e6f-aa68-5c47b5e543ae
2024-09-12 19:12:30,069 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f5c9c2f8-01b4-4d12-b189-3e29904bbefa
2024-09-12 19:12:30,117 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f5c9c2f8-01b4-4d12-b189-3e29904bbefa
2024-09-12 19:12:30,170 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/05e4c012-9e87-43d0-a657-65981e57c278
2024-09-12 19:12:30,190 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/05e4c012-9e87-43d0-a657-65981e57c278
2024-09-12 19:12:30,216 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/ff036def-997e-4043-8795-2a34260225ae
2024-09-12 19:12:30,239 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 19:12:30,240 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f5c9c2f8-01b4-4d12-b189-3e29904bbefa
2024-09-12 19:12:30,275 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/05e4c012-9e87-43d0-a657-65981e57c278
2024-09-12 19:12:30,329 - INFO - Verified VN network id 8 for VN f5c9c2f8-01b4-4d12-b189-3e29904bbefa
2024-09-12 19:12:30,329 - INFO - Verifications in API Server for VN ctest-vn-97824834 passed
2024-09-12 19:12:30,330 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f5c9c2f8-01b4-4d12-b189-3e29904bbefa
2024-09-12 19:12:30,369 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/05e4c012-9e87-43d0-a657-65981e57c278
2024-09-12 19:12:30,396 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/05e4c012-9e87-43d0-a657-65981e57c278
2024-09-12 19:12:30,423 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/ff036def-997e-4043-8795-2a34260225ae
2024-09-12 19:12:30,453 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-97824834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76004063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17710901380047457554', 'uuid-lslong': '12792824564758068986'}, 'enable': 'true', 'created': '2024-09-12T19:12:26', 'last-modified': '2024-09-12T19:12:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.713846'}
2024-09-12 19:12:30,468 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 19:12:30,469 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97824834 passed
2024-09-12 19:12:30,469 - DEBUG - ====Verifying policy data for ctest-vn-97824834 in API_Server ======
2024-09-12 19:12:30,469 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-12 19:12:30,483 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1194b7e-72dc-4862-8077-340f353bdbff
2024-09-12 19:12:30,519 - DEBUG - Requesting: http://10.0.0.28:8082/project/a9691ed1-812b-4e6f-aa68-5c47b5e543ae
2024-09-12 19:12:30,634 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f5c9c2f8-01b4-4d12-b189-3e29904bbefa
2024-09-12 19:12:30,660 - DEBUG - ==>Verifying data for policy with id: 4533627f-9ecb-4643-9b51-77335dcab01c, fqn: ['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-policy-allow-all-71377521']
2024-09-12 19:12:30,660 - INFO - VN ctest-vn-97824834 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 19:12:30,660 - DEBUG - Verifying the vn in opserver
2024-09-12 19:12:30,660 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-97824834 virtual network link through opserver 10.0.0.28
2024-09-12 19:12:30,661 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-12 19:12:31,015 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-12 19:12:31,138 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-97824834', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-97824834?flat'}
2024-09-12 19:12:31,138 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-97824834 is found in opserver
2024-09-12 19:12:31,168 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 19:12:31,186 - DEBUG - VRF ids for VN ctest-vn-97824834: {}
2024-09-12 19:12:31,186 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-12 19:12:31,205 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1194b7e-72dc-4862-8077-340f353bdbff
2024-09-12 19:12:31,247 - DEBUG - Requesting: http://10.0.0.28:8082/project/a9691ed1-812b-4e6f-aa68-5c47b5e543ae
2024-09-12 19:12:31,406 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2df75181-7816-49f5-b689-55da9383bcad
2024-09-12 19:12:31,446 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2df75181-7816-49f5-b689-55da9383bcad
2024-09-12 19:12:31,483 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/1a0c7f20-3ed4-4062-b191-91fa046bf8c9
2024-09-12 19:12:31,509 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/1a0c7f20-3ed4-4062-b191-91fa046bf8c9
2024-09-12 19:12:31,538 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/411f3419-7d2f-4638-83f8-dd63c5ecd061
2024-09-12 19:12:31,559 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 19:12:31,560 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2df75181-7816-49f5-b689-55da9383bcad
2024-09-12 19:12:31,585 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/1a0c7f20-3ed4-4062-b191-91fa046bf8c9
2024-09-12 19:12:31,612 - INFO - Verified VN network id 9 for VN 2df75181-7816-49f5-b689-55da9383bcad
2024-09-12 19:12:31,612 - INFO - Verifications in API Server for VN ctest-vn-06951464 passed
2024-09-12 19:12:31,612 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2df75181-7816-49f5-b689-55da9383bcad
2024-09-12 19:12:31,637 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/1a0c7f20-3ed4-4062-b191-91fa046bf8c9
2024-09-12 19:12:31,655 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/1a0c7f20-3ed4-4062-b191-91fa046bf8c9
2024-09-12 19:12:31,671 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/411f3419-7d2f-4638-83f8-dd63c5ecd061
2024-09-12 19:12:31,704 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-06951464', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76004063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3312205667461646837', 'uuid-lslong': '13153138583978359981'}, 'enable': 'true', 'created': '2024-09-12T19:12:27', 'last-modified': '2024-09-12T19:12:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.508617'}
2024-09-12 19:12:31,726 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 19:12:31,726 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06951464 passed
2024-09-12 19:12:31,727 - DEBUG - ====Verifying policy data for ctest-vn-06951464 in API_Server ======
2024-09-12 19:12:31,727 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-12 19:12:31,742 - DEBUG - Requesting: http://10.0.0.28:8082/domain/d1194b7e-72dc-4862-8077-340f353bdbff
2024-09-12 19:12:31,776 - DEBUG - Requesting: http://10.0.0.28:8082/project/a9691ed1-812b-4e6f-aa68-5c47b5e543ae
2024-09-12 19:12:31,936 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/2df75181-7816-49f5-b689-55da9383bcad
2024-09-12 19:12:31,968 - DEBUG - ==>Verifying data for policy with id: 4533627f-9ecb-4643-9b51-77335dcab01c, fqn: ['default-domain', 'ctest-TestBasicPolicy-76004063', 'ctest-policy-allow-all-71377521']
2024-09-12 19:12:31,968 - INFO - VN ctest-vn-06951464 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 19:12:31,968 - DEBUG - Verifying the vn in opserver
2024-09-12 19:12:31,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-06951464 virtual network link through opserver 10.0.0.28
2024-09-12 19:12:31,968 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-12 19:12:31,990 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-06951464', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-06951464?flat'}
2024-09-12 19:12:31,990 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76004063:ctest-vn-06951464 is found in opserver
2024-09-12 19:12:32,018 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 19:12:32,030 - DEBUG - VRF ids for VN ctest-vn-06951464: {}
2024-09-12 19:12:32,148 - DEBUG - Services list from nova: [