2025-07-17 11:36:51,278 - INFO - Domain Default found not creating
2025-07-17 11:36:51,457 - INFO - Project ctest-TestBasicPolicy-39367093 not found, creating it
2025-07-17 11:36:51,978 - INFO - Created Project:ctest-TestBasicPolicy-39367093, ID : d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3
2025-07-17 11:36:53,559 - INFO - ================================================================================
2025-07-17 11:36:53,560 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 11:36:53,560 - 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-07-17 11:36:53,827 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.14': '0'}} with
2025-07-17 11:36:53,827 - INFO - Initial checks done. Running the testcase now
2025-07-17 11:36:53,827 - INFO -
2025-07-17 11:36:54,423 - DEBUG - Response for create_network : {'network': {'id': 'd8e30d82-c90e-45fd-9049-784afee98a94', 'name': 'ctest-vn-60842628', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-60842628'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:36:54,633 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd84f7e34-6fb0-41af-979a-15e7666dd507', 'name': '', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'network_id': 'd8e30d82-c90e-45fd-9049-784afee98a94', 'ip_version': 4, 'cidr': '216.38.76.0/26', 'allocation_pools': [{'start': '216.38.76.2', 'end': '216.38.76.62'}], 'gateway_ip': '216.38.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.38.76.2', 'tags': [], 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3'}}
2025-07-17 11:36:54,652 - INFO - Created VN ctest-vn-60842628
2025-07-17 11:36:54,704 - DEBUG - VN ctest-vn-60842628 UUID is d8e30d82-c90e-45fd-9049-784afee98a94
2025-07-17 11:36:55,015 - DEBUG - Response for create_network : {'network': {'id': '0c29a07b-1f59-4622-a7be-b5c462d065f3', 'name': 'ctest-vn-75614471', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-75614471'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:36:55,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '3931b73a-7fe6-4430-a440-c85369e61c86', 'name': '', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'network_id': '0c29a07b-1f59-4622-a7be-b5c462d065f3', 'ip_version': 4, 'cidr': '188.242.232.192/26', 'allocation_pools': [{'start': '188.242.232.194', 'end': '188.242.232.254'}], 'gateway_ip': '188.242.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.242.232.194', 'tags': [], 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3'}}
2025-07-17 11:36:55,232 - INFO - Created VN ctest-vn-75614471
2025-07-17 11:36:55,288 - DEBUG - VN ctest-vn-75614471 UUID is 0c29a07b-1f59-4622-a7be-b5c462d065f3
2025-07-17 11:36:55,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628, 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-39367093:ctest-vn-75614471, 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-07-17 11:36:55,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8e30d82-c90e-45fd-9049-784afee98a94', 'name': 'ctest-vn-60842628', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d84f7e34-6fb0-41af-979a-15e7666dd507'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-60842628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976']], 'subnet_ipam': [{'subnet_cidr': '216.38.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:36:55,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c29a07b-1f59-4622-a7be-b5c462d065f3', 'name': 'ctest-vn-75614471', 'tenant_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'project_id': 'd19b91dbd4fa4d4e8f02e4c417ad2ff3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3931b73a-7fe6-4430-a440-c85369e61c86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-vn-75614471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976']], 'subnet_ipam': [{'subnet_cidr': '188.242.232.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 11:36:56,152 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-17 11:36:56,464 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-17 11:36:56,501 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368
2025-07-17 11:36:56,518 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3
2025-07-17 11:36:56,599 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94
2025-07-17 11:36:56,612 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94
2025-07-17 11:36:56,624 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9
2025-07-17 11:36:56,634 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9
2025-07-17 11:36:56,643 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/322a008a-b0fc-41f9-9338-62bb06c3276c
2025-07-17 11:36:56,654 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 11:36:56,654 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94
2025-07-17 11:36:56,666 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9
2025-07-17 11:36:56,687 - INFO - Verified VN network id 9 for VN d8e30d82-c90e-45fd-9049-784afee98a94
2025-07-17 11:36:56,687 - INFO - Verifications in API Server for VN ctest-vn-60842628 passed
2025-07-17 11:36:56,687 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94
2025-07-17 11:36:56,701 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9
2025-07-17 11:36:56,711 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/30533237-2dac-4093-8bf6-d8f03efd87f9
2025-07-17 11:36:56,724 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/322a008a-b0fc-41f9-9338-62bb06c3276c
2025-07-17 11:36:56,745 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39367093', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15628349987275818493', 'uuid-lslong': '10396973478261131924'}, 'enable': 'true', 'created': '2025-07-17T11:36:54', 'last-modified': '2025-07-17T11:36:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040496'}
2025-07-17 11:36:56,753 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 11:36:56,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60842628 passed
2025-07-17 11:36:56,754 - DEBUG - ====Verifying policy data for ctest-vn-60842628 in API_Server ======
2025-07-17 11:36:56,754 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-17 11:36:56,762 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368
2025-07-17 11:36:56,780 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3
2025-07-17 11:36:56,859 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/d8e30d82-c90e-45fd-9049-784afee98a94
2025-07-17 11:36:56,873 - DEBUG - ==>Verifying data for policy with id: 67c4d29f-a934-48d6-b7fc-7a4414133384, fqn: ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976']
2025-07-17 11:36:56,873 - INFO - VN ctest-vn-60842628 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 11:36:56,873 - DEBUG - Verifying the vn in opserver
2025-07-17 11:36:56,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628 virtual network link through opserver 10.0.0.137
2025-07-17 11:36:56,873 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-17 11:36:57,170 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-17 11:36:57,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628?flat'}
2025-07-17 11:36:57,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-60842628 is found in opserver
2025-07-17 11:36:57,258 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 11:36:57,265 - DEBUG - VRF ids for VN ctest-vn-60842628: {}
2025-07-17 11:36:57,265 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-17 11:36:57,275 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368
2025-07-17 11:36:57,293 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3
2025-07-17 11:36:57,372 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3
2025-07-17 11:36:57,386 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3
2025-07-17 11:36:57,397 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12
2025-07-17 11:36:57,406 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12
2025-07-17 11:36:57,415 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4849e537-263a-4e83-b12c-862c11ab1c39
2025-07-17 11:36:57,423 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 11:36:57,423 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3
2025-07-17 11:36:57,436 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12
2025-07-17 11:36:57,454 - INFO - Verified VN network id 10 for VN 0c29a07b-1f59-4622-a7be-b5c462d065f3
2025-07-17 11:36:57,454 - INFO - Verifications in API Server for VN ctest-vn-75614471 passed
2025-07-17 11:36:57,454 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3
2025-07-17 11:36:57,465 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12
2025-07-17 11:36:57,474 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/316761cd-ae35-48eb-95f1-af79c581bc12
2025-07-17 11:36:57,483 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/4849e537-263a-4e83-b12c-862c11ab1c39
2025-07-17 11:36:57,499 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39367093', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '876408053167638050', 'uuid-lslong': '12087298304985032179'}, 'enable': 'true', 'created': '2025-07-17T11:36:54', 'last-modified': '2025-07-17T11:36:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.532830'}
2025-07-17 11:36:57,507 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 11:36:57,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75614471 passed
2025-07-17 11:36:57,507 - DEBUG - ====Verifying policy data for ctest-vn-75614471 in API_Server ======
2025-07-17 11:36:57,507 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-07-17 11:36:57,514 - DEBUG - Requesting: http://10.0.0.137:8082/domain/0ed3b328-fb51-4348-97b2-19c92d82d368
2025-07-17 11:36:57,528 - DEBUG - Requesting: http://10.0.0.137:8082/project/d19b91db-d4fa-4d4e-8f02-e4c417ad2ff3
2025-07-17 11:36:57,610 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/0c29a07b-1f59-4622-a7be-b5c462d065f3
2025-07-17 11:36:57,621 - DEBUG - ==>Verifying data for policy with id: 67c4d29f-a934-48d6-b7fc-7a4414133384, fqn: ['default-domain', 'ctest-TestBasicPolicy-39367093', 'ctest-policy-allow-all-01069976']
2025-07-17 11:36:57,621 - INFO - VN ctest-vn-75614471 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 11:36:57,621 - DEBUG - Verifying the vn in opserver
2025-07-17 11:36:57,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471 virtual network link through opserver 10.0.0.137
2025-07-17 11:36:57,621 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-07-17 11:36:57,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471?flat'}
2025-07-17 11:36:57,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39367093:ctest-vn-75614471 is found in opserver
2025-07-17 11:36:57,647 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 11:36:57,653 - DEBUG - VRF ids for VN ctest-vn-75614471: {}
2025-07-17 11:36:57,729 - DEBUG - Services list from nova: [