2025-11-05 08:09:18,870 - INFO - Domain Default found not creating
2025-11-05 08:09:19,015 - INFO - Project ctest-TestBasicPolicy-88050662 not found, creating it
2025-11-05 08:09:19,434 - INFO - Created Project:ctest-TestBasicPolicy-88050662, ID : 29f0ddc6-7e04-4fa3-a007-d861c2823328
2025-11-05 08:09:20,903 - INFO - ================================================================================
2025-11-05 08:09:20,903 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 08:09:20,903 - 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-05 08:09:21,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with
2025-11-05 08:09:21,160 - INFO - Initial checks done. Running the testcase now
2025-11-05 08:09:21,160 - INFO -
2025-11-05 08:09:21,698 - DEBUG - Response for create_network : {'network': {'id': 'b2d7fa61-3315-4ab5-847f-ba3afc1cb989', 'name': 'ctest-vn-11322034', 'tenant_id': '29f0ddc67e044fa3a007d861c2823328', 'project_id': '29f0ddc67e044fa3a007d861c2823328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-vn-11322034'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:09:21,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e080d2b-e22c-409e-877e-0c07f0360308', 'name': '', 'tenant_id': '29f0ddc67e044fa3a007d861c2823328', 'network_id': 'b2d7fa61-3315-4ab5-847f-ba3afc1cb989', 'ip_version': 4, 'cidr': '62.187.111.128/26', 'allocation_pools': [{'start': '62.187.111.130', 'end': '62.187.111.190'}], 'gateway_ip': '62.187.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.187.111.130', 'tags': [], 'project_id': '29f0ddc67e044fa3a007d861c2823328'}}
2025-11-05 08:09:21,911 - INFO - Created VN ctest-vn-11322034
2025-11-05 08:09:21,963 - DEBUG - VN ctest-vn-11322034 UUID is b2d7fa61-3315-4ab5-847f-ba3afc1cb989
2025-11-05 08:09:22,252 - DEBUG - Response for create_network : {'network': {'id': '4618ddbd-9d29-4f90-9268-0352f997a69e', 'name': 'ctest-vn-96790788', 'tenant_id': '29f0ddc67e044fa3a007d861c2823328', 'project_id': '29f0ddc67e044fa3a007d861c2823328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-vn-96790788'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:09:22,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '9be6a9b2-bdf4-42c9-a089-f72dd051b726', 'name': '', 'tenant_id': '29f0ddc67e044fa3a007d861c2823328', 'network_id': '4618ddbd-9d29-4f90-9268-0352f997a69e', 'ip_version': 4, 'cidr': '80.100.217.128/26', 'allocation_pools': [{'start': '80.100.217.130', 'end': '80.100.217.190'}], 'gateway_ip': '80.100.217.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.100.217.130', 'tags': [], 'project_id': '29f0ddc67e044fa3a007d861c2823328'}}
2025-11-05 08:09:22,469 - INFO - Created VN ctest-vn-96790788
2025-11-05 08:09:22,523 - DEBUG - VN ctest-vn-96790788 UUID is 4618ddbd-9d29-4f90-9268-0352f997a69e
2025-11-05 08:09:22,671 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-11322034, 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-88050662:ctest-vn-96790788, 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-05 08:09:22,951 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2d7fa61-3315-4ab5-847f-ba3afc1cb989', 'name': 'ctest-vn-11322034', 'tenant_id': '29f0ddc67e044fa3a007d861c2823328', 'project_id': '29f0ddc67e044fa3a007d861c2823328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e080d2b-e22c-409e-877e-0c07f0360308'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-vn-11322034'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-policy-allow-all-05236894']], 'subnet_ipam': [{'subnet_cidr': '62.187.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:09:23,166 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4618ddbd-9d29-4f90-9268-0352f997a69e', 'name': 'ctest-vn-96790788', 'tenant_id': '29f0ddc67e044fa3a007d861c2823328', 'project_id': '29f0ddc67e044fa3a007d861c2823328', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9be6a9b2-bdf4-42c9-a089-f72dd051b726'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-vn-96790788'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-policy-allow-all-05236894']], 'subnet_ipam': [{'subnet_cidr': '80.100.217.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:09:23,327 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-05 08:09:23,645 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-05 08:09:23,670 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b34f7d32-1cd6-4635-9d9f-b9212815f555
2025-11-05 08:09:23,680 - DEBUG - Requesting: http://10.0.0.141:8082/project/29f0ddc6-7e04-4fa3-a007-d861c2823328
2025-11-05 08:09:23,748 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b2d7fa61-3315-4ab5-847f-ba3afc1cb989
2025-11-05 08:09:23,758 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b2d7fa61-3315-4ab5-847f-ba3afc1cb989
2025-11-05 08:09:23,766 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d933f6c3-5522-4d89-af36-b67948992601
2025-11-05 08:09:23,772 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d933f6c3-5522-4d89-af36-b67948992601
2025-11-05 08:09:23,777 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/802f25fe-5bd5-4db1-bdc6-8bbeea1922aa
2025-11-05 08:09:23,782 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:09:23,782 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b2d7fa61-3315-4ab5-847f-ba3afc1cb989
2025-11-05 08:09:23,789 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d933f6c3-5522-4d89-af36-b67948992601
2025-11-05 08:09:23,801 - INFO - Verified VN network id 11 for VN b2d7fa61-3315-4ab5-847f-ba3afc1cb989
2025-11-05 08:09:23,801 - INFO - Verifications in API Server for VN ctest-vn-11322034 passed
2025-11-05 08:09:23,801 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b2d7fa61-3315-4ab5-847f-ba3afc1cb989
2025-11-05 08:09:23,808 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d933f6c3-5522-4d89-af36-b67948992601
2025-11-05 08:09:23,813 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d933f6c3-5522-4d89-af36-b67948992601
2025-11-05 08:09:23,818 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/802f25fe-5bd5-4db1-bdc6-8bbeea1922aa
2025-11-05 08:09:23,828 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-11322034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88050662', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12887044154119768757', 'uuid-lslong': '9547554497549351305'}, 'enable': 'true', 'created': '2025-11-05T08:09:21', 'last-modified': '2025-11-05T08:09:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893752'}
2025-11-05 08:09:23,834 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:09:23,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11322034 passed
2025-11-05 08:09:23,834 - DEBUG - ====Verifying policy data for ctest-vn-11322034 in API_Server ======
2025-11-05 08:09:23,834 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-05 08:09:23,839 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b34f7d32-1cd6-4635-9d9f-b9212815f555
2025-11-05 08:09:23,850 - DEBUG - Requesting: http://10.0.0.141:8082/project/29f0ddc6-7e04-4fa3-a007-d861c2823328
2025-11-05 08:09:23,923 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b2d7fa61-3315-4ab5-847f-ba3afc1cb989
2025-11-05 08:09:23,931 - DEBUG - ==>Verifying data for policy with id: 0b808769-e7b2-4525-8cd3-8b5c4753c31c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-policy-allow-all-05236894']
2025-11-05 08:09:23,931 - INFO - VN ctest-vn-11322034 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:09:23,931 - DEBUG - Verifying the vn in opserver
2025-11-05 08:09:23,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-11322034 virtual network link through opserver 10.0.0.141
2025-11-05 08:09:23,931 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-05 08:09:24,251 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-05 08:09:24,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-11322034', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-11322034?flat'}
2025-11-05 08:09:24,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-11322034 is found in opserver
2025-11-05 08:09:24,316 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:09:24,320 - DEBUG - VRF ids for VN ctest-vn-11322034: {}
2025-11-05 08:09:24,321 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-05 08:09:24,325 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b34f7d32-1cd6-4635-9d9f-b9212815f555
2025-11-05 08:09:24,334 - DEBUG - Requesting: http://10.0.0.141:8082/project/29f0ddc6-7e04-4fa3-a007-d861c2823328
2025-11-05 08:09:24,401 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4618ddbd-9d29-4f90-9268-0352f997a69e
2025-11-05 08:09:24,413 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4618ddbd-9d29-4f90-9268-0352f997a69e
2025-11-05 08:09:24,421 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9229939d-fec6-43bd-bcec-3063bb7a6f72
2025-11-05 08:09:24,426 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9229939d-fec6-43bd-bcec-3063bb7a6f72
2025-11-05 08:09:24,431 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/da154fdd-2138-4028-8e78-07cdab573e9b
2025-11-05 08:09:24,437 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:09:24,437 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4618ddbd-9d29-4f90-9268-0352f997a69e
2025-11-05 08:09:24,444 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9229939d-fec6-43bd-bcec-3063bb7a6f72
2025-11-05 08:09:24,454 - INFO - Verified VN network id 12 for VN 4618ddbd-9d29-4f90-9268-0352f997a69e
2025-11-05 08:09:24,455 - INFO - Verifications in API Server for VN ctest-vn-96790788 passed
2025-11-05 08:09:24,455 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4618ddbd-9d29-4f90-9268-0352f997a69e
2025-11-05 08:09:24,461 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9229939d-fec6-43bd-bcec-3063bb7a6f72
2025-11-05 08:09:24,466 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9229939d-fec6-43bd-bcec-3063bb7a6f72
2025-11-05 08:09:24,472 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/da154fdd-2138-4028-8e78-07cdab573e9b
2025-11-05 08:09:24,480 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-96790788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88050662', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5051030788551298960', 'uuid-lslong': '10549685782025053854'}, 'enable': 'true', 'created': '2025-11-05T08:09:22', 'last-modified': '2025-11-05T08:09:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.334912'}
2025-11-05 08:09:24,485 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:09:24,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96790788 passed
2025-11-05 08:09:24,485 - DEBUG - ====Verifying policy data for ctest-vn-96790788 in API_Server ======
2025-11-05 08:09:24,485 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-05 08:09:24,489 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b34f7d32-1cd6-4635-9d9f-b9212815f555
2025-11-05 08:09:24,498 - DEBUG - Requesting: http://10.0.0.141:8082/project/29f0ddc6-7e04-4fa3-a007-d861c2823328
2025-11-05 08:09:24,562 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4618ddbd-9d29-4f90-9268-0352f997a69e
2025-11-05 08:09:24,570 - DEBUG - ==>Verifying data for policy with id: 0b808769-e7b2-4525-8cd3-8b5c4753c31c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88050662', 'ctest-policy-allow-all-05236894']
2025-11-05 08:09:24,570 - INFO - VN ctest-vn-96790788 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:09:24,570 - DEBUG - Verifying the vn in opserver
2025-11-05 08:09:24,570 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-96790788 virtual network link through opserver 10.0.0.141
2025-11-05 08:09:24,570 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-05 08:09:24,579 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-96790788', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-96790788?flat'}
2025-11-05 08:09:24,579 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88050662:ctest-vn-96790788 is found in opserver
2025-11-05 08:09:24,586 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:09:24,590 - DEBUG - VRF ids for VN ctest-vn-96790788: {}
2025-11-05 08:09:24,640 - DEBUG - Services list from nova: [