2025-10-27 02:09:37,721 - INFO - Domain Default found not creating
2025-10-27 02:09:37,900 - INFO - Project ctest-TestBasicPolicy-56264384 not found, creating it
2025-10-27 02:09:38,438 - INFO - Created Project:ctest-TestBasicPolicy-56264384, ID : c17d72db-691b-4242-8a2f-b15931f07399
2025-10-27 02:09:40,084 - INFO - ================================================================================
2025-10-27 02:09:40,085 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 02:09:40,085 - 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-27 02:09:40,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-10-27 02:09:40,344 - INFO - Initial checks done. Running the testcase now
2025-10-27 02:09:40,345 - INFO -
2025-10-27 02:09:40,973 - DEBUG - Response for create_network : {'network': {'id': 'cd1d9939-f0fa-4b30-b834-bda473a7b187', 'name': 'ctest-vn-10127912', 'tenant_id': 'c17d72db691b42428a2fb15931f07399', 'project_id': 'c17d72db691b42428a2fb15931f07399', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-vn-10127912'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:09:41,187 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9626d8b-c524-4bbf-a6ff-0a0d6268b38a', 'name': '', 'tenant_id': 'c17d72db691b42428a2fb15931f07399', 'network_id': 'cd1d9939-f0fa-4b30-b834-bda473a7b187', 'ip_version': 4, 'cidr': '91.224.79.0/26', 'allocation_pools': [{'start': '91.224.79.2', 'end': '91.224.79.62'}], 'gateway_ip': '91.224.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.224.79.2', 'tags': [], 'project_id': 'c17d72db691b42428a2fb15931f07399'}}
2025-10-27 02:09:41,208 - INFO - Created VN ctest-vn-10127912
2025-10-27 02:09:41,263 - DEBUG - VN ctest-vn-10127912 UUID is cd1d9939-f0fa-4b30-b834-bda473a7b187
2025-10-27 02:09:41,558 - DEBUG - Response for create_network : {'network': {'id': 'd1afa85b-588b-4c44-b041-fdf01ffde3a8', 'name': 'ctest-vn-28193391', 'tenant_id': 'c17d72db691b42428a2fb15931f07399', 'project_id': 'c17d72db691b42428a2fb15931f07399', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-vn-28193391'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:09:41,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cedee61-4185-4c4d-8ac4-e3d6cc5ef25d', 'name': '', 'tenant_id': 'c17d72db691b42428a2fb15931f07399', 'network_id': 'd1afa85b-588b-4c44-b041-fdf01ffde3a8', 'ip_version': 4, 'cidr': '1.37.140.192/26', 'allocation_pools': [{'start': '1.37.140.194', 'end': '1.37.140.254'}], 'gateway_ip': '1.37.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.37.140.194', 'tags': [], 'project_id': 'c17d72db691b42428a2fb15931f07399'}}
2025-10-27 02:09:41,806 - INFO - Created VN ctest-vn-28193391
2025-10-27 02:09:41,863 - DEBUG - VN ctest-vn-28193391 UUID is d1afa85b-588b-4c44-b041-fdf01ffde3a8
2025-10-27 02:09:41,989 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-10127912, 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-56264384:ctest-vn-28193391, 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-27 02:09:42,305 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd1d9939-f0fa-4b30-b834-bda473a7b187', 'name': 'ctest-vn-10127912', 'tenant_id': 'c17d72db691b42428a2fb15931f07399', 'project_id': 'c17d72db691b42428a2fb15931f07399', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9626d8b-c524-4bbf-a6ff-0a0d6268b38a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-vn-10127912'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-policy-allow-all-24329603']], 'subnet_ipam': [{'subnet_cidr': '91.224.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:09:42,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1afa85b-588b-4c44-b041-fdf01ffde3a8', 'name': 'ctest-vn-28193391', 'tenant_id': 'c17d72db691b42428a2fb15931f07399', 'project_id': 'c17d72db691b42428a2fb15931f07399', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8cedee61-4185-4c4d-8ac4-e3d6cc5ef25d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-vn-28193391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-policy-allow-all-24329603']], 'subnet_ipam': [{'subnet_cidr': '1.37.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:09:42,711 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 02:09:43,052 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 02:09:43,083 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167
2025-10-27 02:09:43,095 - DEBUG - Requesting: http://10.0.0.242:8082/project/c17d72db-691b-4242-8a2f-b15931f07399
2025-10-27 02:09:43,171 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd1d9939-f0fa-4b30-b834-bda473a7b187
2025-10-27 02:09:43,182 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd1d9939-f0fa-4b30-b834-bda473a7b187
2025-10-27 02:09:43,192 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7e708056-f677-4260-9902-026c2912590b
2025-10-27 02:09:43,200 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7e708056-f677-4260-9902-026c2912590b
2025-10-27 02:09:43,208 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/0eee6eb3-5da4-4236-aac7-d20f7e4c8d3d
2025-10-27 02:09:43,215 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 02:09:43,215 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd1d9939-f0fa-4b30-b834-bda473a7b187
2025-10-27 02:09:43,225 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7e708056-f677-4260-9902-026c2912590b
2025-10-27 02:09:43,240 - INFO - Verified VN network id 11 for VN cd1d9939-f0fa-4b30-b834-bda473a7b187
2025-10-27 02:09:43,240 - INFO - Verifications in API Server for VN ctest-vn-10127912 passed
2025-10-27 02:09:43,240 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd1d9939-f0fa-4b30-b834-bda473a7b187
2025-10-27 02:09:43,250 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7e708056-f677-4260-9902-026c2912590b
2025-10-27 02:09:43,257 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/7e708056-f677-4260-9902-026c2912590b
2025-10-27 02:09:43,265 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/0eee6eb3-5da4-4236-aac7-d20f7e4c8d3d
2025-10-27 02:09:43,280 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-10127912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56264384', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14780138026234956592', 'uuid-lslong': '13273442515780350343'}, 'enable': 'true', 'created': '2025-10-27T02:09:40', 'last-modified': '2025-10-27T02:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005121'}
2025-10-27 02:09:43,286 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 02:09:43,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10127912 passed
2025-10-27 02:09:43,287 - DEBUG - ====Verifying policy data for ctest-vn-10127912 in API_Server ======
2025-10-27 02:09:43,287 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 02:09:43,292 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167
2025-10-27 02:09:43,305 - DEBUG - Requesting: http://10.0.0.242:8082/project/c17d72db-691b-4242-8a2f-b15931f07399
2025-10-27 02:09:43,379 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/cd1d9939-f0fa-4b30-b834-bda473a7b187
2025-10-27 02:09:43,388 - DEBUG - ==>Verifying data for policy with id: b2ece897-95d0-4117-8169-43992691f567, fqn: ['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-policy-allow-all-24329603']
2025-10-27 02:09:43,388 - INFO - VN ctest-vn-10127912 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 02:09:43,388 - DEBUG - Verifying the vn in opserver
2025-10-27 02:09:43,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-10127912 virtual network link through opserver 10.0.0.242
2025-10-27 02:09:43,388 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 02:09:43,723 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 02:09:43,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-10127912', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-10127912?flat'}
2025-10-27 02:09:43,785 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-10127912 is found in opserver
2025-10-27 02:09:43,795 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 02:09:43,799 - DEBUG - VRF ids for VN ctest-vn-10127912: {}
2025-10-27 02:09:43,800 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 02:09:43,805 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167
2025-10-27 02:09:43,818 - DEBUG - Requesting: http://10.0.0.242:8082/project/c17d72db-691b-4242-8a2f-b15931f07399
2025-10-27 02:09:43,892 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d1afa85b-588b-4c44-b041-fdf01ffde3a8
2025-10-27 02:09:43,905 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d1afa85b-588b-4c44-b041-fdf01ffde3a8
2025-10-27 02:09:43,915 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6fb9a335-f14e-4e6a-9ad2-a9eff2ddc561
2025-10-27 02:09:43,922 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6fb9a335-f14e-4e6a-9ad2-a9eff2ddc561
2025-10-27 02:09:43,930 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/d53000c1-2f81-44ba-939f-9cbcef27c497
2025-10-27 02:09:43,937 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 02:09:43,937 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d1afa85b-588b-4c44-b041-fdf01ffde3a8
2025-10-27 02:09:43,946 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6fb9a335-f14e-4e6a-9ad2-a9eff2ddc561
2025-10-27 02:09:43,960 - INFO - Verified VN network id 12 for VN d1afa85b-588b-4c44-b041-fdf01ffde3a8
2025-10-27 02:09:43,960 - INFO - Verifications in API Server for VN ctest-vn-28193391 passed
2025-10-27 02:09:43,960 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d1afa85b-588b-4c44-b041-fdf01ffde3a8
2025-10-27 02:09:43,969 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6fb9a335-f14e-4e6a-9ad2-a9eff2ddc561
2025-10-27 02:09:43,976 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6fb9a335-f14e-4e6a-9ad2-a9eff2ddc561
2025-10-27 02:09:43,983 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/d53000c1-2f81-44ba-939f-9cbcef27c497
2025-10-27 02:09:43,995 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-28193391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56264384', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15109480385132317764', 'uuid-lslong': '12700711631932220328'}, 'enable': 'true', 'created': '2025-10-27T02:09:41', 'last-modified': '2025-10-27T02:09:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478915'}
2025-10-27 02:09:44,001 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 02:09:44,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28193391 passed
2025-10-27 02:09:44,002 - DEBUG - ====Verifying policy data for ctest-vn-28193391 in API_Server ======
2025-10-27 02:09:44,002 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 02:09:44,008 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167
2025-10-27 02:09:44,019 - DEBUG - Requesting: http://10.0.0.242:8082/project/c17d72db-691b-4242-8a2f-b15931f07399
2025-10-27 02:09:44,096 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/d1afa85b-588b-4c44-b041-fdf01ffde3a8
2025-10-27 02:09:44,106 - DEBUG - ==>Verifying data for policy with id: b2ece897-95d0-4117-8169-43992691f567, fqn: ['default-domain', 'ctest-TestBasicPolicy-56264384', 'ctest-policy-allow-all-24329603']
2025-10-27 02:09:44,106 - INFO - VN ctest-vn-28193391 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 02:09:44,106 - DEBUG - Verifying the vn in opserver
2025-10-27 02:09:44,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-28193391 virtual network link through opserver 10.0.0.242
2025-10-27 02:09:44,106 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 02:09:44,117 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-28193391', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-28193391?flat'}
2025-10-27 02:09:44,117 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56264384:ctest-vn-28193391 is found in opserver
2025-10-27 02:09:44,128 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 02:09:44,132 - DEBUG - VRF ids for VN ctest-vn-28193391: {}
2025-10-27 02:09:44,201 - DEBUG - Services list from nova: [