2026-03-25 13:21:23,943 - INFO - Domain Default found not creating
2026-03-25 13:21:24,245 - INFO - Project ctest-TestBasicPolicy-07279099 not found, creating it
2026-03-25 13:21:24,901 - INFO - Created Project:ctest-TestBasicPolicy-07279099, ID : 168fb287-22cb-4e65-a0ac-baba27336e72
2026-03-25 13:21:26,676 - INFO - ================================================================================
2026-03-25 13:21:26,676 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-25 13:21:26,677 - 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-03-25 13:21:26,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2026-03-25 13:21:26,963 - INFO - Initial checks done. Running the testcase now
2026-03-25 13:21:26,963 - INFO -
2026-03-25 13:21:27,639 - DEBUG - Response for create_network : {'network': {'id': '46d4b88e-d210-4bea-85a4-42f904c3a66c', 'name': 'ctest-vn-21223754', 'tenant_id': '168fb28722cb4e65a0acbaba27336e72', 'project_id': '168fb28722cb4e65a0acbaba27336e72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-vn-21223754'], 'port_security_enabled': True, 'description': ''}}
2026-03-25 13:21:27,883 - DEBUG - Response for create_subnet : {'subnet': {'id': '92bb26d4-f58c-4225-a37c-8856902f6b92', 'name': '', 'tenant_id': '168fb28722cb4e65a0acbaba27336e72', 'network_id': '46d4b88e-d210-4bea-85a4-42f904c3a66c', 'ip_version': 4, 'cidr': '113.237.11.64/26', 'allocation_pools': [{'start': '113.237.11.66', 'end': '113.237.11.126'}], 'gateway_ip': '113.237.11.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.237.11.66', 'tags': [], 'project_id': '168fb28722cb4e65a0acbaba27336e72'}}
2026-03-25 13:21:27,905 - INFO - Created VN ctest-vn-21223754
2026-03-25 13:21:27,959 - DEBUG - VN ctest-vn-21223754 UUID is 46d4b88e-d210-4bea-85a4-42f904c3a66c
2026-03-25 13:21:28,285 - DEBUG - Response for create_network : {'network': {'id': 'f243d8d6-7362-47c9-991e-1d1772ca64fb', 'name': 'ctest-vn-16371163', 'tenant_id': '168fb28722cb4e65a0acbaba27336e72', 'project_id': '168fb28722cb4e65a0acbaba27336e72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-vn-16371163'], 'port_security_enabled': True, 'description': ''}}
2026-03-25 13:21:28,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e2e39e0-6222-4d6e-8c90-580cea208558', 'name': '', 'tenant_id': '168fb28722cb4e65a0acbaba27336e72', 'network_id': 'f243d8d6-7362-47c9-991e-1d1772ca64fb', 'ip_version': 4, 'cidr': '45.190.230.0/26', 'allocation_pools': [{'start': '45.190.230.2', 'end': '45.190.230.62'}], 'gateway_ip': '45.190.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.190.230.2', 'tags': [], 'project_id': '168fb28722cb4e65a0acbaba27336e72'}}
2026-03-25 13:21:28,554 - INFO - Created VN ctest-vn-16371163
2026-03-25 13:21:28,611 - DEBUG - VN ctest-vn-16371163 UUID is f243d8d6-7362-47c9-991e-1d1772ca64fb
2026-03-25 13:21:28,752 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-21223754, 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-07279099:ctest-vn-16371163, 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-03-25 13:21:29,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46d4b88e-d210-4bea-85a4-42f904c3a66c', 'name': 'ctest-vn-21223754', 'tenant_id': '168fb28722cb4e65a0acbaba27336e72', 'project_id': '168fb28722cb4e65a0acbaba27336e72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92bb26d4-f58c-4225-a37c-8856902f6b92'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-vn-21223754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-policy-allow-all-30557085']], 'subnet_ipam': [{'subnet_cidr': '113.237.11.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-25 13:21:29,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f243d8d6-7362-47c9-991e-1d1772ca64fb', 'name': 'ctest-vn-16371163', 'tenant_id': '168fb28722cb4e65a0acbaba27336e72', 'project_id': '168fb28722cb4e65a0acbaba27336e72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e2e39e0-6222-4d6e-8c90-580cea208558'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-vn-16371163'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-policy-allow-all-30557085']], 'subnet_ipam': [{'subnet_cidr': '45.190.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-25 13:21:29,519 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-25 13:21:30,107 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-25 13:21:30,163 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e
2026-03-25 13:21:30,179 - DEBUG - Requesting: http://10.0.0.22:8082/project/168fb287-22cb-4e65-a0ac-baba27336e72
2026-03-25 13:21:30,257 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/46d4b88e-d210-4bea-85a4-42f904c3a66c
2026-03-25 13:21:30,268 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/46d4b88e-d210-4bea-85a4-42f904c3a66c
2026-03-25 13:21:30,280 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db7a3ca-5553-4536-9093-ffb1cc9c6d95
2026-03-25 13:21:30,289 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db7a3ca-5553-4536-9093-ffb1cc9c6d95
2026-03-25 13:21:30,297 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/09a5d217-0ea5-42dc-bbbf-b26ad5bbf230
2026-03-25 13:21:30,311 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-25 13:21:30,311 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/46d4b88e-d210-4bea-85a4-42f904c3a66c
2026-03-25 13:21:30,329 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db7a3ca-5553-4536-9093-ffb1cc9c6d95
2026-03-25 13:21:30,347 - INFO - Verified VN network id 11 for VN 46d4b88e-d210-4bea-85a4-42f904c3a66c
2026-03-25 13:21:30,347 - INFO - Verifications in API Server for VN ctest-vn-21223754 passed
2026-03-25 13:21:30,347 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/46d4b88e-d210-4bea-85a4-42f904c3a66c
2026-03-25 13:21:30,362 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db7a3ca-5553-4536-9093-ffb1cc9c6d95
2026-03-25 13:21:30,372 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1db7a3ca-5553-4536-9093-ffb1cc9c6d95
2026-03-25 13:21:30,380 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/09a5d217-0ea5-42dc-bbbf-b26ad5bbf230
2026-03-25 13:21:30,395 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-21223754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07279099', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5103907201266764778', 'uuid-lslong': '9629895540519183980'}, 'enable': 'true', 'created': '2026-03-25T13:21:27', 'last-modified': '2026-03-25T13:21:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.339010'}
2026-03-25 13:21:30,405 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-25 13:21:30,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21223754 passed
2026-03-25 13:21:30,405 - DEBUG - ====Verifying policy data for ctest-vn-21223754 in API_Server ======
2026-03-25 13:21:30,405 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-25 13:21:30,412 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e
2026-03-25 13:21:30,429 - DEBUG - Requesting: http://10.0.0.22:8082/project/168fb287-22cb-4e65-a0ac-baba27336e72
2026-03-25 13:21:30,508 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/46d4b88e-d210-4bea-85a4-42f904c3a66c
2026-03-25 13:21:30,519 - DEBUG - ==>Verifying data for policy with id: fd7b0a56-8c92-4502-a392-3f9cec8fde93, fqn: ['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-policy-allow-all-30557085']
2026-03-25 13:21:30,519 - INFO - VN ctest-vn-21223754 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-25 13:21:30,519 - DEBUG - Verifying the vn in opserver
2026-03-25 13:21:30,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-21223754 virtual network link through opserver 10.0.0.22
2026-03-25 13:21:30,519 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-25 13:21:30,839 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-25 13:21:30,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-21223754', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-21223754?flat'}
2026-03-25 13:21:30,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-21223754 is found in opserver
2026-03-25 13:21:30,951 - DEBUG - Do not have enough data to verify VN in agent
2026-03-25 13:21:30,958 - DEBUG - VRF ids for VN ctest-vn-21223754: {}
2026-03-25 13:21:30,958 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-25 13:21:30,966 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e
2026-03-25 13:21:30,980 - DEBUG - Requesting: http://10.0.0.22:8082/project/168fb287-22cb-4e65-a0ac-baba27336e72
2026-03-25 13:21:31,054 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f243d8d6-7362-47c9-991e-1d1772ca64fb
2026-03-25 13:21:31,069 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f243d8d6-7362-47c9-991e-1d1772ca64fb
2026-03-25 13:21:31,080 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/07eb1d2d-38dc-423f-b63d-42868d6f3709
2026-03-25 13:21:31,088 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/07eb1d2d-38dc-423f-b63d-42868d6f3709
2026-03-25 13:21:31,095 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0803ddfd-fb95-4479-816e-74fa81295a56
2026-03-25 13:21:31,103 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-25 13:21:31,103 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f243d8d6-7362-47c9-991e-1d1772ca64fb
2026-03-25 13:21:31,114 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/07eb1d2d-38dc-423f-b63d-42868d6f3709
2026-03-25 13:21:31,131 - INFO - Verified VN network id 12 for VN f243d8d6-7362-47c9-991e-1d1772ca64fb
2026-03-25 13:21:31,131 - INFO - Verifications in API Server for VN ctest-vn-16371163 passed
2026-03-25 13:21:31,132 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f243d8d6-7362-47c9-991e-1d1772ca64fb
2026-03-25 13:21:31,143 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/07eb1d2d-38dc-423f-b63d-42868d6f3709
2026-03-25 13:21:31,153 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/07eb1d2d-38dc-423f-b63d-42868d6f3709
2026-03-25 13:21:31,162 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0803ddfd-fb95-4479-816e-74fa81295a56
2026-03-25 13:21:31,176 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-16371163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07279099', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17457034996188596169', 'uuid-lslong': '11033288123651613947'}, 'enable': 'true', 'created': '2026-03-25T13:21:28', 'last-modified': '2026-03-25T13:21:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.865170'}
2026-03-25 13:21:31,183 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-25 13:21:31,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16371163 passed
2026-03-25 13:21:31,183 - DEBUG - ====Verifying policy data for ctest-vn-16371163 in API_Server ======
2026-03-25 13:21:31,183 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-25 13:21:31,190 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c616b8cb-bcbf-46ac-b948-8eab99e8ca7e
2026-03-25 13:21:31,203 - DEBUG - Requesting: http://10.0.0.22:8082/project/168fb287-22cb-4e65-a0ac-baba27336e72
2026-03-25 13:21:31,283 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f243d8d6-7362-47c9-991e-1d1772ca64fb
2026-03-25 13:21:31,295 - DEBUG - ==>Verifying data for policy with id: fd7b0a56-8c92-4502-a392-3f9cec8fde93, fqn: ['default-domain', 'ctest-TestBasicPolicy-07279099', 'ctest-policy-allow-all-30557085']
2026-03-25 13:21:31,295 - INFO - VN ctest-vn-16371163 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-25 13:21:31,295 - DEBUG - Verifying the vn in opserver
2026-03-25 13:21:31,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-16371163 virtual network link through opserver 10.0.0.22
2026-03-25 13:21:31,295 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-25 13:21:31,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-16371163', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-16371163?flat'}
2026-03-25 13:21:31,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07279099:ctest-vn-16371163 is found in opserver
2026-03-25 13:21:31,321 - DEBUG - Do not have enough data to verify VN in agent
2026-03-25 13:21:31,327 - DEBUG - VRF ids for VN ctest-vn-16371163: {}
2026-03-25 13:21:31,408 - DEBUG - Services list from nova: [