2026-02-26 17:04:27,148 - INFO - Domain Default found not creating
2026-02-26 17:04:27,307 - INFO - Project ctest-TestBasicPolicy-20858156 not found, creating it
2026-02-26 17:04:27,752 - INFO - Created Project:ctest-TestBasicPolicy-20858156, ID : dc984e13-f295-4aa3-b02e-65da7330d313
2026-02-26 17:04:29,224 - INFO - ================================================================================
2026-02-26 17:04:29,224 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-26 17:04:29,224 - 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
2026-02-26 17:04:29,479 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-02-26 17:04:29,479 - INFO - Initial checks done. Running the testcase now
2026-02-26 17:04:29,479 - INFO -
2026-02-26 17:04:30,015 - DEBUG - Response for create_network : {'network': {'id': '73107678-6eeb-4333-bb30-0161053f8b59', 'name': 'ctest-vn-86648098', 'tenant_id': 'dc984e13f2954aa3b02e65da7330d313', 'project_id': 'dc984e13f2954aa3b02e65da7330d313', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-vn-86648098'], 'port_security_enabled': True, 'description': ''}}
2026-02-26 17:04:30,184 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c0a9d60-9410-447b-bfe2-6a7ced2abc90', 'name': '', 'tenant_id': 'dc984e13f2954aa3b02e65da7330d313', 'network_id': '73107678-6eeb-4333-bb30-0161053f8b59', 'ip_version': 4, 'cidr': '222.119.165.64/26', 'allocation_pools': [{'start': '222.119.165.66', 'end': '222.119.165.126'}], 'gateway_ip': '222.119.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.119.165.66', 'tags': [], 'project_id': 'dc984e13f2954aa3b02e65da7330d313'}}
2026-02-26 17:04:30,202 - INFO - Created VN ctest-vn-86648098
2026-02-26 17:04:30,259 - DEBUG - VN ctest-vn-86648098 UUID is 73107678-6eeb-4333-bb30-0161053f8b59
2026-02-26 17:04:30,553 - DEBUG - Response for create_network : {'network': {'id': 'b30c9857-fdce-42ee-80e6-834a78938454', 'name': 'ctest-vn-38025881', 'tenant_id': 'dc984e13f2954aa3b02e65da7330d313', 'project_id': 'dc984e13f2954aa3b02e65da7330d313', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-vn-38025881'], 'port_security_enabled': True, 'description': ''}}
2026-02-26 17:04:30,720 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e52eeab1-6c59-450a-a372-291a59705ce1', 'name': '', 'tenant_id': 'dc984e13f2954aa3b02e65da7330d313', 'network_id': 'b30c9857-fdce-42ee-80e6-834a78938454', 'ip_version': 4, 'cidr': '223.210.123.0/26', 'allocation_pools': [{'start': '223.210.123.2', 'end': '223.210.123.62'}], 'gateway_ip': '223.210.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.210.123.2', 'tags': [], 'project_id': 'dc984e13f2954aa3b02e65da7330d313'}}
2026-02-26 17:04:30,736 - INFO - Created VN ctest-vn-38025881
2026-02-26 17:04:30,790 - DEBUG - VN ctest-vn-38025881 UUID is b30c9857-fdce-42ee-80e6-834a78938454
2026-02-26 17:04:30,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-86648098, 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-20858156:ctest-vn-38025881, 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]
2026-02-26 17:04:31,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73107678-6eeb-4333-bb30-0161053f8b59', 'name': 'ctest-vn-86648098', 'tenant_id': 'dc984e13f2954aa3b02e65da7330d313', 'project_id': 'dc984e13f2954aa3b02e65da7330d313', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c0a9d60-9410-447b-bfe2-6a7ced2abc90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-vn-86648098'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-policy-allow-all-98250401']], 'subnet_ipam': [{'subnet_cidr': '222.119.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-26 17:04:31,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b30c9857-fdce-42ee-80e6-834a78938454', 'name': 'ctest-vn-38025881', 'tenant_id': 'dc984e13f2954aa3b02e65da7330d313', 'project_id': 'dc984e13f2954aa3b02e65da7330d313', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e52eeab1-6c59-450a-a372-291a59705ce1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-vn-38025881'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-policy-allow-all-98250401']], 'subnet_ipam': [{'subnet_cidr': '223.210.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-26 17:04:31,622 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-26 17:04:31,918 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-26 17:04:31,952 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68
2026-02-26 17:04:31,964 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc984e13-f295-4aa3-b02e-65da7330d313
2026-02-26 17:04:32,039 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73107678-6eeb-4333-bb30-0161053f8b59
2026-02-26 17:04:32,050 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73107678-6eeb-4333-bb30-0161053f8b59
2026-02-26 17:04:32,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea5b6a73-13d0-4e8a-8492-50e2740ac7f3
2026-02-26 17:04:32,066 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea5b6a73-13d0-4e8a-8492-50e2740ac7f3
2026-02-26 17:04:32,073 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f3249196-6833-467f-a5c4-af7632bd8ea8
2026-02-26 17:04:32,080 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-26 17:04:32,080 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73107678-6eeb-4333-bb30-0161053f8b59
2026-02-26 17:04:32,090 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea5b6a73-13d0-4e8a-8492-50e2740ac7f3
2026-02-26 17:04:32,105 - INFO - Verified VN network id 11 for VN 73107678-6eeb-4333-bb30-0161053f8b59
2026-02-26 17:04:32,105 - INFO - Verifications in API Server for VN ctest-vn-86648098 passed
2026-02-26 17:04:32,106 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73107678-6eeb-4333-bb30-0161053f8b59
2026-02-26 17:04:32,114 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea5b6a73-13d0-4e8a-8492-50e2740ac7f3
2026-02-26 17:04:32,121 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea5b6a73-13d0-4e8a-8492-50e2740ac7f3
2026-02-26 17:04:32,127 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f3249196-6833-467f-a5c4-af7632bd8ea8
2026-02-26 17:04:32,141 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-86648098', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20858156', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8291257173618148147', 'uuid-lslong': '13488282400186141529'}, 'enable': 'true', 'created': '2026-02-26T17:04:29', 'last-modified': '2026-02-26T17:04:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938361'}
2026-02-26 17:04:32,147 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-26 17:04:32,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86648098 passed
2026-02-26 17:04:32,147 - DEBUG - ====Verifying policy data for ctest-vn-86648098 in API_Server ======
2026-02-26 17:04:32,147 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-26 17:04:32,153 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68
2026-02-26 17:04:32,165 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc984e13-f295-4aa3-b02e-65da7330d313
2026-02-26 17:04:32,241 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73107678-6eeb-4333-bb30-0161053f8b59
2026-02-26 17:04:32,251 - DEBUG - ==>Verifying data for policy with id: 01cc6347-642b-45f2-be53-cd820341165e, fqn: ['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-policy-allow-all-98250401']
2026-02-26 17:04:32,251 - INFO - VN ctest-vn-86648098 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-26 17:04:32,251 - DEBUG - Verifying the vn in opserver
2026-02-26 17:04:32,251 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-86648098 virtual network link through opserver 10.0.0.38
2026-02-26 17:04:32,251 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-26 17:04:32,544 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-26 17:04:32,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-86648098', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-86648098?flat'}
2026-02-26 17:04:32,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-86648098 is found in opserver
2026-02-26 17:04:32,614 - DEBUG - Do not have enough data to verify VN in agent
2026-02-26 17:04:32,618 - DEBUG - VRF ids for VN ctest-vn-86648098: {}
2026-02-26 17:04:32,618 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-26 17:04:32,624 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68
2026-02-26 17:04:32,635 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc984e13-f295-4aa3-b02e-65da7330d313
2026-02-26 17:04:32,705 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b30c9857-fdce-42ee-80e6-834a78938454
2026-02-26 17:04:32,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b30c9857-fdce-42ee-80e6-834a78938454
2026-02-26 17:04:32,726 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67228d35-15d0-44b3-a629-616a66028591
2026-02-26 17:04:32,734 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67228d35-15d0-44b3-a629-616a66028591
2026-02-26 17:04:32,742 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ca26e263-dd5e-48d3-ba7e-4347440a8daf
2026-02-26 17:04:32,750 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-26 17:04:32,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b30c9857-fdce-42ee-80e6-834a78938454
2026-02-26 17:04:32,759 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67228d35-15d0-44b3-a629-616a66028591
2026-02-26 17:04:32,772 - INFO - Verified VN network id 12 for VN b30c9857-fdce-42ee-80e6-834a78938454
2026-02-26 17:04:32,772 - INFO - Verifications in API Server for VN ctest-vn-38025881 passed
2026-02-26 17:04:32,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b30c9857-fdce-42ee-80e6-834a78938454
2026-02-26 17:04:32,780 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67228d35-15d0-44b3-a629-616a66028591
2026-02-26 17:04:32,786 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/67228d35-15d0-44b3-a629-616a66028591
2026-02-26 17:04:32,793 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ca26e263-dd5e-48d3-ba7e-4347440a8daf
2026-02-26 17:04:32,804 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-38025881', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20858156', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12901854536197358318', 'uuid-lslong': '9288255637371978836'}, 'enable': 'true', 'created': '2026-02-26T17:04:30', 'last-modified': '2026-02-26T17:04:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368549'}
2026-02-26 17:04:32,809 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-26 17:04:32,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38025881 passed
2026-02-26 17:04:32,810 - DEBUG - ====Verifying policy data for ctest-vn-38025881 in API_Server ======
2026-02-26 17:04:32,810 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-26 17:04:32,815 - DEBUG - Requesting: http://10.0.0.38:8082/domain/823ea81f-9d25-4526-b14f-ed1806dbdc68
2026-02-26 17:04:32,825 - DEBUG - Requesting: http://10.0.0.38:8082/project/dc984e13-f295-4aa3-b02e-65da7330d313
2026-02-26 17:04:32,895 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b30c9857-fdce-42ee-80e6-834a78938454
2026-02-26 17:04:32,903 - DEBUG - ==>Verifying data for policy with id: 01cc6347-642b-45f2-be53-cd820341165e, fqn: ['default-domain', 'ctest-TestBasicPolicy-20858156', 'ctest-policy-allow-all-98250401']
2026-02-26 17:04:32,904 - INFO - VN ctest-vn-38025881 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-26 17:04:32,904 - DEBUG - Verifying the vn in opserver
2026-02-26 17:04:32,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-38025881 virtual network link through opserver 10.0.0.38
2026-02-26 17:04:32,904 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-26 17:04:32,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-38025881', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-38025881?flat'}
2026-02-26 17:04:32,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20858156:ctest-vn-38025881 is found in opserver
2026-02-26 17:04:32,921 - DEBUG - Do not have enough data to verify VN in agent
2026-02-26 17:04:32,926 - DEBUG - VRF ids for VN ctest-vn-38025881: {}
2026-02-26 17:04:32,980 - DEBUG - Services list from nova: [