2025-07-07 14:21:47,216 - INFO - Domain Default found not creating
2025-07-07 14:21:47,363 - INFO - Project ctest-TestBasicPolicy-04012771 not found, creating it
2025-07-07 14:21:47,828 - INFO - Created Project:ctest-TestBasicPolicy-04012771, ID : c62555e6-75b6-451e-ba5e-c5e09a8d8337
2025-07-07 14:21:49,308 - INFO - ================================================================================
2025-07-07 14:21:49,308 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 14:21:49,308 - 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-07-07 14:21:49,562 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-07 14:21:49,562 - INFO - Initial checks done. Running the testcase now
2025-07-07 14:21:49,562 - INFO -
2025-07-07 14:21:50,123 - DEBUG - Response for create_network : {'network': {'id': '1d27b9a1-ece1-43b6-9e7f-1e41693368dd', 'name': 'ctest-vn-17057180', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-17057180'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 14:21:50,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad68b7d8-0306-4be1-acab-a73e8f64383c', 'name': '', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'network_id': '1d27b9a1-ece1-43b6-9e7f-1e41693368dd', 'ip_version': 4, 'cidr': '115.137.81.128/26', 'allocation_pools': [{'start': '115.137.81.130', 'end': '115.137.81.190'}], 'gateway_ip': '115.137.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.137.81.130', 'tags': [], 'project_id': 'c62555e675b6451eba5ec5e09a8d8337'}}
2025-07-07 14:21:50,312 - INFO - Created VN ctest-vn-17057180
2025-07-07 14:21:50,368 - DEBUG - VN ctest-vn-17057180 UUID is 1d27b9a1-ece1-43b6-9e7f-1e41693368dd
2025-07-07 14:21:50,674 - DEBUG - Response for create_network : {'network': {'id': '70e0930d-30fe-4985-b0f7-548a0dd334d3', 'name': 'ctest-vn-59166042', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-59166042'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 14:21:50,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '5438aea3-b830-4361-8e8f-df1f12d58367', 'name': '', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'network_id': '70e0930d-30fe-4985-b0f7-548a0dd334d3', 'ip_version': 4, 'cidr': '104.209.5.0/26', 'allocation_pools': [{'start': '104.209.5.2', 'end': '104.209.5.62'}], 'gateway_ip': '104.209.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.209.5.2', 'tags': [], 'project_id': 'c62555e675b6451eba5ec5e09a8d8337'}}
2025-07-07 14:21:50,865 - INFO - Created VN ctest-vn-59166042
2025-07-07 14:21:50,920 - DEBUG - VN ctest-vn-59166042 UUID is 70e0930d-30fe-4985-b0f7-548a0dd334d3
2025-07-07 14:21:51,036 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180, 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-04012771:ctest-vn-59166042, 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-07-07 14:21:51,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d27b9a1-ece1-43b6-9e7f-1e41693368dd', 'name': 'ctest-vn-17057180', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad68b7d8-0306-4be1-acab-a73e8f64383c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-17057180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705']], 'subnet_ipam': [{'subnet_cidr': '115.137.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 14:21:51,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70e0930d-30fe-4985-b0f7-548a0dd334d3', 'name': 'ctest-vn-59166042', 'tenant_id': 'c62555e675b6451eba5ec5e09a8d8337', 'project_id': 'c62555e675b6451eba5ec5e09a8d8337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5438aea3-b830-4361-8e8f-df1f12d58367'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-vn-59166042'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705']], 'subnet_ipam': [{'subnet_cidr': '104.209.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 14:21:51,788 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 14:21:52,098 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 14:21:52,133 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef
2025-07-07 14:21:52,148 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337
2025-07-07 14:21:52,220 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd
2025-07-07 14:21:52,234 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd
2025-07-07 14:21:52,248 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd
2025-07-07 14:21:52,258 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd
2025-07-07 14:21:52,266 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/766e3c5b-be37-4f25-a0e0-9472eec1139a
2025-07-07 14:21:52,274 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 14:21:52,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd
2025-07-07 14:21:52,285 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd
2025-07-07 14:21:52,301 - INFO - Verified VN network id 8 for VN 1d27b9a1-ece1-43b6-9e7f-1e41693368dd
2025-07-07 14:21:52,301 - INFO - Verifications in API Server for VN ctest-vn-17057180 passed
2025-07-07 14:21:52,301 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd
2025-07-07 14:21:52,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd
2025-07-07 14:21:52,320 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02324f37-fde6-461c-b4a8-041b7252c7bd
2025-07-07 14:21:52,327 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/766e3c5b-be37-4f25-a0e0-9472eec1139a
2025-07-07 14:21:52,340 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04012771', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2100851856306684854', 'uuid-lslong': '11420880446321551581'}, 'enable': 'true', 'created': '2025-07-07T14:21:50', 'last-modified': '2025-07-07T14:21:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.024715'}
2025-07-07 14:21:52,347 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 14:21:52,347 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17057180 passed
2025-07-07 14:21:52,347 - DEBUG - ====Verifying policy data for ctest-vn-17057180 in API_Server ======
2025-07-07 14:21:52,347 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 14:21:52,354 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef
2025-07-07 14:21:52,366 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337
2025-07-07 14:21:52,441 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d27b9a1-ece1-43b6-9e7f-1e41693368dd
2025-07-07 14:21:52,451 - DEBUG - ==>Verifying data for policy with id: 48892629-04fe-49e9-91d3-ff53557aec58, fqn: ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705']
2025-07-07 14:21:52,451 - INFO - VN ctest-vn-17057180 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 14:21:52,452 - DEBUG - Verifying the vn in opserver
2025-07-07 14:21:52,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180 virtual network link through opserver 10.0.0.50
2025-07-07 14:21:52,452 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-07 14:21:52,744 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-07 14:21:52,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180?flat'}
2025-07-07 14:21:52,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-17057180 is found in opserver
2025-07-07 14:21:52,818 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 14:21:52,825 - DEBUG - VRF ids for VN ctest-vn-17057180: {}
2025-07-07 14:21:52,825 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 14:21:52,833 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef
2025-07-07 14:21:52,846 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337
2025-07-07 14:21:52,928 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3
2025-07-07 14:21:52,944 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3
2025-07-07 14:21:52,954 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24
2025-07-07 14:21:52,964 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24
2025-07-07 14:21:52,972 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0f1badd2-c0c7-4f0e-b652-5c2a5ff22c2a
2025-07-07 14:21:52,979 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 14:21:52,979 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3
2025-07-07 14:21:52,989 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24
2025-07-07 14:21:53,005 - INFO - Verified VN network id 9 for VN 70e0930d-30fe-4985-b0f7-548a0dd334d3
2025-07-07 14:21:53,005 - INFO - Verifications in API Server for VN ctest-vn-59166042 passed
2025-07-07 14:21:53,005 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3
2025-07-07 14:21:53,018 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24
2025-07-07 14:21:53,029 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a805a754-c36c-4026-b129-8afc8a5e2a24
2025-07-07 14:21:53,038 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0f1badd2-c0c7-4f0e-b652-5c2a5ff22c2a
2025-07-07 14:21:53,054 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04012771', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8133662611896945029', 'uuid-lslong': '12751753821837014227'}, 'enable': 'true', 'created': '2025-07-07T14:21:50', 'last-modified': '2025-07-07T14:21:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500170'}
2025-07-07 14:21:53,061 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 14:21:53,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59166042 passed
2025-07-07 14:21:53,061 - DEBUG - ====Verifying policy data for ctest-vn-59166042 in API_Server ======
2025-07-07 14:21:53,061 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-07 14:21:53,067 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c40c94b1-50de-4284-9ac8-23786fbefaef
2025-07-07 14:21:53,080 - DEBUG - Requesting: http://10.0.0.50:8082/project/c62555e6-75b6-451e-ba5e-c5e09a8d8337
2025-07-07 14:21:53,151 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/70e0930d-30fe-4985-b0f7-548a0dd334d3
2025-07-07 14:21:53,163 - DEBUG - ==>Verifying data for policy with id: 48892629-04fe-49e9-91d3-ff53557aec58, fqn: ['default-domain', 'ctest-TestBasicPolicy-04012771', 'ctest-policy-allow-all-13309705']
2025-07-07 14:21:53,163 - INFO - VN ctest-vn-59166042 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 14:21:53,163 - DEBUG - Verifying the vn in opserver
2025-07-07 14:21:53,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042 virtual network link through opserver 10.0.0.50
2025-07-07 14:21:53,163 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-07 14:21:53,175 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042?flat'}
2025-07-07 14:21:53,175 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04012771:ctest-vn-59166042 is found in opserver
2025-07-07 14:21:53,189 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 14:21:53,195 - DEBUG - VRF ids for VN ctest-vn-59166042: {}
2025-07-07 14:21:53,255 - DEBUG - Services list from nova: [