2026-06-23 02:59:00,237 - INFO - Domain Default found not creating
2026-06-23 02:59:00,368 - INFO - Project ctest-TestBasicPolicy-02065238 not found, creating it
2026-06-23 02:59:00,805 - INFO - Created Project:ctest-TestBasicPolicy-02065238, ID : 45f2853f-1a22-4c16-94db-0a012045cc03
2026-06-23 02:59:02,359 - INFO - ================================================================================
2026-06-23 02:59:02,359 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-23 02:59:02,359 - 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-06-23 02:59:02,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-06-23 02:59:02,624 - INFO - Initial checks done. Running the testcase now
2026-06-23 02:59:02,624 - INFO -
2026-06-23 02:59:03,117 - DEBUG - Response for create_network : {'network': {'id': '8234c832-3bfe-4ac4-8641-b2ec503d7277', 'name': 'ctest-vn-23092947', 'tenant_id': '45f2853f1a224c1694db0a012045cc03', 'project_id': '45f2853f1a224c1694db0a012045cc03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-vn-23092947'], 'port_security_enabled': True, 'description': ''}}
2026-06-23 02:59:03,319 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b26820b-17b8-4b9a-b5e1-cdc6f6bb10cf', 'name': '', 'tenant_id': '45f2853f1a224c1694db0a012045cc03', 'network_id': '8234c832-3bfe-4ac4-8641-b2ec503d7277', 'ip_version': 4, 'cidr': '60.227.121.64/26', 'allocation_pools': [{'start': '60.227.121.66', 'end': '60.227.121.126'}], 'gateway_ip': '60.227.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.227.121.66', 'tags': [], 'project_id': '45f2853f1a224c1694db0a012045cc03'}}
2026-06-23 02:59:03,331 - INFO - Created VN ctest-vn-23092947
2026-06-23 02:59:03,379 - DEBUG - VN ctest-vn-23092947 UUID is 8234c832-3bfe-4ac4-8641-b2ec503d7277
2026-06-23 02:59:03,668 - DEBUG - Response for create_network : {'network': {'id': '4779c1f6-feae-45a3-8e4c-94c153cf8001', 'name': 'ctest-vn-83830971', 'tenant_id': '45f2853f1a224c1694db0a012045cc03', 'project_id': '45f2853f1a224c1694db0a012045cc03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-vn-83830971'], 'port_security_enabled': True, 'description': ''}}
2026-06-23 02:59:03,861 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f75d60b7-34f4-48d7-b2f0-f01e3e1c27d6', 'name': '', 'tenant_id': '45f2853f1a224c1694db0a012045cc03', 'network_id': '4779c1f6-feae-45a3-8e4c-94c153cf8001', 'ip_version': 4, 'cidr': '24.109.199.0/26', 'allocation_pools': [{'start': '24.109.199.2', 'end': '24.109.199.62'}], 'gateway_ip': '24.109.199.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.109.199.2', 'tags': [], 'project_id': '45f2853f1a224c1694db0a012045cc03'}}
2026-06-23 02:59:03,874 - INFO - Created VN ctest-vn-83830971
2026-06-23 02:59:03,923 - DEBUG - VN ctest-vn-83830971 UUID is 4779c1f6-feae-45a3-8e4c-94c153cf8001
2026-06-23 02:59:04,055 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-23092947, 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-02065238:ctest-vn-83830971, 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-06-23 02:59:04,327 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8234c832-3bfe-4ac4-8641-b2ec503d7277', 'name': 'ctest-vn-23092947', 'tenant_id': '45f2853f1a224c1694db0a012045cc03', 'project_id': '45f2853f1a224c1694db0a012045cc03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b26820b-17b8-4b9a-b5e1-cdc6f6bb10cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-vn-23092947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-policy-allow-all-38157063']], 'subnet_ipam': [{'subnet_cidr': '60.227.121.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-23 02:59:04,554 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4779c1f6-feae-45a3-8e4c-94c153cf8001', 'name': 'ctest-vn-83830971', 'tenant_id': '45f2853f1a224c1694db0a012045cc03', 'project_id': '45f2853f1a224c1694db0a012045cc03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f75d60b7-34f4-48d7-b2f0-f01e3e1c27d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-vn-83830971'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-policy-allow-all-38157063']], 'subnet_ipam': [{'subnet_cidr': '24.109.199.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-23 02:59:04,711 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 02:59:05,026 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 02:59:05,048 - DEBUG - Requesting: http://10.0.0.50:8082/domain/63e6debd-e1b5-484d-ab89-80f9428c6f51
2026-06-23 02:59:05,060 - DEBUG - Requesting: http://10.0.0.50:8082/project/45f2853f-1a22-4c16-94db-0a012045cc03
2026-06-23 02:59:05,126 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8234c832-3bfe-4ac4-8641-b2ec503d7277
2026-06-23 02:59:05,135 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8234c832-3bfe-4ac4-8641-b2ec503d7277
2026-06-23 02:59:05,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48732a34-d9a9-4b15-8926-9eeb2a5add4e
2026-06-23 02:59:05,147 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48732a34-d9a9-4b15-8926-9eeb2a5add4e
2026-06-23 02:59:05,152 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0aa2dfb1-1d6c-407a-bfba-e6da0d19f0d1
2026-06-23 02:59:05,156 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-23 02:59:05,156 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8234c832-3bfe-4ac4-8641-b2ec503d7277
2026-06-23 02:59:05,163 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48732a34-d9a9-4b15-8926-9eeb2a5add4e
2026-06-23 02:59:05,174 - INFO - Verified VN network id 11 for VN 8234c832-3bfe-4ac4-8641-b2ec503d7277
2026-06-23 02:59:05,174 - INFO - Verifications in API Server for VN ctest-vn-23092947 passed
2026-06-23 02:59:05,175 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8234c832-3bfe-4ac4-8641-b2ec503d7277
2026-06-23 02:59:05,183 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48732a34-d9a9-4b15-8926-9eeb2a5add4e
2026-06-23 02:59:05,189 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/48732a34-d9a9-4b15-8926-9eeb2a5add4e
2026-06-23 02:59:05,193 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0aa2dfb1-1d6c-407a-bfba-e6da0d19f0d1
2026-06-23 02:59:05,204 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-23092947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02065238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9382344041800026820', 'uuid-lslong': '9674210202596766327'}, 'enable': 'true', 'created': '2026-06-23T02:59:03', 'last-modified': '2026-06-23T02:59:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891920'}
2026-06-23 02:59:05,209 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-23 02:59:05,210 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23092947 passed
2026-06-23 02:59:05,210 - DEBUG - ====Verifying policy data for ctest-vn-23092947 in API_Server ======
2026-06-23 02:59:05,210 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 02:59:05,213 - DEBUG - Requesting: http://10.0.0.50:8082/domain/63e6debd-e1b5-484d-ab89-80f9428c6f51
2026-06-23 02:59:05,221 - DEBUG - Requesting: http://10.0.0.50:8082/project/45f2853f-1a22-4c16-94db-0a012045cc03
2026-06-23 02:59:05,287 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8234c832-3bfe-4ac4-8641-b2ec503d7277
2026-06-23 02:59:05,294 - DEBUG - ==>Verifying data for policy with id: 28fa5ceb-d8bf-4d06-aad3-64da1d9d6aa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-policy-allow-all-38157063']
2026-06-23 02:59:05,294 - INFO - VN ctest-vn-23092947 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-23 02:59:05,294 - DEBUG - Verifying the vn in opserver
2026-06-23 02:59:05,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-23092947 virtual network link through opserver 10.0.0.50
2026-06-23 02:59:05,294 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-23 02:59:05,607 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-23 02:59:05,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-23092947', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-23092947?flat'}
2026-06-23 02:59:05,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-23092947 is found in opserver
2026-06-23 02:59:05,658 - DEBUG - Do not have enough data to verify VN in agent
2026-06-23 02:59:05,662 - DEBUG - VRF ids for VN ctest-vn-23092947: {}
2026-06-23 02:59:05,662 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 02:59:05,667 - DEBUG - Requesting: http://10.0.0.50:8082/domain/63e6debd-e1b5-484d-ab89-80f9428c6f51
2026-06-23 02:59:05,676 - DEBUG - Requesting: http://10.0.0.50:8082/project/45f2853f-1a22-4c16-94db-0a012045cc03
2026-06-23 02:59:05,744 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4779c1f6-feae-45a3-8e4c-94c153cf8001
2026-06-23 02:59:05,753 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4779c1f6-feae-45a3-8e4c-94c153cf8001
2026-06-23 02:59:05,760 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b99af3a7-0396-43b9-8140-e760d6d05d12
2026-06-23 02:59:05,765 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b99af3a7-0396-43b9-8140-e760d6d05d12
2026-06-23 02:59:05,770 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9900eec8-63b8-4db5-88ae-0384dcd41b92
2026-06-23 02:59:05,775 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-23 02:59:05,775 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4779c1f6-feae-45a3-8e4c-94c153cf8001
2026-06-23 02:59:05,782 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b99af3a7-0396-43b9-8140-e760d6d05d12
2026-06-23 02:59:05,792 - INFO - Verified VN network id 12 for VN 4779c1f6-feae-45a3-8e4c-94c153cf8001
2026-06-23 02:59:05,792 - INFO - Verifications in API Server for VN ctest-vn-83830971 passed
2026-06-23 02:59:05,792 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4779c1f6-feae-45a3-8e4c-94c153cf8001
2026-06-23 02:59:05,800 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b99af3a7-0396-43b9-8140-e760d6d05d12
2026-06-23 02:59:05,804 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b99af3a7-0396-43b9-8140-e760d6d05d12
2026-06-23 02:59:05,810 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9900eec8-63b8-4db5-88ae-0384dcd41b92
2026-06-23 02:59:05,819 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-83830971', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02065238', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5150360915453822371', 'uuid-lslong': '10253734009671483393'}, 'enable': 'true', 'created': '2026-06-23T02:59:03', 'last-modified': '2026-06-23T02:59:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.288246'}
2026-06-23 02:59:05,824 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-23 02:59:05,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83830971 passed
2026-06-23 02:59:05,824 - DEBUG - ====Verifying policy data for ctest-vn-83830971 in API_Server ======
2026-06-23 02:59:05,824 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-23 02:59:05,828 - DEBUG - Requesting: http://10.0.0.50:8082/domain/63e6debd-e1b5-484d-ab89-80f9428c6f51
2026-06-23 02:59:05,836 - DEBUG - Requesting: http://10.0.0.50:8082/project/45f2853f-1a22-4c16-94db-0a012045cc03
2026-06-23 02:59:05,923 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4779c1f6-feae-45a3-8e4c-94c153cf8001
2026-06-23 02:59:05,930 - DEBUG - ==>Verifying data for policy with id: 28fa5ceb-d8bf-4d06-aad3-64da1d9d6aa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-02065238', 'ctest-policy-allow-all-38157063']
2026-06-23 02:59:05,930 - INFO - VN ctest-vn-83830971 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-23 02:59:05,930 - DEBUG - Verifying the vn in opserver
2026-06-23 02:59:05,930 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-83830971 virtual network link through opserver 10.0.0.50
2026-06-23 02:59:05,930 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-23 02:59:05,938 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-83830971', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-83830971?flat'}
2026-06-23 02:59:05,938 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02065238:ctest-vn-83830971 is found in opserver
2026-06-23 02:59:05,946 - DEBUG - Do not have enough data to verify VN in agent
2026-06-23 02:59:05,950 - DEBUG - VRF ids for VN ctest-vn-83830971: {}
2026-06-23 02:59:05,997 - DEBUG - Services list from nova: [