2025-02-13 06:35:42,689 - INFO - Domain Default found not creating
2025-02-13 06:35:42,824 - INFO - Project ctest-TestBasicPolicy-89586024 not found, creating it
2025-02-13 06:35:43,264 - INFO - Created Project:ctest-TestBasicPolicy-89586024, ID : 7289eef1-e28f-4dec-9f45-0eaef7dc97b7
2025-02-13 06:35:44,671 - INFO - ================================================================================
2025-02-13 06:35:44,671 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-13 06:35:44,671 - 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-02-13 06:35:44,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.7': '0'}} with
2025-02-13 06:35:44,928 - INFO - Initial checks done. Running the testcase now
2025-02-13 06:35:44,928 - INFO -
2025-02-13 06:35:45,473 - DEBUG - Response for create_network : {'network': {'id': '433197e0-11ef-40fe-8dfc-482b2d5c4306', 'name': 'ctest-vn-20014210', 'tenant_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'project_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-vn-20014210'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 06:35:45,631 - DEBUG - Response for create_subnet : {'subnet': {'id': '184631d4-bb1a-4063-9e4b-88360a74c4d2', 'name': '', 'tenant_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'network_id': '433197e0-11ef-40fe-8dfc-482b2d5c4306', 'ip_version': 4, 'cidr': '155.107.20.0/26', 'allocation_pools': [{'start': '155.107.20.2', 'end': '155.107.20.62'}], 'gateway_ip': '155.107.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.107.20.2', 'tags': [], 'project_id': '7289eef1e28f4dec9f450eaef7dc97b7'}}
2025-02-13 06:35:45,648 - INFO - Created VN ctest-vn-20014210
2025-02-13 06:35:45,702 - DEBUG - VN ctest-vn-20014210 UUID is 433197e0-11ef-40fe-8dfc-482b2d5c4306
2025-02-13 06:35:45,986 - DEBUG - Response for create_network : {'network': {'id': '89419bd6-1984-49aa-b61a-ae4aad2aef44', 'name': 'ctest-vn-52981168', 'tenant_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'project_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-vn-52981168'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 06:35:46,177 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c13d3308-9021-4457-9764-9f17b2ec718d', 'name': '', 'tenant_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'network_id': '89419bd6-1984-49aa-b61a-ae4aad2aef44', 'ip_version': 4, 'cidr': '223.92.219.0/26', 'allocation_pools': [{'start': '223.92.219.2', 'end': '223.92.219.62'}], 'gateway_ip': '223.92.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.92.219.2', 'tags': [], 'project_id': '7289eef1e28f4dec9f450eaef7dc97b7'}}
2025-02-13 06:35:46,194 - INFO - Created VN ctest-vn-52981168
2025-02-13 06:35:46,245 - DEBUG - VN ctest-vn-52981168 UUID is 89419bd6-1984-49aa-b61a-ae4aad2aef44
2025-02-13 06:35:46,397 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-20014210, 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-89586024:ctest-vn-52981168, 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-02-13 06:35:46,693 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '433197e0-11ef-40fe-8dfc-482b2d5c4306', 'name': 'ctest-vn-20014210', 'tenant_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'project_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['184631d4-bb1a-4063-9e4b-88360a74c4d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-vn-20014210'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-policy-allow-all-40695469']], 'subnet_ipam': [{'subnet_cidr': '155.107.20.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 06:35:46,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89419bd6-1984-49aa-b61a-ae4aad2aef44', 'name': 'ctest-vn-52981168', 'tenant_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'project_id': '7289eef1e28f4dec9f450eaef7dc97b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c13d3308-9021-4457-9764-9f17b2ec718d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-vn-52981168'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-policy-allow-all-40695469']], 'subnet_ipam': [{'subnet_cidr': '223.92.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 06:35:47,069 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-02-13 06:35:47,362 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-02-13 06:35:47,390 - DEBUG - Requesting: http://10.0.0.43:8082/domain/46ff422b-44aa-43e5-958e-65bc52515602
2025-02-13 06:35:47,403 - DEBUG - Requesting: http://10.0.0.43:8082/project/7289eef1-e28f-4dec-9f45-0eaef7dc97b7
2025-02-13 06:35:47,476 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/433197e0-11ef-40fe-8dfc-482b2d5c4306
2025-02-13 06:35:47,486 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/433197e0-11ef-40fe-8dfc-482b2d5c4306
2025-02-13 06:35:47,495 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/01bdbb4a-3bdf-4cd8-9048-2443d85fa800
2025-02-13 06:35:47,501 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/01bdbb4a-3bdf-4cd8-9048-2443d85fa800
2025-02-13 06:35:47,507 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/3475dd29-611f-41ad-a0ea-3a5309b7c096
2025-02-13 06:35:47,512 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 06:35:47,512 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/433197e0-11ef-40fe-8dfc-482b2d5c4306
2025-02-13 06:35:47,521 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/01bdbb4a-3bdf-4cd8-9048-2443d85fa800
2025-02-13 06:35:47,532 - INFO - Verified VN network id 9 for VN 433197e0-11ef-40fe-8dfc-482b2d5c4306
2025-02-13 06:35:47,532 - INFO - Verifications in API Server for VN ctest-vn-20014210 passed
2025-02-13 06:35:47,532 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/433197e0-11ef-40fe-8dfc-482b2d5c4306
2025-02-13 06:35:47,541 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/01bdbb4a-3bdf-4cd8-9048-2443d85fa800
2025-02-13 06:35:47,546 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/01bdbb4a-3bdf-4cd8-9048-2443d85fa800
2025-02-13 06:35:47,552 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/3475dd29-611f-41ad-a0ea-3a5309b7c096
2025-02-13 06:35:47,563 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-20014210', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89586024', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4841818063029354750', 'uuid-lslong': '10231131803760739078'}, 'enable': 'true', 'created': '2025-02-13T06:35:45', 'last-modified': '2025-02-13T06:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893263'}
2025-02-13 06:35:47,569 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 06:35:47,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20014210 passed
2025-02-13 06:35:47,569 - DEBUG - ====Verifying policy data for ctest-vn-20014210 in API_Server ======
2025-02-13 06:35:47,569 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-02-13 06:35:47,574 - DEBUG - Requesting: http://10.0.0.43:8082/domain/46ff422b-44aa-43e5-958e-65bc52515602
2025-02-13 06:35:47,584 - DEBUG - Requesting: http://10.0.0.43:8082/project/7289eef1-e28f-4dec-9f45-0eaef7dc97b7
2025-02-13 06:35:47,660 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/433197e0-11ef-40fe-8dfc-482b2d5c4306
2025-02-13 06:35:47,669 - DEBUG - ==>Verifying data for policy with id: dbdaa48b-74ac-4350-884b-5d59567bc6de, fqn: ['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-policy-allow-all-40695469']
2025-02-13 06:35:47,669 - INFO - VN ctest-vn-20014210 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 06:35:47,669 - DEBUG - Verifying the vn in opserver
2025-02-13 06:35:47,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-20014210 virtual network link through opserver 10.0.0.43
2025-02-13 06:35:47,670 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-02-13 06:35:47,960 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-02-13 06:35:48,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-20014210', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-20014210?flat'}
2025-02-13 06:35:48,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-20014210 is found in opserver
2025-02-13 06:35:48,025 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 06:35:48,030 - DEBUG - VRF ids for VN ctest-vn-20014210: {}
2025-02-13 06:35:48,030 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-02-13 06:35:48,036 - DEBUG - Requesting: http://10.0.0.43:8082/domain/46ff422b-44aa-43e5-958e-65bc52515602
2025-02-13 06:35:48,048 - DEBUG - Requesting: http://10.0.0.43:8082/project/7289eef1-e28f-4dec-9f45-0eaef7dc97b7
2025-02-13 06:35:48,123 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/89419bd6-1984-49aa-b61a-ae4aad2aef44
2025-02-13 06:35:48,135 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/89419bd6-1984-49aa-b61a-ae4aad2aef44
2025-02-13 06:35:48,144 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/da18b81e-ae16-4c9b-a440-01afe130294b
2025-02-13 06:35:48,150 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/da18b81e-ae16-4c9b-a440-01afe130294b
2025-02-13 06:35:48,157 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/1ef40b9c-b5f9-49ec-a4df-f34530a81a75
2025-02-13 06:35:48,162 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 06:35:48,162 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/89419bd6-1984-49aa-b61a-ae4aad2aef44
2025-02-13 06:35:48,171 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/da18b81e-ae16-4c9b-a440-01afe130294b
2025-02-13 06:35:48,183 - INFO - Verified VN network id 10 for VN 89419bd6-1984-49aa-b61a-ae4aad2aef44
2025-02-13 06:35:48,183 - INFO - Verifications in API Server for VN ctest-vn-52981168 passed
2025-02-13 06:35:48,184 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/89419bd6-1984-49aa-b61a-ae4aad2aef44
2025-02-13 06:35:48,194 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/da18b81e-ae16-4c9b-a440-01afe130294b
2025-02-13 06:35:48,200 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/da18b81e-ae16-4c9b-a440-01afe130294b
2025-02-13 06:35:48,207 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/1ef40b9c-b5f9-49ec-a4df-f34530a81a75
2025-02-13 06:35:48,218 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-52981168', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89586024', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9890357600535726506', 'uuid-lslong': '13121992100053446468'}, 'enable': 'true', 'created': '2025-02-13T06:35:45', 'last-modified': '2025-02-13T06:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.321347'}
2025-02-13 06:35:48,223 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 06:35:48,223 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52981168 passed
2025-02-13 06:35:48,224 - DEBUG - ====Verifying policy data for ctest-vn-52981168 in API_Server ======
2025-02-13 06:35:48,224 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-02-13 06:35:48,228 - DEBUG - Requesting: http://10.0.0.43:8082/domain/46ff422b-44aa-43e5-958e-65bc52515602
2025-02-13 06:35:48,239 - DEBUG - Requesting: http://10.0.0.43:8082/project/7289eef1-e28f-4dec-9f45-0eaef7dc97b7
2025-02-13 06:35:48,311 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/89419bd6-1984-49aa-b61a-ae4aad2aef44
2025-02-13 06:35:48,322 - DEBUG - ==>Verifying data for policy with id: dbdaa48b-74ac-4350-884b-5d59567bc6de, fqn: ['default-domain', 'ctest-TestBasicPolicy-89586024', 'ctest-policy-allow-all-40695469']
2025-02-13 06:35:48,322 - INFO - VN ctest-vn-52981168 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 06:35:48,322 - DEBUG - Verifying the vn in opserver
2025-02-13 06:35:48,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-52981168 virtual network link through opserver 10.0.0.43
2025-02-13 06:35:48,322 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-02-13 06:35:48,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-52981168', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-52981168?flat'}
2025-02-13 06:35:48,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89586024:ctest-vn-52981168 is found in opserver
2025-02-13 06:35:48,345 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 06:35:48,350 - DEBUG - VRF ids for VN ctest-vn-52981168: {}
2025-02-13 06:35:48,405 - DEBUG - Services list from nova: [