2025-10-09 14:36:44,785 - INFO - Domain Default found not creating
2025-10-09 14:36:44,915 - INFO - Project ctest-TestBasicPolicy-15399754 not found, creating it
2025-10-09 14:36:45,334 - INFO - Created Project:ctest-TestBasicPolicy-15399754, ID : 7739e12f-6787-492e-ac9e-bb1e1d401763
2025-10-09 14:36:46,680 - INFO - ================================================================================
2025-10-09 14:36:46,680 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 14:36:46,680 - 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-09 14:36:46,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-10-09 14:36:46,933 - INFO - Initial checks done. Running the testcase now
2025-10-09 14:36:46,933 - INFO -
2025-10-09 14:36:47,464 - DEBUG - Response for create_network : {'network': {'id': '925bd791-ab2e-454b-9a3a-eeedb81f7617', 'name': 'ctest-vn-58939617', 'tenant_id': '7739e12f6787492eac9ebb1e1d401763', 'project_id': '7739e12f6787492eac9ebb1e1d401763', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-vn-58939617'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:36:47,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd79b3a17-5230-4926-b072-9310947fbc35', 'name': '', 'tenant_id': '7739e12f6787492eac9ebb1e1d401763', 'network_id': '925bd791-ab2e-454b-9a3a-eeedb81f7617', 'ip_version': 4, 'cidr': '7.173.162.128/26', 'allocation_pools': [{'start': '7.173.162.130', 'end': '7.173.162.190'}], 'gateway_ip': '7.173.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.173.162.130', 'tags': [], 'project_id': '7739e12f6787492eac9ebb1e1d401763'}}
2025-10-09 14:36:47,677 - INFO - Created VN ctest-vn-58939617
2025-10-09 14:36:47,728 - DEBUG - VN ctest-vn-58939617 UUID is 925bd791-ab2e-454b-9a3a-eeedb81f7617
2025-10-09 14:36:48,029 - DEBUG - Response for create_network : {'network': {'id': 'd348fa8f-b017-4656-9080-ccc606226f81', 'name': 'ctest-vn-73803825', 'tenant_id': '7739e12f6787492eac9ebb1e1d401763', 'project_id': '7739e12f6787492eac9ebb1e1d401763', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-vn-73803825'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:36:48,174 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ceeaa144-5adf-4eed-9bed-2375abd65ab4', 'name': '', 'tenant_id': '7739e12f6787492eac9ebb1e1d401763', 'network_id': 'd348fa8f-b017-4656-9080-ccc606226f81', 'ip_version': 4, 'cidr': '100.31.251.0/26', 'allocation_pools': [{'start': '100.31.251.2', 'end': '100.31.251.62'}], 'gateway_ip': '100.31.251.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.31.251.2', 'tags': [], 'project_id': '7739e12f6787492eac9ebb1e1d401763'}}
2025-10-09 14:36:48,191 - INFO - Created VN ctest-vn-73803825
2025-10-09 14:36:48,248 - DEBUG - VN ctest-vn-73803825 UUID is d348fa8f-b017-4656-9080-ccc606226f81
2025-10-09 14:36:48,363 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-58939617, 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-15399754:ctest-vn-73803825, 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-09 14:36:48,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '925bd791-ab2e-454b-9a3a-eeedb81f7617', 'name': 'ctest-vn-58939617', 'tenant_id': '7739e12f6787492eac9ebb1e1d401763', 'project_id': '7739e12f6787492eac9ebb1e1d401763', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d79b3a17-5230-4926-b072-9310947fbc35'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-vn-58939617'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-policy-allow-all-94709715']], 'subnet_ipam': [{'subnet_cidr': '7.173.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:36:48,875 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd348fa8f-b017-4656-9080-ccc606226f81', 'name': 'ctest-vn-73803825', 'tenant_id': '7739e12f6787492eac9ebb1e1d401763', 'project_id': '7739e12f6787492eac9ebb1e1d401763', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ceeaa144-5adf-4eed-9bed-2375abd65ab4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-vn-73803825'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-policy-allow-all-94709715']], 'subnet_ipam': [{'subnet_cidr': '100.31.251.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:36:49,048 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-09 14:36:49,337 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-09 14:36:49,363 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2
2025-10-09 14:36:49,374 - DEBUG - Requesting: http://10.0.0.65:8082/project/7739e12f-6787-492e-ac9e-bb1e1d401763
2025-10-09 14:36:49,443 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/925bd791-ab2e-454b-9a3a-eeedb81f7617
2025-10-09 14:36:49,452 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/925bd791-ab2e-454b-9a3a-eeedb81f7617
2025-10-09 14:36:49,460 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55b81e91-6dc3-4ad9-813b-9f31153f5a96
2025-10-09 14:36:49,466 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55b81e91-6dc3-4ad9-813b-9f31153f5a96
2025-10-09 14:36:49,471 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/dbc361e7-4181-4dc3-8bb8-b5a0870a7d92
2025-10-09 14:36:49,476 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:36:49,476 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/925bd791-ab2e-454b-9a3a-eeedb81f7617
2025-10-09 14:36:49,484 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55b81e91-6dc3-4ad9-813b-9f31153f5a96
2025-10-09 14:36:49,495 - INFO - Verified VN network id 12 for VN 925bd791-ab2e-454b-9a3a-eeedb81f7617
2025-10-09 14:36:49,495 - INFO - Verifications in API Server for VN ctest-vn-58939617 passed
2025-10-09 14:36:49,495 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/925bd791-ab2e-454b-9a3a-eeedb81f7617
2025-10-09 14:36:49,502 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55b81e91-6dc3-4ad9-813b-9f31153f5a96
2025-10-09 14:36:49,508 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/55b81e91-6dc3-4ad9-813b-9f31153f5a96
2025-10-09 14:36:49,513 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/dbc361e7-4181-4dc3-8bb8-b5a0870a7d92
2025-10-09 14:36:49,523 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-58939617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15399754', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10546259973060314443', 'uuid-lslong': '11113457735253849623'}, 'enable': 'true', 'created': '2025-10-09T14:36:47', 'last-modified': '2025-10-09T14:36:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895837'}
2025-10-09 14:36:49,528 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:36:49,529 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58939617 passed
2025-10-09 14:36:49,529 - DEBUG - ====Verifying policy data for ctest-vn-58939617 in API_Server ======
2025-10-09 14:36:49,529 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-09 14:36:49,534 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2
2025-10-09 14:36:49,544 - DEBUG - Requesting: http://10.0.0.65:8082/project/7739e12f-6787-492e-ac9e-bb1e1d401763
2025-10-09 14:36:49,614 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/925bd791-ab2e-454b-9a3a-eeedb81f7617
2025-10-09 14:36:49,623 - DEBUG - ==>Verifying data for policy with id: 52487d0f-8cdb-4905-9c8d-d493e1fc1007, fqn: ['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-policy-allow-all-94709715']
2025-10-09 14:36:49,623 - INFO - VN ctest-vn-58939617 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:36:49,623 - DEBUG - Verifying the vn in opserver
2025-10-09 14:36:49,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-58939617 virtual network link through opserver 10.0.0.65
2025-10-09 14:36:49,623 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-10-09 14:36:49,914 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-10-09 14:36:49,968 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-58939617', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-58939617?flat'}
2025-10-09 14:36:49,968 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-58939617 is found in opserver
2025-10-09 14:36:49,977 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:36:49,981 - DEBUG - VRF ids for VN ctest-vn-58939617: {}
2025-10-09 14:36:49,981 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-09 14:36:49,986 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2
2025-10-09 14:36:49,995 - DEBUG - Requesting: http://10.0.0.65:8082/project/7739e12f-6787-492e-ac9e-bb1e1d401763
2025-10-09 14:36:50,064 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d348fa8f-b017-4656-9080-ccc606226f81
2025-10-09 14:36:50,074 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d348fa8f-b017-4656-9080-ccc606226f81
2025-10-09 14:36:50,081 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ab077574-8d29-41b4-bccd-8b19912de683
2025-10-09 14:36:50,087 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ab077574-8d29-41b4-bccd-8b19912de683
2025-10-09 14:36:50,093 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/accbabe6-17c1-4a20-afa3-b385c3ec42dc
2025-10-09 14:36:50,098 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:36:50,098 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d348fa8f-b017-4656-9080-ccc606226f81
2025-10-09 14:36:50,107 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ab077574-8d29-41b4-bccd-8b19912de683
2025-10-09 14:36:50,118 - INFO - Verified VN network id 13 for VN d348fa8f-b017-4656-9080-ccc606226f81
2025-10-09 14:36:50,118 - INFO - Verifications in API Server for VN ctest-vn-73803825 passed
2025-10-09 14:36:50,118 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d348fa8f-b017-4656-9080-ccc606226f81
2025-10-09 14:36:50,126 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ab077574-8d29-41b4-bccd-8b19912de683
2025-10-09 14:36:50,132 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ab077574-8d29-41b4-bccd-8b19912de683
2025-10-09 14:36:50,137 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/accbabe6-17c1-4a20-afa3-b385c3ec42dc
2025-10-09 14:36:50,147 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-73803825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15399754', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15224694035367544406', 'uuid-lslong': '10412547489359097729'}, 'enable': 'true', 'created': '2025-10-09T14:36:48', 'last-modified': '2025-10-09T14:36:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.288241'}
2025-10-09 14:36:50,152 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:36:50,152 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73803825 passed
2025-10-09 14:36:50,152 - DEBUG - ====Verifying policy data for ctest-vn-73803825 in API_Server ======
2025-10-09 14:36:50,152 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-09 14:36:50,157 - DEBUG - Requesting: http://10.0.0.65:8082/domain/196a0794-311a-49e8-ae7d-8cb35758b0a2
2025-10-09 14:36:50,167 - DEBUG - Requesting: http://10.0.0.65:8082/project/7739e12f-6787-492e-ac9e-bb1e1d401763
2025-10-09 14:36:50,239 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d348fa8f-b017-4656-9080-ccc606226f81
2025-10-09 14:36:50,250 - DEBUG - ==>Verifying data for policy with id: 52487d0f-8cdb-4905-9c8d-d493e1fc1007, fqn: ['default-domain', 'ctest-TestBasicPolicy-15399754', 'ctest-policy-allow-all-94709715']
2025-10-09 14:36:50,250 - INFO - VN ctest-vn-73803825 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:36:50,250 - DEBUG - Verifying the vn in opserver
2025-10-09 14:36:50,250 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-73803825 virtual network link through opserver 10.0.0.65
2025-10-09 14:36:50,250 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-10-09 14:36:50,259 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-73803825', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-73803825?flat'}
2025-10-09 14:36:50,259 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15399754:ctest-vn-73803825 is found in opserver
2025-10-09 14:36:50,270 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:36:50,276 - DEBUG - VRF ids for VN ctest-vn-73803825: {}
2025-10-09 14:36:50,328 - DEBUG - Services list from nova: [