2025-04-16 22:04:01,464 - INFO - Domain Default found not creating
2025-04-16 22:04:01,640 - INFO - Project ctest-TestBasicPolicy-85807495 not found, creating it
2025-04-16 22:04:02,173 - INFO - Created Project:ctest-TestBasicPolicy-85807495, ID : a184999f-afc7-49e5-8005-90a275dcb1d0
2025-04-16 22:04:03,799 - INFO - ================================================================================
2025-04-16 22:04:03,799 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-16 22:04:03,799 - 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
2025-04-16 22:04:04,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-04-16 22:04:04,060 - INFO - Initial checks done. Running the testcase now
2025-04-16 22:04:04,060 - INFO -
2025-04-16 22:04:04,624 - DEBUG - Response for create_network : {'network': {'id': '61a65f73-153f-43d7-b7b8-bda7dc8d79d5', 'name': 'ctest-vn-94099487', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-94099487'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 22:04:04,828 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6e06273-eed2-4920-9890-c35c61f4c76a', 'name': '', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'network_id': '61a65f73-153f-43d7-b7b8-bda7dc8d79d5', 'ip_version': 4, 'cidr': '175.166.235.64/26', 'allocation_pools': [{'start': '175.166.235.66', 'end': '175.166.235.126'}], 'gateway_ip': '175.166.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.166.235.66', 'tags': [], 'project_id': 'a184999fafc749e5800590a275dcb1d0'}}
2025-04-16 22:04:04,849 - INFO - Created VN ctest-vn-94099487
2025-04-16 22:04:04,908 - DEBUG - VN ctest-vn-94099487 UUID is 61a65f73-153f-43d7-b7b8-bda7dc8d79d5
2025-04-16 22:04:05,218 - DEBUG - Response for create_network : {'network': {'id': 'fba6661f-b0b0-41e9-9bca-1ac0ecdd592e', 'name': 'ctest-vn-58396730', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-58396730'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 22:04:05,465 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bef35ac-205e-4273-b7b4-4699dee3d119', 'name': '', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'network_id': 'fba6661f-b0b0-41e9-9bca-1ac0ecdd592e', 'ip_version': 4, 'cidr': '103.163.237.128/26', 'allocation_pools': [{'start': '103.163.237.130', 'end': '103.163.237.190'}], 'gateway_ip': '103.163.237.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.163.237.130', 'tags': [], 'project_id': 'a184999fafc749e5800590a275dcb1d0'}}
2025-04-16 22:04:05,486 - INFO - Created VN ctest-vn-58396730
2025-04-16 22:04:05,540 - DEBUG - VN ctest-vn-58396730 UUID is fba6661f-b0b0-41e9-9bca-1ac0ecdd592e
2025-04-16 22:04:05,668 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487, 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-85807495:ctest-vn-58396730, 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]
2025-04-16 22:04:05,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61a65f73-153f-43d7-b7b8-bda7dc8d79d5', 'name': 'ctest-vn-94099487', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6e06273-eed2-4920-9890-c35c61f4c76a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-94099487'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038']], 'subnet_ipam': [{'subnet_cidr': '175.166.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 22:04:06,228 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fba6661f-b0b0-41e9-9bca-1ac0ecdd592e', 'name': 'ctest-vn-58396730', 'tenant_id': 'a184999fafc749e5800590a275dcb1d0', 'project_id': 'a184999fafc749e5800590a275dcb1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0bef35ac-205e-4273-b7b4-4699dee3d119'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-vn-58396730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038']], 'subnet_ipam': [{'subnet_cidr': '103.163.237.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 22:04:06,396 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-16 22:04:06,711 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-16 22:04:06,740 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7
2025-04-16 22:04:06,755 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0
2025-04-16 22:04:06,834 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5
2025-04-16 22:04:06,847 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5
2025-04-16 22:04:06,861 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273
2025-04-16 22:04:06,871 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273
2025-04-16 22:04:06,880 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fb0098eb-7f7d-4658-8d13-e86692a2bc58
2025-04-16 22:04:06,888 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 22:04:06,888 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5
2025-04-16 22:04:06,901 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273
2025-04-16 22:04:06,918 - INFO - Verified VN network id 9 for VN 61a65f73-153f-43d7-b7b8-bda7dc8d79d5
2025-04-16 22:04:06,918 - INFO - Verifications in API Server for VN ctest-vn-94099487 passed
2025-04-16 22:04:06,918 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5
2025-04-16 22:04:06,929 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273
2025-04-16 22:04:06,937 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08e19a44-51a3-406c-9794-5178a2a1d273
2025-04-16 22:04:06,946 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fb0098eb-7f7d-4658-8d13-e86692a2bc58
2025-04-16 22:04:06,960 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85807495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7036416415695324119', 'uuid-lslong': '13238539633313020373'}, 'enable': 'true', 'created': '2025-04-16T22:04:04', 'last-modified': '2025-04-16T22:04:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999923'}
2025-04-16 22:04:06,967 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 22:04:06,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94099487 passed
2025-04-16 22:04:06,968 - DEBUG - ====Verifying policy data for ctest-vn-94099487 in API_Server ======
2025-04-16 22:04:06,968 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-16 22:04:06,974 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7
2025-04-16 22:04:06,989 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0
2025-04-16 22:04:07,073 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61a65f73-153f-43d7-b7b8-bda7dc8d79d5
2025-04-16 22:04:07,085 - DEBUG - ==>Verifying data for policy with id: 4735260e-d063-4b72-94d7-12f39fb5c6f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038']
2025-04-16 22:04:07,085 - INFO - VN ctest-vn-94099487 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 22:04:07,085 - DEBUG - Verifying the vn in opserver
2025-04-16 22:04:07,086 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487 virtual network link through opserver 10.0.0.22
2025-04-16 22:04:07,086 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-16 22:04:07,387 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-16 22:04:07,443 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487?flat'}
2025-04-16 22:04:07,443 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-94099487 is found in opserver
2025-04-16 22:04:07,456 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 22:04:07,462 - DEBUG - VRF ids for VN ctest-vn-94099487: {}
2025-04-16 22:04:07,462 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-16 22:04:07,468 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7
2025-04-16 22:04:07,481 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0
2025-04-16 22:04:07,557 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e
2025-04-16 22:04:07,569 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e
2025-04-16 22:04:07,580 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389
2025-04-16 22:04:07,589 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389
2025-04-16 22:04:07,597 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/58234395-9cd0-44be-9f40-ba9a3229ff3e
2025-04-16 22:04:07,604 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 22:04:07,604 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e
2025-04-16 22:04:07,617 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389
2025-04-16 22:04:07,633 - INFO - Verified VN network id 10 for VN fba6661f-b0b0-41e9-9bca-1ac0ecdd592e
2025-04-16 22:04:07,633 - INFO - Verifications in API Server for VN ctest-vn-58396730 passed
2025-04-16 22:04:07,633 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e
2025-04-16 22:04:07,696 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389
2025-04-16 22:04:07,704 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/442d3004-6e66-4a64-8f08-1166b0634389
2025-04-16 22:04:07,712 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/58234395-9cd0-44be-9f40-ba9a3229ff3e
2025-04-16 22:04:07,727 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85807495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18133293235948241385', 'uuid-lslong': '11225814437084354862'}, 'enable': 'true', 'created': '2025-04-16T22:04:05', 'last-modified': '2025-04-16T22:04:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.526740'}
2025-04-16 22:04:07,734 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 22:04:07,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58396730 passed
2025-04-16 22:04:07,734 - DEBUG - ====Verifying policy data for ctest-vn-58396730 in API_Server ======
2025-04-16 22:04:07,734 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-16 22:04:07,740 - DEBUG - Requesting: http://10.0.0.22:8082/domain/858be3c2-28ce-4982-8697-08225f860df7
2025-04-16 22:04:07,754 - DEBUG - Requesting: http://10.0.0.22:8082/project/a184999f-afc7-49e5-8005-90a275dcb1d0
2025-04-16 22:04:07,830 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fba6661f-b0b0-41e9-9bca-1ac0ecdd592e
2025-04-16 22:04:07,841 - DEBUG - ==>Verifying data for policy with id: 4735260e-d063-4b72-94d7-12f39fb5c6f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-85807495', 'ctest-policy-allow-all-38357038']
2025-04-16 22:04:07,841 - INFO - VN ctest-vn-58396730 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 22:04:07,841 - DEBUG - Verifying the vn in opserver
2025-04-16 22:04:07,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730 virtual network link through opserver 10.0.0.22
2025-04-16 22:04:07,841 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-16 22:04:07,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730?flat'}
2025-04-16 22:04:07,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85807495:ctest-vn-58396730 is found in opserver
2025-04-16 22:04:07,869 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 22:04:07,874 - DEBUG - VRF ids for VN ctest-vn-58396730: {}
2025-04-16 22:04:07,934 - DEBUG - Services list from nova: [