2025-09-09 22:53:13,017 - INFO - Domain Default found not creating
2025-09-09 22:53:13,160 - INFO - Project ctest-TestBasicPolicy-82178977 not found, creating it
2025-09-09 22:53:13,611 - INFO - Created Project:ctest-TestBasicPolicy-82178977, ID : 73b6c0ca-17e8-4064-8282-290df35a6df8
2025-09-09 22:53:14,989 - INFO - ================================================================================
2025-09-09 22:53:14,989 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-09 22:53:14,989 - 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
2025-09-09 22:53:15,247 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-09 22:53:15,247 - INFO - Initial checks done. Running the testcase now
2025-09-09 22:53:15,247 - INFO -
2025-09-09 22:53:15,786 - DEBUG - Response for create_network : {'network': {'id': 'cf194a65-67a8-41eb-9d39-90cc21b7e5aa', 'name': 'ctest-vn-94439368', 'tenant_id': '73b6c0ca17e840648282290df35a6df8', 'project_id': '73b6c0ca17e840648282290df35a6df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-vn-94439368'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 22:53:15,945 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a32cb386-ec28-4119-83b6-6294955f2963', 'name': '', 'tenant_id': '73b6c0ca17e840648282290df35a6df8', 'network_id': 'cf194a65-67a8-41eb-9d39-90cc21b7e5aa', 'ip_version': 4, 'cidr': '89.95.72.0/26', 'allocation_pools': [{'start': '89.95.72.2', 'end': '89.95.72.62'}], 'gateway_ip': '89.95.72.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.95.72.2', 'tags': [], 'project_id': '73b6c0ca17e840648282290df35a6df8'}}
2025-09-09 22:53:15,961 - INFO - Created VN ctest-vn-94439368
2025-09-09 22:53:16,011 - DEBUG - VN ctest-vn-94439368 UUID is cf194a65-67a8-41eb-9d39-90cc21b7e5aa
2025-09-09 22:53:16,316 - DEBUG - Response for create_network : {'network': {'id': 'e51263da-3310-49f1-9f32-ce1699b36f14', 'name': 'ctest-vn-19757444', 'tenant_id': '73b6c0ca17e840648282290df35a6df8', 'project_id': '73b6c0ca17e840648282290df35a6df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-vn-19757444'], 'port_security_enabled': True, 'description': ''}}
2025-09-09 22:53:16,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '642515fc-3155-405b-8fc3-c18920e205d3', 'name': '', 'tenant_id': '73b6c0ca17e840648282290df35a6df8', 'network_id': 'e51263da-3310-49f1-9f32-ce1699b36f14', 'ip_version': 4, 'cidr': '153.147.252.128/26', 'allocation_pools': [{'start': '153.147.252.130', 'end': '153.147.252.190'}], 'gateway_ip': '153.147.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.147.252.130', 'tags': [], 'project_id': '73b6c0ca17e840648282290df35a6df8'}}
2025-09-09 22:53:16,468 - INFO - Created VN ctest-vn-19757444
2025-09-09 22:53:16,519 - DEBUG - VN ctest-vn-19757444 UUID is e51263da-3310-49f1-9f32-ce1699b36f14
2025-09-09 22:53:16,659 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-94439368, 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-82178977:ctest-vn-19757444, 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]
2025-09-09 22:53:16,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf194a65-67a8-41eb-9d39-90cc21b7e5aa', 'name': 'ctest-vn-94439368', 'tenant_id': '73b6c0ca17e840648282290df35a6df8', 'project_id': '73b6c0ca17e840648282290df35a6df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a32cb386-ec28-4119-83b6-6294955f2963'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-vn-94439368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-policy-allow-all-21925508']], 'subnet_ipam': [{'subnet_cidr': '89.95.72.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 22:53:17,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e51263da-3310-49f1-9f32-ce1699b36f14', 'name': 'ctest-vn-19757444', 'tenant_id': '73b6c0ca17e840648282290df35a6df8', 'project_id': '73b6c0ca17e840648282290df35a6df8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['642515fc-3155-405b-8fc3-c18920e205d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-vn-19757444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-policy-allow-all-21925508']], 'subnet_ipam': [{'subnet_cidr': '153.147.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-09 22:53:17,339 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 22:53:17,632 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 22:53:17,662 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf
2025-09-09 22:53:17,675 - DEBUG - Requesting: http://10.0.0.22:8082/project/73b6c0ca-17e8-4064-8282-290df35a6df8
2025-09-09 22:53:17,749 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf194a65-67a8-41eb-9d39-90cc21b7e5aa
2025-09-09 22:53:17,759 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf194a65-67a8-41eb-9d39-90cc21b7e5aa
2025-09-09 22:53:17,767 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfbc1239-3065-4e0e-a4e0-fa15b8fbba83
2025-09-09 22:53:17,774 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfbc1239-3065-4e0e-a4e0-fa15b8fbba83
2025-09-09 22:53:17,780 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/86a890bb-58a2-457a-b433-477f2e750eec
2025-09-09 22:53:17,786 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 22:53:17,786 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf194a65-67a8-41eb-9d39-90cc21b7e5aa
2025-09-09 22:53:17,794 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfbc1239-3065-4e0e-a4e0-fa15b8fbba83
2025-09-09 22:53:17,807 - INFO - Verified VN network id 12 for VN cf194a65-67a8-41eb-9d39-90cc21b7e5aa
2025-09-09 22:53:17,807 - INFO - Verifications in API Server for VN ctest-vn-94439368 passed
2025-09-09 22:53:17,808 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf194a65-67a8-41eb-9d39-90cc21b7e5aa
2025-09-09 22:53:17,816 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfbc1239-3065-4e0e-a4e0-fa15b8fbba83
2025-09-09 22:53:17,822 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cfbc1239-3065-4e0e-a4e0-fa15b8fbba83
2025-09-09 22:53:17,827 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/86a890bb-58a2-457a-b433-477f2e750eec
2025-09-09 22:53:17,837 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-94439368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82178977', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14923040639660081643', 'uuid-lslong': '11329245544040621482'}, 'enable': 'true', 'created': '2025-09-09T22:53:15', 'last-modified': '2025-09-09T22:53:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907922'}
2025-09-09 22:53:17,843 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-09 22:53:17,843 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94439368 passed
2025-09-09 22:53:17,843 - DEBUG - ====Verifying policy data for ctest-vn-94439368 in API_Server ======
2025-09-09 22:53:17,843 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 22:53:17,848 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf
2025-09-09 22:53:17,857 - DEBUG - Requesting: http://10.0.0.22:8082/project/73b6c0ca-17e8-4064-8282-290df35a6df8
2025-09-09 22:53:17,926 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf194a65-67a8-41eb-9d39-90cc21b7e5aa
2025-09-09 22:53:17,934 - DEBUG - ==>Verifying data for policy with id: 0b420460-151c-4aef-a1ec-0a30b15561f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-policy-allow-all-21925508']
2025-09-09 22:53:17,934 - INFO - VN ctest-vn-94439368 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 22:53:17,934 - DEBUG - Verifying the vn in opserver
2025-09-09 22:53:17,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-94439368 virtual network link through opserver 10.0.0.22
2025-09-09 22:53:17,934 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-09 22:53:18,224 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-09 22:53:18,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-94439368', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-94439368?flat'}
2025-09-09 22:53:18,274 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-94439368 is found in opserver
2025-09-09 22:53:18,283 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 22:53:18,287 - DEBUG - VRF ids for VN ctest-vn-94439368: {}
2025-09-09 22:53:18,287 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 22:53:18,292 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf
2025-09-09 22:53:18,303 - DEBUG - Requesting: http://10.0.0.22:8082/project/73b6c0ca-17e8-4064-8282-290df35a6df8
2025-09-09 22:53:18,375 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e51263da-3310-49f1-9f32-ce1699b36f14
2025-09-09 22:53:18,386 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e51263da-3310-49f1-9f32-ce1699b36f14
2025-09-09 22:53:18,394 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53576eb8-1ed7-4e53-be9f-cc7024224148
2025-09-09 22:53:18,401 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53576eb8-1ed7-4e53-be9f-cc7024224148
2025-09-09 22:53:18,408 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c756f6b0-aaf9-4443-bd8e-ace2a74ce1df
2025-09-09 22:53:18,415 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 22:53:18,415 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e51263da-3310-49f1-9f32-ce1699b36f14
2025-09-09 22:53:18,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53576eb8-1ed7-4e53-be9f-cc7024224148
2025-09-09 22:53:18,437 - INFO - Verified VN network id 13 for VN e51263da-3310-49f1-9f32-ce1699b36f14
2025-09-09 22:53:18,438 - INFO - Verifications in API Server for VN ctest-vn-19757444 passed
2025-09-09 22:53:18,438 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e51263da-3310-49f1-9f32-ce1699b36f14
2025-09-09 22:53:18,446 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53576eb8-1ed7-4e53-be9f-cc7024224148
2025-09-09 22:53:18,452 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/53576eb8-1ed7-4e53-be9f-cc7024224148
2025-09-09 22:53:18,459 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c756f6b0-aaf9-4443-bd8e-ace2a74ce1df
2025-09-09 22:53:18,472 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-19757444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82178977', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16506365373077015025', 'uuid-lslong': '11471457797329350420'}, 'enable': 'true', 'created': '2025-09-09T22:53:16', 'last-modified': '2025-09-09T22:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.321290'}
2025-09-09 22:53:18,477 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-09 22:53:18,477 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19757444 passed
2025-09-09 22:53:18,477 - DEBUG - ====Verifying policy data for ctest-vn-19757444 in API_Server ======
2025-09-09 22:53:18,477 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-09 22:53:18,481 - DEBUG - Requesting: http://10.0.0.22:8082/domain/895af511-6514-4b32-8f26-1df8e0ce6baf
2025-09-09 22:53:18,490 - DEBUG - Requesting: http://10.0.0.22:8082/project/73b6c0ca-17e8-4064-8282-290df35a6df8
2025-09-09 22:53:18,559 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e51263da-3310-49f1-9f32-ce1699b36f14
2025-09-09 22:53:18,568 - DEBUG - ==>Verifying data for policy with id: 0b420460-151c-4aef-a1ec-0a30b15561f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-82178977', 'ctest-policy-allow-all-21925508']
2025-09-09 22:53:18,568 - INFO - VN ctest-vn-19757444 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-09 22:53:18,568 - DEBUG - Verifying the vn in opserver
2025-09-09 22:53:18,568 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-19757444 virtual network link through opserver 10.0.0.22
2025-09-09 22:53:18,568 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-09 22:53:18,578 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-19757444', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-19757444?flat'}
2025-09-09 22:53:18,578 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82178977:ctest-vn-19757444 is found in opserver
2025-09-09 22:53:18,586 - DEBUG - Do not have enough data to verify VN in agent
2025-09-09 22:53:18,590 - DEBUG - VRF ids for VN ctest-vn-19757444: {}
2025-09-09 22:53:18,647 - DEBUG - Services list from nova: [