2025-11-20 17:51:41,107 - INFO - Domain Default found not creating
2025-11-20 17:51:41,296 - INFO - Project ctest-TestBasicPolicy-30732624 not found, creating it
2025-11-20 17:51:41,802 - INFO - Created Project:ctest-TestBasicPolicy-30732624, ID : 26d98814-6ccb-4fc4-a38c-03c719c39742
2025-11-20 17:51:43,365 - INFO - ================================================================================
2025-11-20 17:51:43,365 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 17:51:43,365 - 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-11-20 17:51:43,628 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.5': '0'}} with
2025-11-20 17:51:43,629 - INFO - Initial checks done. Running the testcase now
2025-11-20 17:51:43,629 - INFO -
2025-11-20 17:51:44,201 - DEBUG - Response for create_network : {'network': {'id': '725400d9-61d0-4342-8610-6230c11fbe96', 'name': 'ctest-vn-34238309', 'tenant_id': '26d988146ccb4fc4a38c03c719c39742', 'project_id': '26d988146ccb4fc4a38c03c719c39742', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-vn-34238309'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:51:44,377 - DEBUG - Response for create_subnet : {'subnet': {'id': '952cee7f-eb27-4047-8bf9-c02246d13659', 'name': '', 'tenant_id': '26d988146ccb4fc4a38c03c719c39742', 'network_id': '725400d9-61d0-4342-8610-6230c11fbe96', 'ip_version': 4, 'cidr': '194.145.180.192/26', 'allocation_pools': [{'start': '194.145.180.194', 'end': '194.145.180.254'}], 'gateway_ip': '194.145.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.145.180.194', 'tags': [], 'project_id': '26d988146ccb4fc4a38c03c719c39742'}}
2025-11-20 17:51:44,397 - INFO - Created VN ctest-vn-34238309
2025-11-20 17:51:44,449 - DEBUG - VN ctest-vn-34238309 UUID is 725400d9-61d0-4342-8610-6230c11fbe96
2025-11-20 17:51:44,732 - DEBUG - Response for create_network : {'network': {'id': '6cc0e1db-a853-4bf5-b41b-5080d01dff63', 'name': 'ctest-vn-74912096', 'tenant_id': '26d988146ccb4fc4a38c03c719c39742', 'project_id': '26d988146ccb4fc4a38c03c719c39742', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-vn-74912096'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:51:44,939 - DEBUG - Response for create_subnet : {'subnet': {'id': '32b307b5-a2a6-4985-a4a1-5ce242797d22', 'name': '', 'tenant_id': '26d988146ccb4fc4a38c03c719c39742', 'network_id': '6cc0e1db-a853-4bf5-b41b-5080d01dff63', 'ip_version': 4, 'cidr': '124.204.144.0/26', 'allocation_pools': [{'start': '124.204.144.2', 'end': '124.204.144.62'}], 'gateway_ip': '124.204.144.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.204.144.2', 'tags': [], 'project_id': '26d988146ccb4fc4a38c03c719c39742'}}
2025-11-20 17:51:44,956 - INFO - Created VN ctest-vn-74912096
2025-11-20 17:51:45,009 - DEBUG - VN ctest-vn-74912096 UUID is 6cc0e1db-a853-4bf5-b41b-5080d01dff63
2025-11-20 17:51:45,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-34238309, 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-30732624:ctest-vn-74912096, 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-11-20 17:51:45,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '725400d9-61d0-4342-8610-6230c11fbe96', 'name': 'ctest-vn-34238309', 'tenant_id': '26d988146ccb4fc4a38c03c719c39742', 'project_id': '26d988146ccb4fc4a38c03c719c39742', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['952cee7f-eb27-4047-8bf9-c02246d13659'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-vn-34238309'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-policy-allow-all-58275475']], 'subnet_ipam': [{'subnet_cidr': '194.145.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:51:45,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6cc0e1db-a853-4bf5-b41b-5080d01dff63', 'name': 'ctest-vn-74912096', 'tenant_id': '26d988146ccb4fc4a38c03c719c39742', 'project_id': '26d988146ccb4fc4a38c03c719c39742', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32b307b5-a2a6-4985-a4a1-5ce242797d22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-vn-74912096'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-policy-allow-all-58275475']], 'subnet_ipam': [{'subnet_cidr': '124.204.144.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 17:51:45,841 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-20 17:51:46,151 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-20 17:51:46,189 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c
2025-11-20 17:51:46,201 - DEBUG - Requesting: http://10.0.0.50:8082/project/26d98814-6ccb-4fc4-a38c-03c719c39742
2025-11-20 17:51:46,278 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/725400d9-61d0-4342-8610-6230c11fbe96
2025-11-20 17:51:46,290 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/725400d9-61d0-4342-8610-6230c11fbe96
2025-11-20 17:51:46,300 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a006284-049c-4dfc-855f-9826a01c9c59
2025-11-20 17:51:46,307 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a006284-049c-4dfc-855f-9826a01c9c59
2025-11-20 17:51:46,313 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ce039649-0e7f-41e1-a920-9d6ef579a726
2025-11-20 17:51:46,321 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 17:51:46,321 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/725400d9-61d0-4342-8610-6230c11fbe96
2025-11-20 17:51:46,331 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a006284-049c-4dfc-855f-9826a01c9c59
2025-11-20 17:51:46,346 - INFO - Verified VN network id 11 for VN 725400d9-61d0-4342-8610-6230c11fbe96
2025-11-20 17:51:46,346 - INFO - Verifications in API Server for VN ctest-vn-34238309 passed
2025-11-20 17:51:46,346 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/725400d9-61d0-4342-8610-6230c11fbe96
2025-11-20 17:51:46,356 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a006284-049c-4dfc-855f-9826a01c9c59
2025-11-20 17:51:46,363 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6a006284-049c-4dfc-855f-9826a01c9c59
2025-11-20 17:51:46,370 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ce039649-0e7f-41e1-a920-9d6ef579a726
2025-11-20 17:51:46,382 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-34238309', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30732624', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8238210552016421698', 'uuid-lslong': '9660329162247749270'}, 'enable': 'true', 'created': '2025-11-20T17:51:44', 'last-modified': '2025-11-20T17:51:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966465'}
2025-11-20 17:51:46,390 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 17:51:46,390 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34238309 passed
2025-11-20 17:51:46,390 - DEBUG - ====Verifying policy data for ctest-vn-34238309 in API_Server ======
2025-11-20 17:51:46,390 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-20 17:51:46,396 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c
2025-11-20 17:51:46,406 - DEBUG - Requesting: http://10.0.0.50:8082/project/26d98814-6ccb-4fc4-a38c-03c719c39742
2025-11-20 17:51:46,479 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/725400d9-61d0-4342-8610-6230c11fbe96
2025-11-20 17:51:46,487 - DEBUG - ==>Verifying data for policy with id: f4e9da80-ea2d-45b2-a1f7-203feeaa5c86, fqn: ['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-policy-allow-all-58275475']
2025-11-20 17:51:46,487 - INFO - VN ctest-vn-34238309 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 17:51:46,487 - DEBUG - Verifying the vn in opserver
2025-11-20 17:51:46,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-34238309 virtual network link through opserver 10.0.0.50
2025-11-20 17:51:46,488 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-20 17:51:46,792 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-20 17:51:46,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-34238309', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-34238309?flat'}
2025-11-20 17:51:46,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-34238309 is found in opserver
2025-11-20 17:51:46,865 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 17:51:46,869 - DEBUG - VRF ids for VN ctest-vn-34238309: {}
2025-11-20 17:51:46,870 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-20 17:51:46,874 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c
2025-11-20 17:51:46,884 - DEBUG - Requesting: http://10.0.0.50:8082/project/26d98814-6ccb-4fc4-a38c-03c719c39742
2025-11-20 17:51:46,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cc0e1db-a853-4bf5-b41b-5080d01dff63
2025-11-20 17:51:46,968 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cc0e1db-a853-4bf5-b41b-5080d01dff63
2025-11-20 17:51:46,978 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd9f9bf2-5d8f-4e92-aacc-00a4a463b064
2025-11-20 17:51:46,987 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd9f9bf2-5d8f-4e92-aacc-00a4a463b064
2025-11-20 17:51:46,993 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dcb89cbe-85f4-4283-b9ed-760341393d00
2025-11-20 17:51:46,999 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 17:51:46,999 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cc0e1db-a853-4bf5-b41b-5080d01dff63
2025-11-20 17:51:47,009 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd9f9bf2-5d8f-4e92-aacc-00a4a463b064
2025-11-20 17:51:47,023 - INFO - Verified VN network id 12 for VN 6cc0e1db-a853-4bf5-b41b-5080d01dff63
2025-11-20 17:51:47,023 - INFO - Verifications in API Server for VN ctest-vn-74912096 passed
2025-11-20 17:51:47,023 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cc0e1db-a853-4bf5-b41b-5080d01dff63
2025-11-20 17:51:47,032 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd9f9bf2-5d8f-4e92-aacc-00a4a463b064
2025-11-20 17:51:47,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cd9f9bf2-5d8f-4e92-aacc-00a4a463b064
2025-11-20 17:51:47,046 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dcb89cbe-85f4-4283-b9ed-760341393d00
2025-11-20 17:51:47,057 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-74912096', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30732624', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7836511685162781685', 'uuid-lslong': '12978055265375879011'}, 'enable': 'true', 'created': '2025-11-20T17:51:44', 'last-modified': '2025-11-20T17:51:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.403088'}
2025-11-20 17:51:47,063 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 17:51:47,063 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74912096 passed
2025-11-20 17:51:47,063 - DEBUG - ====Verifying policy data for ctest-vn-74912096 in API_Server ======
2025-11-20 17:51:47,063 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-20 17:51:47,069 - DEBUG - Requesting: http://10.0.0.50:8082/domain/da0d12c2-a7a9-4639-99b8-df809370f14c
2025-11-20 17:51:47,079 - DEBUG - Requesting: http://10.0.0.50:8082/project/26d98814-6ccb-4fc4-a38c-03c719c39742
2025-11-20 17:51:47,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6cc0e1db-a853-4bf5-b41b-5080d01dff63
2025-11-20 17:51:47,164 - DEBUG - ==>Verifying data for policy with id: f4e9da80-ea2d-45b2-a1f7-203feeaa5c86, fqn: ['default-domain', 'ctest-TestBasicPolicy-30732624', 'ctest-policy-allow-all-58275475']
2025-11-20 17:51:47,164 - INFO - VN ctest-vn-74912096 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 17:51:47,164 - DEBUG - Verifying the vn in opserver
2025-11-20 17:51:47,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-74912096 virtual network link through opserver 10.0.0.50
2025-11-20 17:51:47,164 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-20 17:51:47,174 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-74912096', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-74912096?flat'}
2025-11-20 17:51:47,174 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30732624:ctest-vn-74912096 is found in opserver
2025-11-20 17:51:47,184 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 17:51:47,188 - DEBUG - VRF ids for VN ctest-vn-74912096: {}
2025-11-20 17:51:47,254 - DEBUG - Services list from nova: [