2025-10-09 19:17:03,015 - INFO - Domain Default found not creating
2025-10-09 19:17:03,180 - INFO - Project ctest-TestBasicPolicy-07939152 not found, creating it
2025-10-09 19:17:03,643 - INFO - Created Project:ctest-TestBasicPolicy-07939152, ID : f1c26b62-f48a-4ae8-9974-5976374de156
2025-10-09 19:17:05,118 - INFO - ================================================================================
2025-10-09 19:17:05,118 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 19:17:05,118 - 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-09 19:17:05,376 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-10-09 19:17:05,376 - INFO - Initial checks done. Running the testcase now
2025-10-09 19:17:05,376 - INFO -
2025-10-09 19:17:05,910 - DEBUG - Response for create_network : {'network': {'id': 'ecd0453d-7c1d-44e3-8619-625a6033d90e', 'name': 'ctest-vn-56689431', 'tenant_id': 'f1c26b62f48a4ae899745976374de156', 'project_id': 'f1c26b62f48a4ae899745976374de156', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-vn-56689431'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 19:17:06,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cab61192-8c7d-430b-9f1d-a960f2624de6', 'name': '', 'tenant_id': 'f1c26b62f48a4ae899745976374de156', 'network_id': 'ecd0453d-7c1d-44e3-8619-625a6033d90e', 'ip_version': 4, 'cidr': '28.176.221.0/26', 'allocation_pools': [{'start': '28.176.221.2', 'end': '28.176.221.62'}], 'gateway_ip': '28.176.221.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.176.221.2', 'tags': [], 'project_id': 'f1c26b62f48a4ae899745976374de156'}}
2025-10-09 19:17:06,148 - INFO - Created VN ctest-vn-56689431
2025-10-09 19:17:06,199 - DEBUG - VN ctest-vn-56689431 UUID is ecd0453d-7c1d-44e3-8619-625a6033d90e
2025-10-09 19:17:06,520 - DEBUG - Response for create_network : {'network': {'id': 'b45b684d-ede7-4f95-acec-2a2120d7c087', 'name': 'ctest-vn-80804027', 'tenant_id': 'f1c26b62f48a4ae899745976374de156', 'project_id': 'f1c26b62f48a4ae899745976374de156', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-vn-80804027'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 19:17:06,682 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e1eb58d-45b5-43f7-b7f2-716ca4371c6c', 'name': '', 'tenant_id': 'f1c26b62f48a4ae899745976374de156', 'network_id': 'b45b684d-ede7-4f95-acec-2a2120d7c087', 'ip_version': 4, 'cidr': '182.141.252.192/26', 'allocation_pools': [{'start': '182.141.252.194', 'end': '182.141.252.254'}], 'gateway_ip': '182.141.252.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.141.252.194', 'tags': [], 'project_id': 'f1c26b62f48a4ae899745976374de156'}}
2025-10-09 19:17:06,699 - INFO - Created VN ctest-vn-80804027
2025-10-09 19:17:06,750 - DEBUG - VN ctest-vn-80804027 UUID is b45b684d-ede7-4f95-acec-2a2120d7c087
2025-10-09 19:17:06,863 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-56689431, 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-07939152:ctest-vn-80804027, 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-09 19:17:07,153 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ecd0453d-7c1d-44e3-8619-625a6033d90e', 'name': 'ctest-vn-56689431', 'tenant_id': 'f1c26b62f48a4ae899745976374de156', 'project_id': 'f1c26b62f48a4ae899745976374de156', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cab61192-8c7d-430b-9f1d-a960f2624de6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-vn-56689431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-policy-allow-all-92208609']], 'subnet_ipam': [{'subnet_cidr': '28.176.221.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 19:17:07,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b45b684d-ede7-4f95-acec-2a2120d7c087', 'name': 'ctest-vn-80804027', 'tenant_id': 'f1c26b62f48a4ae899745976374de156', 'project_id': 'f1c26b62f48a4ae899745976374de156', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e1eb58d-45b5-43f7-b7f2-716ca4371c6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-vn-80804027'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-policy-allow-all-92208609']], 'subnet_ipam': [{'subnet_cidr': '182.141.252.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 19:17:07,559 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-09 19:17:07,851 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-09 19:17:07,884 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f38dd22-d909-452c-b06a-9abce033d718
2025-10-09 19:17:07,895 - DEBUG - Requesting: http://10.0.0.141:8082/project/f1c26b62-f48a-4ae8-9974-5976374de156
2025-10-09 19:17:07,974 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ecd0453d-7c1d-44e3-8619-625a6033d90e
2025-10-09 19:17:07,985 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ecd0453d-7c1d-44e3-8619-625a6033d90e
2025-10-09 19:17:07,993 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95c3a56a-553e-41e8-a124-9d0d1dc97f9a
2025-10-09 19:17:08,001 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95c3a56a-553e-41e8-a124-9d0d1dc97f9a
2025-10-09 19:17:08,008 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/eae70df2-b181-4d96-b3de-8a2f400a4e0b
2025-10-09 19:17:08,015 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 19:17:08,015 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ecd0453d-7c1d-44e3-8619-625a6033d90e
2025-10-09 19:17:08,024 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95c3a56a-553e-41e8-a124-9d0d1dc97f9a
2025-10-09 19:17:08,039 - INFO - Verified VN network id 10 for VN ecd0453d-7c1d-44e3-8619-625a6033d90e
2025-10-09 19:17:08,040 - INFO - Verifications in API Server for VN ctest-vn-56689431 passed
2025-10-09 19:17:08,040 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ecd0453d-7c1d-44e3-8619-625a6033d90e
2025-10-09 19:17:08,049 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95c3a56a-553e-41e8-a124-9d0d1dc97f9a
2025-10-09 19:17:08,055 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/95c3a56a-553e-41e8-a124-9d0d1dc97f9a
2025-10-09 19:17:08,061 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/eae70df2-b181-4d96-b3de-8a2f400a4e0b
2025-10-09 19:17:08,072 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-56689431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07939152', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17064215118484423907', 'uuid-lslong': '9662862615800699150'}, 'enable': 'true', 'created': '2025-10-09T19:17:05', 'last-modified': '2025-10-09T19:17:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936839'}
2025-10-09 19:17:08,079 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 19:17:08,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56689431 passed
2025-10-09 19:17:08,080 - DEBUG - ====Verifying policy data for ctest-vn-56689431 in API_Server ======
2025-10-09 19:17:08,080 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-09 19:17:08,086 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f38dd22-d909-452c-b06a-9abce033d718
2025-10-09 19:17:08,100 - DEBUG - Requesting: http://10.0.0.141:8082/project/f1c26b62-f48a-4ae8-9974-5976374de156
2025-10-09 19:17:08,175 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ecd0453d-7c1d-44e3-8619-625a6033d90e
2025-10-09 19:17:08,185 - DEBUG - ==>Verifying data for policy with id: 47c73d5f-78d7-41b9-8b37-b39deabe70e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-policy-allow-all-92208609']
2025-10-09 19:17:08,185 - INFO - VN ctest-vn-56689431 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 19:17:08,185 - DEBUG - Verifying the vn in opserver
2025-10-09 19:17:08,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-56689431 virtual network link through opserver 10.0.0.141
2025-10-09 19:17:08,186 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-09 19:17:08,482 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-09 19:17:08,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-56689431', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-56689431?flat'}
2025-10-09 19:17:08,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-56689431 is found in opserver
2025-10-09 19:17:08,563 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 19:17:08,567 - DEBUG - VRF ids for VN ctest-vn-56689431: {}
2025-10-09 19:17:08,567 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-09 19:17:08,572 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f38dd22-d909-452c-b06a-9abce033d718
2025-10-09 19:17:08,582 - DEBUG - Requesting: http://10.0.0.141:8082/project/f1c26b62-f48a-4ae8-9974-5976374de156
2025-10-09 19:17:08,654 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b45b684d-ede7-4f95-acec-2a2120d7c087
2025-10-09 19:17:08,664 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b45b684d-ede7-4f95-acec-2a2120d7c087
2025-10-09 19:17:08,674 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ea293925-f99c-4c6c-a8ad-1bb539d0ad7f
2025-10-09 19:17:08,682 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ea293925-f99c-4c6c-a8ad-1bb539d0ad7f
2025-10-09 19:17:08,688 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/61ce1334-dc50-47a0-bfb6-a031f2822163
2025-10-09 19:17:08,694 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 19:17:08,694 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b45b684d-ede7-4f95-acec-2a2120d7c087
2025-10-09 19:17:08,703 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ea293925-f99c-4c6c-a8ad-1bb539d0ad7f
2025-10-09 19:17:08,715 - INFO - Verified VN network id 11 for VN b45b684d-ede7-4f95-acec-2a2120d7c087
2025-10-09 19:17:08,715 - INFO - Verifications in API Server for VN ctest-vn-80804027 passed
2025-10-09 19:17:08,715 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b45b684d-ede7-4f95-acec-2a2120d7c087
2025-10-09 19:17:08,725 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ea293925-f99c-4c6c-a8ad-1bb539d0ad7f
2025-10-09 19:17:08,732 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ea293925-f99c-4c6c-a8ad-1bb539d0ad7f
2025-10-09 19:17:08,738 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/61ce1334-dc50-47a0-bfb6-a031f2822163
2025-10-09 19:17:08,749 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-80804027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07939152', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12996095833620828053', 'uuid-lslong': '12460380590800617607'}, 'enable': 'true', 'created': '2025-10-09T19:17:06', 'last-modified': '2025-10-09T19:17:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398034'}
2025-10-09 19:17:08,755 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 19:17:08,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80804027 passed
2025-10-09 19:17:08,755 - DEBUG - ====Verifying policy data for ctest-vn-80804027 in API_Server ======
2025-10-09 19:17:08,755 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-09 19:17:08,760 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f38dd22-d909-452c-b06a-9abce033d718
2025-10-09 19:17:08,771 - DEBUG - Requesting: http://10.0.0.141:8082/project/f1c26b62-f48a-4ae8-9974-5976374de156
2025-10-09 19:17:08,842 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b45b684d-ede7-4f95-acec-2a2120d7c087
2025-10-09 19:17:08,852 - DEBUG - ==>Verifying data for policy with id: 47c73d5f-78d7-41b9-8b37-b39deabe70e7, fqn: ['default-domain', 'ctest-TestBasicPolicy-07939152', 'ctest-policy-allow-all-92208609']
2025-10-09 19:17:08,852 - INFO - VN ctest-vn-80804027 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 19:17:08,852 - DEBUG - Verifying the vn in opserver
2025-10-09 19:17:08,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-80804027 virtual network link through opserver 10.0.0.141
2025-10-09 19:17:08,852 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-09 19:17:08,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-80804027', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-80804027?flat'}
2025-10-09 19:17:08,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07939152:ctest-vn-80804027 is found in opserver
2025-10-09 19:17:08,869 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 19:17:08,873 - DEBUG - VRF ids for VN ctest-vn-80804027: {}
2025-10-09 19:17:08,928 - DEBUG - Services list from nova: [