2025-01-13 02:35:25,773 - INFO - Domain Default found not creating
2025-01-13 02:35:25,961 - INFO - Project ctest-TestBasicPolicy-26158880 not found, creating it
2025-01-13 02:35:26,448 - INFO - Created Project:ctest-TestBasicPolicy-26158880, ID : 9b77f85a-8625-4b41-a693-333b643b9d3b
2025-01-13 02:35:28,208 - INFO - ================================================================================
2025-01-13 02:35:28,209 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 02:35:28,209 - 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-01-13 02:35:28,479 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.7': '0'}} with
2025-01-13 02:35:28,479 - INFO - Initial checks done. Running the testcase now
2025-01-13 02:35:28,479 - INFO -
2025-01-13 02:35:29,108 - DEBUG - Response for create_network : {'network': {'id': '5f771968-b44f-40fa-b2b4-ec6fdd7afe0c', 'name': 'ctest-vn-39329648', 'tenant_id': '9b77f85a86254b41a693333b643b9d3b', 'project_id': '9b77f85a86254b41a693333b643b9d3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-vn-39329648'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:29,345 - DEBUG - Response for create_subnet : {'subnet': {'id': '209e5b4d-3e85-4fae-9029-bd667133a931', 'name': '', 'tenant_id': '9b77f85a86254b41a693333b643b9d3b', 'network_id': '5f771968-b44f-40fa-b2b4-ec6fdd7afe0c', 'ip_version': 4, 'cidr': '86.205.95.192/26', 'allocation_pools': [{'start': '86.205.95.194', 'end': '86.205.95.254'}], 'gateway_ip': '86.205.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.205.95.194', 'tags': [], 'project_id': '9b77f85a86254b41a693333b643b9d3b'}}
2025-01-13 02:35:29,368 - INFO - Created VN ctest-vn-39329648
2025-01-13 02:35:29,427 - DEBUG - VN ctest-vn-39329648 UUID is 5f771968-b44f-40fa-b2b4-ec6fdd7afe0c
2025-01-13 02:35:29,779 - DEBUG - Response for create_network : {'network': {'id': '47526245-94bd-495b-8459-3004b8f058b2', 'name': 'ctest-vn-13808195', 'tenant_id': '9b77f85a86254b41a693333b643b9d3b', 'project_id': '9b77f85a86254b41a693333b643b9d3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-vn-13808195'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:29,988 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cbc11fc4-820d-488b-93a9-5fd58c5cb9fe', 'name': '', 'tenant_id': '9b77f85a86254b41a693333b643b9d3b', 'network_id': '47526245-94bd-495b-8459-3004b8f058b2', 'ip_version': 4, 'cidr': '125.75.120.64/26', 'allocation_pools': [{'start': '125.75.120.66', 'end': '125.75.120.126'}], 'gateway_ip': '125.75.120.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.75.120.66', 'tags': [], 'project_id': '9b77f85a86254b41a693333b643b9d3b'}}
2025-01-13 02:35:30,013 - INFO - Created VN ctest-vn-13808195
2025-01-13 02:35:30,071 - DEBUG - VN ctest-vn-13808195 UUID is 47526245-94bd-495b-8459-3004b8f058b2
2025-01-13 02:35:30,210 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-39329648, 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-26158880:ctest-vn-13808195, 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-01-13 02:35:30,539 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f771968-b44f-40fa-b2b4-ec6fdd7afe0c', 'name': 'ctest-vn-39329648', 'tenant_id': '9b77f85a86254b41a693333b643b9d3b', 'project_id': '9b77f85a86254b41a693333b643b9d3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['209e5b4d-3e85-4fae-9029-bd667133a931'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-vn-39329648'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-policy-allow-all-74628872']], 'subnet_ipam': [{'subnet_cidr': '86.205.95.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:30,826 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47526245-94bd-495b-8459-3004b8f058b2', 'name': 'ctest-vn-13808195', 'tenant_id': '9b77f85a86254b41a693333b643b9d3b', 'project_id': '9b77f85a86254b41a693333b643b9d3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cbc11fc4-820d-488b-93a9-5fd58c5cb9fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-vn-13808195'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-policy-allow-all-74628872']], 'subnet_ipam': [{'subnet_cidr': '125.75.120.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 02:35:31,007 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-13 02:35:31,361 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-13 02:35:31,402 - DEBUG - Requesting: http://10.0.0.40:8082/domain/480a3178-cabd-464a-b66d-a2f225f30bf1
2025-01-13 02:35:31,421 - DEBUG - Requesting: http://10.0.0.40:8082/project/9b77f85a-8625-4b41-a693-333b643b9d3b
2025-01-13 02:35:31,513 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5f771968-b44f-40fa-b2b4-ec6fdd7afe0c
2025-01-13 02:35:31,531 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5f771968-b44f-40fa-b2b4-ec6fdd7afe0c
2025-01-13 02:35:31,546 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bd6f1163-b272-4970-a8cf-9754589acefa
2025-01-13 02:35:31,559 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bd6f1163-b272-4970-a8cf-9754589acefa
2025-01-13 02:35:31,570 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/0ee3c8ec-f1db-4909-a7e8-405609d2f494
2025-01-13 02:35:31,579 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 02:35:31,579 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5f771968-b44f-40fa-b2b4-ec6fdd7afe0c
2025-01-13 02:35:31,592 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bd6f1163-b272-4970-a8cf-9754589acefa
2025-01-13 02:35:31,613 - INFO - Verified VN network id 8 for VN 5f771968-b44f-40fa-b2b4-ec6fdd7afe0c
2025-01-13 02:35:31,613 - INFO - Verifications in API Server for VN ctest-vn-39329648 passed
2025-01-13 02:35:31,613 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5f771968-b44f-40fa-b2b4-ec6fdd7afe0c
2025-01-13 02:35:31,628 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bd6f1163-b272-4970-a8cf-9754589acefa
2025-01-13 02:35:31,638 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bd6f1163-b272-4970-a8cf-9754589acefa
2025-01-13 02:35:31,649 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/0ee3c8ec-f1db-4909-a7e8-405609d2f494
2025-01-13 02:35:31,667 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-39329648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26158880', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6878994893324108026', 'uuid-lslong': '12877177199760440844'}, 'enable': 'true', 'created': '2025-01-13T02:35:29', 'last-modified': '2025-01-13T02:35:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.154032'}
2025-01-13 02:35:31,675 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 02:35:31,675 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39329648 passed
2025-01-13 02:35:31,675 - DEBUG - ====Verifying policy data for ctest-vn-39329648 in API_Server ======
2025-01-13 02:35:31,676 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-13 02:35:31,683 - DEBUG - Requesting: http://10.0.0.40:8082/domain/480a3178-cabd-464a-b66d-a2f225f30bf1
2025-01-13 02:35:31,701 - DEBUG - Requesting: http://10.0.0.40:8082/project/9b77f85a-8625-4b41-a693-333b643b9d3b
2025-01-13 02:35:31,783 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/5f771968-b44f-40fa-b2b4-ec6fdd7afe0c
2025-01-13 02:35:31,797 - DEBUG - ==>Verifying data for policy with id: 0a2d3edf-ae86-4fd3-993c-3b1129c4b236, fqn: ['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-policy-allow-all-74628872']
2025-01-13 02:35:31,797 - INFO - VN ctest-vn-39329648 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 02:35:31,797 - DEBUG - Verifying the vn in opserver
2025-01-13 02:35:31,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-39329648 virtual network link through opserver 10.0.0.40
2025-01-13 02:35:31,798 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-13 02:35:32,135 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-13 02:35:32,205 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-39329648', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-39329648?flat'}
2025-01-13 02:35:32,205 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-39329648 is found in opserver
2025-01-13 02:35:32,222 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 02:35:32,231 - DEBUG - VRF ids for VN ctest-vn-39329648: {}
2025-01-13 02:35:32,231 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-13 02:35:32,240 - DEBUG - Requesting: http://10.0.0.40:8082/domain/480a3178-cabd-464a-b66d-a2f225f30bf1
2025-01-13 02:35:32,258 - DEBUG - Requesting: http://10.0.0.40:8082/project/9b77f85a-8625-4b41-a693-333b643b9d3b
2025-01-13 02:35:32,341 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/47526245-94bd-495b-8459-3004b8f058b2
2025-01-13 02:35:32,361 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/47526245-94bd-495b-8459-3004b8f058b2
2025-01-13 02:35:32,373 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2b57befe-cd4a-4448-864a-e0fb6ef098b3
2025-01-13 02:35:32,385 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2b57befe-cd4a-4448-864a-e0fb6ef098b3
2025-01-13 02:35:32,398 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/01f8bd8b-d5c6-4c74-a283-a77a0a7c7089
2025-01-13 02:35:32,409 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 02:35:32,409 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/47526245-94bd-495b-8459-3004b8f058b2
2025-01-13 02:35:32,422 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2b57befe-cd4a-4448-864a-e0fb6ef098b3
2025-01-13 02:35:32,443 - INFO - Verified VN network id 9 for VN 47526245-94bd-495b-8459-3004b8f058b2
2025-01-13 02:35:32,444 - INFO - Verifications in API Server for VN ctest-vn-13808195 passed
2025-01-13 02:35:32,444 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/47526245-94bd-495b-8459-3004b8f058b2
2025-01-13 02:35:32,458 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2b57befe-cd4a-4448-864a-e0fb6ef098b3
2025-01-13 02:35:32,468 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2b57befe-cd4a-4448-864a-e0fb6ef098b3
2025-01-13 02:35:32,478 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/01f8bd8b-d5c6-4c74-a283-a77a0a7c7089
2025-01-13 02:35:32,494 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-13808195', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26158880', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5139278175770855771', 'uuid-lslong': '9536706482774497458'}, 'enable': 'true', 'created': '2025-01-13T02:35:29', 'last-modified': '2025-01-13T02:35:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.701541'}
2025-01-13 02:35:32,502 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 02:35:32,502 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13808195 passed
2025-01-13 02:35:32,503 - DEBUG - ====Verifying policy data for ctest-vn-13808195 in API_Server ======
2025-01-13 02:35:32,503 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-13 02:35:32,509 - DEBUG - Requesting: http://10.0.0.40:8082/domain/480a3178-cabd-464a-b66d-a2f225f30bf1
2025-01-13 02:35:32,524 - DEBUG - Requesting: http://10.0.0.40:8082/project/9b77f85a-8625-4b41-a693-333b643b9d3b
2025-01-13 02:35:32,606 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/47526245-94bd-495b-8459-3004b8f058b2
2025-01-13 02:35:32,621 - DEBUG - ==>Verifying data for policy with id: 0a2d3edf-ae86-4fd3-993c-3b1129c4b236, fqn: ['default-domain', 'ctest-TestBasicPolicy-26158880', 'ctest-policy-allow-all-74628872']
2025-01-13 02:35:32,621 - INFO - VN ctest-vn-13808195 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 02:35:32,621 - DEBUG - Verifying the vn in opserver
2025-01-13 02:35:32,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-13808195 virtual network link through opserver 10.0.0.40
2025-01-13 02:35:32,621 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-13 02:35:32,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-13808195', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-13808195?flat'}
2025-01-13 02:35:32,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26158880:ctest-vn-13808195 is found in opserver
2025-01-13 02:35:32,649 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 02:35:32,656 - DEBUG - VRF ids for VN ctest-vn-13808195: {}
2025-01-13 02:35:32,725 - DEBUG - Services list from nova: [