2025-10-13 12:33:06,127 - INFO - Domain Default found not creating
2025-10-13 12:33:06,282 - INFO - Project ctest-TestBasicPolicy-23551140 not found, creating it
2025-10-13 12:33:06,749 - INFO - Created Project:ctest-TestBasicPolicy-23551140, ID : f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3
2025-10-13 12:33:08,252 - INFO - ================================================================================
2025-10-13 12:33:08,252 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-13 12:33:08,252 - 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-13 12:33:08,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-10-13 12:33:08,506 - INFO - Initial checks done. Running the testcase now
2025-10-13 12:33:08,506 - INFO -
2025-10-13 12:33:09,053 - DEBUG - Response for create_network : {'network': {'id': '1113c9cb-eec5-4a09-8875-7894be1d019a', 'name': 'ctest-vn-69121543', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-69121543'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:33:09,220 - DEBUG - Response for create_subnet : {'subnet': {'id': '23f34969-deee-4bb8-9491-12722063b705', 'name': '', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'network_id': '1113c9cb-eec5-4a09-8875-7894be1d019a', 'ip_version': 4, 'cidr': '147.94.221.128/26', 'allocation_pools': [{'start': '147.94.221.130', 'end': '147.94.221.190'}], 'gateway_ip': '147.94.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.94.221.130', 'tags': [], 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3'}}
2025-10-13 12:33:09,237 - INFO - Created VN ctest-vn-69121543
2025-10-13 12:33:09,289 - DEBUG - VN ctest-vn-69121543 UUID is 1113c9cb-eec5-4a09-8875-7894be1d019a
2025-10-13 12:33:09,617 - DEBUG - Response for create_network : {'network': {'id': 'd03cbda0-3e1c-4ff0-b78b-184c182c7bad', 'name': 'ctest-vn-52802672', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-52802672'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:33:09,842 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2272e60-056c-4342-a4fb-3f317d73c257', 'name': '', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'network_id': 'd03cbda0-3e1c-4ff0-b78b-184c182c7bad', 'ip_version': 4, 'cidr': '222.121.22.128/26', 'allocation_pools': [{'start': '222.121.22.130', 'end': '222.121.22.190'}], 'gateway_ip': '222.121.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.121.22.130', 'tags': [], 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3'}}
2025-10-13 12:33:09,860 - INFO - Created VN ctest-vn-52802672
2025-10-13 12:33:09,913 - DEBUG - VN ctest-vn-52802672 UUID is d03cbda0-3e1c-4ff0-b78b-184c182c7bad
2025-10-13 12:33:10,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543, 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-23551140:ctest-vn-52802672, 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-13 12:33:10,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1113c9cb-eec5-4a09-8875-7894be1d019a', 'name': 'ctest-vn-69121543', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23f34969-deee-4bb8-9491-12722063b705'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-69121543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065']], 'subnet_ipam': [{'subnet_cidr': '147.94.221.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:33:10,557 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd03cbda0-3e1c-4ff0-b78b-184c182c7bad', 'name': 'ctest-vn-52802672', 'tenant_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'project_id': 'f757c6e40ff146899c6cf22fd0bcfcc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2272e60-056c-4342-a4fb-3f317d73c257'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-vn-52802672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065']], 'subnet_ipam': [{'subnet_cidr': '222.121.22.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 12:33:10,729 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 12:33:11,038 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 12:33:11,071 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d
2025-10-13 12:33:11,084 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3
2025-10-13 12:33:11,160 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a
2025-10-13 12:33:11,172 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a
2025-10-13 12:33:11,182 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919
2025-10-13 12:33:11,190 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919
2025-10-13 12:33:11,196 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/cc6b3b6f-baf0-4531-ba4b-96deff81f38d
2025-10-13 12:33:11,203 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 12:33:11,203 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a
2025-10-13 12:33:11,211 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919
2025-10-13 12:33:11,226 - INFO - Verified VN network id 11 for VN 1113c9cb-eec5-4a09-8875-7894be1d019a
2025-10-13 12:33:11,226 - INFO - Verifications in API Server for VN ctest-vn-69121543 passed
2025-10-13 12:33:11,226 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a
2025-10-13 12:33:11,234 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919
2025-10-13 12:33:11,241 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a6642433-5099-4b10-8d9f-e76ba9444919
2025-10-13 12:33:11,248 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/cc6b3b6f-baf0-4531-ba4b-96deff81f38d
2025-10-13 12:33:11,261 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23551140', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1230549000923728393', 'uuid-lslong': '9832897941673410970'}, 'enable': 'true', 'created': '2025-10-13T12:33:09', 'last-modified': '2025-10-13T12:33:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.959477'}
2025-10-13 12:33:11,266 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 12:33:11,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69121543 passed
2025-10-13 12:33:11,267 - DEBUG - ====Verifying policy data for ctest-vn-69121543 in API_Server ======
2025-10-13 12:33:11,267 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 12:33:11,272 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d
2025-10-13 12:33:11,282 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3
2025-10-13 12:33:11,350 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1113c9cb-eec5-4a09-8875-7894be1d019a
2025-10-13 12:33:11,360 - DEBUG - ==>Verifying data for policy with id: 9e27a55e-d1e9-43e1-8a76-801ee7d45fa9, fqn: ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065']
2025-10-13 12:33:11,360 - INFO - VN ctest-vn-69121543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 12:33:11,360 - DEBUG - Verifying the vn in opserver
2025-10-13 12:33:11,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543 virtual network link through opserver 10.0.0.249
2025-10-13 12:33:11,361 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-13 12:33:11,654 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-13 12:33:11,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543?flat'}
2025-10-13 12:33:11,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-69121543 is found in opserver
2025-10-13 12:33:11,718 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 12:33:11,722 - DEBUG - VRF ids for VN ctest-vn-69121543: {}
2025-10-13 12:33:11,723 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 12:33:11,728 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d
2025-10-13 12:33:11,738 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3
2025-10-13 12:33:11,804 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad
2025-10-13 12:33:11,814 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad
2025-10-13 12:33:11,823 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828
2025-10-13 12:33:11,830 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828
2025-10-13 12:33:11,836 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/36c9f7d7-b194-4f6f-b78f-5b25e67333a9
2025-10-13 12:33:11,842 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 12:33:11,842 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad
2025-10-13 12:33:11,850 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828
2025-10-13 12:33:11,865 - INFO - Verified VN network id 12 for VN d03cbda0-3e1c-4ff0-b78b-184c182c7bad
2025-10-13 12:33:11,865 - INFO - Verifications in API Server for VN ctest-vn-52802672 passed
2025-10-13 12:33:11,865 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad
2025-10-13 12:33:11,877 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828
2025-10-13 12:33:11,884 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b5d05c3f-737b-4feb-b151-5e95fa7ef828
2025-10-13 12:33:11,891 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/36c9f7d7-b194-4f6f-b78f-5b25e67333a9
2025-10-13 12:33:11,901 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23551140', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15005076554426109936', 'uuid-lslong': '13225691445805743021'}, 'enable': 'true', 'created': '2025-10-13T12:33:09', 'last-modified': '2025-10-13T12:33:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.376314'}
2025-10-13 12:33:11,908 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 12:33:11,908 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52802672 passed
2025-10-13 12:33:11,908 - DEBUG - ====Verifying policy data for ctest-vn-52802672 in API_Server ======
2025-10-13 12:33:11,908 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-13 12:33:11,914 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d
2025-10-13 12:33:11,925 - DEBUG - Requesting: http://10.0.0.249:8082/project/f757c6e4-0ff1-4689-9c6c-f22fd0bcfcc3
2025-10-13 12:33:11,992 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d03cbda0-3e1c-4ff0-b78b-184c182c7bad
2025-10-13 12:33:12,002 - DEBUG - ==>Verifying data for policy with id: 9e27a55e-d1e9-43e1-8a76-801ee7d45fa9, fqn: ['default-domain', 'ctest-TestBasicPolicy-23551140', 'ctest-policy-allow-all-39813065']
2025-10-13 12:33:12,002 - INFO - VN ctest-vn-52802672 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 12:33:12,002 - DEBUG - Verifying the vn in opserver
2025-10-13 12:33:12,002 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672 virtual network link through opserver 10.0.0.249
2025-10-13 12:33:12,002 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-13 12:33:12,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672?flat'}
2025-10-13 12:33:12,012 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23551140:ctest-vn-52802672 is found in opserver
2025-10-13 12:33:12,020 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 12:33:12,026 - DEBUG - VRF ids for VN ctest-vn-52802672: {}
2025-10-13 12:33:12,087 - DEBUG - Services list from nova: [