2025-11-07 20:14:05,058 - INFO - Domain Default found not creating
2025-11-07 20:14:05,362 - INFO - Project ctest-TestBasicPolicy-00105608 not found, creating it
2025-11-07 20:14:06,061 - INFO - Created Project:ctest-TestBasicPolicy-00105608, ID : ce490943-675b-42fe-bc29-d6bfee7e0fc8
2025-11-07 20:14:08,204 - INFO - ================================================================================
2025-11-07 20:14:08,205 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-07 20:14:08,205 - 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-07 20:14:08,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.252': '0'}} with
2025-11-07 20:14:08,549 - INFO - Initial checks done. Running the testcase now
2025-11-07 20:14:08,549 - INFO -
2025-11-07 20:14:09,435 - DEBUG - Response for create_network : {'network': {'id': '0b5e5ec5-91de-40a4-97bc-39225f3bba90', 'name': 'ctest-vn-00777178', 'tenant_id': 'ce490943675b42febc29d6bfee7e0fc8', 'project_id': 'ce490943675b42febc29d6bfee7e0fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-vn-00777178'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 20:14:09,638 - DEBUG - Response for create_subnet : {'subnet': {'id': '9673b6cb-c6ee-4585-84c3-76f862c7da4c', 'name': '', 'tenant_id': 'ce490943675b42febc29d6bfee7e0fc8', 'network_id': '0b5e5ec5-91de-40a4-97bc-39225f3bba90', 'ip_version': 4, 'cidr': '50.153.249.64/26', 'allocation_pools': [{'start': '50.153.249.66', 'end': '50.153.249.126'}], 'gateway_ip': '50.153.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.153.249.66', 'tags': [], 'project_id': 'ce490943675b42febc29d6bfee7e0fc8'}}
2025-11-07 20:14:09,657 - INFO - Created VN ctest-vn-00777178
2025-11-07 20:14:09,714 - DEBUG - VN ctest-vn-00777178 UUID is 0b5e5ec5-91de-40a4-97bc-39225f3bba90
2025-11-07 20:14:10,227 - DEBUG - Response for create_network : {'network': {'id': '29c43017-2a63-4f9d-acd1-e402149e948f', 'name': 'ctest-vn-10487722', 'tenant_id': 'ce490943675b42febc29d6bfee7e0fc8', 'project_id': 'ce490943675b42febc29d6bfee7e0fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-vn-10487722'], 'port_security_enabled': True, 'description': ''}}
2025-11-07 20:14:10,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '17f2a117-61a9-442b-858d-ba05553526e6', 'name': '', 'tenant_id': 'ce490943675b42febc29d6bfee7e0fc8', 'network_id': '29c43017-2a63-4f9d-acd1-e402149e948f', 'ip_version': 4, 'cidr': '111.104.58.128/26', 'allocation_pools': [{'start': '111.104.58.130', 'end': '111.104.58.190'}], 'gateway_ip': '111.104.58.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.104.58.130', 'tags': [], 'project_id': 'ce490943675b42febc29d6bfee7e0fc8'}}
2025-11-07 20:14:10,437 - INFO - Created VN ctest-vn-10487722
2025-11-07 20:14:10,494 - DEBUG - VN ctest-vn-10487722 UUID is 29c43017-2a63-4f9d-acd1-e402149e948f
2025-11-07 20:14:10,645 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-00777178, 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-00105608:ctest-vn-10487722, 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-07 20:14:11,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b5e5ec5-91de-40a4-97bc-39225f3bba90', 'name': 'ctest-vn-00777178', 'tenant_id': 'ce490943675b42febc29d6bfee7e0fc8', 'project_id': 'ce490943675b42febc29d6bfee7e0fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9673b6cb-c6ee-4585-84c3-76f862c7da4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-vn-00777178'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-policy-allow-all-84050517']], 'subnet_ipam': [{'subnet_cidr': '50.153.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 20:14:11,493 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29c43017-2a63-4f9d-acd1-e402149e948f', 'name': 'ctest-vn-10487722', 'tenant_id': 'ce490943675b42febc29d6bfee7e0fc8', 'project_id': 'ce490943675b42febc29d6bfee7e0fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17f2a117-61a9-442b-858d-ba05553526e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-vn-10487722'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-policy-allow-all-84050517']], 'subnet_ipam': [{'subnet_cidr': '111.104.58.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-07 20:14:11,670 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-07 20:14:12,027 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-07 20:14:12,084 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538
2025-11-07 20:14:12,111 - DEBUG - Requesting: http://10.0.0.241:8082/project/ce490943-675b-42fe-bc29-d6bfee7e0fc8
2025-11-07 20:14:12,231 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0b5e5ec5-91de-40a4-97bc-39225f3bba90
2025-11-07 20:14:12,258 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0b5e5ec5-91de-40a4-97bc-39225f3bba90
2025-11-07 20:14:12,280 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/14a17ec2-0945-4316-b9c6-3ed6f8ff417a
2025-11-07 20:14:12,298 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/14a17ec2-0945-4316-b9c6-3ed6f8ff417a
2025-11-07 20:14:12,316 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/33fd5e91-a5cd-470a-805f-311804815e69
2025-11-07 20:14:12,329 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 20:14:12,329 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0b5e5ec5-91de-40a4-97bc-39225f3bba90
2025-11-07 20:14:12,351 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/14a17ec2-0945-4316-b9c6-3ed6f8ff417a
2025-11-07 20:14:12,386 - INFO - Verified VN network id 11 for VN 0b5e5ec5-91de-40a4-97bc-39225f3bba90
2025-11-07 20:14:12,386 - INFO - Verifications in API Server for VN ctest-vn-00777178 passed
2025-11-07 20:14:12,386 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0b5e5ec5-91de-40a4-97bc-39225f3bba90
2025-11-07 20:14:12,412 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/14a17ec2-0945-4316-b9c6-3ed6f8ff417a
2025-11-07 20:14:12,427 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/14a17ec2-0945-4316-b9c6-3ed6f8ff417a
2025-11-07 20:14:12,444 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/33fd5e91-a5cd-470a-805f-311804815e69
2025-11-07 20:14:12,477 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-00777178', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00105608', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '819196384876839076', 'uuid-lslong': '10933676815138142864'}, 'enable': 'true', 'created': '2025-11-07T20:14:09', 'last-modified': '2025-11-07T20:14:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.442541'}
2025-11-07 20:14:12,494 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-07 20:14:12,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00777178 passed
2025-11-07 20:14:12,495 - DEBUG - ====Verifying policy data for ctest-vn-00777178 in API_Server ======
2025-11-07 20:14:12,495 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-07 20:14:12,508 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538
2025-11-07 20:14:12,541 - DEBUG - Requesting: http://10.0.0.241:8082/project/ce490943-675b-42fe-bc29-d6bfee7e0fc8
2025-11-07 20:14:12,655 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0b5e5ec5-91de-40a4-97bc-39225f3bba90
2025-11-07 20:14:12,676 - DEBUG - ==>Verifying data for policy with id: 3e339df8-8b6b-4e01-ad01-96b5e18c34fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-policy-allow-all-84050517']
2025-11-07 20:14:12,676 - INFO - VN ctest-vn-00777178 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 20:14:12,676 - DEBUG - Verifying the vn in opserver
2025-11-07 20:14:12,676 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-00777178 virtual network link through opserver 10.0.0.241
2025-11-07 20:14:12,677 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-11-07 20:14:13,007 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-11-07 20:14:13,165 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-00777178', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-00777178?flat'}
2025-11-07 20:14:13,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-00777178 is found in opserver
2025-11-07 20:14:13,198 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 20:14:13,212 - DEBUG - VRF ids for VN ctest-vn-00777178: {}
2025-11-07 20:14:13,212 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-07 20:14:13,226 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538
2025-11-07 20:14:13,251 - DEBUG - Requesting: http://10.0.0.241:8082/project/ce490943-675b-42fe-bc29-d6bfee7e0fc8
2025-11-07 20:14:13,363 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/29c43017-2a63-4f9d-acd1-e402149e948f
2025-11-07 20:14:13,383 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/29c43017-2a63-4f9d-acd1-e402149e948f
2025-11-07 20:14:13,403 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9ec559b7-d036-4f68-8ec0-1b5dacf45646
2025-11-07 20:14:13,418 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9ec559b7-d036-4f68-8ec0-1b5dacf45646
2025-11-07 20:14:13,431 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/959d2e12-aa0f-4074-ba47-19f37af1e37e
2025-11-07 20:14:13,444 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 20:14:13,444 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/29c43017-2a63-4f9d-acd1-e402149e948f
2025-11-07 20:14:13,463 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9ec559b7-d036-4f68-8ec0-1b5dacf45646
2025-11-07 20:14:13,495 - INFO - Verified VN network id 12 for VN 29c43017-2a63-4f9d-acd1-e402149e948f
2025-11-07 20:14:13,495 - INFO - Verifications in API Server for VN ctest-vn-10487722 passed
2025-11-07 20:14:13,495 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/29c43017-2a63-4f9d-acd1-e402149e948f
2025-11-07 20:14:13,514 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9ec559b7-d036-4f68-8ec0-1b5dacf45646
2025-11-07 20:14:13,528 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/9ec559b7-d036-4f68-8ec0-1b5dacf45646
2025-11-07 20:14:13,548 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/959d2e12-aa0f-4074-ba47-19f37af1e37e
2025-11-07 20:14:13,567 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-10487722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00105608', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3009583327043866525', 'uuid-lslong': '12452985142243136655'}, 'enable': 'true', 'created': '2025-11-07T20:14:10', 'last-modified': '2025-11-07T20:14:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.171458'}
2025-11-07 20:14:13,580 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-07 20:14:13,580 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10487722 passed
2025-11-07 20:14:13,580 - DEBUG - ====Verifying policy data for ctest-vn-10487722 in API_Server ======
2025-11-07 20:14:13,580 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-11-07 20:14:13,590 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538
2025-11-07 20:14:13,612 - DEBUG - Requesting: http://10.0.0.241:8082/project/ce490943-675b-42fe-bc29-d6bfee7e0fc8
2025-11-07 20:14:13,704 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/29c43017-2a63-4f9d-acd1-e402149e948f
2025-11-07 20:14:13,719 - DEBUG - ==>Verifying data for policy with id: 3e339df8-8b6b-4e01-ad01-96b5e18c34fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-00105608', 'ctest-policy-allow-all-84050517']
2025-11-07 20:14:13,719 - INFO - VN ctest-vn-10487722 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-07 20:14:13,719 - DEBUG - Verifying the vn in opserver
2025-11-07 20:14:13,719 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-10487722 virtual network link through opserver 10.0.0.241
2025-11-07 20:14:13,719 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-11-07 20:14:13,733 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-10487722', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-10487722?flat'}
2025-11-07 20:14:13,733 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00105608:ctest-vn-10487722 is found in opserver
2025-11-07 20:14:13,750 - DEBUG - Do not have enough data to verify VN in agent
2025-11-07 20:14:13,759 - DEBUG - VRF ids for VN ctest-vn-10487722: {}
2025-11-07 20:14:13,883 - DEBUG - Services list from nova: [