2026-04-03 10:52:41,927 - INFO - Domain Default found not creating
2026-04-03 10:52:42,136 - INFO - Project ctest-TestBasicPolicy-90815266 not found, creating it
2026-04-03 10:52:42,639 - INFO - Created Project:ctest-TestBasicPolicy-90815266, ID : d5d8a8a8-2a10-4882-8edc-e24b2da808ee
2026-04-03 10:52:44,304 - INFO - ================================================================================
2026-04-03 10:52:44,304 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-03 10:52:44,304 - 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-04-03 10:52:44,577 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-04-03 10:52:44,577 - INFO - Initial checks done. Running the testcase now
2026-04-03 10:52:44,577 - INFO -
2026-04-03 10:52:45,191 - DEBUG - Response for create_network : {'network': {'id': 'a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15', 'name': 'ctest-vn-92630434', 'tenant_id': 'd5d8a8a82a1048828edce24b2da808ee', 'project_id': 'd5d8a8a82a1048828edce24b2da808ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-vn-92630434'], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:52:45,425 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea1151ee-86f0-4425-b8dc-6efd8d7c451d', 'name': '', 'tenant_id': 'd5d8a8a82a1048828edce24b2da808ee', 'network_id': 'a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15', 'ip_version': 4, 'cidr': '149.52.17.0/26', 'allocation_pools': [{'start': '149.52.17.2', 'end': '149.52.17.62'}], 'gateway_ip': '149.52.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.52.17.2', 'tags': [], 'project_id': 'd5d8a8a82a1048828edce24b2da808ee'}}
2026-04-03 10:52:45,449 - INFO - Created VN ctest-vn-92630434
2026-04-03 10:52:45,503 - DEBUG - VN ctest-vn-92630434 UUID is a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15
2026-04-03 10:52:45,814 - DEBUG - Response for create_network : {'network': {'id': '8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce', 'name': 'ctest-vn-39003788', 'tenant_id': 'd5d8a8a82a1048828edce24b2da808ee', 'project_id': 'd5d8a8a82a1048828edce24b2da808ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-vn-39003788'], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:52:46,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '0589bbed-f883-49b2-bf50-1f623e985a9c', 'name': '', 'tenant_id': 'd5d8a8a82a1048828edce24b2da808ee', 'network_id': '8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce', 'ip_version': 4, 'cidr': '24.107.16.192/26', 'allocation_pools': [{'start': '24.107.16.194', 'end': '24.107.16.254'}], 'gateway_ip': '24.107.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.107.16.194', 'tags': [], 'project_id': 'd5d8a8a82a1048828edce24b2da808ee'}}
2026-04-03 10:52:46,084 - INFO - Created VN ctest-vn-39003788
2026-04-03 10:52:46,139 - DEBUG - VN ctest-vn-39003788 UUID is 8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce
2026-04-03 10:52:46,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-92630434, 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-90815266:ctest-vn-39003788, 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-04-03 10:52:46,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15', 'name': 'ctest-vn-92630434', 'tenant_id': 'd5d8a8a82a1048828edce24b2da808ee', 'project_id': 'd5d8a8a82a1048828edce24b2da808ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea1151ee-86f0-4425-b8dc-6efd8d7c451d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-vn-92630434'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-policy-allow-all-93260238']], 'subnet_ipam': [{'subnet_cidr': '149.52.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:52:46,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce', 'name': 'ctest-vn-39003788', 'tenant_id': 'd5d8a8a82a1048828edce24b2da808ee', 'project_id': 'd5d8a8a82a1048828edce24b2da808ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0589bbed-f883-49b2-bf50-1f623e985a9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-vn-39003788'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-policy-allow-all-93260238']], 'subnet_ipam': [{'subnet_cidr': '24.107.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-03 10:52:47,035 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-03 10:52:47,340 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-03 10:52:47,376 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74
2026-04-03 10:52:47,392 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5d8a8a8-2a10-4882-8edc-e24b2da808ee
2026-04-03 10:52:47,467 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15
2026-04-03 10:52:47,479 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15
2026-04-03 10:52:47,489 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a09aac13-2035-4aee-a069-93e7f6e8d327
2026-04-03 10:52:47,497 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a09aac13-2035-4aee-a069-93e7f6e8d327
2026-04-03 10:52:47,505 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4627c9f4-d89c-4814-af4d-ccd397fcfe03
2026-04-03 10:52:47,512 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-03 10:52:47,512 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15
2026-04-03 10:52:47,521 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a09aac13-2035-4aee-a069-93e7f6e8d327
2026-04-03 10:52:47,537 - INFO - Verified VN network id 11 for VN a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15
2026-04-03 10:52:47,537 - INFO - Verifications in API Server for VN ctest-vn-92630434 passed
2026-04-03 10:52:47,537 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15
2026-04-03 10:52:47,547 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a09aac13-2035-4aee-a069-93e7f6e8d327
2026-04-03 10:52:47,555 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a09aac13-2035-4aee-a069-93e7f6e8d327
2026-04-03 10:52:47,562 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4627c9f4-d89c-4814-af4d-ccd397fcfe03
2026-04-03 10:52:47,575 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-92630434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90815266', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11663188537252793365', 'uuid-lslong': '9721979332882328853'}, 'enable': 'true', 'created': '2026-04-03T10:52:45', 'last-modified': '2026-04-03T10:52:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011315'}
2026-04-03 10:52:47,581 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-03 10:52:47,581 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92630434 passed
2026-04-03 10:52:47,582 - DEBUG - ====Verifying policy data for ctest-vn-92630434 in API_Server ======
2026-04-03 10:52:47,582 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-03 10:52:47,588 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74
2026-04-03 10:52:47,601 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5d8a8a8-2a10-4882-8edc-e24b2da808ee
2026-04-03 10:52:47,678 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a1dbf82e-2f5c-4c15-86eb-68b1aa23ed15
2026-04-03 10:52:47,688 - DEBUG - ==>Verifying data for policy with id: 4a74fefe-4def-408e-9c82-149adfad0db4, fqn: ['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-policy-allow-all-93260238']
2026-04-03 10:52:47,689 - INFO - VN ctest-vn-92630434 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-03 10:52:47,689 - DEBUG - Verifying the vn in opserver
2026-04-03 10:52:47,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-92630434 virtual network link through opserver 10.0.0.22
2026-04-03 10:52:47,689 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-03 10:52:47,992 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-03 10:52:48,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-92630434', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-92630434?flat'}
2026-04-03 10:52:48,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-92630434 is found in opserver
2026-04-03 10:52:48,080 - DEBUG - Do not have enough data to verify VN in agent
2026-04-03 10:52:48,087 - DEBUG - VRF ids for VN ctest-vn-92630434: {}
2026-04-03 10:52:48,087 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-03 10:52:48,094 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74
2026-04-03 10:52:48,106 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5d8a8a8-2a10-4882-8edc-e24b2da808ee
2026-04-03 10:52:48,185 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce
2026-04-03 10:52:48,197 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce
2026-04-03 10:52:48,207 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49d029a4-9f37-4f89-b830-8a07414d1f66
2026-04-03 10:52:48,215 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49d029a4-9f37-4f89-b830-8a07414d1f66
2026-04-03 10:52:48,222 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/61e56fc3-37df-40d9-917d-d63d9936c7c7
2026-04-03 10:52:48,231 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-03 10:52:48,231 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce
2026-04-03 10:52:48,240 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49d029a4-9f37-4f89-b830-8a07414d1f66
2026-04-03 10:52:48,256 - INFO - Verified VN network id 12 for VN 8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce
2026-04-03 10:52:48,256 - INFO - Verifications in API Server for VN ctest-vn-39003788 passed
2026-04-03 10:52:48,256 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce
2026-04-03 10:52:48,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49d029a4-9f37-4f89-b830-8a07414d1f66
2026-04-03 10:52:48,275 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/49d029a4-9f37-4f89-b830-8a07414d1f66
2026-04-03 10:52:48,283 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/61e56fc3-37df-40d9-917d-d63d9936c7c7
2026-04-03 10:52:48,300 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-39003788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90815266', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10172946231032957229', 'uuid-lslong': '13538451542342649550'}, 'enable': 'true', 'created': '2026-04-03T10:52:45', 'last-modified': '2026-04-03T10:52:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495439'}
2026-04-03 10:52:48,308 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-03 10:52:48,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39003788 passed
2026-04-03 10:52:48,309 - DEBUG - ====Verifying policy data for ctest-vn-39003788 in API_Server ======
2026-04-03 10:52:48,309 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-04-03 10:52:48,316 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8768d7b1-4bb9-4889-82d6-90e1e1aeec74
2026-04-03 10:52:48,329 - DEBUG - Requesting: http://10.0.0.22:8082/project/d5d8a8a8-2a10-4882-8edc-e24b2da808ee
2026-04-03 10:52:48,408 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8d2d90b2-d3de-492d-bbe2-3df2ae2c46ce
2026-04-03 10:52:48,419 - DEBUG - ==>Verifying data for policy with id: 4a74fefe-4def-408e-9c82-149adfad0db4, fqn: ['default-domain', 'ctest-TestBasicPolicy-90815266', 'ctest-policy-allow-all-93260238']
2026-04-03 10:52:48,419 - INFO - VN ctest-vn-39003788 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-03 10:52:48,419 - DEBUG - Verifying the vn in opserver
2026-04-03 10:52:48,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-39003788 virtual network link through opserver 10.0.0.22
2026-04-03 10:52:48,419 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-04-03 10:52:48,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-39003788', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-39003788?flat'}
2026-04-03 10:52:48,429 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90815266:ctest-vn-39003788 is found in opserver
2026-04-03 10:52:48,439 - DEBUG - Do not have enough data to verify VN in agent
2026-04-03 10:52:48,444 - DEBUG - VRF ids for VN ctest-vn-39003788: {}
2026-04-03 10:52:48,514 - DEBUG - Services list from nova: [