2025-11-05 16:23:13,795 - INFO - Domain Default found not creating
2025-11-05 16:23:13,978 - INFO - Project ctest-TestBasicPolicy-14574787 not found, creating it
2025-11-05 16:23:14,458 - INFO - Created Project:ctest-TestBasicPolicy-14574787, ID : a435df08-7abc-4178-a6f6-25430ddd0a84
2025-11-05 16:23:16,099 - INFO - ================================================================================
2025-11-05 16:23:16,099 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 16:23:16,099 - 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 16:23:16,361 - DEBUG - Nothing to compare xmpp stats {'10.0.0.147': {'10.20.0.249': '0'}} with
2025-11-05 16:23:16,361 - INFO - Initial checks done. Running the testcase now
2025-11-05 16:23:16,361 - INFO -
2025-11-05 16:23:16,983 - DEBUG - Response for create_network : {'network': {'id': '456e9171-5e41-4004-a4ad-d4f48a977722', 'name': 'ctest-vn-74492398', 'tenant_id': 'a435df087abc4178a6f625430ddd0a84', 'project_id': 'a435df087abc4178a6f625430ddd0a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-vn-74492398'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:23:17,186 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c82e0d20-4b95-48f0-875f-2413f1669181', 'name': '', 'tenant_id': 'a435df087abc4178a6f625430ddd0a84', 'network_id': '456e9171-5e41-4004-a4ad-d4f48a977722', 'ip_version': 4, 'cidr': '105.249.34.64/26', 'allocation_pools': [{'start': '105.249.34.66', 'end': '105.249.34.126'}], 'gateway_ip': '105.249.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.249.34.66', 'tags': [], 'project_id': 'a435df087abc4178a6f625430ddd0a84'}}
2025-11-05 16:23:17,209 - INFO - Created VN ctest-vn-74492398
2025-11-05 16:23:17,267 - DEBUG - VN ctest-vn-74492398 UUID is 456e9171-5e41-4004-a4ad-d4f48a977722
2025-11-05 16:23:17,578 - DEBUG - Response for create_network : {'network': {'id': 'a012d54d-7009-4b9c-9779-66b3f16e51a8', 'name': 'ctest-vn-48898056', 'tenant_id': 'a435df087abc4178a6f625430ddd0a84', 'project_id': 'a435df087abc4178a6f625430ddd0a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-vn-48898056'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:23:17,737 - DEBUG - Response for create_subnet : {'subnet': {'id': '10cd5cfe-868f-428e-897a-e076310fbe48', 'name': '', 'tenant_id': 'a435df087abc4178a6f625430ddd0a84', 'network_id': 'a012d54d-7009-4b9c-9779-66b3f16e51a8', 'ip_version': 4, 'cidr': '209.115.176.64/26', 'allocation_pools': [{'start': '209.115.176.66', 'end': '209.115.176.126'}], 'gateway_ip': '209.115.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.115.176.66', 'tags': [], 'project_id': 'a435df087abc4178a6f625430ddd0a84'}}
2025-11-05 16:23:17,758 - INFO - Created VN ctest-vn-48898056
2025-11-05 16:23:17,815 - DEBUG - VN ctest-vn-48898056 UUID is a012d54d-7009-4b9c-9779-66b3f16e51a8
2025-11-05 16:23:17,943 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-74492398, 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-14574787:ctest-vn-48898056, 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 16:23:18,259 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '456e9171-5e41-4004-a4ad-d4f48a977722', 'name': 'ctest-vn-74492398', 'tenant_id': 'a435df087abc4178a6f625430ddd0a84', 'project_id': 'a435df087abc4178a6f625430ddd0a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c82e0d20-4b95-48f0-875f-2413f1669181'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-vn-74492398'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-policy-allow-all-95469295']], 'subnet_ipam': [{'subnet_cidr': '105.249.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:23:18,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a012d54d-7009-4b9c-9779-66b3f16e51a8', 'name': 'ctest-vn-48898056', 'tenant_id': 'a435df087abc4178a6f625430ddd0a84', 'project_id': 'a435df087abc4178a6f625430ddd0a84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10cd5cfe-868f-428e-897a-e076310fbe48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-vn-48898056'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-policy-allow-all-95469295']], 'subnet_ipam': [{'subnet_cidr': '209.115.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 16:23:18,703 - DEBUG - Requesting: http://10.0.0.147:8082/domains
2025-11-05 16:23:19,040 - DEBUG - Requesting: http://10.0.0.147:8082/domains
2025-11-05 16:23:19,070 - DEBUG - Requesting: http://10.0.0.147:8082/domain/ad16a0d8-919e-4d52-94ae-2502c0ee8856
2025-11-05 16:23:19,084 - DEBUG - Requesting: http://10.0.0.147:8082/project/a435df08-7abc-4178-a6f6-25430ddd0a84
2025-11-05 16:23:19,165 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/456e9171-5e41-4004-a4ad-d4f48a977722
2025-11-05 16:23:19,179 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/456e9171-5e41-4004-a4ad-d4f48a977722
2025-11-05 16:23:19,190 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/0fb0c4cb-a192-4500-9618-de1128a3217d
2025-11-05 16:23:19,199 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/0fb0c4cb-a192-4500-9618-de1128a3217d
2025-11-05 16:23:19,206 - DEBUG - Requesting: http://10.0.0.147:8082/route-target/d562b210-0294-41b8-8d8d-a11f5eef816d
2025-11-05 16:23:19,214 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 16:23:19,214 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/456e9171-5e41-4004-a4ad-d4f48a977722
2025-11-05 16:23:19,224 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/0fb0c4cb-a192-4500-9618-de1128a3217d
2025-11-05 16:23:19,242 - INFO - Verified VN network id 11 for VN 456e9171-5e41-4004-a4ad-d4f48a977722
2025-11-05 16:23:19,243 - INFO - Verifications in API Server for VN ctest-vn-74492398 passed
2025-11-05 16:23:19,243 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/456e9171-5e41-4004-a4ad-d4f48a977722
2025-11-05 16:23:19,253 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/0fb0c4cb-a192-4500-9618-de1128a3217d
2025-11-05 16:23:19,261 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/0fb0c4cb-a192-4500-9618-de1128a3217d
2025-11-05 16:23:19,268 - DEBUG - Requesting: http://10.0.0.147:8082/route-target/d562b210-0294-41b8-8d8d-a11f5eef816d
2025-11-05 16:23:19,281 - DEBUG - Control-node 10.0.0.147 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-74492398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14574787', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5003096152153866244', 'uuid-lslong': '11866374739953415970'}, 'enable': 'true', 'created': '2025-11-05T16:23:16', 'last-modified': '2025-11-05T16:23:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047549'}
2025-11-05 16:23:19,287 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 16:23:19,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74492398 passed
2025-11-05 16:23:19,288 - DEBUG - ====Verifying policy data for ctest-vn-74492398 in API_Server ======
2025-11-05 16:23:19,288 - DEBUG - Requesting: http://10.0.0.147:8082/domains
2025-11-05 16:23:19,294 - DEBUG - Requesting: http://10.0.0.147:8082/domain/ad16a0d8-919e-4d52-94ae-2502c0ee8856
2025-11-05 16:23:19,308 - DEBUG - Requesting: http://10.0.0.147:8082/project/a435df08-7abc-4178-a6f6-25430ddd0a84
2025-11-05 16:23:19,384 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/456e9171-5e41-4004-a4ad-d4f48a977722
2025-11-05 16:23:19,397 - DEBUG - ==>Verifying data for policy with id: 51a51cf7-fba1-460a-b552-396855f3f347, fqn: ['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-policy-allow-all-95469295']
2025-11-05 16:23:19,397 - INFO - VN ctest-vn-74492398 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 16:23:19,398 - DEBUG - Verifying the vn in opserver
2025-11-05 16:23:19,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-74492398 virtual network link through opserver 10.0.0.147
2025-11-05 16:23:19,398 - DEBUG - Requesting: http://10.0.0.147:8081/analytics/uves/virtual-networks
2025-11-05 16:23:19,754 - DEBUG - Requesting: http://10.0.0.147:8081/analytics/uves/virtual-networks
2025-11-05 16:23:19,824 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-74492398', 'href': 'http://10.0.0.147:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-74492398?flat'}
2025-11-05 16:23:19,824 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-74492398 is found in opserver
2025-11-05 16:23:19,842 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 16:23:19,848 - DEBUG - VRF ids for VN ctest-vn-74492398: {}
2025-11-05 16:23:19,848 - DEBUG - Requesting: http://10.0.0.147:8082/domains
2025-11-05 16:23:19,855 - DEBUG - Requesting: http://10.0.0.147:8082/domain/ad16a0d8-919e-4d52-94ae-2502c0ee8856
2025-11-05 16:23:19,869 - DEBUG - Requesting: http://10.0.0.147:8082/project/a435df08-7abc-4178-a6f6-25430ddd0a84
2025-11-05 16:23:19,942 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/a012d54d-7009-4b9c-9779-66b3f16e51a8
2025-11-05 16:23:19,957 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/a012d54d-7009-4b9c-9779-66b3f16e51a8
2025-11-05 16:23:19,968 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/ee9c87c1-0b5f-4173-a876-6658984b4192
2025-11-05 16:23:19,975 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/ee9c87c1-0b5f-4173-a876-6658984b4192
2025-11-05 16:23:19,983 - DEBUG - Requesting: http://10.0.0.147:8082/route-target/d5e477f3-58bf-4994-8333-02c327e273bd
2025-11-05 16:23:19,991 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 16:23:19,991 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/a012d54d-7009-4b9c-9779-66b3f16e51a8
2025-11-05 16:23:20,003 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/ee9c87c1-0b5f-4173-a876-6658984b4192
2025-11-05 16:23:20,022 - INFO - Verified VN network id 12 for VN a012d54d-7009-4b9c-9779-66b3f16e51a8
2025-11-05 16:23:20,022 - INFO - Verifications in API Server for VN ctest-vn-48898056 passed
2025-11-05 16:23:20,022 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/a012d54d-7009-4b9c-9779-66b3f16e51a8
2025-11-05 16:23:20,035 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/ee9c87c1-0b5f-4173-a876-6658984b4192
2025-11-05 16:23:20,045 - DEBUG - Requesting: http://10.0.0.147:8082/routing-instance/ee9c87c1-0b5f-4173-a876-6658984b4192
2025-11-05 16:23:20,057 - DEBUG - Requesting: http://10.0.0.147:8082/route-target/d5e477f3-58bf-4994-8333-02c327e273bd
2025-11-05 16:23:20,076 - DEBUG - Control-node 10.0.0.147 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-48898056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14574787', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11534516124218117020', 'uuid-lslong': '10914868094944825768'}, 'enable': 'true', 'created': '2025-11-05T16:23:17', 'last-modified': '2025-11-05T16:23:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.581179'}
2025-11-05 16:23:20,084 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 16:23:20,084 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48898056 passed
2025-11-05 16:23:20,084 - DEBUG - ====Verifying policy data for ctest-vn-48898056 in API_Server ======
2025-11-05 16:23:20,084 - DEBUG - Requesting: http://10.0.0.147:8082/domains
2025-11-05 16:23:20,092 - DEBUG - Requesting: http://10.0.0.147:8082/domain/ad16a0d8-919e-4d52-94ae-2502c0ee8856
2025-11-05 16:23:20,106 - DEBUG - Requesting: http://10.0.0.147:8082/project/a435df08-7abc-4178-a6f6-25430ddd0a84
2025-11-05 16:23:20,180 - DEBUG - Requesting: http://10.0.0.147:8082/virtual-network/a012d54d-7009-4b9c-9779-66b3f16e51a8
2025-11-05 16:23:20,190 - DEBUG - ==>Verifying data for policy with id: 51a51cf7-fba1-460a-b552-396855f3f347, fqn: ['default-domain', 'ctest-TestBasicPolicy-14574787', 'ctest-policy-allow-all-95469295']
2025-11-05 16:23:20,190 - INFO - VN ctest-vn-48898056 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 16:23:20,190 - DEBUG - Verifying the vn in opserver
2025-11-05 16:23:20,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-48898056 virtual network link through opserver 10.0.0.147
2025-11-05 16:23:20,190 - DEBUG - Requesting: http://10.0.0.147:8081/analytics/uves/virtual-networks
2025-11-05 16:23:20,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-48898056', 'href': 'http://10.0.0.147:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-48898056?flat'}
2025-11-05 16:23:20,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14574787:ctest-vn-48898056 is found in opserver
2025-11-05 16:23:20,212 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 16:23:20,217 - DEBUG - VRF ids for VN ctest-vn-48898056: {}
2025-11-05 16:23:20,283 - DEBUG - Services list from nova: [