2026-05-03 09:23:35,919 - INFO - Domain Default found not creating
2026-05-03 09:23:36,094 - INFO - Project ctest-TestBasicPolicy-88604235 not found, creating it
2026-05-03 09:23:36,570 - INFO - Created Project:ctest-TestBasicPolicy-88604235, ID : 4549a0b4-a569-4481-a6c3-93bd74be9d73
2026-05-03 09:23:38,053 - INFO - ================================================================================
2026-05-03 09:23:38,053 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-03 09:23:38,053 - 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-05-03 09:23:38,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-03 09:23:38,307 - INFO - Initial checks done. Running the testcase now
2026-05-03 09:23:38,307 - INFO -
2026-05-03 09:23:38,852 - DEBUG - Response for create_network : {'network': {'id': '853ccf65-bd92-4b31-b9ec-e96bf532f16a', 'name': 'ctest-vn-60675753', 'tenant_id': '4549a0b4a5694481a6c393bd74be9d73', 'project_id': '4549a0b4a5694481a6c393bd74be9d73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-vn-60675753'], 'port_security_enabled': True, 'description': ''}}
2026-05-03 09:23:39,056 - DEBUG - Response for create_subnet : {'subnet': {'id': '877f7f8b-f477-42e3-b1ba-54fc4c5e4948', 'name': '', 'tenant_id': '4549a0b4a5694481a6c393bd74be9d73', 'network_id': '853ccf65-bd92-4b31-b9ec-e96bf532f16a', 'ip_version': 4, 'cidr': '203.232.146.64/26', 'allocation_pools': [{'start': '203.232.146.66', 'end': '203.232.146.126'}], 'gateway_ip': '203.232.146.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.232.146.66', 'tags': [], 'project_id': '4549a0b4a5694481a6c393bd74be9d73'}}
2026-05-03 09:23:39,073 - INFO - Created VN ctest-vn-60675753
2026-05-03 09:23:39,124 - DEBUG - VN ctest-vn-60675753 UUID is 853ccf65-bd92-4b31-b9ec-e96bf532f16a
2026-05-03 09:23:39,448 - DEBUG - Response for create_network : {'network': {'id': '60982b49-01b0-446d-b591-aa3f5cb602eb', 'name': 'ctest-vn-75953040', 'tenant_id': '4549a0b4a5694481a6c393bd74be9d73', 'project_id': '4549a0b4a5694481a6c393bd74be9d73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-vn-75953040'], 'port_security_enabled': True, 'description': ''}}
2026-05-03 09:23:39,675 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b51b63c8-9645-49d5-8565-a7ad541a605e', 'name': '', 'tenant_id': '4549a0b4a5694481a6c393bd74be9d73', 'network_id': '60982b49-01b0-446d-b591-aa3f5cb602eb', 'ip_version': 4, 'cidr': '61.229.254.64/26', 'allocation_pools': [{'start': '61.229.254.66', 'end': '61.229.254.126'}], 'gateway_ip': '61.229.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.229.254.66', 'tags': [], 'project_id': '4549a0b4a5694481a6c393bd74be9d73'}}
2026-05-03 09:23:39,692 - INFO - Created VN ctest-vn-75953040
2026-05-03 09:23:39,743 - DEBUG - VN ctest-vn-75953040 UUID is 60982b49-01b0-446d-b591-aa3f5cb602eb
2026-05-03 09:23:39,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-60675753, 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-88604235:ctest-vn-75953040, 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-05-03 09:23:40,148 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '853ccf65-bd92-4b31-b9ec-e96bf532f16a', 'name': 'ctest-vn-60675753', 'tenant_id': '4549a0b4a5694481a6c393bd74be9d73', 'project_id': '4549a0b4a5694481a6c393bd74be9d73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['877f7f8b-f477-42e3-b1ba-54fc4c5e4948'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-vn-60675753'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-policy-allow-all-31559075']], 'subnet_ipam': [{'subnet_cidr': '203.232.146.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-03 09:23:40,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60982b49-01b0-446d-b591-aa3f5cb602eb', 'name': 'ctest-vn-75953040', 'tenant_id': '4549a0b4a5694481a6c393bd74be9d73', 'project_id': '4549a0b4a5694481a6c393bd74be9d73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b51b63c8-9645-49d5-8565-a7ad541a605e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-vn-75953040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-policy-allow-all-31559075']], 'subnet_ipam': [{'subnet_cidr': '61.229.254.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-03 09:23:40,540 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-03 09:23:40,832 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-03 09:23:40,864 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b
2026-05-03 09:23:40,875 - DEBUG - Requesting: http://10.0.0.50:8082/project/4549a0b4-a569-4481-a6c3-93bd74be9d73
2026-05-03 09:23:40,946 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/853ccf65-bd92-4b31-b9ec-e96bf532f16a
2026-05-03 09:23:40,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/853ccf65-bd92-4b31-b9ec-e96bf532f16a
2026-05-03 09:23:40,968 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e53b5f88-289c-49ee-a23f-34dca53d051c
2026-05-03 09:23:40,975 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e53b5f88-289c-49ee-a23f-34dca53d051c
2026-05-03 09:23:40,981 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6ab3bff6-cbe5-454b-8dd5-c6438bf282b1
2026-05-03 09:23:40,987 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-03 09:23:40,987 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/853ccf65-bd92-4b31-b9ec-e96bf532f16a
2026-05-03 09:23:40,996 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e53b5f88-289c-49ee-a23f-34dca53d051c
2026-05-03 09:23:41,009 - INFO - Verified VN network id 11 for VN 853ccf65-bd92-4b31-b9ec-e96bf532f16a
2026-05-03 09:23:41,009 - INFO - Verifications in API Server for VN ctest-vn-60675753 passed
2026-05-03 09:23:41,009 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/853ccf65-bd92-4b31-b9ec-e96bf532f16a
2026-05-03 09:23:41,020 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e53b5f88-289c-49ee-a23f-34dca53d051c
2026-05-03 09:23:41,027 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e53b5f88-289c-49ee-a23f-34dca53d051c
2026-05-03 09:23:41,035 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6ab3bff6-cbe5-454b-8dd5-c6438bf282b1
2026-05-03 09:23:41,047 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-60675753', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88604235', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9600776541526182705', 'uuid-lslong': '13397339641404911978'}, 'enable': 'true', 'created': '2026-05-03T09:23:38', 'last-modified': '2026-05-03T09:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920777'}
2026-05-03 09:23:41,053 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-03 09:23:41,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60675753 passed
2026-05-03 09:23:41,053 - DEBUG - ====Verifying policy data for ctest-vn-60675753 in API_Server ======
2026-05-03 09:23:41,053 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-03 09:23:41,059 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b
2026-05-03 09:23:41,070 - DEBUG - Requesting: http://10.0.0.50:8082/project/4549a0b4-a569-4481-a6c3-93bd74be9d73
2026-05-03 09:23:41,139 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/853ccf65-bd92-4b31-b9ec-e96bf532f16a
2026-05-03 09:23:41,148 - DEBUG - ==>Verifying data for policy with id: d7fa08b3-da31-424f-9096-de058c3caad0, fqn: ['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-policy-allow-all-31559075']
2026-05-03 09:23:41,148 - INFO - VN ctest-vn-60675753 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-03 09:23:41,148 - DEBUG - Verifying the vn in opserver
2026-05-03 09:23:41,148 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-60675753 virtual network link through opserver 10.0.0.50
2026-05-03 09:23:41,148 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-03 09:23:41,437 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-03 09:23:41,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-60675753', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-60675753?flat'}
2026-05-03 09:23:41,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-60675753 is found in opserver
2026-05-03 09:23:41,500 - DEBUG - Do not have enough data to verify VN in agent
2026-05-03 09:23:41,505 - DEBUG - VRF ids for VN ctest-vn-60675753: {}
2026-05-03 09:23:41,505 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-03 09:23:41,511 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b
2026-05-03 09:23:41,521 - DEBUG - Requesting: http://10.0.0.50:8082/project/4549a0b4-a569-4481-a6c3-93bd74be9d73
2026-05-03 09:23:41,596 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60982b49-01b0-446d-b591-aa3f5cb602eb
2026-05-03 09:23:41,610 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60982b49-01b0-446d-b591-aa3f5cb602eb
2026-05-03 09:23:41,620 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f67627d5-acd6-46e5-b253-4a9017d49e25
2026-05-03 09:23:41,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f67627d5-acd6-46e5-b253-4a9017d49e25
2026-05-03 09:23:41,636 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0bc95014-d759-468d-863f-e226a9deb4ef
2026-05-03 09:23:41,643 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-03 09:23:41,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60982b49-01b0-446d-b591-aa3f5cb602eb
2026-05-03 09:23:41,652 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f67627d5-acd6-46e5-b253-4a9017d49e25
2026-05-03 09:23:41,668 - INFO - Verified VN network id 12 for VN 60982b49-01b0-446d-b591-aa3f5cb602eb
2026-05-03 09:23:41,668 - INFO - Verifications in API Server for VN ctest-vn-75953040 passed
2026-05-03 09:23:41,668 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60982b49-01b0-446d-b591-aa3f5cb602eb
2026-05-03 09:23:41,677 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f67627d5-acd6-46e5-b253-4a9017d49e25
2026-05-03 09:23:41,685 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f67627d5-acd6-46e5-b253-4a9017d49e25
2026-05-03 09:23:41,692 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0bc95014-d759-468d-863f-e226a9deb4ef
2026-05-03 09:23:41,705 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-75953040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88604235', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6960360816662037613', 'uuid-lslong': '13083425581603095275'}, 'enable': 'true', 'created': '2026-05-03T09:23:39', 'last-modified': '2026-05-03T09:23:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.357374'}
2026-05-03 09:23:41,711 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-03 09:23:41,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75953040 passed
2026-05-03 09:23:41,712 - DEBUG - ====Verifying policy data for ctest-vn-75953040 in API_Server ======
2026-05-03 09:23:41,712 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-03 09:23:41,718 - DEBUG - Requesting: http://10.0.0.50:8082/domain/daa3f5c7-1515-4732-a643-c4088fd1bf1b
2026-05-03 09:23:41,729 - DEBUG - Requesting: http://10.0.0.50:8082/project/4549a0b4-a569-4481-a6c3-93bd74be9d73
2026-05-03 09:23:41,810 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/60982b49-01b0-446d-b591-aa3f5cb602eb
2026-05-03 09:23:41,818 - DEBUG - ==>Verifying data for policy with id: d7fa08b3-da31-424f-9096-de058c3caad0, fqn: ['default-domain', 'ctest-TestBasicPolicy-88604235', 'ctest-policy-allow-all-31559075']
2026-05-03 09:23:41,819 - INFO - VN ctest-vn-75953040 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-03 09:23:41,819 - DEBUG - Verifying the vn in opserver
2026-05-03 09:23:41,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-75953040 virtual network link through opserver 10.0.0.50
2026-05-03 09:23:41,819 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-03 09:23:41,828 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-75953040', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-75953040?flat'}
2026-05-03 09:23:41,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88604235:ctest-vn-75953040 is found in opserver
2026-05-03 09:23:41,836 - DEBUG - Do not have enough data to verify VN in agent
2026-05-03 09:23:41,841 - DEBUG - VRF ids for VN ctest-vn-75953040: {}
2026-05-03 09:23:41,896 - DEBUG - Services list from nova: [