2026-03-19 02:24:45,918 - INFO - Domain Default found not creating
2026-03-19 02:24:46,091 - INFO - Project ctest-TestBasicPolicy-25958063 not found, creating it
2026-03-19 02:24:46,546 - INFO - Created Project:ctest-TestBasicPolicy-25958063, ID : bb299063-9143-4566-8055-27a3fe341925
2026-03-19 02:24:48,190 - INFO - ================================================================================
2026-03-19 02:24:48,190 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-19 02:24:48,190 - 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
2026-03-19 02:24:48,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2026-03-19 02:24:48,443 - INFO - Initial checks done. Running the testcase now
2026-03-19 02:24:48,443 - INFO -
2026-03-19 02:24:49,045 - DEBUG - Response for create_network : {'network': {'id': '320c1ac7-5c33-436b-8675-27ad4d87113d', 'name': 'ctest-vn-02711103', 'tenant_id': 'bb29906391434566805527a3fe341925', 'project_id': 'bb29906391434566805527a3fe341925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-vn-02711103'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:24:49,224 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c705267d-4240-4871-b9f6-28e8a27c0cc0', 'name': '', 'tenant_id': 'bb29906391434566805527a3fe341925', 'network_id': '320c1ac7-5c33-436b-8675-27ad4d87113d', 'ip_version': 4, 'cidr': '2.187.196.128/26', 'allocation_pools': [{'start': '2.187.196.130', 'end': '2.187.196.190'}], 'gateway_ip': '2.187.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.187.196.130', 'tags': [], 'project_id': 'bb29906391434566805527a3fe341925'}}
2026-03-19 02:24:49,241 - INFO - Created VN ctest-vn-02711103
2026-03-19 02:24:49,293 - DEBUG - VN ctest-vn-02711103 UUID is 320c1ac7-5c33-436b-8675-27ad4d87113d
2026-03-19 02:24:49,569 - DEBUG - Response for create_network : {'network': {'id': 'f11b16bb-2191-4222-b4e3-622f2205733b', 'name': 'ctest-vn-76417942', 'tenant_id': 'bb29906391434566805527a3fe341925', 'project_id': 'bb29906391434566805527a3fe341925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-vn-76417942'], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:24:49,763 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e427bfdd-7ebe-4776-8dc6-b47c66f08ece', 'name': '', 'tenant_id': 'bb29906391434566805527a3fe341925', 'network_id': 'f11b16bb-2191-4222-b4e3-622f2205733b', 'ip_version': 4, 'cidr': '167.61.64.192/26', 'allocation_pools': [{'start': '167.61.64.194', 'end': '167.61.64.254'}], 'gateway_ip': '167.61.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.61.64.194', 'tags': [], 'project_id': 'bb29906391434566805527a3fe341925'}}
2026-03-19 02:24:49,781 - INFO - Created VN ctest-vn-76417942
2026-03-19 02:24:49,833 - DEBUG - VN ctest-vn-76417942 UUID is f11b16bb-2191-4222-b4e3-622f2205733b
2026-03-19 02:24:49,985 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-02711103, 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-25958063:ctest-vn-76417942, 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]
2026-03-19 02:24:50,298 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '320c1ac7-5c33-436b-8675-27ad4d87113d', 'name': 'ctest-vn-02711103', 'tenant_id': 'bb29906391434566805527a3fe341925', 'project_id': 'bb29906391434566805527a3fe341925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c705267d-4240-4871-b9f6-28e8a27c0cc0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-vn-02711103'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-policy-allow-all-51909359']], 'subnet_ipam': [{'subnet_cidr': '2.187.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:24:50,520 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f11b16bb-2191-4222-b4e3-622f2205733b', 'name': 'ctest-vn-76417942', 'tenant_id': 'bb29906391434566805527a3fe341925', 'project_id': 'bb29906391434566805527a3fe341925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e427bfdd-7ebe-4776-8dc6-b47c66f08ece'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-vn-76417942'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-policy-allow-all-51909359']], 'subnet_ipam': [{'subnet_cidr': '167.61.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-19 02:24:50,673 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-19 02:24:51,022 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-19 02:24:51,052 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad
2026-03-19 02:24:51,064 - DEBUG - Requesting: http://10.0.0.141:8082/project/bb299063-9143-4566-8055-27a3fe341925
2026-03-19 02:24:51,137 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/320c1ac7-5c33-436b-8675-27ad4d87113d
2026-03-19 02:24:51,147 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/320c1ac7-5c33-436b-8675-27ad4d87113d
2026-03-19 02:24:51,157 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2add3531-50b5-4ff4-8843-adc16e43e688
2026-03-19 02:24:51,163 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2add3531-50b5-4ff4-8843-adc16e43e688
2026-03-19 02:24:51,169 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/2f39bab0-1dff-40c3-8eaa-ce53a8d59813
2026-03-19 02:24:51,174 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 02:24:51,174 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/320c1ac7-5c33-436b-8675-27ad4d87113d
2026-03-19 02:24:51,182 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2add3531-50b5-4ff4-8843-adc16e43e688
2026-03-19 02:24:51,195 - INFO - Verified VN network id 11 for VN 320c1ac7-5c33-436b-8675-27ad4d87113d
2026-03-19 02:24:51,195 - INFO - Verifications in API Server for VN ctest-vn-02711103 passed
2026-03-19 02:24:51,195 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/320c1ac7-5c33-436b-8675-27ad4d87113d
2026-03-19 02:24:51,205 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2add3531-50b5-4ff4-8843-adc16e43e688
2026-03-19 02:24:51,212 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2add3531-50b5-4ff4-8843-adc16e43e688
2026-03-19 02:24:51,219 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/2f39bab0-1dff-40c3-8eaa-ce53a8d59813
2026-03-19 02:24:51,230 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-02711103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25958063', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3606286845164602219', 'uuid-lslong': '9688693798641013053'}, 'enable': 'true', 'created': '2026-03-19T02:24:49', 'last-modified': '2026-03-19T02:24:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.959989'}
2026-03-19 02:24:51,237 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-19 02:24:51,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02711103 passed
2026-03-19 02:24:51,237 - DEBUG - ====Verifying policy data for ctest-vn-02711103 in API_Server ======
2026-03-19 02:24:51,237 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-19 02:24:51,243 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad
2026-03-19 02:24:51,254 - DEBUG - Requesting: http://10.0.0.141:8082/project/bb299063-9143-4566-8055-27a3fe341925
2026-03-19 02:24:51,326 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/320c1ac7-5c33-436b-8675-27ad4d87113d
2026-03-19 02:24:51,336 - DEBUG - ==>Verifying data for policy with id: 3312bc3a-8a8d-4adf-9430-8f2f0c8bb7cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-policy-allow-all-51909359']
2026-03-19 02:24:51,336 - INFO - VN ctest-vn-02711103 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 02:24:51,336 - DEBUG - Verifying the vn in opserver
2026-03-19 02:24:51,337 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-02711103 virtual network link through opserver 10.0.0.141
2026-03-19 02:24:51,337 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-19 02:24:51,669 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-19 02:24:51,729 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-02711103', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-02711103?flat'}
2026-03-19 02:24:51,729 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-02711103 is found in opserver
2026-03-19 02:24:51,739 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 02:24:51,743 - DEBUG - VRF ids for VN ctest-vn-02711103: {}
2026-03-19 02:24:51,743 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-19 02:24:51,748 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad
2026-03-19 02:24:51,759 - DEBUG - Requesting: http://10.0.0.141:8082/project/bb299063-9143-4566-8055-27a3fe341925
2026-03-19 02:24:51,826 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f11b16bb-2191-4222-b4e3-622f2205733b
2026-03-19 02:24:51,837 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f11b16bb-2191-4222-b4e3-622f2205733b
2026-03-19 02:24:51,847 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9036a7a0-a32c-40a7-8ddb-f2331cf0dc3f
2026-03-19 02:24:51,854 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9036a7a0-a32c-40a7-8ddb-f2331cf0dc3f
2026-03-19 02:24:51,860 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fcafaa10-22b0-4f59-ba9f-ba204160bcd6
2026-03-19 02:24:51,866 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 02:24:51,866 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f11b16bb-2191-4222-b4e3-622f2205733b
2026-03-19 02:24:51,879 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9036a7a0-a32c-40a7-8ddb-f2331cf0dc3f
2026-03-19 02:24:51,894 - INFO - Verified VN network id 12 for VN f11b16bb-2191-4222-b4e3-622f2205733b
2026-03-19 02:24:51,894 - INFO - Verifications in API Server for VN ctest-vn-76417942 passed
2026-03-19 02:24:51,894 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f11b16bb-2191-4222-b4e3-622f2205733b
2026-03-19 02:24:51,902 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9036a7a0-a32c-40a7-8ddb-f2331cf0dc3f
2026-03-19 02:24:51,909 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9036a7a0-a32c-40a7-8ddb-f2331cf0dc3f
2026-03-19 02:24:51,915 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fcafaa10-22b0-4f59-ba9f-ba204160bcd6
2026-03-19 02:24:51,927 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-76417942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25958063', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17373504980489683490', 'uuid-lslong': '13034369701114114875'}, 'enable': 'true', 'created': '2026-03-19T02:24:49', 'last-modified': '2026-03-19T02:24:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427094'}
2026-03-19 02:24:51,932 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-19 02:24:51,932 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76417942 passed
2026-03-19 02:24:51,933 - DEBUG - ====Verifying policy data for ctest-vn-76417942 in API_Server ======
2026-03-19 02:24:51,933 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-19 02:24:51,938 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad
2026-03-19 02:24:51,947 - DEBUG - Requesting: http://10.0.0.141:8082/project/bb299063-9143-4566-8055-27a3fe341925
2026-03-19 02:24:52,019 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f11b16bb-2191-4222-b4e3-622f2205733b
2026-03-19 02:24:52,029 - DEBUG - ==>Verifying data for policy with id: 3312bc3a-8a8d-4adf-9430-8f2f0c8bb7cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-25958063', 'ctest-policy-allow-all-51909359']
2026-03-19 02:24:52,029 - INFO - VN ctest-vn-76417942 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-19 02:24:52,029 - DEBUG - Verifying the vn in opserver
2026-03-19 02:24:52,029 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-76417942 virtual network link through opserver 10.0.0.141
2026-03-19 02:24:52,029 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-19 02:24:52,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-76417942', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-76417942?flat'}
2026-03-19 02:24:52,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25958063:ctest-vn-76417942 is found in opserver
2026-03-19 02:24:52,047 - DEBUG - Do not have enough data to verify VN in agent
2026-03-19 02:24:52,051 - DEBUG - VRF ids for VN ctest-vn-76417942: {}
2026-03-19 02:24:52,109 - DEBUG - Services list from nova: [