2025-04-16 07:02:22,492 - INFO - Reading existing Domain with UUID ff0a6a62-6028-4162-b7f1-646624f57635
2025-04-16 07:02:22,506 - INFO - Using existing domain ['admin_domain'](ff0a6a62-6028-4162-b7f1-646624f57635)
2025-04-16 07:02:22,745 - INFO - Project ctest-TestBasicPolicy-21590007 not found, creating it
2025-04-16 07:02:23,270 - INFO - Created Project:ctest-TestBasicPolicy-21590007, ID : fb976b14-c26e-40a4-8d8d-a10b9748b083
2025-04-16 07:02:25,287 - INFO - ================================================================================
2025-04-16 07:02:25,287 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-16 07:02:25,287 - 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-16 07:02:25,710 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.0.0.249': '0'}} with
2025-04-16 07:02:25,710 - INFO - Initial checks done. Running the testcase now
2025-04-16 07:02:25,710 - INFO -
2025-04-16 07:02:26,638 - DEBUG - Response for create_network : {'network': {'id': '66bb5f7d-5f6c-4056-ac03-32aa9e932744', 'name': 'ctest-vn-22973060', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-22973060'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-16 07:02:26,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba089dc6-6b46-43bf-a075-c1486154c067', 'name': '', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'network_id': '66bb5f7d-5f6c-4056-ac03-32aa9e932744', 'ip_version': 4, 'cidr': '149.51.58.0/26', 'allocation_pools': [{'start': '149.51.58.2', 'end': '149.51.58.62'}], 'gateway_ip': '149.51.58.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T07:02:26.779618', 'updated_at': '2025-04-16T07:02:26.779618', 'dns_server_address': '149.51.58.2', 'tags': [], 'project_id': 'fb976b14c26e40a48d8da10b9748b083'}}
2025-04-16 07:02:26,991 - INFO - Created VN ctest-vn-22973060
2025-04-16 07:02:27,048 - DEBUG - VN ctest-vn-22973060 UUID is 66bb5f7d-5f6c-4056-ac03-32aa9e932744
2025-04-16 07:02:27,610 - DEBUG - Response for create_network : {'network': {'id': '6b0591ea-345d-45ec-b91c-d77de4ba0610', 'name': 'ctest-vn-31374378', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-31374378'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-16 07:02:27,886 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9dfcb10-5ce3-48ae-9d3b-90ac3e9a6eda', 'name': '', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'network_id': '6b0591ea-345d-45ec-b91c-d77de4ba0610', 'ip_version': 4, 'cidr': '195.242.132.64/26', 'allocation_pools': [{'start': '195.242.132.66', 'end': '195.242.132.126'}], 'gateway_ip': '195.242.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-16T07:02:27.772892', 'updated_at': '2025-04-16T07:02:27.772892', 'dns_server_address': '195.242.132.66', 'tags': [], 'project_id': 'fb976b14c26e40a48d8da10b9748b083'}}
2025-04-16 07:02:27,959 - INFO - Created VN ctest-vn-31374378
2025-04-16 07:02:28,016 - DEBUG - VN ctest-vn-31374378 UUID is 6b0591ea-345d-45ec-b91c-d77de4ba0610
2025-04-16 07:02:28,248 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060, 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-21590007:ctest-vn-31374378, 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-16 07:02:28,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66bb5f7d-5f6c-4056-ac03-32aa9e932744', 'name': 'ctest-vn-22973060', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba089dc6-6b46-43bf-a075-c1486154c067'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-22973060'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916']], 'subnet_ipam': [{'subnet_cidr': '149.51.58.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T07:02:26.535690', 'updated_at': '2025-04-16T07:02:26.798702'}}
2025-04-16 07:02:29,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b0591ea-345d-45ec-b91c-d77de4ba0610', 'name': 'ctest-vn-31374378', 'tenant_id': 'fb976b14c26e40a48d8da10b9748b083', 'project_id': 'fb976b14c26e40a48d8da10b9748b083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9dfcb10-5ce3-48ae-9d3b-90ac3e9a6eda'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-vn-31374378'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916']], 'subnet_ipam': [{'subnet_cidr': '195.242.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-16T07:02:27.524211', 'updated_at': '2025-04-16T07:02:27.789574'}}
2025-04-16 07:02:29,324 - DEBUG - Requesting: https://10.0.0.249:8082/domains
2025-04-16 07:02:29,718 - DEBUG - Requesting: https://10.0.0.249:8082/domains
2025-04-16 07:02:29,809 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635
2025-04-16 07:02:29,874 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083
2025-04-16 07:02:29,966 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744
2025-04-16 07:02:30,027 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744
2025-04-16 07:02:30,091 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911
2025-04-16 07:02:30,150 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911
2025-04-16 07:02:30,206 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/19dcec28-f215-4f89-9b7d-59f38b175cea
2025-04-16 07:02:30,262 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 07:02:30,262 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744
2025-04-16 07:02:30,324 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911
2025-04-16 07:02:30,393 - INFO - Verified VN network id 8 for VN 66bb5f7d-5f6c-4056-ac03-32aa9e932744
2025-04-16 07:02:30,393 - INFO - Verifications in API Server for VN ctest-vn-22973060 passed
2025-04-16 07:02:30,393 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744
2025-04-16 07:02:30,452 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911
2025-04-16 07:02:30,510 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/d46d5c41-c70d-4ebf-8eaf-8f300fb19911
2025-04-16 07:02:30,566 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/19dcec28-f215-4f89-9b7d-59f38b175cea
2025-04-16 07:02:30,678 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21590007', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7402615404590022742', 'uuid-lslong': '12394806307840010052'}, 'enable': 'true', 'created': '2025-04-16T07:02:26', 'last-modified': '2025-04-16T07:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.021170'}
2025-04-16 07:02:30,731 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 07:02:30,731 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22973060 passed
2025-04-16 07:02:30,731 - DEBUG - ====Verifying policy data for ctest-vn-22973060 in API_Server ======
2025-04-16 07:02:30,731 - DEBUG - Requesting: https://10.0.0.249:8082/domains
2025-04-16 07:02:30,786 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635
2025-04-16 07:02:30,846 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083
2025-04-16 07:02:30,934 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/66bb5f7d-5f6c-4056-ac03-32aa9e932744
2025-04-16 07:02:30,997 - DEBUG - ==>Verifying data for policy with id: 83eb19e3-4420-4f79-a3c5-370a5ba1598d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916']
2025-04-16 07:02:30,997 - INFO - VN ctest-vn-22973060 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 07:02:30,997 - DEBUG - Verifying the vn in opserver
2025-04-16 07:02:30,997 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060 virtual network link through opserver 10.0.0.249
2025-04-16 07:02:30,998 - DEBUG - Requesting: https://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-16 07:02:31,392 - DEBUG - Requesting: https://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-16 07:02:31,577 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060', 'href': 'https://10.0.0.249:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060?flat'}
2025-04-16 07:02:31,577 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-22973060 is found in opserver
2025-04-16 07:02:31,689 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 07:02:31,741 - DEBUG - VRF ids for VN ctest-vn-22973060: {}
2025-04-16 07:02:31,741 - DEBUG - Requesting: https://10.0.0.249:8082/domains
2025-04-16 07:02:31,797 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635
2025-04-16 07:02:31,858 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083
2025-04-16 07:02:31,938 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610
2025-04-16 07:02:31,999 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610
2025-04-16 07:02:32,060 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8
2025-04-16 07:02:32,122 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8
2025-04-16 07:02:32,182 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/7c9f34e0-3b25-4aee-bf1e-22afdbf9dae8
2025-04-16 07:02:32,237 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 07:02:32,237 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610
2025-04-16 07:02:32,295 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8
2025-04-16 07:02:32,360 - INFO - Verified VN network id 9 for VN 6b0591ea-345d-45ec-b91c-d77de4ba0610
2025-04-16 07:02:32,360 - INFO - Verifications in API Server for VN ctest-vn-31374378 passed
2025-04-16 07:02:32,361 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610
2025-04-16 07:02:32,419 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8
2025-04-16 07:02:32,474 - DEBUG - Requesting: https://10.0.0.249:8082/routing-instance/1aeffeba-f311-4754-930c-bc18a814d9b8
2025-04-16 07:02:32,529 - DEBUG - Requesting: https://10.0.0.249:8082/route-target/7c9f34e0-3b25-4aee-bf1e-22afdbf9dae8
2025-04-16 07:02:32,646 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21590007', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7711730372028745196', 'uuid-lslong': '13338773132072846864'}, 'enable': 'true', 'created': '2025-04-16T07:02:27', 'last-modified': '2025-04-16T07:02:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.612939'}
2025-04-16 07:02:32,703 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 07:02:32,703 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31374378 passed
2025-04-16 07:02:32,703 - DEBUG - ====Verifying policy data for ctest-vn-31374378 in API_Server ======
2025-04-16 07:02:32,703 - DEBUG - Requesting: https://10.0.0.249:8082/domains
2025-04-16 07:02:32,757 - DEBUG - Requesting: https://10.0.0.249:8082/domain/ff0a6a62-6028-4162-b7f1-646624f57635
2025-04-16 07:02:32,821 - DEBUG - Requesting: https://10.0.0.249:8082/project/fb976b14-c26e-40a4-8d8d-a10b9748b083
2025-04-16 07:02:32,910 - DEBUG - Requesting: https://10.0.0.249:8082/virtual-network/6b0591ea-345d-45ec-b91c-d77de4ba0610
2025-04-16 07:02:32,972 - DEBUG - ==>Verifying data for policy with id: 83eb19e3-4420-4f79-a3c5-370a5ba1598d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-21590007', 'ctest-policy-allow-all-10201916']
2025-04-16 07:02:32,972 - INFO - VN ctest-vn-31374378 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 07:02:32,972 - DEBUG - Verifying the vn in opserver
2025-04-16 07:02:32,972 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378 virtual network link through opserver 10.0.0.249
2025-04-16 07:02:32,972 - DEBUG - Requesting: https://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-16 07:02:33,029 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378', 'href': 'https://10.0.0.249:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378?flat'}
2025-04-16 07:02:33,029 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-21590007:ctest-vn-31374378 is found in opserver
2025-04-16 07:02:33,133 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 07:02:33,185 - DEBUG - VRF ids for VN ctest-vn-31374378: {}
2025-04-16 07:02:33,280 - DEBUG - Services list from nova: [