2025-10-31 05:31:09,218 - INFO - Domain Default found not creating
2025-10-31 05:31:09,368 - INFO - Project ctest-TestBasicPolicy-55406881 not found, creating it
2025-10-31 05:31:09,826 - INFO - Created Project:ctest-TestBasicPolicy-55406881, ID : 9dc96c0a-1317-488c-9ef5-c2314ef8c070 
2025-10-31 05:31:11,406 - INFO - ================================================================================
2025-10-31 05:31:11,406 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-31 05:31:11,406 - 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-10-31 05:31:11,671 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-31 05:31:11,671 - INFO - Initial checks done. Running the testcase now
2025-10-31 05:31:11,671 - INFO - 
2025-10-31 05:31:12,293 - DEBUG - Response for create_network : {'network': {'id': 'fa9dc645-8345-4d4b-b09a-1dc656ce5a95', 'name': 'ctest-vn-34901290', 'tenant_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'project_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-vn-34901290'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:31:12,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '41ff40e3-1c3d-47d3-a500-b0bfb5dd0376', 'name': '', 'tenant_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'network_id': 'fa9dc645-8345-4d4b-b09a-1dc656ce5a95', 'ip_version': 4, 'cidr': '20.118.79.192/26', 'allocation_pools': [{'start': '20.118.79.194', 'end': '20.118.79.254'}], 'gateway_ip': '20.118.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.118.79.194', 'tags': [], 'project_id': '9dc96c0a1317488c9ef5c2314ef8c070'}}
2025-10-31 05:31:12,466 - INFO - Created VN ctest-vn-34901290
2025-10-31 05:31:12,520 - DEBUG - VN ctest-vn-34901290 UUID is fa9dc645-8345-4d4b-b09a-1dc656ce5a95
2025-10-31 05:31:12,839 - DEBUG - Response for create_network : {'network': {'id': 'c6b1df2e-3d28-4a51-9d10-0c8436fb2794', 'name': 'ctest-vn-33746771', 'tenant_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'project_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-vn-33746771'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:31:12,976 - DEBUG - Response for create_subnet : {'subnet': {'id': '8632686a-e625-4a7f-895f-a238dc1ac0df', 'name': '', 'tenant_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'network_id': 'c6b1df2e-3d28-4a51-9d10-0c8436fb2794', 'ip_version': 4, 'cidr': '46.30.235.64/26', 'allocation_pools': [{'start': '46.30.235.66', 'end': '46.30.235.126'}], 'gateway_ip': '46.30.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.30.235.66', 'tags': [], 'project_id': '9dc96c0a1317488c9ef5c2314ef8c070'}}
2025-10-31 05:31:12,994 - INFO - Created VN ctest-vn-33746771
2025-10-31 05:31:13,048 - DEBUG - VN ctest-vn-33746771 UUID is c6b1df2e-3d28-4a51-9d10-0c8436fb2794
2025-10-31 05:31:13,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-34901290, 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-55406881:ctest-vn-33746771, 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-10-31 05:31:13,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa9dc645-8345-4d4b-b09a-1dc656ce5a95', 'name': 'ctest-vn-34901290', 'tenant_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'project_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41ff40e3-1c3d-47d3-a500-b0bfb5dd0376'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-vn-34901290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-policy-allow-all-92336732']], 'subnet_ipam': [{'subnet_cidr': '20.118.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:31:13,707 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6b1df2e-3d28-4a51-9d10-0c8436fb2794', 'name': 'ctest-vn-33746771', 'tenant_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'project_id': '9dc96c0a1317488c9ef5c2314ef8c070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8632686a-e625-4a7f-895f-a238dc1ac0df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-vn-33746771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-policy-allow-all-92336732']], 'subnet_ipam': [{'subnet_cidr': '46.30.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 05:31:13,868 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 05:31:14,204 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 05:31:14,232 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9
2025-10-31 05:31:14,244 - DEBUG - Requesting: http://10.0.0.254:8082/project/9dc96c0a-1317-488c-9ef5-c2314ef8c070
2025-10-31 05:31:14,315 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fa9dc645-8345-4d4b-b09a-1dc656ce5a95
2025-10-31 05:31:14,325 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fa9dc645-8345-4d4b-b09a-1dc656ce5a95
2025-10-31 05:31:14,334 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/25872360-a4ed-49c5-8b1e-c680e3a44da9
2025-10-31 05:31:14,341 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/25872360-a4ed-49c5-8b1e-c680e3a44da9
2025-10-31 05:31:14,347 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/da79e9a7-539d-46cc-b514-1c6e1ce85497
2025-10-31 05:31:14,353 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 05:31:14,354 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fa9dc645-8345-4d4b-b09a-1dc656ce5a95
2025-10-31 05:31:14,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/25872360-a4ed-49c5-8b1e-c680e3a44da9
2025-10-31 05:31:14,379 - INFO - Verified VN network id 11 for VN fa9dc645-8345-4d4b-b09a-1dc656ce5a95
2025-10-31 05:31:14,379 - INFO - Verifications in API Server for VN ctest-vn-34901290 passed
2025-10-31 05:31:14,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fa9dc645-8345-4d4b-b09a-1dc656ce5a95
2025-10-31 05:31:14,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/25872360-a4ed-49c5-8b1e-c680e3a44da9
2025-10-31 05:31:14,395 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/25872360-a4ed-49c5-8b1e-c680e3a44da9
2025-10-31 05:31:14,403 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/da79e9a7-539d-46cc-b514-1c6e1ce85497
2025-10-31 05:31:14,415 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-34901290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55406881', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18058808082682957131', 'uuid-lslong': '12725516434785852053'}, 'enable': 'true', 'created': '2025-10-31T05:31:12', 'last-modified': '2025-10-31T05:31:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947653'}
2025-10-31 05:31:14,420 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 05:31:14,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34901290 passed
2025-10-31 05:31:14,421 - DEBUG - ====Verifying policy data for ctest-vn-34901290 in API_Server ======
2025-10-31 05:31:14,421 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 05:31:14,425 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9
2025-10-31 05:31:14,435 - DEBUG - Requesting: http://10.0.0.254:8082/project/9dc96c0a-1317-488c-9ef5-c2314ef8c070
2025-10-31 05:31:14,509 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fa9dc645-8345-4d4b-b09a-1dc656ce5a95
2025-10-31 05:31:14,519 - DEBUG - ==>Verifying data for policy with id: c12506f1-2e81-4157-a5da-1802cd78b2ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-policy-allow-all-92336732']
2025-10-31 05:31:14,519 - INFO - VN ctest-vn-34901290 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 05:31:14,519 - DEBUG - Verifying the vn in opserver
2025-10-31 05:31:14,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-34901290 virtual network link  through opserver 10.0.0.254
2025-10-31 05:31:14,519 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-31 05:31:14,857 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-31 05:31:14,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-34901290', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-34901290?flat'}
2025-10-31 05:31:14,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-34901290 is found in opserver
2025-10-31 05:31:14,924 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 05:31:14,928 - DEBUG - VRF ids for VN ctest-vn-34901290: {}
2025-10-31 05:31:14,928 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 05:31:14,933 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9
2025-10-31 05:31:14,944 - DEBUG - Requesting: http://10.0.0.254:8082/project/9dc96c0a-1317-488c-9ef5-c2314ef8c070
2025-10-31 05:31:15,018 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b1df2e-3d28-4a51-9d10-0c8436fb2794
2025-10-31 05:31:15,030 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b1df2e-3d28-4a51-9d10-0c8436fb2794
2025-10-31 05:31:15,040 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/558885af-e434-43fc-9612-23c4e612c60e
2025-10-31 05:31:15,048 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/558885af-e434-43fc-9612-23c4e612c60e
2025-10-31 05:31:15,055 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6359e00f-cda3-43c0-b8fa-334cc5b266ce
2025-10-31 05:31:15,062 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 05:31:15,063 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b1df2e-3d28-4a51-9d10-0c8436fb2794
2025-10-31 05:31:15,073 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/558885af-e434-43fc-9612-23c4e612c60e
2025-10-31 05:31:15,087 - INFO - Verified VN network id 12 for VN c6b1df2e-3d28-4a51-9d10-0c8436fb2794
2025-10-31 05:31:15,087 - INFO - Verifications in API Server for VN ctest-vn-33746771 passed
2025-10-31 05:31:15,087 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b1df2e-3d28-4a51-9d10-0c8436fb2794
2025-10-31 05:31:15,096 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/558885af-e434-43fc-9612-23c4e612c60e
2025-10-31 05:31:15,102 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/558885af-e434-43fc-9612-23c4e612c60e
2025-10-31 05:31:15,109 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6359e00f-cda3-43c0-b8fa-334cc5b266ce
2025-10-31 05:31:15,119 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-33746771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55406881', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14317470080075057745', 'uuid-lslong': '11317559625579702164'}, 'enable': 'true', 'created': '2025-10-31T05:31:12', 'last-modified': '2025-10-31T05:31:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434395'}
2025-10-31 05:31:15,125 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 05:31:15,125 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33746771 passed
2025-10-31 05:31:15,125 - DEBUG - ====Verifying policy data for ctest-vn-33746771 in API_Server ======
2025-10-31 05:31:15,125 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-31 05:31:15,131 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9
2025-10-31 05:31:15,142 - DEBUG - Requesting: http://10.0.0.254:8082/project/9dc96c0a-1317-488c-9ef5-c2314ef8c070
2025-10-31 05:31:15,207 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c6b1df2e-3d28-4a51-9d10-0c8436fb2794
2025-10-31 05:31:15,219 - DEBUG - ==>Verifying data for policy with id: c12506f1-2e81-4157-a5da-1802cd78b2ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-55406881', 'ctest-policy-allow-all-92336732']
2025-10-31 05:31:15,219 - INFO - VN ctest-vn-33746771 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 05:31:15,219 - DEBUG - Verifying the vn in opserver
2025-10-31 05:31:15,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-33746771 virtual network link  through opserver 10.0.0.254
2025-10-31 05:31:15,219 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-31 05:31:15,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-33746771', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-33746771?flat'}
2025-10-31 05:31:15,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55406881:ctest-vn-33746771 is found in opserver
2025-10-31 05:31:15,238 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 05:31:15,243 - DEBUG - VRF ids for VN ctest-vn-33746771: {}
2025-10-31 05:31:15,300 - DEBUG - Services list from nova: [