2025-04-18 11:24:20,616 - INFO - Reading existing Domain with UUID 9e0d5218-6863-4f3b-af0c-1ff786d855f1
2025-04-18 11:24:20,631 - INFO - Using existing domain ['admin_domain'](9e0d5218-6863-4f3b-af0c-1ff786d855f1)
2025-04-18 11:24:20,898 - INFO - Project ctest-TestBasicPolicy-66997682 not found, creating it
2025-04-18 11:24:21,543 - INFO - Created Project:ctest-TestBasicPolicy-66997682, ID : b1c774dd-563b-43c7-85e6-ba0c0e1e6356
2025-04-18 11:24:23,592 - INFO - ================================================================================
2025-04-18 11:24:23,593 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-18 11:24:23,593 - 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-04-18 11:24:23,993 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.0.0.49': '0'}} with
2025-04-18 11:24:23,993 - INFO - Initial checks done. Running the testcase now
2025-04-18 11:24:23,993 - INFO -
2025-04-18 11:24:24,837 - DEBUG - Response for create_network : {'network': {'id': '050142d2-fe4a-4919-b174-822dffd92b38', 'name': 'ctest-vn-35121802', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-35121802'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-18 11:24:25,133 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6d6772d-f135-4ea0-bd98-d495b5a8fd46', 'name': '', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'network_id': '050142d2-fe4a-4919-b174-822dffd92b38', 'ip_version': 4, 'cidr': '23.82.49.128/26', 'allocation_pools': [{'start': '23.82.49.130', 'end': '23.82.49.190'}], 'gateway_ip': '23.82.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-18T11:24:25.011049', 'updated_at': '2025-04-18T11:24:25.011049', 'dns_server_address': '23.82.49.130', 'tags': [], 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356'}}
2025-04-18 11:24:25,203 - INFO - Created VN ctest-vn-35121802
2025-04-18 11:24:25,259 - DEBUG - VN ctest-vn-35121802 UUID is 050142d2-fe4a-4919-b174-822dffd92b38
2025-04-18 11:24:25,822 - DEBUG - Response for create_network : {'network': {'id': '716d85ae-68bd-4b5f-aba0-74a3c726d8e6', 'name': 'ctest-vn-16937155', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-16937155'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-18 11:24:26,070 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0309084-320f-459f-9b5a-bffec5cb24cf', 'name': '', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'network_id': '716d85ae-68bd-4b5f-aba0-74a3c726d8e6', 'ip_version': 4, 'cidr': '47.115.183.64/26', 'allocation_pools': [{'start': '47.115.183.66', 'end': '47.115.183.126'}], 'gateway_ip': '47.115.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-18T11:24:25.964710', 'updated_at': '2025-04-18T11:24:25.964710', 'dns_server_address': '47.115.183.66', 'tags': [], 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356'}}
2025-04-18 11:24:26,139 - INFO - Created VN ctest-vn-16937155
2025-04-18 11:24:26,200 - DEBUG - VN ctest-vn-16937155 UUID is 716d85ae-68bd-4b5f-aba0-74a3c726d8e6
2025-04-18 11:24:26,433 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155, 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-04-18 11:24:26,876 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '050142d2-fe4a-4919-b174-822dffd92b38', 'name': 'ctest-vn-35121802', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6d6772d-f135-4ea0-bd98-d495b5a8fd46'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-35121802'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521']], 'subnet_ipam': [{'subnet_cidr': '23.82.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-18T11:24:24.752423', 'updated_at': '2025-04-18T11:24:25.028060'}}
2025-04-18 11:24:27,252 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '716d85ae-68bd-4b5f-aba0-74a3c726d8e6', 'name': 'ctest-vn-16937155', 'tenant_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'project_id': 'b1c774dd563b43c785e6ba0c0e1e6356', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0309084-320f-459f-9b5a-bffec5cb24cf'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-vn-16937155'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521']], 'subnet_ipam': [{'subnet_cidr': '47.115.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-18T11:24:25.727274', 'updated_at': '2025-04-18T11:24:25.979574'}}
2025-04-18 11:24:27,443 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-18 11:24:27,835 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-18 11:24:27,920 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1
2025-04-18 11:24:27,985 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356
2025-04-18 11:24:28,073 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38
2025-04-18 11:24:28,134 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38
2025-04-18 11:24:28,199 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415
2025-04-18 11:24:28,257 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415
2025-04-18 11:24:28,317 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/5c3c21dd-c1b0-428d-a183-a491d6bb1c05
2025-04-18 11:24:28,373 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-18 11:24:28,373 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38
2025-04-18 11:24:28,431 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415
2025-04-18 11:24:28,495 - INFO - Verified VN network id 7 for VN 050142d2-fe4a-4919-b174-822dffd92b38
2025-04-18 11:24:28,495 - INFO - Verifications in API Server for VN ctest-vn-35121802 passed
2025-04-18 11:24:28,496 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38
2025-04-18 11:24:28,554 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415
2025-04-18 11:24:28,609 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/e36ed730-1ab4-43a0-b028-18cee8fbc415
2025-04-18 11:24:28,669 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/5c3c21dd-c1b0-428d-a183-a491d6bb1c05
2025-04-18 11:24:28,777 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66997682', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '360642919143196953', 'uuid-lslong': '12786988376089242424'}, 'enable': 'true', 'created': '2025-04-18T11:24:24', 'last-modified': '2025-04-18T11:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.949177'}
2025-04-18 11:24:28,830 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-18 11:24:28,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35121802 passed
2025-04-18 11:24:28,830 - DEBUG - ====Verifying policy data for ctest-vn-35121802 in API_Server ======
2025-04-18 11:24:28,830 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-18 11:24:28,884 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1
2025-04-18 11:24:28,945 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356
2025-04-18 11:24:29,033 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/050142d2-fe4a-4919-b174-822dffd92b38
2025-04-18 11:24:29,090 - DEBUG - ==>Verifying data for policy with id: f7e7729c-0d44-4615-bbe0-d5b176ade7ee, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521']
2025-04-18 11:24:29,090 - INFO - VN ctest-vn-35121802 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-18 11:24:29,090 - DEBUG - Verifying the vn in opserver
2025-04-18 11:24:29,090 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802 virtual network link through opserver 10.0.0.49
2025-04-18 11:24:29,090 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-18 11:24:29,480 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-18 11:24:29,604 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802?flat'}
2025-04-18 11:24:29,604 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-35121802 is found in opserver
2025-04-18 11:24:29,709 - DEBUG - Do not have enough data to verify VN in agent
2025-04-18 11:24:29,760 - DEBUG - VRF ids for VN ctest-vn-35121802: {}
2025-04-18 11:24:29,760 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-18 11:24:29,812 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1
2025-04-18 11:24:29,873 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356
2025-04-18 11:24:29,953 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6
2025-04-18 11:24:30,014 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6
2025-04-18 11:24:30,074 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c
2025-04-18 11:24:30,129 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c
2025-04-18 11:24:30,185 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/06937657-6ad6-4d66-8e1e-0508b8bbc04f
2025-04-18 11:24:30,241 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-18 11:24:30,241 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6
2025-04-18 11:24:30,298 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c
2025-04-18 11:24:30,363 - INFO - Verified VN network id 8 for VN 716d85ae-68bd-4b5f-aba0-74a3c726d8e6
2025-04-18 11:24:30,363 - INFO - Verifications in API Server for VN ctest-vn-16937155 passed
2025-04-18 11:24:30,363 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6
2025-04-18 11:24:30,426 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c
2025-04-18 11:24:30,481 - DEBUG - Requesting: https://10.0.0.49:8082/routing-instance/808de6b1-9e93-477e-a88b-2092984ab23c
2025-04-18 11:24:30,537 - DEBUG - Requesting: https://10.0.0.49:8082/route-target/06937657-6ad6-4d66-8e1e-0508b8bbc04f
2025-04-18 11:24:30,645 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66997682', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8173335882875358047', 'uuid-lslong': '12367012823529085158'}, 'enable': 'true', 'created': '2025-04-18T11:24:25', 'last-modified': '2025-04-18T11:24:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.424897'}
2025-04-18 11:24:30,698 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-18 11:24:30,698 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16937155 passed
2025-04-18 11:24:30,698 - DEBUG - ====Verifying policy data for ctest-vn-16937155 in API_Server ======
2025-04-18 11:24:30,698 - DEBUG - Requesting: https://10.0.0.49:8082/domains
2025-04-18 11:24:30,752 - DEBUG - Requesting: https://10.0.0.49:8082/domain/9e0d5218-6863-4f3b-af0c-1ff786d855f1
2025-04-18 11:24:30,813 - DEBUG - Requesting: https://10.0.0.49:8082/project/b1c774dd-563b-43c7-85e6-ba0c0e1e6356
2025-04-18 11:24:30,905 - DEBUG - Requesting: https://10.0.0.49:8082/virtual-network/716d85ae-68bd-4b5f-aba0-74a3c726d8e6
2025-04-18 11:24:30,966 - DEBUG - ==>Verifying data for policy with id: f7e7729c-0d44-4615-bbe0-d5b176ade7ee, fqn: ['admin_domain', 'ctest-TestBasicPolicy-66997682', 'ctest-policy-allow-all-79088521']
2025-04-18 11:24:30,966 - INFO - VN ctest-vn-16937155 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-18 11:24:30,966 - DEBUG - Verifying the vn in opserver
2025-04-18 11:24:30,966 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155 virtual network link through opserver 10.0.0.49
2025-04-18 11:24:30,966 - DEBUG - Requesting: https://10.0.0.49:8081/analytics/uves/virtual-networks
2025-04-18 11:24:31,025 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155', 'href': 'https://10.0.0.49:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155?flat'}
2025-04-18 11:24:31,025 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-66997682:ctest-vn-16937155 is found in opserver
2025-04-18 11:24:31,128 - DEBUG - Do not have enough data to verify VN in agent
2025-04-18 11:24:31,180 - DEBUG - VRF ids for VN ctest-vn-16937155: {}
2025-04-18 11:24:31,250 - DEBUG - Services list from nova: [