2025-11-12 14:42:19,263 - INFO - Domain Default found not creating
2025-11-12 14:42:19,405 - INFO - Project ctest-TestBasicPolicy-07680628 not found, creating it
2025-11-12 14:42:19,833 - INFO - Created Project:ctest-TestBasicPolicy-07680628, ID : 234db4ae-59cb-4177-83bc-c4c9baa29cfc
2025-11-12 14:42:21,204 - INFO - ================================================================================
2025-11-12 14:42:21,204 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 14:42:21,204 - 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-12 14:42:21,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-11-12 14:42:21,469 - INFO - Initial checks done. Running the testcase now
2025-11-12 14:42:21,469 - INFO -
2025-11-12 14:42:21,996 - DEBUG - Response for create_network : {'network': {'id': 'f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc', 'name': 'ctest-vn-99124856', 'tenant_id': '234db4ae59cb417783bcc4c9baa29cfc', 'project_id': '234db4ae59cb417783bcc4c9baa29cfc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-vn-99124856'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:42:22,149 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab2d49fb-7aa9-4c3b-ac4f-1db1b2d5900f', 'name': '', 'tenant_id': '234db4ae59cb417783bcc4c9baa29cfc', 'network_id': 'f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc', 'ip_version': 4, 'cidr': '211.106.21.192/26', 'allocation_pools': [{'start': '211.106.21.194', 'end': '211.106.21.254'}], 'gateway_ip': '211.106.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.106.21.194', 'tags': [], 'project_id': '234db4ae59cb417783bcc4c9baa29cfc'}}
2025-11-12 14:42:22,165 - INFO - Created VN ctest-vn-99124856
2025-11-12 14:42:22,220 - DEBUG - VN ctest-vn-99124856 UUID is f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc
2025-11-12 14:42:22,508 - DEBUG - Response for create_network : {'network': {'id': 'c6e1e5a7-8fbe-4957-90ac-628d384aae3b', 'name': 'ctest-vn-55359741', 'tenant_id': '234db4ae59cb417783bcc4c9baa29cfc', 'project_id': '234db4ae59cb417783bcc4c9baa29cfc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-vn-55359741'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:42:22,692 - DEBUG - Response for create_subnet : {'subnet': {'id': '3867ed13-8960-4319-ada8-df3cbdf5741f', 'name': '', 'tenant_id': '234db4ae59cb417783bcc4c9baa29cfc', 'network_id': 'c6e1e5a7-8fbe-4957-90ac-628d384aae3b', 'ip_version': 4, 'cidr': '28.152.231.192/26', 'allocation_pools': [{'start': '28.152.231.194', 'end': '28.152.231.254'}], 'gateway_ip': '28.152.231.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.152.231.194', 'tags': [], 'project_id': '234db4ae59cb417783bcc4c9baa29cfc'}}
2025-11-12 14:42:22,708 - INFO - Created VN ctest-vn-55359741
2025-11-12 14:42:22,760 - DEBUG - VN ctest-vn-55359741 UUID is c6e1e5a7-8fbe-4957-90ac-628d384aae3b
2025-11-12 14:42:22,904 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-99124856, 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-07680628:ctest-vn-55359741, 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-12 14:42:23,186 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc', 'name': 'ctest-vn-99124856', 'tenant_id': '234db4ae59cb417783bcc4c9baa29cfc', 'project_id': '234db4ae59cb417783bcc4c9baa29cfc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab2d49fb-7aa9-4c3b-ac4f-1db1b2d5900f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-vn-99124856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-policy-allow-all-29848949']], 'subnet_ipam': [{'subnet_cidr': '211.106.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:42:23,448 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6e1e5a7-8fbe-4957-90ac-628d384aae3b', 'name': 'ctest-vn-55359741', 'tenant_id': '234db4ae59cb417783bcc4c9baa29cfc', 'project_id': '234db4ae59cb417783bcc4c9baa29cfc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3867ed13-8960-4319-ada8-df3cbdf5741f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-vn-55359741'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-policy-allow-all-29848949']], 'subnet_ipam': [{'subnet_cidr': '28.152.231.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 14:42:23,596 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 14:42:23,888 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 14:42:23,914 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d
2025-11-12 14:42:23,925 - DEBUG - Requesting: http://10.0.0.38:8082/project/234db4ae-59cb-4177-83bc-c4c9baa29cfc
2025-11-12 14:42:23,996 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc
2025-11-12 14:42:24,005 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc
2025-11-12 14:42:24,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7be0bcfb-53fa-421a-bad4-eff9f772c9f0
2025-11-12 14:42:24,021 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7be0bcfb-53fa-421a-bad4-eff9f772c9f0
2025-11-12 14:42:24,028 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/761a7026-069b-4a11-b6a8-75574c048f30
2025-11-12 14:42:24,034 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 14:42:24,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc
2025-11-12 14:42:24,042 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7be0bcfb-53fa-421a-bad4-eff9f772c9f0
2025-11-12 14:42:24,054 - INFO - Verified VN network id 12 for VN f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc
2025-11-12 14:42:24,054 - INFO - Verifications in API Server for VN ctest-vn-99124856 passed
2025-11-12 14:42:24,054 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc
2025-11-12 14:42:24,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7be0bcfb-53fa-421a-bad4-eff9f772c9f0
2025-11-12 14:42:24,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7be0bcfb-53fa-421a-bad4-eff9f772c9f0
2025-11-12 14:42:24,074 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/761a7026-069b-4a11-b6a8-75574c048f30
2025-11-12 14:42:24,083 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-99124856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07680628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17946417142105918123', 'uuid-lslong': '11258356191363776716'}, 'enable': 'true', 'created': '2025-11-12T14:42:21', 'last-modified': '2025-11-12T14:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915429'}
2025-11-12 14:42:24,088 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 14:42:24,089 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99124856 passed
2025-11-12 14:42:24,089 - DEBUG - ====Verifying policy data for ctest-vn-99124856 in API_Server ======
2025-11-12 14:42:24,089 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 14:42:24,093 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d
2025-11-12 14:42:24,104 - DEBUG - Requesting: http://10.0.0.38:8082/project/234db4ae-59cb-4177-83bc-c4c9baa29cfc
2025-11-12 14:42:24,178 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f90e7b4e-7a34-4aab-9c3d-b74e850ec0cc
2025-11-12 14:42:24,187 - DEBUG - ==>Verifying data for policy with id: f09ddb43-630b-4573-bd09-4fd439230c85, fqn: ['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-policy-allow-all-29848949']
2025-11-12 14:42:24,187 - INFO - VN ctest-vn-99124856 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 14:42:24,187 - DEBUG - Verifying the vn in opserver
2025-11-12 14:42:24,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-99124856 virtual network link through opserver 10.0.0.38
2025-11-12 14:42:24,187 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 14:42:24,476 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 14:42:24,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-99124856', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-99124856?flat'}
2025-11-12 14:42:24,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-99124856 is found in opserver
2025-11-12 14:42:24,535 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 14:42:24,540 - DEBUG - VRF ids for VN ctest-vn-99124856: {}
2025-11-12 14:42:24,540 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 14:42:24,546 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d
2025-11-12 14:42:24,558 - DEBUG - Requesting: http://10.0.0.38:8082/project/234db4ae-59cb-4177-83bc-c4c9baa29cfc
2025-11-12 14:42:24,628 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c6e1e5a7-8fbe-4957-90ac-628d384aae3b
2025-11-12 14:42:24,638 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c6e1e5a7-8fbe-4957-90ac-628d384aae3b
2025-11-12 14:42:24,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/864ae297-c83d-4288-b2dc-5ef9f12a3cde
2025-11-12 14:42:24,653 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/864ae297-c83d-4288-b2dc-5ef9f12a3cde
2025-11-12 14:42:24,658 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f877ba51-1568-42ea-b20b-81a5911f10ad
2025-11-12 14:42:24,663 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 14:42:24,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c6e1e5a7-8fbe-4957-90ac-628d384aae3b
2025-11-12 14:42:24,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/864ae297-c83d-4288-b2dc-5ef9f12a3cde
2025-11-12 14:42:24,680 - INFO - Verified VN network id 13 for VN c6e1e5a7-8fbe-4957-90ac-628d384aae3b
2025-11-12 14:42:24,680 - INFO - Verifications in API Server for VN ctest-vn-55359741 passed
2025-11-12 14:42:24,680 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c6e1e5a7-8fbe-4957-90ac-628d384aae3b
2025-11-12 14:42:24,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/864ae297-c83d-4288-b2dc-5ef9f12a3cde
2025-11-12 14:42:24,692 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/864ae297-c83d-4288-b2dc-5ef9f12a3cde
2025-11-12 14:42:24,698 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f877ba51-1568-42ea-b20b-81a5911f10ad
2025-11-12 14:42:24,708 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-55359741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07680628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14330987997103540567', 'uuid-lslong': '10424815596130184763'}, 'enable': 'true', 'created': '2025-11-12T14:42:22', 'last-modified': '2025-11-12T14:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.322528'}
2025-11-12 14:42:24,714 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 14:42:24,714 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55359741 passed
2025-11-12 14:42:24,714 - DEBUG - ====Verifying policy data for ctest-vn-55359741 in API_Server ======
2025-11-12 14:42:24,714 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-12 14:42:24,720 - DEBUG - Requesting: http://10.0.0.38:8082/domain/604661ca-7fee-40a5-80d8-54c8a18b7e9d
2025-11-12 14:42:24,729 - DEBUG - Requesting: http://10.0.0.38:8082/project/234db4ae-59cb-4177-83bc-c4c9baa29cfc
2025-11-12 14:42:24,796 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c6e1e5a7-8fbe-4957-90ac-628d384aae3b
2025-11-12 14:42:24,806 - DEBUG - ==>Verifying data for policy with id: f09ddb43-630b-4573-bd09-4fd439230c85, fqn: ['default-domain', 'ctest-TestBasicPolicy-07680628', 'ctest-policy-allow-all-29848949']
2025-11-12 14:42:24,806 - INFO - VN ctest-vn-55359741 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 14:42:24,806 - DEBUG - Verifying the vn in opserver
2025-11-12 14:42:24,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-55359741 virtual network link through opserver 10.0.0.38
2025-11-12 14:42:24,806 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-12 14:42:24,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-55359741', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-55359741?flat'}
2025-11-12 14:42:24,815 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07680628:ctest-vn-55359741 is found in opserver
2025-11-12 14:42:24,823 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 14:42:24,827 - DEBUG - VRF ids for VN ctest-vn-55359741: {}
2025-11-12 14:42:24,877 - DEBUG - Services list from nova: [