2025-09-15 07:49:42,178 - INFO - Domain Default found not creating
2025-09-15 07:49:42,337 - INFO - Project ctest-TestBasicPolicy-31311498 not found, creating it
2025-09-15 07:49:42,812 - INFO - Created Project:ctest-TestBasicPolicy-31311498, ID : f4c5de83-5835-4a87-b89a-2db821d03b5c
2025-09-15 07:49:44,433 - INFO - ================================================================================
2025-09-15 07:49:44,433 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 07:49:44,434 - 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-15 07:49:44,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-15 07:49:44,697 - INFO - Initial checks done. Running the testcase now
2025-09-15 07:49:44,698 - INFO -
2025-09-15 07:49:45,298 - DEBUG - Response for create_network : {'network': {'id': '60afb075-904d-42fe-87f9-9d9bff24c004', 'name': 'ctest-vn-41667589', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-41667589'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 07:49:45,478 - DEBUG - Response for create_subnet : {'subnet': {'id': '5268630b-da13-46cc-8b8b-af768707a2be', 'name': '', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'network_id': '60afb075-904d-42fe-87f9-9d9bff24c004', 'ip_version': 4, 'cidr': '75.104.83.64/26', 'allocation_pools': [{'start': '75.104.83.66', 'end': '75.104.83.126'}], 'gateway_ip': '75.104.83.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.104.83.66', 'tags': [], 'project_id': 'f4c5de8358354a87b89a2db821d03b5c'}}
2025-09-15 07:49:45,498 - INFO - Created VN ctest-vn-41667589
2025-09-15 07:49:45,551 - DEBUG - VN ctest-vn-41667589 UUID is 60afb075-904d-42fe-87f9-9d9bff24c004
2025-09-15 07:49:45,842 - DEBUG - Response for create_network : {'network': {'id': 'ef500f9f-a558-44c0-9b66-03466c440437', 'name': 'ctest-vn-91812921', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-91812921'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 07:49:46,003 - DEBUG - Response for create_subnet : {'subnet': {'id': '42cda8d4-ed0e-42c3-9b0f-eae3173cb84a', 'name': '', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'network_id': 'ef500f9f-a558-44c0-9b66-03466c440437', 'ip_version': 4, 'cidr': '204.234.242.64/26', 'allocation_pools': [{'start': '204.234.242.66', 'end': '204.234.242.126'}], 'gateway_ip': '204.234.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.234.242.66', 'tags': [], 'project_id': 'f4c5de8358354a87b89a2db821d03b5c'}}
2025-09-15 07:49:46,022 - INFO - Created VN ctest-vn-91812921
2025-09-15 07:49:46,075 - DEBUG - VN ctest-vn-91812921 UUID is ef500f9f-a558-44c0-9b66-03466c440437
2025-09-15 07:49:46,197 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589, 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-31311498:ctest-vn-91812921, 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-15 07:49:46,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60afb075-904d-42fe-87f9-9d9bff24c004', 'name': 'ctest-vn-41667589', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5268630b-da13-46cc-8b8b-af768707a2be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-41667589'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822']], 'subnet_ipam': [{'subnet_cidr': '75.104.83.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 07:49:46,770 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef500f9f-a558-44c0-9b66-03466c440437', 'name': 'ctest-vn-91812921', 'tenant_id': 'f4c5de8358354a87b89a2db821d03b5c', 'project_id': 'f4c5de8358354a87b89a2db821d03b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42cda8d4-ed0e-42c3-9b0f-eae3173cb84a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-vn-91812921'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822']], 'subnet_ipam': [{'subnet_cidr': '204.234.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 07:49:46,923 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 07:49:47,261 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 07:49:47,290 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610
2025-09-15 07:49:47,304 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c
2025-09-15 07:49:47,375 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004
2025-09-15 07:49:47,386 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004
2025-09-15 07:49:47,395 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49
2025-09-15 07:49:47,402 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49
2025-09-15 07:49:47,409 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d894f965-7e67-4e14-aa8a-e31859e7f08e
2025-09-15 07:49:47,415 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 07:49:47,415 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004
2025-09-15 07:49:47,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49
2025-09-15 07:49:47,438 - INFO - Verified VN network id 11 for VN 60afb075-904d-42fe-87f9-9d9bff24c004
2025-09-15 07:49:47,438 - INFO - Verifications in API Server for VN ctest-vn-41667589 passed
2025-09-15 07:49:47,438 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004
2025-09-15 07:49:47,447 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49
2025-09-15 07:49:47,455 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1074609a-6bac-43ca-ad00-3276b34f7e49
2025-09-15 07:49:47,462 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d894f965-7e67-4e14-aa8a-e31859e7f08e
2025-09-15 07:49:47,475 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31311498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6966981167544091390', 'uuid-lslong': '9798035757647314948'}, 'enable': 'true', 'created': '2025-09-15T07:49:45', 'last-modified': '2025-09-15T07:49:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000698'}
2025-09-15 07:49:47,482 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 07:49:47,482 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41667589 passed
2025-09-15 07:49:47,482 - DEBUG - ====Verifying policy data for ctest-vn-41667589 in API_Server ======
2025-09-15 07:49:47,482 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 07:49:47,487 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610
2025-09-15 07:49:47,498 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c
2025-09-15 07:49:47,568 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/60afb075-904d-42fe-87f9-9d9bff24c004
2025-09-15 07:49:47,577 - DEBUG - ==>Verifying data for policy with id: 92df0ad0-fca9-4100-b5e7-f5cca453c343, fqn: ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822']
2025-09-15 07:49:47,577 - INFO - VN ctest-vn-41667589 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 07:49:47,577 - DEBUG - Verifying the vn in opserver
2025-09-15 07:49:47,578 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589 virtual network link through opserver 10.0.0.22
2025-09-15 07:49:47,578 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-15 07:49:47,915 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-15 07:49:47,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589?flat'}
2025-09-15 07:49:47,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-41667589 is found in opserver
2025-09-15 07:49:47,985 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 07:49:47,990 - DEBUG - VRF ids for VN ctest-vn-41667589: {}
2025-09-15 07:49:47,990 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 07:49:47,996 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610
2025-09-15 07:49:48,010 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c
2025-09-15 07:49:48,078 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437
2025-09-15 07:49:48,090 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437
2025-09-15 07:49:48,099 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72
2025-09-15 07:49:48,107 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72
2025-09-15 07:49:48,114 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd2db3d2-97de-426f-8be9-b12631f9c099
2025-09-15 07:49:48,120 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 07:49:48,120 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437
2025-09-15 07:49:48,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72
2025-09-15 07:49:48,144 - INFO - Verified VN network id 12 for VN ef500f9f-a558-44c0-9b66-03466c440437
2025-09-15 07:49:48,144 - INFO - Verifications in API Server for VN ctest-vn-91812921 passed
2025-09-15 07:49:48,144 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437
2025-09-15 07:49:48,153 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72
2025-09-15 07:49:48,159 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/92b451ef-272a-4025-a868-c1dfd5060d72
2025-09-15 07:49:48,166 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cd2db3d2-97de-426f-8be9-b12631f9c099
2025-09-15 07:49:48,178 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31311498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17244300151549871296', 'uuid-lslong': '11197641124502307895'}, 'enable': 'true', 'created': '2025-09-15T07:49:45', 'last-modified': '2025-09-15T07:49:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474694'}
2025-09-15 07:49:48,184 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 07:49:48,184 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91812921 passed
2025-09-15 07:49:48,185 - DEBUG - ====Verifying policy data for ctest-vn-91812921 in API_Server ======
2025-09-15 07:49:48,185 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-15 07:49:48,190 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610
2025-09-15 07:49:48,203 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4c5de83-5835-4a87-b89a-2db821d03b5c
2025-09-15 07:49:48,273 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef500f9f-a558-44c0-9b66-03466c440437
2025-09-15 07:49:48,284 - DEBUG - ==>Verifying data for policy with id: 92df0ad0-fca9-4100-b5e7-f5cca453c343, fqn: ['default-domain', 'ctest-TestBasicPolicy-31311498', 'ctest-policy-allow-all-96141822']
2025-09-15 07:49:48,284 - INFO - VN ctest-vn-91812921 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 07:49:48,284 - DEBUG - Verifying the vn in opserver
2025-09-15 07:49:48,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921 virtual network link through opserver 10.0.0.22
2025-09-15 07:49:48,284 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-15 07:49:48,294 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921?flat'}
2025-09-15 07:49:48,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31311498:ctest-vn-91812921 is found in opserver
2025-09-15 07:49:48,305 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 07:49:48,309 - DEBUG - VRF ids for VN ctest-vn-91812921: {}
2025-09-15 07:49:48,366 - DEBUG - Services list from nova: [