2025-12-08 02:13:51,752 - INFO - Domain Default found not creating
2025-12-08 02:13:51,906 - INFO - Project ctest-TestBasicPolicy-20005284 not found, creating it
2025-12-08 02:13:52,360 - INFO - Created Project:ctest-TestBasicPolicy-20005284, ID : a7fd918c-daf3-45d8-a123-cc915b705baf
2025-12-08 02:13:53,802 - INFO - ================================================================================
2025-12-08 02:13:53,802 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 02:13:53,802 - 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-12-08 02:13:54,078 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.241': '0'}} with
2025-12-08 02:13:54,078 - INFO - Initial checks done. Running the testcase now
2025-12-08 02:13:54,078 - INFO -
2025-12-08 02:13:54,639 - DEBUG - Response for create_network : {'network': {'id': '8689f228-d6b9-429f-831d-3b204a302e74', 'name': 'ctest-vn-34645107', 'tenant_id': 'a7fd918cdaf345d8a123cc915b705baf', 'project_id': 'a7fd918cdaf345d8a123cc915b705baf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-vn-34645107'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:13:54,845 - DEBUG - Response for create_subnet : {'subnet': {'id': '922d3024-945c-4166-89a7-0d0c5152ff28', 'name': '', 'tenant_id': 'a7fd918cdaf345d8a123cc915b705baf', 'network_id': '8689f228-d6b9-429f-831d-3b204a302e74', 'ip_version': 4, 'cidr': '168.143.193.0/26', 'allocation_pools': [{'start': '168.143.193.2', 'end': '168.143.193.62'}], 'gateway_ip': '168.143.193.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.143.193.2', 'tags': [], 'project_id': 'a7fd918cdaf345d8a123cc915b705baf'}}
2025-12-08 02:13:54,861 - INFO - Created VN ctest-vn-34645107
2025-12-08 02:13:54,911 - DEBUG - VN ctest-vn-34645107 UUID is 8689f228-d6b9-429f-831d-3b204a302e74
2025-12-08 02:13:55,224 - DEBUG - Response for create_network : {'network': {'id': '152ecf46-04e6-4451-9d62-dd5ac6b9ac99', 'name': 'ctest-vn-99198174', 'tenant_id': 'a7fd918cdaf345d8a123cc915b705baf', 'project_id': 'a7fd918cdaf345d8a123cc915b705baf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-vn-99198174'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:13:55,393 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb9aebc7-acff-4d7b-9677-01f8ceaf9016', 'name': '', 'tenant_id': 'a7fd918cdaf345d8a123cc915b705baf', 'network_id': '152ecf46-04e6-4451-9d62-dd5ac6b9ac99', 'ip_version': 4, 'cidr': '157.60.77.128/26', 'allocation_pools': [{'start': '157.60.77.130', 'end': '157.60.77.190'}], 'gateway_ip': '157.60.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.60.77.130', 'tags': [], 'project_id': 'a7fd918cdaf345d8a123cc915b705baf'}}
2025-12-08 02:13:55,408 - INFO - Created VN ctest-vn-99198174
2025-12-08 02:13:55,459 - DEBUG - VN ctest-vn-99198174 UUID is 152ecf46-04e6-4451-9d62-dd5ac6b9ac99
2025-12-08 02:13:55,599 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-34645107, 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-20005284:ctest-vn-99198174, 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-12-08 02:13:55,876 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8689f228-d6b9-429f-831d-3b204a302e74', 'name': 'ctest-vn-34645107', 'tenant_id': 'a7fd918cdaf345d8a123cc915b705baf', 'project_id': 'a7fd918cdaf345d8a123cc915b705baf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['922d3024-945c-4166-89a7-0d0c5152ff28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-vn-34645107'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-policy-allow-all-10909940']], 'subnet_ipam': [{'subnet_cidr': '168.143.193.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:13:56,143 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '152ecf46-04e6-4451-9d62-dd5ac6b9ac99', 'name': 'ctest-vn-99198174', 'tenant_id': 'a7fd918cdaf345d8a123cc915b705baf', 'project_id': 'a7fd918cdaf345d8a123cc915b705baf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb9aebc7-acff-4d7b-9677-01f8ceaf9016'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-vn-99198174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-policy-allow-all-10909940']], 'subnet_ipam': [{'subnet_cidr': '157.60.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 02:13:56,291 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-12-08 02:13:56,587 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-12-08 02:13:56,615 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c
2025-12-08 02:13:56,625 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7fd918c-daf3-45d8-a123-cc915b705baf
2025-12-08 02:13:56,703 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8689f228-d6b9-429f-831d-3b204a302e74
2025-12-08 02:13:56,711 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8689f228-d6b9-429f-831d-3b204a302e74
2025-12-08 02:13:56,720 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/23adc2b6-67b1-4abb-9aac-2387587d2bca
2025-12-08 02:13:56,727 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/23adc2b6-67b1-4abb-9aac-2387587d2bca
2025-12-08 02:13:56,734 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/257714d9-8089-4b4a-964c-e35c6c906b68
2025-12-08 02:13:56,740 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 02:13:56,740 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8689f228-d6b9-429f-831d-3b204a302e74
2025-12-08 02:13:56,747 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/23adc2b6-67b1-4abb-9aac-2387587d2bca
2025-12-08 02:13:56,760 - INFO - Verified VN network id 11 for VN 8689f228-d6b9-429f-831d-3b204a302e74
2025-12-08 02:13:56,760 - INFO - Verifications in API Server for VN ctest-vn-34645107 passed
2025-12-08 02:13:56,760 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8689f228-d6b9-429f-831d-3b204a302e74
2025-12-08 02:13:56,768 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/23adc2b6-67b1-4abb-9aac-2387587d2bca
2025-12-08 02:13:56,775 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/23adc2b6-67b1-4abb-9aac-2387587d2bca
2025-12-08 02:13:56,782 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/257714d9-8089-4b4a-964c-e35c6c906b68
2025-12-08 02:13:56,795 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-34645107', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20005284', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9694545930106782367', 'uuid-lslong': '9447772603162832500'}, 'enable': 'true', 'created': '2025-12-08T02:13:54', 'last-modified': '2025-12-08T02:13:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932518'}
2025-12-08 02:13:56,801 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 02:13:56,801 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34645107 passed
2025-12-08 02:13:56,801 - DEBUG - ====Verifying policy data for ctest-vn-34645107 in API_Server ======
2025-12-08 02:13:56,801 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-12-08 02:13:56,807 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c
2025-12-08 02:13:56,817 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7fd918c-daf3-45d8-a123-cc915b705baf
2025-12-08 02:13:56,891 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/8689f228-d6b9-429f-831d-3b204a302e74
2025-12-08 02:13:56,899 - DEBUG - ==>Verifying data for policy with id: 3a9b6540-6db8-4d41-949b-d65aefe354de, fqn: ['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-policy-allow-all-10909940']
2025-12-08 02:13:56,899 - INFO - VN ctest-vn-34645107 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 02:13:56,899 - DEBUG - Verifying the vn in opserver
2025-12-08 02:13:56,899 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-34645107 virtual network link through opserver 10.0.0.130
2025-12-08 02:13:56,900 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-12-08 02:13:57,196 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-12-08 02:13:57,262 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-34645107', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-34645107?flat'}
2025-12-08 02:13:57,262 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-34645107 is found in opserver
2025-12-08 02:13:57,271 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 02:13:57,276 - DEBUG - VRF ids for VN ctest-vn-34645107: {}
2025-12-08 02:13:57,276 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-12-08 02:13:57,280 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c
2025-12-08 02:13:57,290 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7fd918c-daf3-45d8-a123-cc915b705baf
2025-12-08 02:13:57,354 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/152ecf46-04e6-4451-9d62-dd5ac6b9ac99
2025-12-08 02:13:57,364 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/152ecf46-04e6-4451-9d62-dd5ac6b9ac99
2025-12-08 02:13:57,372 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/820d16e8-1705-420e-a6ca-31d7648d196b
2025-12-08 02:13:57,378 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/820d16e8-1705-420e-a6ca-31d7648d196b
2025-12-08 02:13:57,384 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/7d432d4e-f11b-445a-a555-be453f9868b8
2025-12-08 02:13:57,390 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 02:13:57,390 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/152ecf46-04e6-4451-9d62-dd5ac6b9ac99
2025-12-08 02:13:57,398 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/820d16e8-1705-420e-a6ca-31d7648d196b
2025-12-08 02:13:57,409 - INFO - Verified VN network id 12 for VN 152ecf46-04e6-4451-9d62-dd5ac6b9ac99
2025-12-08 02:13:57,409 - INFO - Verifications in API Server for VN ctest-vn-99198174 passed
2025-12-08 02:13:57,409 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/152ecf46-04e6-4451-9d62-dd5ac6b9ac99
2025-12-08 02:13:57,417 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/820d16e8-1705-420e-a6ca-31d7648d196b
2025-12-08 02:13:57,422 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/820d16e8-1705-420e-a6ca-31d7648d196b
2025-12-08 02:13:57,427 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/7d432d4e-f11b-445a-a555-be453f9868b8
2025-12-08 02:13:57,437 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-99198174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20005284', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1526385223362036817', 'uuid-lslong': '11340870193623182489'}, 'enable': 'true', 'created': '2025-12-08T02:13:55', 'last-modified': '2025-12-08T02:13:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.355214'}
2025-12-08 02:13:57,442 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 02:13:57,442 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99198174 passed
2025-12-08 02:13:57,443 - DEBUG - ====Verifying policy data for ctest-vn-99198174 in API_Server ======
2025-12-08 02:13:57,443 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-12-08 02:13:57,448 - DEBUG - Requesting: http://10.0.0.130:8082/domain/89255e1c-530c-49a5-b275-cafa7847f34c
2025-12-08 02:13:57,457 - DEBUG - Requesting: http://10.0.0.130:8082/project/a7fd918c-daf3-45d8-a123-cc915b705baf
2025-12-08 02:13:57,532 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/152ecf46-04e6-4451-9d62-dd5ac6b9ac99
2025-12-08 02:13:57,539 - DEBUG - ==>Verifying data for policy with id: 3a9b6540-6db8-4d41-949b-d65aefe354de, fqn: ['default-domain', 'ctest-TestBasicPolicy-20005284', 'ctest-policy-allow-all-10909940']
2025-12-08 02:13:57,539 - INFO - VN ctest-vn-99198174 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 02:13:57,540 - DEBUG - Verifying the vn in opserver
2025-12-08 02:13:57,540 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-99198174 virtual network link through opserver 10.0.0.130
2025-12-08 02:13:57,540 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-12-08 02:13:57,549 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-99198174', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-99198174?flat'}
2025-12-08 02:13:57,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20005284:ctest-vn-99198174 is found in opserver
2025-12-08 02:13:57,557 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 02:13:57,561 - DEBUG - VRF ids for VN ctest-vn-99198174: {}
2025-12-08 02:13:57,613 - DEBUG - Services list from nova: [