2025-10-21 21:02:10,243 - INFO - Domain Default found not creating
2025-10-21 21:02:10,402 - INFO - Project ctest-TestBasicPolicy-98802717 not found, creating it
2025-10-21 21:02:10,871 - INFO - Created Project:ctest-TestBasicPolicy-98802717, ID : d5bc3840-f622-4afe-8fad-93c02d0f6346
2025-10-21 21:02:12,322 - INFO - ================================================================================
2025-10-21 21:02:12,323 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 21:02:12,323 - 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-10-21 21:02:12,580 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-10-21 21:02:12,580 - INFO - Initial checks done. Running the testcase now
2025-10-21 21:02:12,580 - INFO -
2025-10-21 21:02:13,115 - DEBUG - Response for create_network : {'network': {'id': '9d492d97-3f28-46a5-8e4b-bd3773f72bc5', 'name': 'ctest-vn-27222426', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-27222426'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:02:13,299 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cde521ba-0f98-479e-b0d7-c0ec9c7744b4', 'name': '', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'network_id': '9d492d97-3f28-46a5-8e4b-bd3773f72bc5', 'ip_version': 4, 'cidr': '111.27.66.192/26', 'allocation_pools': [{'start': '111.27.66.194', 'end': '111.27.66.254'}], 'gateway_ip': '111.27.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.27.66.194', 'tags': [], 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346'}}
2025-10-21 21:02:13,317 - INFO - Created VN ctest-vn-27222426
2025-10-21 21:02:13,369 - DEBUG - VN ctest-vn-27222426 UUID is 9d492d97-3f28-46a5-8e4b-bd3773f72bc5
2025-10-21 21:02:13,698 - DEBUG - Response for create_network : {'network': {'id': 'cb85ab66-928f-4297-b4cb-6ff2a3ad663d', 'name': 'ctest-vn-07200682', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-07200682'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:02:13,845 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b288c292-47df-4f33-8bd2-52f2c89aa670', 'name': '', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'network_id': 'cb85ab66-928f-4297-b4cb-6ff2a3ad663d', 'ip_version': 4, 'cidr': '125.67.126.192/26', 'allocation_pools': [{'start': '125.67.126.194', 'end': '125.67.126.254'}], 'gateway_ip': '125.67.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.67.126.194', 'tags': [], 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346'}}
2025-10-21 21:02:13,863 - INFO - Created VN ctest-vn-07200682
2025-10-21 21:02:13,913 - DEBUG - VN ctest-vn-07200682 UUID is cb85ab66-928f-4297-b4cb-6ff2a3ad663d
2025-10-21 21:02:14,065 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426, 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-98802717:ctest-vn-07200682, 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-10-21 21:02:14,361 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d492d97-3f28-46a5-8e4b-bd3773f72bc5', 'name': 'ctest-vn-27222426', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cde521ba-0f98-479e-b0d7-c0ec9c7744b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-27222426'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469']], 'subnet_ipam': [{'subnet_cidr': '111.27.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:02:14,607 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb85ab66-928f-4297-b4cb-6ff2a3ad663d', 'name': 'ctest-vn-07200682', 'tenant_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'project_id': 'd5bc3840f6224afe8fad93c02d0f6346', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b288c292-47df-4f33-8bd2-52f2c89aa670'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-vn-07200682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469']], 'subnet_ipam': [{'subnet_cidr': '125.67.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:02:14,773 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 21:02:15,065 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 21:02:15,092 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc
2025-10-21 21:02:15,103 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346
2025-10-21 21:02:15,174 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5
2025-10-21 21:02:15,184 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5
2025-10-21 21:02:15,192 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1
2025-10-21 21:02:15,198 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1
2025-10-21 21:02:15,204 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e4597e99-c22a-4ba7-817c-4fd79064a5a5
2025-10-21 21:02:15,209 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 21:02:15,209 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5
2025-10-21 21:02:15,217 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1
2025-10-21 21:02:15,230 - INFO - Verified VN network id 11 for VN 9d492d97-3f28-46a5-8e4b-bd3773f72bc5
2025-10-21 21:02:15,230 - INFO - Verifications in API Server for VN ctest-vn-27222426 passed
2025-10-21 21:02:15,230 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5
2025-10-21 21:02:15,238 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1
2025-10-21 21:02:15,244 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad8fdef8-7cc2-41e2-8d72-37b6eed1a7d1
2025-10-21 21:02:15,249 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e4597e99-c22a-4ba7-817c-4fd79064a5a5
2025-10-21 21:02:15,259 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98802717', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11333640064877479589', 'uuid-lslong': '10253497022505495493'}, 'enable': 'true', 'created': '2025-10-21T21:02:13', 'last-modified': '2025-10-21T21:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916755'}
2025-10-21 21:02:15,264 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 21:02:15,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27222426 passed
2025-10-21 21:02:15,265 - DEBUG - ====Verifying policy data for ctest-vn-27222426 in API_Server ======
2025-10-21 21:02:15,265 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 21:02:15,270 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc
2025-10-21 21:02:15,279 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346
2025-10-21 21:02:15,345 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9d492d97-3f28-46a5-8e4b-bd3773f72bc5
2025-10-21 21:02:15,355 - DEBUG - ==>Verifying data for policy with id: 277915f0-6b6d-4943-a6ba-17a2d42efc74, fqn: ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469']
2025-10-21 21:02:15,355 - INFO - VN ctest-vn-27222426 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 21:02:15,355 - DEBUG - Verifying the vn in opserver
2025-10-21 21:02:15,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426 virtual network link through opserver 10.0.0.141
2025-10-21 21:02:15,355 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-21 21:02:15,645 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-21 21:02:15,697 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426?flat'}
2025-10-21 21:02:15,698 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-27222426 is found in opserver
2025-10-21 21:02:15,707 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 21:02:15,711 - DEBUG - VRF ids for VN ctest-vn-27222426: {}
2025-10-21 21:02:15,712 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 21:02:15,717 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc
2025-10-21 21:02:15,727 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346
2025-10-21 21:02:15,795 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d
2025-10-21 21:02:15,805 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d
2025-10-21 21:02:15,814 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685
2025-10-21 21:02:15,820 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685
2025-10-21 21:02:15,826 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/27cc6947-a06e-4e18-a84e-a5898a676850
2025-10-21 21:02:15,833 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 21:02:15,833 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d
2025-10-21 21:02:15,841 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685
2025-10-21 21:02:15,865 - INFO - Verified VN network id 12 for VN cb85ab66-928f-4297-b4cb-6ff2a3ad663d
2025-10-21 21:02:15,865 - INFO - Verifications in API Server for VN ctest-vn-07200682 passed
2025-10-21 21:02:15,865 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d
2025-10-21 21:02:15,874 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685
2025-10-21 21:02:15,881 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ba6a94ff-4051-403f-a6ee-99d7c29f1685
2025-10-21 21:02:15,887 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/27cc6947-a06e-4e18-a84e-a5898a676850
2025-10-21 21:02:15,898 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98802717', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14665316218635764375', 'uuid-lslong': '13027629435018110525'}, 'enable': 'true', 'created': '2025-10-21T21:02:13', 'last-modified': '2025-10-21T21:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.327289'}
2025-10-21 21:02:15,903 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 21:02:15,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07200682 passed
2025-10-21 21:02:15,903 - DEBUG - ====Verifying policy data for ctest-vn-07200682 in API_Server ======
2025-10-21 21:02:15,903 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-21 21:02:15,910 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc
2025-10-21 21:02:15,920 - DEBUG - Requesting: http://10.0.0.141:8082/project/d5bc3840-f622-4afe-8fad-93c02d0f6346
2025-10-21 21:02:15,988 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cb85ab66-928f-4297-b4cb-6ff2a3ad663d
2025-10-21 21:02:15,997 - DEBUG - ==>Verifying data for policy with id: 277915f0-6b6d-4943-a6ba-17a2d42efc74, fqn: ['default-domain', 'ctest-TestBasicPolicy-98802717', 'ctest-policy-allow-all-35337469']
2025-10-21 21:02:15,997 - INFO - VN ctest-vn-07200682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 21:02:15,997 - DEBUG - Verifying the vn in opserver
2025-10-21 21:02:15,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682 virtual network link through opserver 10.0.0.141
2025-10-21 21:02:15,997 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-21 21:02:16,007 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682?flat'}
2025-10-21 21:02:16,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98802717:ctest-vn-07200682 is found in opserver
2025-10-21 21:02:16,016 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 21:02:16,021 - DEBUG - VRF ids for VN ctest-vn-07200682: {}
2025-10-21 21:02:16,079 - DEBUG - Services list from nova: [