2026-01-12 21:48:01,932 - INFO - Domain Default found not creating
2026-01-12 21:48:02,088 - INFO - Project ctest-TestBasicPolicy-24966110 not found, creating it
2026-01-12 21:48:02,535 - INFO - Created Project:ctest-TestBasicPolicy-24966110, ID : eed37a64-9331-4dea-b58d-7ff2d17dff2e
2026-01-12 21:48:03,944 - INFO - ================================================================================
2026-01-12 21:48:03,944 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-12 21:48:03,944 - 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
2026-01-12 21:48:04,192 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-01-12 21:48:04,192 - INFO - Initial checks done. Running the testcase now
2026-01-12 21:48:04,193 - INFO -
2026-01-12 21:48:04,709 - DEBUG - Response for create_network : {'network': {'id': '13851f6e-a5a4-4b13-8280-443a95ad96d8', 'name': 'ctest-vn-98628295', 'tenant_id': 'eed37a6493314deab58d7ff2d17dff2e', 'project_id': 'eed37a6493314deab58d7ff2d17dff2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-vn-98628295'], 'port_security_enabled': True, 'description': ''}}
2026-01-12 21:48:04,882 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1b71470-5913-4914-8651-9a85a565c4f6', 'name': '', 'tenant_id': 'eed37a6493314deab58d7ff2d17dff2e', 'network_id': '13851f6e-a5a4-4b13-8280-443a95ad96d8', 'ip_version': 4, 'cidr': '198.239.170.0/26', 'allocation_pools': [{'start': '198.239.170.2', 'end': '198.239.170.62'}], 'gateway_ip': '198.239.170.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.239.170.2', 'tags': [], 'project_id': 'eed37a6493314deab58d7ff2d17dff2e'}}
2026-01-12 21:48:04,899 - INFO - Created VN ctest-vn-98628295
2026-01-12 21:48:04,952 - DEBUG - VN ctest-vn-98628295 UUID is 13851f6e-a5a4-4b13-8280-443a95ad96d8
2026-01-12 21:48:05,279 - DEBUG - Response for create_network : {'network': {'id': '99695d67-7905-458e-92f8-1990e93535b7', 'name': 'ctest-vn-14254926', 'tenant_id': 'eed37a6493314deab58d7ff2d17dff2e', 'project_id': 'eed37a6493314deab58d7ff2d17dff2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-vn-14254926'], 'port_security_enabled': True, 'description': ''}}
2026-01-12 21:48:05,469 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7e6aa3d-a352-4072-997e-414a3b11cf4d', 'name': '', 'tenant_id': 'eed37a6493314deab58d7ff2d17dff2e', 'network_id': '99695d67-7905-458e-92f8-1990e93535b7', 'ip_version': 4, 'cidr': '99.236.112.0/26', 'allocation_pools': [{'start': '99.236.112.2', 'end': '99.236.112.62'}], 'gateway_ip': '99.236.112.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.236.112.2', 'tags': [], 'project_id': 'eed37a6493314deab58d7ff2d17dff2e'}}
2026-01-12 21:48:05,484 - INFO - Created VN ctest-vn-14254926
2026-01-12 21:48:05,540 - DEBUG - VN ctest-vn-14254926 UUID is 99695d67-7905-458e-92f8-1990e93535b7
2026-01-12 21:48:05,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-98628295, 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-24966110:ctest-vn-14254926, 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]
2026-01-12 21:48:05,971 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13851f6e-a5a4-4b13-8280-443a95ad96d8', 'name': 'ctest-vn-98628295', 'tenant_id': 'eed37a6493314deab58d7ff2d17dff2e', 'project_id': 'eed37a6493314deab58d7ff2d17dff2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1b71470-5913-4914-8651-9a85a565c4f6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-vn-98628295'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-policy-allow-all-63268265']], 'subnet_ipam': [{'subnet_cidr': '198.239.170.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-12 21:48:06,228 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99695d67-7905-458e-92f8-1990e93535b7', 'name': 'ctest-vn-14254926', 'tenant_id': 'eed37a6493314deab58d7ff2d17dff2e', 'project_id': 'eed37a6493314deab58d7ff2d17dff2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7e6aa3d-a352-4072-997e-414a3b11cf4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-vn-14254926'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-policy-allow-all-63268265']], 'subnet_ipam': [{'subnet_cidr': '99.236.112.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-12 21:48:06,368 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-12 21:48:06,664 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-12 21:48:06,692 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598
2026-01-12 21:48:06,702 - DEBUG - Requesting: http://10.0.0.22:8082/project/eed37a64-9331-4dea-b58d-7ff2d17dff2e
2026-01-12 21:48:06,770 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13851f6e-a5a4-4b13-8280-443a95ad96d8
2026-01-12 21:48:06,780 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13851f6e-a5a4-4b13-8280-443a95ad96d8
2026-01-12 21:48:06,789 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/285636c6-40c9-4ba1-9d96-171b986e8916
2026-01-12 21:48:06,795 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/285636c6-40c9-4ba1-9d96-171b986e8916
2026-01-12 21:48:06,800 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d4b147f1-434e-4e3a-b5d1-a0e341d2dc09
2026-01-12 21:48:06,805 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-12 21:48:06,806 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13851f6e-a5a4-4b13-8280-443a95ad96d8
2026-01-12 21:48:06,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/285636c6-40c9-4ba1-9d96-171b986e8916
2026-01-12 21:48:06,826 - INFO - Verified VN network id 12 for VN 13851f6e-a5a4-4b13-8280-443a95ad96d8
2026-01-12 21:48:06,826 - INFO - Verifications in API Server for VN ctest-vn-98628295 passed
2026-01-12 21:48:06,826 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13851f6e-a5a4-4b13-8280-443a95ad96d8
2026-01-12 21:48:06,834 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/285636c6-40c9-4ba1-9d96-171b986e8916
2026-01-12 21:48:06,839 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/285636c6-40c9-4ba1-9d96-171b986e8916
2026-01-12 21:48:06,845 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d4b147f1-434e-4e3a-b5d1-a0e341d2dc09
2026-01-12 21:48:06,855 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-98628295', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24966110', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1406565018709019411', 'uuid-lslong': '9403591040359569112'}, 'enable': 'true', 'created': '2026-01-12T21:48:04', 'last-modified': '2026-01-12T21:48:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904577'}
2026-01-12 21:48:06,860 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-12 21:48:06,860 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98628295 passed
2026-01-12 21:48:06,860 - DEBUG - ====Verifying policy data for ctest-vn-98628295 in API_Server ======
2026-01-12 21:48:06,860 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-12 21:48:06,864 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598
2026-01-12 21:48:06,874 - DEBUG - Requesting: http://10.0.0.22:8082/project/eed37a64-9331-4dea-b58d-7ff2d17dff2e
2026-01-12 21:48:06,938 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/13851f6e-a5a4-4b13-8280-443a95ad96d8
2026-01-12 21:48:06,946 - DEBUG - ==>Verifying data for policy with id: 0635012b-73fa-4ba7-90b2-d5801c4ac09f, fqn: ['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-policy-allow-all-63268265']
2026-01-12 21:48:06,946 - INFO - VN ctest-vn-98628295 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-12 21:48:06,946 - DEBUG - Verifying the vn in opserver
2026-01-12 21:48:06,946 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-98628295 virtual network link through opserver 10.0.0.22
2026-01-12 21:48:06,947 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-12 21:48:07,239 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-12 21:48:07,295 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-98628295', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-98628295?flat'}
2026-01-12 21:48:07,296 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-98628295 is found in opserver
2026-01-12 21:48:07,304 - DEBUG - Do not have enough data to verify VN in agent
2026-01-12 21:48:07,308 - DEBUG - VRF ids for VN ctest-vn-98628295: {}
2026-01-12 21:48:07,308 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-12 21:48:07,313 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598
2026-01-12 21:48:07,323 - DEBUG - Requesting: http://10.0.0.22:8082/project/eed37a64-9331-4dea-b58d-7ff2d17dff2e
2026-01-12 21:48:07,393 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/99695d67-7905-458e-92f8-1990e93535b7
2026-01-12 21:48:07,404 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/99695d67-7905-458e-92f8-1990e93535b7
2026-01-12 21:48:07,412 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a8e287be-a539-4f86-87be-c6cf57025f24
2026-01-12 21:48:07,419 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a8e287be-a539-4f86-87be-c6cf57025f24
2026-01-12 21:48:07,426 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/438919ed-44f1-45b0-83db-aa2f64c2dd43
2026-01-12 21:48:07,432 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-12 21:48:07,432 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/99695d67-7905-458e-92f8-1990e93535b7
2026-01-12 21:48:07,440 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a8e287be-a539-4f86-87be-c6cf57025f24
2026-01-12 21:48:07,454 - INFO - Verified VN network id 13 for VN 99695d67-7905-458e-92f8-1990e93535b7
2026-01-12 21:48:07,454 - INFO - Verifications in API Server for VN ctest-vn-14254926 passed
2026-01-12 21:48:07,454 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/99695d67-7905-458e-92f8-1990e93535b7
2026-01-12 21:48:07,463 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a8e287be-a539-4f86-87be-c6cf57025f24
2026-01-12 21:48:07,470 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a8e287be-a539-4f86-87be-c6cf57025f24
2026-01-12 21:48:07,476 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/438919ed-44f1-45b0-83db-aa2f64c2dd43
2026-01-12 21:48:07,485 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-14254926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24966110', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11054469459350996366', 'uuid-lslong': '10590242633940284855'}, 'enable': 'true', 'created': '2026-01-12T21:48:05', 'last-modified': '2026-01-12T21:48:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.317672'}
2026-01-12 21:48:07,495 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-12 21:48:07,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14254926 passed
2026-01-12 21:48:07,496 - DEBUG - ====Verifying policy data for ctest-vn-14254926 in API_Server ======
2026-01-12 21:48:07,496 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-12 21:48:07,500 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f22e4bd6-30fd-498d-a646-778d9b935598
2026-01-12 21:48:07,510 - DEBUG - Requesting: http://10.0.0.22:8082/project/eed37a64-9331-4dea-b58d-7ff2d17dff2e
2026-01-12 21:48:07,578 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/99695d67-7905-458e-92f8-1990e93535b7
2026-01-12 21:48:07,586 - DEBUG - ==>Verifying data for policy with id: 0635012b-73fa-4ba7-90b2-d5801c4ac09f, fqn: ['default-domain', 'ctest-TestBasicPolicy-24966110', 'ctest-policy-allow-all-63268265']
2026-01-12 21:48:07,586 - INFO - VN ctest-vn-14254926 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-12 21:48:07,586 - DEBUG - Verifying the vn in opserver
2026-01-12 21:48:07,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-14254926 virtual network link through opserver 10.0.0.22
2026-01-12 21:48:07,586 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-12 21:48:07,597 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-14254926', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-14254926?flat'}
2026-01-12 21:48:07,597 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24966110:ctest-vn-14254926 is found in opserver
2026-01-12 21:48:07,621 - DEBUG - Do not have enough data to verify VN in agent
2026-01-12 21:48:07,633 - DEBUG - VRF ids for VN ctest-vn-14254926: {}
2026-01-12 21:48:07,687 - DEBUG - Services list from nova: [