2025-10-27 02:33:31,231 - INFO - Domain Default found not creating
2025-10-27 02:33:31,373 - INFO - Project ctest-TestBasicPolicy-24665430 not found, creating it
2025-10-27 02:33:31,824 - INFO - Created Project:ctest-TestBasicPolicy-24665430, ID : 6bf48f53-49d9-46f9-b589-1b2b15a219c2
2025-10-27 02:33:33,234 - INFO - ================================================================================
2025-10-27 02:33:33,234 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 02:33:33,235 - 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:33:33,492 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.201': '0'}} with
2025-10-27 02:33:33,492 - INFO - Initial checks done. Running the testcase now
2025-10-27 02:33:33,492 - INFO -
2025-10-27 02:33:34,029 - DEBUG - Response for create_network : {'network': {'id': 'b2cba176-eeb7-417e-8175-bc04df528537', 'name': 'ctest-vn-66047397', 'tenant_id': '6bf48f5349d946f9b5891b2b15a219c2', 'project_id': '6bf48f5349d946f9b5891b2b15a219c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-vn-66047397'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:33:34,301 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd22a4f60-1973-4ae4-afd6-6cb052b42e74', 'name': '', 'tenant_id': '6bf48f5349d946f9b5891b2b15a219c2', 'network_id': 'b2cba176-eeb7-417e-8175-bc04df528537', 'ip_version': 4, 'cidr': '155.108.10.192/26', 'allocation_pools': [{'start': '155.108.10.194', 'end': '155.108.10.254'}], 'gateway_ip': '155.108.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.108.10.194', 'tags': [], 'project_id': '6bf48f5349d946f9b5891b2b15a219c2'}}
2025-10-27 02:33:34,320 - INFO - Created VN ctest-vn-66047397
2025-10-27 02:33:34,371 - DEBUG - VN ctest-vn-66047397 UUID is b2cba176-eeb7-417e-8175-bc04df528537
2025-10-27 02:33:34,672 - DEBUG - Response for create_network : {'network': {'id': '72b90c3c-a80c-4019-b680-897f3dd78886', 'name': 'ctest-vn-94612897', 'tenant_id': '6bf48f5349d946f9b5891b2b15a219c2', 'project_id': '6bf48f5349d946f9b5891b2b15a219c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-vn-94612897'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:33:34,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '7099bda4-36e8-4131-b46a-b45c47c28aac', 'name': '', 'tenant_id': '6bf48f5349d946f9b5891b2b15a219c2', 'network_id': '72b90c3c-a80c-4019-b680-897f3dd78886', 'ip_version': 4, 'cidr': '61.155.83.192/26', 'allocation_pools': [{'start': '61.155.83.194', 'end': '61.155.83.254'}], 'gateway_ip': '61.155.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.155.83.194', 'tags': [], 'project_id': '6bf48f5349d946f9b5891b2b15a219c2'}}
2025-10-27 02:33:34,856 - INFO - Created VN ctest-vn-94612897
2025-10-27 02:33:34,907 - DEBUG - VN ctest-vn-94612897 UUID is 72b90c3c-a80c-4019-b680-897f3dd78886
2025-10-27 02:33:35,051 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-66047397, 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-24665430:ctest-vn-94612897, 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:33:35,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2cba176-eeb7-417e-8175-bc04df528537', 'name': 'ctest-vn-66047397', 'tenant_id': '6bf48f5349d946f9b5891b2b15a219c2', 'project_id': '6bf48f5349d946f9b5891b2b15a219c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d22a4f60-1973-4ae4-afd6-6cb052b42e74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-vn-66047397'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-policy-allow-all-67974007']], 'subnet_ipam': [{'subnet_cidr': '155.108.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:33:35,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72b90c3c-a80c-4019-b680-897f3dd78886', 'name': 'ctest-vn-94612897', 'tenant_id': '6bf48f5349d946f9b5891b2b15a219c2', 'project_id': '6bf48f5349d946f9b5891b2b15a219c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7099bda4-36e8-4131-b46a-b45c47c28aac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-vn-94612897'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-policy-allow-all-67974007']], 'subnet_ipam': [{'subnet_cidr': '61.155.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 02:33:35,707 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-27 02:33:35,996 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-27 02:33:36,023 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4
2025-10-27 02:33:36,033 - DEBUG - Requesting: http://10.0.0.41:8082/project/6bf48f53-49d9-46f9-b589-1b2b15a219c2
2025-10-27 02:33:36,107 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b2cba176-eeb7-417e-8175-bc04df528537
2025-10-27 02:33:36,118 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b2cba176-eeb7-417e-8175-bc04df528537
2025-10-27 02:33:36,128 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6a329186-e387-4a92-9770-6c8638c4551c
2025-10-27 02:33:36,134 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6a329186-e387-4a92-9770-6c8638c4551c
2025-10-27 02:33:36,139 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/412d1a80-2e64-45f6-a556-431a4953d23a
2025-10-27 02:33:36,144 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 02:33:36,144 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b2cba176-eeb7-417e-8175-bc04df528537
2025-10-27 02:33:36,152 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6a329186-e387-4a92-9770-6c8638c4551c
2025-10-27 02:33:36,164 - INFO - Verified VN network id 12 for VN b2cba176-eeb7-417e-8175-bc04df528537
2025-10-27 02:33:36,164 - INFO - Verifications in API Server for VN ctest-vn-66047397 passed
2025-10-27 02:33:36,164 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b2cba176-eeb7-417e-8175-bc04df528537
2025-10-27 02:33:36,173 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6a329186-e387-4a92-9770-6c8638c4551c
2025-10-27 02:33:36,180 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6a329186-e387-4a92-9770-6c8638c4551c
2025-10-27 02:33:36,187 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/412d1a80-2e64-45f6-a556-431a4953d23a
2025-10-27 02:33:36,200 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-66047397', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24665430', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12883568691206635902', 'uuid-lslong': '9328568932280468791'}, 'enable': 'true', 'created': '2025-10-27T02:33:34', 'last-modified': '2025-10-27T02:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886692'}
2025-10-27 02:33:36,205 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 02:33:36,205 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66047397 passed
2025-10-27 02:33:36,205 - DEBUG - ====Verifying policy data for ctest-vn-66047397 in API_Server ======
2025-10-27 02:33:36,205 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-27 02:33:36,211 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4
2025-10-27 02:33:36,220 - DEBUG - Requesting: http://10.0.0.41:8082/project/6bf48f53-49d9-46f9-b589-1b2b15a219c2
2025-10-27 02:33:36,287 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b2cba176-eeb7-417e-8175-bc04df528537
2025-10-27 02:33:36,295 - DEBUG - ==>Verifying data for policy with id: f2695f39-e0ec-4759-94e2-8afb217e224e, fqn: ['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-policy-allow-all-67974007']
2025-10-27 02:33:36,295 - INFO - VN ctest-vn-66047397 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 02:33:36,295 - DEBUG - Verifying the vn in opserver
2025-10-27 02:33:36,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-66047397 virtual network link through opserver 10.0.0.41
2025-10-27 02:33:36,295 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-27 02:33:36,584 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-27 02:33:36,632 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-66047397', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-66047397?flat'}
2025-10-27 02:33:36,632 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-66047397 is found in opserver
2025-10-27 02:33:36,641 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 02:33:36,646 - DEBUG - VRF ids for VN ctest-vn-66047397: {}
2025-10-27 02:33:36,646 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-27 02:33:36,651 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4
2025-10-27 02:33:36,663 - DEBUG - Requesting: http://10.0.0.41:8082/project/6bf48f53-49d9-46f9-b589-1b2b15a219c2
2025-10-27 02:33:36,731 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/72b90c3c-a80c-4019-b680-897f3dd78886
2025-10-27 02:33:36,740 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/72b90c3c-a80c-4019-b680-897f3dd78886
2025-10-27 02:33:36,748 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9b555523-fe49-4782-9c1e-50b02d42270e
2025-10-27 02:33:36,753 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9b555523-fe49-4782-9c1e-50b02d42270e
2025-10-27 02:33:36,758 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/133207ee-e7ba-405a-8e63-3f0a8d8d103a
2025-10-27 02:33:36,763 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 02:33:36,763 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/72b90c3c-a80c-4019-b680-897f3dd78886
2025-10-27 02:33:36,770 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9b555523-fe49-4782-9c1e-50b02d42270e
2025-10-27 02:33:36,782 - INFO - Verified VN network id 13 for VN 72b90c3c-a80c-4019-b680-897f3dd78886
2025-10-27 02:33:36,782 - INFO - Verifications in API Server for VN ctest-vn-94612897 passed
2025-10-27 02:33:36,783 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/72b90c3c-a80c-4019-b680-897f3dd78886
2025-10-27 02:33:36,790 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9b555523-fe49-4782-9c1e-50b02d42270e
2025-10-27 02:33:36,795 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9b555523-fe49-4782-9c1e-50b02d42270e
2025-10-27 02:33:36,800 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/133207ee-e7ba-405a-8e63-3f0a8d8d103a
2025-10-27 02:33:36,809 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-94612897', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24665430', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8266652045672202265', 'uuid-lslong': '13150662091513235590'}, 'enable': 'true', 'created': '2025-10-27T02:33:34', 'last-modified': '2025-10-27T02:33:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275845'}
2025-10-27 02:33:36,814 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 02:33:36,814 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94612897 passed
2025-10-27 02:33:36,814 - DEBUG - ====Verifying policy data for ctest-vn-94612897 in API_Server ======
2025-10-27 02:33:36,814 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-10-27 02:33:36,818 - DEBUG - Requesting: http://10.0.0.41:8082/domain/96b84c01-413a-4672-841c-1934c18e2ad4
2025-10-27 02:33:36,826 - DEBUG - Requesting: http://10.0.0.41:8082/project/6bf48f53-49d9-46f9-b589-1b2b15a219c2
2025-10-27 02:33:36,892 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/72b90c3c-a80c-4019-b680-897f3dd78886
2025-10-27 02:33:36,900 - DEBUG - ==>Verifying data for policy with id: f2695f39-e0ec-4759-94e2-8afb217e224e, fqn: ['default-domain', 'ctest-TestBasicPolicy-24665430', 'ctest-policy-allow-all-67974007']
2025-10-27 02:33:36,900 - INFO - VN ctest-vn-94612897 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 02:33:36,900 - DEBUG - Verifying the vn in opserver
2025-10-27 02:33:36,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-94612897 virtual network link through opserver 10.0.0.41
2025-10-27 02:33:36,901 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-10-27 02:33:36,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-94612897', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-94612897?flat'}
2025-10-27 02:33:36,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24665430:ctest-vn-94612897 is found in opserver
2025-10-27 02:33:36,917 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 02:33:36,921 - DEBUG - VRF ids for VN ctest-vn-94612897: {}
2025-10-27 02:33:36,976 - DEBUG - Services list from nova: [