2026-09-18 01:54:24,334 - INFO - Domain Default found not creating
2026-09-18 01:54:24,505 - INFO - Project ctest-TestBasicPolicy-44067526 not found, creating it
2026-09-18 01:54:24,996 - INFO - Created Project:ctest-TestBasicPolicy-44067526, ID : 414227c0-0334-4915-b298-f4c9748cd4b7
2026-09-18 01:54:27,513 - INFO - ================================================================================
2026-09-18 01:54:27,513 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-18 01:54:27,513 - 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-09-18 01:54:27,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with
2026-09-18 01:54:27,773 - INFO - Initial checks done. Running the testcase now
2026-09-18 01:54:27,773 - INFO -
2026-09-18 01:54:28,395 - DEBUG - Response for create_network : {'network': {'id': '8e352e2a-e072-46dd-a5b5-cdaccffa754e', 'name': 'ctest-vn-66722507', 'tenant_id': '414227c003344915b298f4c9748cd4b7', 'project_id': '414227c003344915b298f4c9748cd4b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-vn-66722507'], 'port_security_enabled': True, 'description': ''}}
2026-09-18 01:54:28,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c0e4e09-ecc5-4542-a8b3-120a0b5e833a', 'name': '', 'tenant_id': '414227c003344915b298f4c9748cd4b7', 'network_id': '8e352e2a-e072-46dd-a5b5-cdaccffa754e', 'ip_version': 4, 'cidr': '114.160.40.64/26', 'allocation_pools': [{'start': '114.160.40.66', 'end': '114.160.40.126'}], 'gateway_ip': '114.160.40.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.160.40.66', 'tags': [], 'project_id': '414227c003344915b298f4c9748cd4b7'}}
2026-09-18 01:54:28,598 - INFO - Created VN ctest-vn-66722507
2026-09-18 01:54:28,650 - DEBUG - VN ctest-vn-66722507 UUID is 8e352e2a-e072-46dd-a5b5-cdaccffa754e
2026-09-18 01:54:28,950 - DEBUG - Response for create_network : {'network': {'id': '705f5d99-136d-4aac-a482-f26f0d20dd76', 'name': 'ctest-vn-91967488', 'tenant_id': '414227c003344915b298f4c9748cd4b7', 'project_id': '414227c003344915b298f4c9748cd4b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-vn-91967488'], 'port_security_enabled': True, 'description': ''}}
2026-09-18 01:54:29,120 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eba7904e-7485-4597-b617-61ba0830c652', 'name': '', 'tenant_id': '414227c003344915b298f4c9748cd4b7', 'network_id': '705f5d99-136d-4aac-a482-f26f0d20dd76', 'ip_version': 4, 'cidr': '125.187.51.0/26', 'allocation_pools': [{'start': '125.187.51.2', 'end': '125.187.51.62'}], 'gateway_ip': '125.187.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.187.51.2', 'tags': [], 'project_id': '414227c003344915b298f4c9748cd4b7'}}
2026-09-18 01:54:29,137 - INFO - Created VN ctest-vn-91967488
2026-09-18 01:54:29,190 - DEBUG - VN ctest-vn-91967488 UUID is 705f5d99-136d-4aac-a482-f26f0d20dd76
2026-09-18 01:54:29,342 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-66722507, 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-44067526:ctest-vn-91967488, 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-09-18 01:54:29,653 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e352e2a-e072-46dd-a5b5-cdaccffa754e', 'name': 'ctest-vn-66722507', 'tenant_id': '414227c003344915b298f4c9748cd4b7', 'project_id': '414227c003344915b298f4c9748cd4b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1c0e4e09-ecc5-4542-a8b3-120a0b5e833a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-vn-66722507'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-policy-allow-all-83072799']], 'subnet_ipam': [{'subnet_cidr': '114.160.40.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-18 01:54:29,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '705f5d99-136d-4aac-a482-f26f0d20dd76', 'name': 'ctest-vn-91967488', 'tenant_id': '414227c003344915b298f4c9748cd4b7', 'project_id': '414227c003344915b298f4c9748cd4b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['eba7904e-7485-4597-b617-61ba0830c652'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-vn-91967488'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-policy-allow-all-83072799']], 'subnet_ipam': [{'subnet_cidr': '125.187.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-18 01:54:30,078 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-18 01:54:30,462 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-18 01:54:30,490 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5
2026-09-18 01:54:30,503 - DEBUG - Requesting: http://10.0.0.163:8082/project/414227c0-0334-4915-b298-f4c9748cd4b7
2026-09-18 01:54:30,576 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/8e352e2a-e072-46dd-a5b5-cdaccffa754e
2026-09-18 01:54:30,587 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/8e352e2a-e072-46dd-a5b5-cdaccffa754e
2026-09-18 01:54:30,595 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/f9b58b6f-354d-4293-a071-c4c277b8b1c0
2026-09-18 01:54:30,602 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/f9b58b6f-354d-4293-a071-c4c277b8b1c0
2026-09-18 01:54:30,609 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/c5cf23b6-d9f3-41ec-a2e7-88ddd2674e81
2026-09-18 01:54:30,616 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-18 01:54:30,616 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/8e352e2a-e072-46dd-a5b5-cdaccffa754e
2026-09-18 01:54:30,625 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/f9b58b6f-354d-4293-a071-c4c277b8b1c0
2026-09-18 01:54:30,637 - INFO - Verified VN network id 12 for VN 8e352e2a-e072-46dd-a5b5-cdaccffa754e
2026-09-18 01:54:30,637 - INFO - Verifications in API Server for VN ctest-vn-66722507 passed
2026-09-18 01:54:30,637 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/8e352e2a-e072-46dd-a5b5-cdaccffa754e
2026-09-18 01:54:30,645 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/f9b58b6f-354d-4293-a071-c4c277b8b1c0
2026-09-18 01:54:30,651 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/f9b58b6f-354d-4293-a071-c4c277b8b1c0
2026-09-18 01:54:30,657 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/c5cf23b6-d9f3-41ec-a2e7-88ddd2674e81
2026-09-18 01:54:30,668 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-66722507', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44067526', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10247147288840521437', 'uuid-lslong': '11940676129150104910'}, 'enable': 'true', 'created': '2026-09-18T01:54:28', 'last-modified': '2026-09-18T01:54:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.045389'}
2026-09-18 01:54:30,675 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-18 01:54:30,675 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66722507 passed
2026-09-18 01:54:30,676 - DEBUG - ====Verifying policy data for ctest-vn-66722507 in API_Server ======
2026-09-18 01:54:30,676 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-18 01:54:30,682 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5
2026-09-18 01:54:30,693 - DEBUG - Requesting: http://10.0.0.163:8082/project/414227c0-0334-4915-b298-f4c9748cd4b7
2026-09-18 01:54:30,773 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/8e352e2a-e072-46dd-a5b5-cdaccffa754e
2026-09-18 01:54:30,784 - DEBUG - ==>Verifying data for policy with id: f49ea536-92a2-444e-9d06-32cf6c2a830f, fqn: ['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-policy-allow-all-83072799']
2026-09-18 01:54:30,784 - INFO - VN ctest-vn-66722507 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-18 01:54:30,784 - DEBUG - Verifying the vn in opserver
2026-09-18 01:54:30,784 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-66722507 virtual network link through opserver 10.0.0.163
2026-09-18 01:54:30,784 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-09-18 01:54:31,153 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-09-18 01:54:31,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-66722507', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-66722507?flat'}
2026-09-18 01:54:31,203 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-66722507 is found in opserver
2026-09-18 01:54:31,215 - DEBUG - Do not have enough data to verify VN in agent
2026-09-18 01:54:31,221 - DEBUG - VRF ids for VN ctest-vn-66722507: {}
2026-09-18 01:54:31,221 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-18 01:54:31,227 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5
2026-09-18 01:54:31,239 - DEBUG - Requesting: http://10.0.0.163:8082/project/414227c0-0334-4915-b298-f4c9748cd4b7
2026-09-18 01:54:31,318 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/705f5d99-136d-4aac-a482-f26f0d20dd76
2026-09-18 01:54:31,330 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/705f5d99-136d-4aac-a482-f26f0d20dd76
2026-09-18 01:54:31,339 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5418c64d-ea93-49b7-8b2c-2da1b13228fd
2026-09-18 01:54:31,345 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5418c64d-ea93-49b7-8b2c-2da1b13228fd
2026-09-18 01:54:31,351 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/5b9e4cbe-bd76-4e2c-843a-96f883f18ac4
2026-09-18 01:54:31,357 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-18 01:54:31,357 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/705f5d99-136d-4aac-a482-f26f0d20dd76
2026-09-18 01:54:31,364 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5418c64d-ea93-49b7-8b2c-2da1b13228fd
2026-09-18 01:54:31,378 - INFO - Verified VN network id 13 for VN 705f5d99-136d-4aac-a482-f26f0d20dd76
2026-09-18 01:54:31,378 - INFO - Verifications in API Server for VN ctest-vn-91967488 passed
2026-09-18 01:54:31,378 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/705f5d99-136d-4aac-a482-f26f0d20dd76
2026-09-18 01:54:31,387 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5418c64d-ea93-49b7-8b2c-2da1b13228fd
2026-09-18 01:54:31,394 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/5418c64d-ea93-49b7-8b2c-2da1b13228fd
2026-09-18 01:54:31,401 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/5b9e4cbe-bd76-4e2c-843a-96f883f18ac4
2026-09-18 01:54:31,414 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-91967488', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44067526', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8097293567072750252', 'uuid-lslong': '11854303727968116086'}, 'enable': 'true', 'created': '2026-09-18T01:54:28', 'last-modified': '2026-09-18T01:54:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540090'}
2026-09-18 01:54:31,422 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-18 01:54:31,422 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91967488 passed
2026-09-18 01:54:31,422 - DEBUG - ====Verifying policy data for ctest-vn-91967488 in API_Server ======
2026-09-18 01:54:31,423 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-09-18 01:54:31,428 - DEBUG - Requesting: http://10.0.0.163:8082/domain/8ed64992-c64c-4e0e-8290-6174b393a9e5
2026-09-18 01:54:31,438 - DEBUG - Requesting: http://10.0.0.163:8082/project/414227c0-0334-4915-b298-f4c9748cd4b7
2026-09-18 01:54:31,517 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/705f5d99-136d-4aac-a482-f26f0d20dd76
2026-09-18 01:54:31,528 - DEBUG - ==>Verifying data for policy with id: f49ea536-92a2-444e-9d06-32cf6c2a830f, fqn: ['default-domain', 'ctest-TestBasicPolicy-44067526', 'ctest-policy-allow-all-83072799']
2026-09-18 01:54:31,528 - INFO - VN ctest-vn-91967488 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-18 01:54:31,528 - DEBUG - Verifying the vn in opserver
2026-09-18 01:54:31,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-91967488 virtual network link through opserver 10.0.0.163
2026-09-18 01:54:31,528 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-09-18 01:54:31,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-91967488', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-91967488?flat'}
2026-09-18 01:54:31,538 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44067526:ctest-vn-91967488 is found in opserver
2026-09-18 01:54:31,551 - DEBUG - Do not have enough data to verify VN in agent
2026-09-18 01:54:31,556 - DEBUG - VRF ids for VN ctest-vn-91967488: {}
2026-09-18 01:54:31,635 - DEBUG - Services list from nova: [