2026-02-03 00:23:19,257 - INFO - Domain Default found not creating
2026-02-03 00:23:19,426 - INFO - Project ctest-TestBasicPolicy-53564505 not found, creating it
2026-02-03 00:23:19,894 - INFO - Created Project:ctest-TestBasicPolicy-53564505, ID : 4d4d0096-a1f6-462a-8f5f-a95e8aa980c7
2026-02-03 00:23:21,474 - INFO - ================================================================================
2026-02-03 00:23:21,474 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-03 00:23:21,474 - 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-02-03 00:23:21,730 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-03 00:23:21,730 - INFO - Initial checks done. Running the testcase now
2026-02-03 00:23:21,730 - INFO -
2026-02-03 00:23:22,336 - DEBUG - Response for create_network : {'network': {'id': '21187e77-1288-4976-a65d-15bb3d8f5d14', 'name': 'ctest-vn-44057068', 'tenant_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'project_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-vn-44057068'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 00:23:22,565 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea8c3964-f15a-4d9a-b9be-3e23f7690f8e', 'name': '', 'tenant_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'network_id': '21187e77-1288-4976-a65d-15bb3d8f5d14', 'ip_version': 4, 'cidr': '207.177.217.64/26', 'allocation_pools': [{'start': '207.177.217.66', 'end': '207.177.217.126'}], 'gateway_ip': '207.177.217.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.177.217.66', 'tags': [], 'project_id': '4d4d0096a1f6462a8f5fa95e8aa980c7'}}
2026-02-03 00:23:22,587 - INFO - Created VN ctest-vn-44057068
2026-02-03 00:23:22,641 - DEBUG - VN ctest-vn-44057068 UUID is 21187e77-1288-4976-a65d-15bb3d8f5d14
2026-02-03 00:23:22,958 - DEBUG - Response for create_network : {'network': {'id': '5583be87-4632-4de9-84f4-626185a0dbe7', 'name': 'ctest-vn-79191502', 'tenant_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'project_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-vn-79191502'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 00:23:23,172 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdb7d88f-5a7c-4562-9690-b1f95e78eba1', 'name': '', 'tenant_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'network_id': '5583be87-4632-4de9-84f4-626185a0dbe7', 'ip_version': 4, 'cidr': '122.38.97.64/26', 'allocation_pools': [{'start': '122.38.97.66', 'end': '122.38.97.126'}], 'gateway_ip': '122.38.97.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.38.97.66', 'tags': [], 'project_id': '4d4d0096a1f6462a8f5fa95e8aa980c7'}}
2026-02-03 00:23:23,189 - INFO - Created VN ctest-vn-79191502
2026-02-03 00:23:23,241 - DEBUG - VN ctest-vn-79191502 UUID is 5583be87-4632-4de9-84f4-626185a0dbe7
2026-02-03 00:23:23,393 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-44057068, 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-53564505:ctest-vn-79191502, 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-02-03 00:23:23,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21187e77-1288-4976-a65d-15bb3d8f5d14', 'name': 'ctest-vn-44057068', 'tenant_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'project_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea8c3964-f15a-4d9a-b9be-3e23f7690f8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-vn-44057068'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-policy-allow-all-17276209']], 'subnet_ipam': [{'subnet_cidr': '207.177.217.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 00:23:23,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5583be87-4632-4de9-84f4-626185a0dbe7', 'name': 'ctest-vn-79191502', 'tenant_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'project_id': '4d4d0096a1f6462a8f5fa95e8aa980c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cdb7d88f-5a7c-4562-9690-b1f95e78eba1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-vn-79191502'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-policy-allow-all-17276209']], 'subnet_ipam': [{'subnet_cidr': '122.38.97.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 00:23:24,073 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 00:23:24,376 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 00:23:24,408 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeaa701-f111-42ae-afc5-cd1ea8b3ed7d
2026-02-03 00:23:24,421 - DEBUG - Requesting: http://10.0.0.50:8082/project/4d4d0096-a1f6-462a-8f5f-a95e8aa980c7
2026-02-03 00:23:24,489 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/21187e77-1288-4976-a65d-15bb3d8f5d14
2026-02-03 00:23:24,499 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/21187e77-1288-4976-a65d-15bb3d8f5d14
2026-02-03 00:23:24,507 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/253acf61-82d7-42a5-a09b-5961273b87b7
2026-02-03 00:23:24,514 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/253acf61-82d7-42a5-a09b-5961273b87b7
2026-02-03 00:23:24,521 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d66bc514-8f59-440f-a587-c9a714b8b7bf
2026-02-03 00:23:24,528 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 00:23:24,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/21187e77-1288-4976-a65d-15bb3d8f5d14
2026-02-03 00:23:24,536 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/253acf61-82d7-42a5-a09b-5961273b87b7
2026-02-03 00:23:24,552 - INFO - Verified VN network id 12 for VN 21187e77-1288-4976-a65d-15bb3d8f5d14
2026-02-03 00:23:24,552 - INFO - Verifications in API Server for VN ctest-vn-44057068 passed
2026-02-03 00:23:24,552 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/21187e77-1288-4976-a65d-15bb3d8f5d14
2026-02-03 00:23:24,563 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/253acf61-82d7-42a5-a09b-5961273b87b7
2026-02-03 00:23:24,573 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/253acf61-82d7-42a5-a09b-5961273b87b7
2026-02-03 00:23:24,583 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d66bc514-8f59-440f-a587-c9a714b8b7bf
2026-02-03 00:23:24,598 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-44057068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53564505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2384795052569807222', 'uuid-lslong': '11987761677066001684'}, 'enable': 'true', 'created': '2026-02-03T00:23:22', 'last-modified': '2026-02-03T00:23:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934507'}
2026-02-03 00:23:24,604 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 00:23:24,604 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44057068 passed
2026-02-03 00:23:24,604 - DEBUG - ====Verifying policy data for ctest-vn-44057068 in API_Server ======
2026-02-03 00:23:24,604 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 00:23:24,610 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeaa701-f111-42ae-afc5-cd1ea8b3ed7d
2026-02-03 00:23:24,621 - DEBUG - Requesting: http://10.0.0.50:8082/project/4d4d0096-a1f6-462a-8f5f-a95e8aa980c7
2026-02-03 00:23:24,691 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/21187e77-1288-4976-a65d-15bb3d8f5d14
2026-02-03 00:23:24,699 - DEBUG - ==>Verifying data for policy with id: a26eae8d-81c3-48f4-80c6-203eed0d77cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-policy-allow-all-17276209']
2026-02-03 00:23:24,699 - INFO - VN ctest-vn-44057068 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 00:23:24,699 - DEBUG - Verifying the vn in opserver
2026-02-03 00:23:24,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-44057068 virtual network link through opserver 10.0.0.50
2026-02-03 00:23:24,700 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-03 00:23:25,001 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-03 00:23:25,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-44057068', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-44057068?flat'}
2026-02-03 00:23:25,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-44057068 is found in opserver
2026-02-03 00:23:25,077 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 00:23:25,081 - DEBUG - VRF ids for VN ctest-vn-44057068: {}
2026-02-03 00:23:25,081 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 00:23:25,087 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeaa701-f111-42ae-afc5-cd1ea8b3ed7d
2026-02-03 00:23:25,098 - DEBUG - Requesting: http://10.0.0.50:8082/project/4d4d0096-a1f6-462a-8f5f-a95e8aa980c7
2026-02-03 00:23:25,167 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5583be87-4632-4de9-84f4-626185a0dbe7
2026-02-03 00:23:25,179 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5583be87-4632-4de9-84f4-626185a0dbe7
2026-02-03 00:23:25,188 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cada7ee3-96b9-45c4-b316-f88519c73c51
2026-02-03 00:23:25,195 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cada7ee3-96b9-45c4-b316-f88519c73c51
2026-02-03 00:23:25,201 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ffe14276-3764-41d6-98be-a6d011d0364e
2026-02-03 00:23:25,208 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 00:23:25,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5583be87-4632-4de9-84f4-626185a0dbe7
2026-02-03 00:23:25,217 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cada7ee3-96b9-45c4-b316-f88519c73c51
2026-02-03 00:23:25,231 - INFO - Verified VN network id 13 for VN 5583be87-4632-4de9-84f4-626185a0dbe7
2026-02-03 00:23:25,231 - INFO - Verifications in API Server for VN ctest-vn-79191502 passed
2026-02-03 00:23:25,231 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5583be87-4632-4de9-84f4-626185a0dbe7
2026-02-03 00:23:25,240 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cada7ee3-96b9-45c4-b316-f88519c73c51
2026-02-03 00:23:25,246 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cada7ee3-96b9-45c4-b316-f88519c73c51
2026-02-03 00:23:25,251 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ffe14276-3764-41d6-98be-a6d011d0364e
2026-02-03 00:23:25,262 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-79191502', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53564505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6161978203380534761', 'uuid-lslong': '9580390478317149159'}, 'enable': 'true', 'created': '2026-02-03T00:23:22', 'last-modified': '2026-02-03T00:23:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373673'}
2026-02-03 00:23:25,269 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 00:23:25,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79191502 passed
2026-02-03 00:23:25,270 - DEBUG - ====Verifying policy data for ctest-vn-79191502 in API_Server ======
2026-02-03 00:23:25,270 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 00:23:25,277 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeaa701-f111-42ae-afc5-cd1ea8b3ed7d
2026-02-03 00:23:25,287 - DEBUG - Requesting: http://10.0.0.50:8082/project/4d4d0096-a1f6-462a-8f5f-a95e8aa980c7
2026-02-03 00:23:25,355 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5583be87-4632-4de9-84f4-626185a0dbe7
2026-02-03 00:23:25,365 - DEBUG - ==>Verifying data for policy with id: a26eae8d-81c3-48f4-80c6-203eed0d77cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-53564505', 'ctest-policy-allow-all-17276209']
2026-02-03 00:23:25,365 - INFO - VN ctest-vn-79191502 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 00:23:25,365 - DEBUG - Verifying the vn in opserver
2026-02-03 00:23:25,365 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-79191502 virtual network link through opserver 10.0.0.50
2026-02-03 00:23:25,366 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-03 00:23:25,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-79191502', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-79191502?flat'}
2026-02-03 00:23:25,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53564505:ctest-vn-79191502 is found in opserver
2026-02-03 00:23:25,383 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 00:23:25,388 - DEBUG - VRF ids for VN ctest-vn-79191502: {}
2026-02-03 00:23:25,445 - DEBUG - Services list from nova: [