2025-08-11 15:51:01,566 - INFO - Domain Default found not creating
2025-08-11 15:51:01,682 - INFO - Project ctest-TestBasicPolicy-23256623 not found, creating it
2025-08-11 15:51:02,104 - INFO - Created Project:ctest-TestBasicPolicy-23256623, ID : 85dbc2df-f838-40ca-98b0-fa9b71aebfd4
2025-08-11 15:51:03,393 - INFO - ================================================================================
2025-08-11 15:51:03,393 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 15:51:03,393 - 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-08-11 15:51:03,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-08-11 15:51:03,647 - INFO - Initial checks done. Running the testcase now
2025-08-11 15:51:03,647 - INFO -
2025-08-11 15:51:04,156 - DEBUG - Response for create_network : {'network': {'id': '7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a', 'name': 'ctest-vn-97592790', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-97592790'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:04,302 - DEBUG - Response for create_subnet : {'subnet': {'id': '54da0e92-bbd1-4236-8048-b2ba4aba5a03', 'name': '', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'network_id': '7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a', 'ip_version': 4, 'cidr': '121.111.159.192/26', 'allocation_pools': [{'start': '121.111.159.194', 'end': '121.111.159.254'}], 'gateway_ip': '121.111.159.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.111.159.194', 'tags': [], 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4'}}
2025-08-11 15:51:04,317 - INFO - Created VN ctest-vn-97592790
2025-08-11 15:51:04,367 - DEBUG - VN ctest-vn-97592790 UUID is 7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a
2025-08-11 15:51:04,657 - DEBUG - Response for create_network : {'network': {'id': '4d236b40-23fe-4e2a-8f0a-280f904aaf40', 'name': 'ctest-vn-43062705', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-43062705'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:04,796 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ae0aff0-e633-4d12-b175-eea5e3d600f1', 'name': '', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'network_id': '4d236b40-23fe-4e2a-8f0a-280f904aaf40', 'ip_version': 4, 'cidr': '211.163.84.0/26', 'allocation_pools': [{'start': '211.163.84.2', 'end': '211.163.84.62'}], 'gateway_ip': '211.163.84.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.163.84.2', 'tags': [], 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4'}}
2025-08-11 15:51:04,811 - INFO - Created VN ctest-vn-43062705
2025-08-11 15:51:04,863 - DEBUG - VN ctest-vn-43062705 UUID is 4d236b40-23fe-4e2a-8f0a-280f904aaf40
2025-08-11 15:51:05,006 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790, 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-23256623:ctest-vn-43062705, 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-08-11 15:51:05,296 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a', 'name': 'ctest-vn-97592790', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54da0e92-bbd1-4236-8048-b2ba4aba5a03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-97592790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074']], 'subnet_ipam': [{'subnet_cidr': '121.111.159.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:05,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d236b40-23fe-4e2a-8f0a-280f904aaf40', 'name': 'ctest-vn-43062705', 'tenant_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'project_id': '85dbc2dff83840ca98b0fa9b71aebfd4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ae0aff0-e633-4d12-b175-eea5e3d600f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-vn-43062705'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074']], 'subnet_ipam': [{'subnet_cidr': '211.163.84.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 15:51:05,671 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 15:51:05,956 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 15:51:05,980 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49
2025-08-11 15:51:05,993 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4
2025-08-11 15:51:06,071 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a
2025-08-11 15:51:06,081 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a
2025-08-11 15:51:06,089 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8
2025-08-11 15:51:06,095 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8
2025-08-11 15:51:06,101 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bf6d70df-e564-4e47-a60b-3bbad97a5c91
2025-08-11 15:51:06,106 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:51:06,106 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a
2025-08-11 15:51:06,114 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8
2025-08-11 15:51:06,126 - INFO - Verified VN network id 11 for VN 7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a
2025-08-11 15:51:06,126 - INFO - Verifications in API Server for VN ctest-vn-97592790 passed
2025-08-11 15:51:06,126 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a
2025-08-11 15:51:06,134 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8
2025-08-11 15:51:06,140 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c766409e-149d-4655-82b3-943e305cc4b8
2025-08-11 15:51:06,146 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bf6d70df-e564-4e47-a60b-3bbad97a5c91
2025-08-11 15:51:06,157 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23256623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8879790249456058389', 'uuid-lslong': '11216915308801560218'}, 'enable': 'true', 'created': '2025-08-11T15:51:04', 'last-modified': '2025-08-11T15:51:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.882618'}
2025-08-11 15:51:06,163 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 15:51:06,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97592790 passed
2025-08-11 15:51:06,163 - DEBUG - ====Verifying policy data for ctest-vn-97592790 in API_Server ======
2025-08-11 15:51:06,163 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 15:51:06,168 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49
2025-08-11 15:51:06,178 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4
2025-08-11 15:51:06,248 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b3b5a2f-4ace-4015-9baa-7d0b28c20e9a
2025-08-11 15:51:06,258 - DEBUG - ==>Verifying data for policy with id: a65bafae-df0e-418f-b715-389745e0a40b, fqn: ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074']
2025-08-11 15:51:06,258 - INFO - VN ctest-vn-97592790 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:51:06,258 - DEBUG - Verifying the vn in opserver
2025-08-11 15:51:06,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790 virtual network link through opserver 10.0.0.50
2025-08-11 15:51:06,259 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 15:51:06,545 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 15:51:06,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790?flat'}
2025-08-11 15:51:06,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-97592790 is found in opserver
2025-08-11 15:51:06,603 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:51:06,608 - DEBUG - VRF ids for VN ctest-vn-97592790: {}
2025-08-11 15:51:06,608 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 15:51:06,613 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49
2025-08-11 15:51:06,623 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4
2025-08-11 15:51:06,696 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40
2025-08-11 15:51:06,710 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40
2025-08-11 15:51:06,720 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a
2025-08-11 15:51:06,727 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a
2025-08-11 15:51:06,735 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fb970447-596a-4b8a-8832-212dfbf24195
2025-08-11 15:51:06,741 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:51:06,741 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40
2025-08-11 15:51:06,749 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a
2025-08-11 15:51:06,761 - INFO - Verified VN network id 12 for VN 4d236b40-23fe-4e2a-8f0a-280f904aaf40
2025-08-11 15:51:06,761 - INFO - Verifications in API Server for VN ctest-vn-43062705 passed
2025-08-11 15:51:06,761 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40
2025-08-11 15:51:06,770 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a
2025-08-11 15:51:06,776 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc2de7b-7ff1-4f24-a6b0-fb579f678d8a
2025-08-11 15:51:06,781 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/fb970447-596a-4b8a-8832-212dfbf24195
2025-08-11 15:51:06,793 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23256623', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5558404288331271722', 'uuid-lslong': '10307094744501235520'}, 'enable': 'true', 'created': '2025-08-11T15:51:04', 'last-modified': '2025-08-11T15:51:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.303964'}
2025-08-11 15:51:06,799 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 15:51:06,799 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43062705 passed
2025-08-11 15:51:06,799 - DEBUG - ====Verifying policy data for ctest-vn-43062705 in API_Server ======
2025-08-11 15:51:06,799 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 15:51:06,804 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0598bc6-8b1f-48a3-92e1-9024fd400f49
2025-08-11 15:51:06,813 - DEBUG - Requesting: http://10.0.0.50:8082/project/85dbc2df-f838-40ca-98b0-fa9b71aebfd4
2025-08-11 15:51:06,884 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d236b40-23fe-4e2a-8f0a-280f904aaf40
2025-08-11 15:51:06,893 - DEBUG - ==>Verifying data for policy with id: a65bafae-df0e-418f-b715-389745e0a40b, fqn: ['default-domain', 'ctest-TestBasicPolicy-23256623', 'ctest-policy-allow-all-24113074']
2025-08-11 15:51:06,893 - INFO - VN ctest-vn-43062705 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 15:51:06,893 - DEBUG - Verifying the vn in opserver
2025-08-11 15:51:06,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705 virtual network link through opserver 10.0.0.50
2025-08-11 15:51:06,893 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 15:51:06,902 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705?flat'}
2025-08-11 15:51:06,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23256623:ctest-vn-43062705 is found in opserver
2025-08-11 15:51:06,912 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 15:51:06,916 - DEBUG - VRF ids for VN ctest-vn-43062705: {}
2025-08-11 15:51:06,965 - DEBUG - Services list from nova: [