2025-10-30 22:07:12,784 - INFO - Domain Default found not creating
2025-10-30 22:07:12,935 - INFO - Project ctest-TestBasicPolicy-45949819 not found, creating it
2025-10-30 22:07:13,398 - INFO - Created Project:ctest-TestBasicPolicy-45949819, ID : f3fdd84c-065e-4f2d-b8fd-baee7a336aca 
2025-10-30 22:07:14,804 - INFO - ================================================================================
2025-10-30 22:07:14,804 - INFO - STARTING TEST    : test_basic_policy_allow_deny
2025-10-30 22:07:14,804 - 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-30 22:07:15,068 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.5': '0'}} with
2025-10-30 22:07:15,068 - INFO - Initial checks done. Running the testcase now
2025-10-30 22:07:15,068 - INFO - 
2025-10-30 22:07:15,623 - DEBUG - Response for create_network : {'network': {'id': 'b01e7bf6-e21e-43c0-8fb9-7587705370d6', 'name': 'ctest-vn-76896419', 'tenant_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'project_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-vn-76896419'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:07:15,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c1b3455-9e02-4bb6-9b02-2ada15ea00f1', 'name': '', 'tenant_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'network_id': 'b01e7bf6-e21e-43c0-8fb9-7587705370d6', 'ip_version': 4, 'cidr': '161.170.134.64/26', 'allocation_pools': [{'start': '161.170.134.66', 'end': '161.170.134.126'}], 'gateway_ip': '161.170.134.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.170.134.66', 'tags': [], 'project_id': 'f3fdd84c065e4f2db8fdbaee7a336aca'}}
2025-10-30 22:07:15,810 - INFO - Created VN ctest-vn-76896419
2025-10-30 22:07:15,866 - DEBUG - VN ctest-vn-76896419 UUID is b01e7bf6-e21e-43c0-8fb9-7587705370d6
2025-10-30 22:07:16,153 - DEBUG - Response for create_network : {'network': {'id': 'e56c9569-fcaa-44ff-8f22-08ae2706a3aa', 'name': 'ctest-vn-17794229', 'tenant_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'project_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-vn-17794229'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:07:16,387 - DEBUG - Response for create_subnet : {'subnet': {'id': '8eeda6bb-7920-463a-a5b6-7d28d9c7d8d6', 'name': '', 'tenant_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'network_id': 'e56c9569-fcaa-44ff-8f22-08ae2706a3aa', 'ip_version': 4, 'cidr': '129.242.131.0/26', 'allocation_pools': [{'start': '129.242.131.2', 'end': '129.242.131.62'}], 'gateway_ip': '129.242.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.242.131.2', 'tags': [], 'project_id': 'f3fdd84c065e4f2db8fdbaee7a336aca'}}
2025-10-30 22:07:16,404 - INFO - Created VN ctest-vn-17794229
2025-10-30 22:07:16,458 - DEBUG - VN ctest-vn-17794229 UUID is e56c9569-fcaa-44ff-8f22-08ae2706a3aa
2025-10-30 22:07:16,569 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-76896419, 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-45949819:ctest-vn-17794229, 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-30 22:07:16,867 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b01e7bf6-e21e-43c0-8fb9-7587705370d6', 'name': 'ctest-vn-76896419', 'tenant_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'project_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5c1b3455-9e02-4bb6-9b02-2ada15ea00f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-vn-76896419'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-policy-allow-all-62679906']], 'subnet_ipam': [{'subnet_cidr': '161.170.134.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:07:17,102 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e56c9569-fcaa-44ff-8f22-08ae2706a3aa', 'name': 'ctest-vn-17794229', 'tenant_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'project_id': 'f3fdd84c065e4f2db8fdbaee7a336aca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8eeda6bb-7920-463a-a5b6-7d28d9c7d8d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-vn-17794229'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-policy-allow-all-62679906']], 'subnet_ipam': [{'subnet_cidr': '129.242.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 22:07:17,250 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-30 22:07:17,549 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-30 22:07:17,577 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19
2025-10-30 22:07:17,588 - DEBUG - Requesting: http://10.0.0.131:8082/project/f3fdd84c-065e-4f2d-b8fd-baee7a336aca
2025-10-30 22:07:17,661 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b01e7bf6-e21e-43c0-8fb9-7587705370d6
2025-10-30 22:07:17,672 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b01e7bf6-e21e-43c0-8fb9-7587705370d6
2025-10-30 22:07:17,682 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/0d181044-7431-469b-aa6e-8a2582491a3a
2025-10-30 22:07:17,688 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/0d181044-7431-469b-aa6e-8a2582491a3a
2025-10-30 22:07:17,694 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/1188a250-41f0-4015-90c1-2ac6a6ae3fa4
2025-10-30 22:07:17,699 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 22:07:17,699 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b01e7bf6-e21e-43c0-8fb9-7587705370d6
2025-10-30 22:07:17,706 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/0d181044-7431-469b-aa6e-8a2582491a3a
2025-10-30 22:07:17,721 - INFO - Verified VN network id 11 for VN b01e7bf6-e21e-43c0-8fb9-7587705370d6
2025-10-30 22:07:17,721 - INFO - Verifications in API Server for VN ctest-vn-76896419 passed
2025-10-30 22:07:17,721 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b01e7bf6-e21e-43c0-8fb9-7587705370d6
2025-10-30 22:07:17,730 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/0d181044-7431-469b-aa6e-8a2582491a3a
2025-10-30 22:07:17,735 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/0d181044-7431-469b-aa6e-8a2582491a3a
2025-10-30 22:07:17,742 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/1188a250-41f0-4015-90c1-2ac6a6ae3fa4
2025-10-30 22:07:17,766 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-76896419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45949819', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12690717100262441920', 'uuid-lslong': '10356438042680717526'}, 'enable': 'true', 'created': '2025-10-30T22:07:15', 'last-modified': '2025-10-30T22:07:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913555'}
2025-10-30 22:07:17,771 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 22:07:17,772 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76896419 passed
2025-10-30 22:07:17,772 - DEBUG - ====Verifying policy data for ctest-vn-76896419 in API_Server ======
2025-10-30 22:07:17,772 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-30 22:07:17,777 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19
2025-10-30 22:07:17,787 - DEBUG - Requesting: http://10.0.0.131:8082/project/f3fdd84c-065e-4f2d-b8fd-baee7a336aca
2025-10-30 22:07:17,864 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/b01e7bf6-e21e-43c0-8fb9-7587705370d6
2025-10-30 22:07:17,873 - DEBUG - ==>Verifying data for policy with id: 7e45572b-8ca5-427f-a322-9cf2e96d72cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-policy-allow-all-62679906']
2025-10-30 22:07:17,873 - INFO - VN ctest-vn-76896419 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 22:07:17,873 - DEBUG - Verifying the vn in opserver
2025-10-30 22:07:17,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-76896419 virtual network link  through opserver 10.0.0.131
2025-10-30 22:07:17,874 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-30 22:07:18,165 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-30 22:07:18,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-76896419', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-76896419?flat'}
2025-10-30 22:07:18,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-76896419 is found in opserver
2025-10-30 22:07:18,229 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 22:07:18,233 - DEBUG - VRF ids for VN ctest-vn-76896419: {}
2025-10-30 22:07:18,233 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-30 22:07:18,238 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19
2025-10-30 22:07:18,248 - DEBUG - Requesting: http://10.0.0.131:8082/project/f3fdd84c-065e-4f2d-b8fd-baee7a336aca
2025-10-30 22:07:18,329 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/e56c9569-fcaa-44ff-8f22-08ae2706a3aa
2025-10-30 22:07:18,339 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/e56c9569-fcaa-44ff-8f22-08ae2706a3aa
2025-10-30 22:07:18,347 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/eb5a927c-6253-4fab-a46b-b853bb071f2d
2025-10-30 22:07:18,353 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/eb5a927c-6253-4fab-a46b-b853bb071f2d
2025-10-30 22:07:18,359 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/76d5d10b-dc49-4e5f-a21d-e24916517b54
2025-10-30 22:07:18,364 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 22:07:18,365 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/e56c9569-fcaa-44ff-8f22-08ae2706a3aa
2025-10-30 22:07:18,373 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/eb5a927c-6253-4fab-a46b-b853bb071f2d
2025-10-30 22:07:18,387 - INFO - Verified VN network id 12 for VN e56c9569-fcaa-44ff-8f22-08ae2706a3aa
2025-10-30 22:07:18,387 - INFO - Verifications in API Server for VN ctest-vn-17794229 passed
2025-10-30 22:07:18,387 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/e56c9569-fcaa-44ff-8f22-08ae2706a3aa
2025-10-30 22:07:18,395 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/eb5a927c-6253-4fab-a46b-b853bb071f2d
2025-10-30 22:07:18,402 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/eb5a927c-6253-4fab-a46b-b853bb071f2d
2025-10-30 22:07:18,407 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/76d5d10b-dc49-4e5f-a21d-e24916517b54
2025-10-30 22:07:18,417 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-17794229', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45949819', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16531752614613370111', 'uuid-lslong': '10313815640703935402'}, 'enable': 'true', 'created': '2025-10-30T22:07:16', 'last-modified': '2025-10-30T22:07:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341233'}
2025-10-30 22:07:18,423 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 22:07:18,423 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17794229 passed
2025-10-30 22:07:18,423 - DEBUG - ====Verifying policy data for ctest-vn-17794229 in API_Server ======
2025-10-30 22:07:18,423 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-30 22:07:18,428 - DEBUG - Requesting: http://10.0.0.131:8082/domain/db9e8859-5248-4656-9cff-a6381aae9e19
2025-10-30 22:07:18,438 - DEBUG - Requesting: http://10.0.0.131:8082/project/f3fdd84c-065e-4f2d-b8fd-baee7a336aca
2025-10-30 22:07:18,513 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/e56c9569-fcaa-44ff-8f22-08ae2706a3aa
2025-10-30 22:07:18,522 - DEBUG - ==>Verifying data for policy with id: 7e45572b-8ca5-427f-a322-9cf2e96d72cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-45949819', 'ctest-policy-allow-all-62679906']
2025-10-30 22:07:18,522 - INFO - VN ctest-vn-17794229 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 22:07:18,523 - DEBUG - Verifying the vn in opserver
2025-10-30 22:07:18,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-17794229 virtual network link  through opserver 10.0.0.131
2025-10-30 22:07:18,523 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-30 22:07:18,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-17794229', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-17794229?flat'}
2025-10-30 22:07:18,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45949819:ctest-vn-17794229 is found in opserver
2025-10-30 22:07:18,542 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 22:07:18,546 - DEBUG - VRF ids for VN ctest-vn-17794229: {}
2025-10-30 22:07:18,605 - DEBUG - Services list from nova: [