2026-01-28 22:09:36,398 - INFO - Domain Default found not creating
2026-01-28 22:09:36,585 - INFO - Project ctest-TestBasicPolicy-46962336 not found, creating it
2026-01-28 22:09:37,104 - INFO - Created Project:ctest-TestBasicPolicy-46962336, ID : b6fb7abf-937b-43cc-ac16-5925cfe927f9
2026-01-28 22:09:38,634 - INFO - ================================================================================
2026-01-28 22:09:38,635 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 22:09:38,635 - 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-01-28 22:09:38,893 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-01-28 22:09:38,893 - INFO - Initial checks done. Running the testcase now
2026-01-28 22:09:38,893 - INFO -
2026-01-28 22:09:39,454 - DEBUG - Response for create_network : {'network': {'id': '0fbaaaa8-c7b6-45d5-b191-55f07fac6b72', 'name': 'ctest-vn-05184008', 'tenant_id': 'b6fb7abf937b43ccac165925cfe927f9', 'project_id': 'b6fb7abf937b43ccac165925cfe927f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-vn-05184008'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 22:09:39,666 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e26ca769-d591-4d6b-8491-1c9265d1415b', 'name': '', 'tenant_id': 'b6fb7abf937b43ccac165925cfe927f9', 'network_id': '0fbaaaa8-c7b6-45d5-b191-55f07fac6b72', 'ip_version': 4, 'cidr': '157.80.193.128/26', 'allocation_pools': [{'start': '157.80.193.130', 'end': '157.80.193.190'}], 'gateway_ip': '157.80.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.80.193.130', 'tags': [], 'project_id': 'b6fb7abf937b43ccac165925cfe927f9'}}
2026-01-28 22:09:39,690 - INFO - Created VN ctest-vn-05184008
2026-01-28 22:09:39,743 - DEBUG - VN ctest-vn-05184008 UUID is 0fbaaaa8-c7b6-45d5-b191-55f07fac6b72
2026-01-28 22:09:40,037 - DEBUG - Response for create_network : {'network': {'id': 'a40fba80-edc9-4ac5-a221-128ead1bcca4', 'name': 'ctest-vn-33807935', 'tenant_id': 'b6fb7abf937b43ccac165925cfe927f9', 'project_id': 'b6fb7abf937b43ccac165925cfe927f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-vn-33807935'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 22:09:40,211 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c72a95b-7c7d-431d-9e64-4e46b6a06605', 'name': '', 'tenant_id': 'b6fb7abf937b43ccac165925cfe927f9', 'network_id': 'a40fba80-edc9-4ac5-a221-128ead1bcca4', 'ip_version': 4, 'cidr': '11.8.26.128/26', 'allocation_pools': [{'start': '11.8.26.130', 'end': '11.8.26.190'}], 'gateway_ip': '11.8.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.8.26.130', 'tags': [], 'project_id': 'b6fb7abf937b43ccac165925cfe927f9'}}
2026-01-28 22:09:40,230 - INFO - Created VN ctest-vn-33807935
2026-01-28 22:09:40,283 - DEBUG - VN ctest-vn-33807935 UUID is a40fba80-edc9-4ac5-a221-128ead1bcca4
2026-01-28 22:09:40,406 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-05184008, 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-46962336:ctest-vn-33807935, 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-01-28 22:09:40,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0fbaaaa8-c7b6-45d5-b191-55f07fac6b72', 'name': 'ctest-vn-05184008', 'tenant_id': 'b6fb7abf937b43ccac165925cfe927f9', 'project_id': 'b6fb7abf937b43ccac165925cfe927f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e26ca769-d591-4d6b-8491-1c9265d1415b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-vn-05184008'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-policy-allow-all-68924671']], 'subnet_ipam': [{'subnet_cidr': '157.80.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 22:09:41,002 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a40fba80-edc9-4ac5-a221-128ead1bcca4', 'name': 'ctest-vn-33807935', 'tenant_id': 'b6fb7abf937b43ccac165925cfe927f9', 'project_id': 'b6fb7abf937b43ccac165925cfe927f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c72a95b-7c7d-431d-9e64-4e46b6a06605'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-vn-33807935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-policy-allow-all-68924671']], 'subnet_ipam': [{'subnet_cidr': '11.8.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 22:09:41,159 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 22:09:41,473 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 22:09:41,503 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88
2026-01-28 22:09:41,516 - DEBUG - Requesting: http://10.0.0.22:8082/project/b6fb7abf-937b-43cc-ac16-5925cfe927f9
2026-01-28 22:09:41,588 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0fbaaaa8-c7b6-45d5-b191-55f07fac6b72
2026-01-28 22:09:41,603 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0fbaaaa8-c7b6-45d5-b191-55f07fac6b72
2026-01-28 22:09:41,611 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a12680f-176d-4b40-8e33-17b620b3529f
2026-01-28 22:09:41,618 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a12680f-176d-4b40-8e33-17b620b3529f
2026-01-28 22:09:41,624 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cab637a9-a8c3-4856-820d-971d9c274a09
2026-01-28 22:09:41,630 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 22:09:41,630 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0fbaaaa8-c7b6-45d5-b191-55f07fac6b72
2026-01-28 22:09:41,638 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a12680f-176d-4b40-8e33-17b620b3529f
2026-01-28 22:09:41,652 - INFO - Verified VN network id 11 for VN 0fbaaaa8-c7b6-45d5-b191-55f07fac6b72
2026-01-28 22:09:41,653 - INFO - Verifications in API Server for VN ctest-vn-05184008 passed
2026-01-28 22:09:41,653 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0fbaaaa8-c7b6-45d5-b191-55f07fac6b72
2026-01-28 22:09:41,663 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a12680f-176d-4b40-8e33-17b620b3529f
2026-01-28 22:09:41,670 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a12680f-176d-4b40-8e33-17b620b3529f
2026-01-28 22:09:41,676 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cab637a9-a8c3-4856-820d-971d9c274a09
2026-01-28 22:09:41,689 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-05184008', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46962336', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1133405898118940117', 'uuid-lslong': '12795102507758807922'}, 'enable': 'true', 'created': '2026-01-28T22:09:39', 'last-modified': '2026-01-28T22:09:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981370'}
2026-01-28 22:09:41,695 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 22:09:41,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05184008 passed
2026-01-28 22:09:41,695 - DEBUG - ====Verifying policy data for ctest-vn-05184008 in API_Server ======
2026-01-28 22:09:41,695 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 22:09:41,702 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88
2026-01-28 22:09:41,712 - DEBUG - Requesting: http://10.0.0.22:8082/project/b6fb7abf-937b-43cc-ac16-5925cfe927f9
2026-01-28 22:09:41,777 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0fbaaaa8-c7b6-45d5-b191-55f07fac6b72
2026-01-28 22:09:41,788 - DEBUG - ==>Verifying data for policy with id: bd25b414-9966-488d-9170-08354a4fe980, fqn: ['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-policy-allow-all-68924671']
2026-01-28 22:09:41,788 - INFO - VN ctest-vn-05184008 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 22:09:41,788 - DEBUG - Verifying the vn in opserver
2026-01-28 22:09:41,788 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-05184008 virtual network link through opserver 10.0.0.22
2026-01-28 22:09:41,788 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-28 22:09:42,084 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-28 22:09:42,145 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-05184008', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-05184008?flat'}
2026-01-28 22:09:42,145 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-05184008 is found in opserver
2026-01-28 22:09:42,154 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 22:09:42,159 - DEBUG - VRF ids for VN ctest-vn-05184008: {}
2026-01-28 22:09:42,159 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 22:09:42,163 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88
2026-01-28 22:09:42,174 - DEBUG - Requesting: http://10.0.0.22:8082/project/b6fb7abf-937b-43cc-ac16-5925cfe927f9
2026-01-28 22:09:42,242 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a40fba80-edc9-4ac5-a221-128ead1bcca4
2026-01-28 22:09:42,253 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a40fba80-edc9-4ac5-a221-128ead1bcca4
2026-01-28 22:09:42,263 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6657841-69cf-4041-9a67-8d3fbde66e66
2026-01-28 22:09:42,268 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6657841-69cf-4041-9a67-8d3fbde66e66
2026-01-28 22:09:42,274 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7bc4235d-5a5f-4ef8-a82b-befd95b4a1ad
2026-01-28 22:09:42,279 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 22:09:42,279 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a40fba80-edc9-4ac5-a221-128ead1bcca4
2026-01-28 22:09:42,286 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6657841-69cf-4041-9a67-8d3fbde66e66
2026-01-28 22:09:42,297 - INFO - Verified VN network id 12 for VN a40fba80-edc9-4ac5-a221-128ead1bcca4
2026-01-28 22:09:42,298 - INFO - Verifications in API Server for VN ctest-vn-33807935 passed
2026-01-28 22:09:42,298 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a40fba80-edc9-4ac5-a221-128ead1bcca4
2026-01-28 22:09:42,305 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6657841-69cf-4041-9a67-8d3fbde66e66
2026-01-28 22:09:42,311 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6657841-69cf-4041-9a67-8d3fbde66e66
2026-01-28 22:09:42,316 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7bc4235d-5a5f-4ef8-a82b-befd95b4a1ad
2026-01-28 22:09:42,325 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-33807935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46962336', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11821872609778813637', 'uuid-lslong': '11682639312374713508'}, 'enable': 'true', 'created': '2026-01-28T22:09:40', 'last-modified': '2026-01-28T22:09:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.394972'}
2026-01-28 22:09:42,331 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 22:09:42,331 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33807935 passed
2026-01-28 22:09:42,331 - DEBUG - ====Verifying policy data for ctest-vn-33807935 in API_Server ======
2026-01-28 22:09:42,331 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-28 22:09:42,336 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88
2026-01-28 22:09:42,349 - DEBUG - Requesting: http://10.0.0.22:8082/project/b6fb7abf-937b-43cc-ac16-5925cfe927f9
2026-01-28 22:09:42,422 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a40fba80-edc9-4ac5-a221-128ead1bcca4
2026-01-28 22:09:42,430 - DEBUG - ==>Verifying data for policy with id: bd25b414-9966-488d-9170-08354a4fe980, fqn: ['default-domain', 'ctest-TestBasicPolicy-46962336', 'ctest-policy-allow-all-68924671']
2026-01-28 22:09:42,430 - INFO - VN ctest-vn-33807935 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 22:09:42,430 - DEBUG - Verifying the vn in opserver
2026-01-28 22:09:42,430 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-33807935 virtual network link through opserver 10.0.0.22
2026-01-28 22:09:42,430 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-28 22:09:42,439 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-33807935', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-33807935?flat'}
2026-01-28 22:09:42,439 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46962336:ctest-vn-33807935 is found in opserver
2026-01-28 22:09:42,449 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 22:09:42,453 - DEBUG - VRF ids for VN ctest-vn-33807935: {}
2026-01-28 22:09:42,513 - DEBUG - Services list from nova: [