2025-04-08 11:43:47,552 - INFO - Domain Default found not creating
2025-04-08 11:43:47,739 - INFO - Project ctest-TestBasicPolicy-11106537 not found, creating it
2025-04-08 11:43:48,248 - INFO - Created Project:ctest-TestBasicPolicy-11106537, ID : edecb9b9-f840-4e47-abfd-c1fa6c227851
2025-04-08 11:43:49,903 - INFO - ================================================================================
2025-04-08 11:43:49,904 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 11:43:49,904 - 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-08 11:43:50,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with
2025-04-08 11:43:50,174 - INFO - Initial checks done. Running the testcase now
2025-04-08 11:43:50,174 - INFO -
2025-04-08 11:43:50,837 - DEBUG - Response for create_network : {'network': {'id': '0e07b8db-9b64-461e-be28-6081c8a62d4f', 'name': 'ctest-vn-18635877', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-18635877'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 11:43:51,053 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a92fe70-6d6f-4fa5-9c63-2deede0245a3', 'name': '', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'network_id': '0e07b8db-9b64-461e-be28-6081c8a62d4f', 'ip_version': 4, 'cidr': '14.170.57.128/26', 'allocation_pools': [{'start': '14.170.57.130', 'end': '14.170.57.190'}], 'gateway_ip': '14.170.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.170.57.130', 'tags': [], 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851'}}
2025-04-08 11:43:51,080 - INFO - Created VN ctest-vn-18635877
2025-04-08 11:43:51,138 - DEBUG - VN ctest-vn-18635877 UUID is 0e07b8db-9b64-461e-be28-6081c8a62d4f
2025-04-08 11:43:51,513 - DEBUG - Response for create_network : {'network': {'id': '2c0966cf-bfee-439c-b88a-2571cdd9e89e', 'name': 'ctest-vn-65569641', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-65569641'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 11:43:51,717 - DEBUG - Response for create_subnet : {'subnet': {'id': '7529a7f2-c768-41b7-aed3-b63dc1bf4e0c', 'name': '', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'network_id': '2c0966cf-bfee-439c-b88a-2571cdd9e89e', 'ip_version': 4, 'cidr': '199.242.251.128/26', 'allocation_pools': [{'start': '199.242.251.130', 'end': '199.242.251.190'}], 'gateway_ip': '199.242.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.242.251.130', 'tags': [], 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851'}}
2025-04-08 11:43:51,745 - INFO - Created VN ctest-vn-65569641
2025-04-08 11:43:51,802 - DEBUG - VN ctest-vn-65569641 UUID is 2c0966cf-bfee-439c-b88a-2571cdd9e89e
2025-04-08 11:43:51,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877, 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-11106537:ctest-vn-65569641, 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-08 11:43:52,303 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e07b8db-9b64-461e-be28-6081c8a62d4f', 'name': 'ctest-vn-18635877', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a92fe70-6d6f-4fa5-9c63-2deede0245a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-18635877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508']], 'subnet_ipam': [{'subnet_cidr': '14.170.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 11:43:52,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c0966cf-bfee-439c-b88a-2571cdd9e89e', 'name': 'ctest-vn-65569641', 'tenant_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'project_id': 'edecb9b9f8404e47abfdc1fa6c227851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7529a7f2-c768-41b7-aed3-b63dc1bf4e0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-vn-65569641'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508']], 'subnet_ipam': [{'subnet_cidr': '199.242.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 11:43:52,738 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 11:43:53,049 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 11:43:53,086 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916
2025-04-08 11:43:53,104 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851
2025-04-08 11:43:53,199 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f
2025-04-08 11:43:53,213 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f
2025-04-08 11:43:53,226 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432
2025-04-08 11:43:53,237 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432
2025-04-08 11:43:53,246 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f48f6e68-0ccf-4ea8-a8db-2da69517a813
2025-04-08 11:43:53,257 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 11:43:53,257 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f
2025-04-08 11:43:53,270 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432
2025-04-08 11:43:53,291 - INFO - Verified VN network id 9 for VN 0e07b8db-9b64-461e-be28-6081c8a62d4f
2025-04-08 11:43:53,291 - INFO - Verifications in API Server for VN ctest-vn-18635877 passed
2025-04-08 11:43:53,291 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f
2025-04-08 11:43:53,304 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432
2025-04-08 11:43:53,315 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c2387858-9811-4f1c-aa52-392ed0c3f432
2025-04-08 11:43:53,325 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f48f6e68-0ccf-4ea8-a8db-2da69517a813
2025-04-08 11:43:53,343 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11106537', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1010979894712354334', 'uuid-lslong': '13702307976808115535'}, 'enable': 'true', 'created': '2025-04-08T11:43:50', 'last-modified': '2025-04-08T11:43:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068337'}
2025-04-08 11:43:53,353 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 11:43:53,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18635877 passed
2025-04-08 11:43:53,353 - DEBUG - ====Verifying policy data for ctest-vn-18635877 in API_Server ======
2025-04-08 11:43:53,353 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 11:43:53,362 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916
2025-04-08 11:43:53,378 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851
2025-04-08 11:43:53,466 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/0e07b8db-9b64-461e-be28-6081c8a62d4f
2025-04-08 11:43:53,477 - DEBUG - ==>Verifying data for policy with id: 2ae17f9c-f00f-4ed3-8783-2b2c38f10726, fqn: ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508']
2025-04-08 11:43:53,478 - INFO - VN ctest-vn-18635877 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 11:43:53,478 - DEBUG - Verifying the vn in opserver
2025-04-08 11:43:53,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877 virtual network link through opserver 10.0.0.31
2025-04-08 11:43:53,478 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-04-08 11:43:53,788 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-04-08 11:43:53,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877?flat'}
2025-04-08 11:43:53,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-18635877 is found in opserver
2025-04-08 11:43:53,891 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 11:43:53,898 - DEBUG - VRF ids for VN ctest-vn-18635877: {}
2025-04-08 11:43:53,898 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 11:43:53,904 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916
2025-04-08 11:43:53,921 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851
2025-04-08 11:43:54,003 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e
2025-04-08 11:43:54,020 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e
2025-04-08 11:43:54,033 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16
2025-04-08 11:43:54,044 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16
2025-04-08 11:43:54,054 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/27a3f8f7-b64c-437a-80c0-dd29acb404b6
2025-04-08 11:43:54,063 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 11:43:54,064 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e
2025-04-08 11:43:54,078 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16
2025-04-08 11:43:54,098 - INFO - Verified VN network id 10 for VN 2c0966cf-bfee-439c-b88a-2571cdd9e89e
2025-04-08 11:43:54,098 - INFO - Verifications in API Server for VN ctest-vn-65569641 passed
2025-04-08 11:43:54,098 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e
2025-04-08 11:43:54,112 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16
2025-04-08 11:43:54,125 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/2f30f254-e18d-495b-8046-4ce0d1404f16
2025-04-08 11:43:54,136 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/27a3f8f7-b64c-437a-80c0-dd29acb404b6
2025-04-08 11:43:54,153 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11106537', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3173180454923551644', 'uuid-lslong': '13297482020479953054'}, 'enable': 'true', 'created': '2025-04-08T11:43:51', 'last-modified': '2025-04-08T11:43:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.613768'}
2025-04-08 11:43:54,161 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 11:43:54,161 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65569641 passed
2025-04-08 11:43:54,161 - DEBUG - ====Verifying policy data for ctest-vn-65569641 in API_Server ======
2025-04-08 11:43:54,161 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 11:43:54,169 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f927a9c5-3465-4c1b-a60b-d0defaea2916
2025-04-08 11:43:54,186 - DEBUG - Requesting: http://10.0.0.31:8082/project/edecb9b9-f840-4e47-abfd-c1fa6c227851
2025-04-08 11:43:54,271 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/2c0966cf-bfee-439c-b88a-2571cdd9e89e
2025-04-08 11:43:54,288 - DEBUG - ==>Verifying data for policy with id: 2ae17f9c-f00f-4ed3-8783-2b2c38f10726, fqn: ['default-domain', 'ctest-TestBasicPolicy-11106537', 'ctest-policy-allow-all-49023508']
2025-04-08 11:43:54,288 - INFO - VN ctest-vn-65569641 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 11:43:54,288 - DEBUG - Verifying the vn in opserver
2025-04-08 11:43:54,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641 virtual network link through opserver 10.0.0.31
2025-04-08 11:43:54,288 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-04-08 11:43:54,303 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641?flat'}
2025-04-08 11:43:54,303 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11106537:ctest-vn-65569641 is found in opserver
2025-04-08 11:43:54,317 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 11:43:54,325 - DEBUG - VRF ids for VN ctest-vn-65569641: {}
2025-04-08 11:43:54,402 - DEBUG - Services list from nova: [