2026-07-28 18:10:44,842 - INFO - Reading existing Domain with UUID b6c1387c-4a80-4b88-8142-7d06420731e1
2026-07-28 18:10:44,855 - INFO - Using existing domain ['admin_domain'](b6c1387c-4a80-4b88-8142-7d06420731e1)
2026-07-28 18:10:45,095 - INFO - Project ctest-TestBasicPolicy-62551244 not found, creating it
2026-07-28 18:10:45,974 - INFO - Created Project:ctest-TestBasicPolicy-62551244, ID : 9f6ed3c1-e559-4b5c-bdcd-8109de33be7a
2026-07-28 18:10:47,818 - INFO - ================================================================================
2026-07-28 18:10:47,819 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-28 18:10:47,819 - 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
2026-07-28 18:10:48,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.0.0.185': '0'}} with
2026-07-28 18:10:48,220 - INFO - Initial checks done. Running the testcase now
2026-07-28 18:10:48,220 - INFO -
2026-07-28 18:10:49,051 - DEBUG - Response for create_network : {'network': {'id': '2a8eadcf-3351-47d9-b480-da0b816e2e77', 'name': 'ctest-vn-31465197', 'tenant_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'project_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-vn-31465197'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-07-28 18:10:49,284 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd06f1f4d-4321-40e6-86f8-002031a40197', 'name': '', 'tenant_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'network_id': '2a8eadcf-3351-47d9-b480-da0b816e2e77', 'ip_version': 4, 'cidr': '2.157.208.64/26', 'allocation_pools': [{'start': '2.157.208.66', 'end': '2.157.208.126'}], 'gateway_ip': '2.157.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-07-28T18:10:49.171485', 'updated_at': '2026-07-28T18:10:49.171485', 'dns_server_address': '2.157.208.66', 'tags': [], 'project_id': '9f6ed3c1e5594b5cbdcd8109de33be7a'}}
2026-07-28 18:10:49,352 - INFO - Created VN ctest-vn-31465197
2026-07-28 18:10:49,406 - DEBUG - VN ctest-vn-31465197 UUID is 2a8eadcf-3351-47d9-b480-da0b816e2e77
2026-07-28 18:10:49,936 - DEBUG - Response for create_network : {'network': {'id': 'c34140b9-ccab-4c71-805e-b42d8f06fdf9', 'name': 'ctest-vn-59915166', 'tenant_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'project_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-vn-59915166'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-07-28 18:10:50,194 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0268bda-ff63-4bee-bfff-3573ad45ee97', 'name': '', 'tenant_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'network_id': 'c34140b9-ccab-4c71-805e-b42d8f06fdf9', 'ip_version': 4, 'cidr': '67.192.115.64/26', 'allocation_pools': [{'start': '67.192.115.66', 'end': '67.192.115.126'}], 'gateway_ip': '67.192.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-07-28T18:10:50.086620', 'updated_at': '2026-07-28T18:10:50.086620', 'dns_server_address': '67.192.115.66', 'tags': [], 'project_id': '9f6ed3c1e5594b5cbdcd8109de33be7a'}}
2026-07-28 18:10:50,268 - INFO - Created VN ctest-vn-59915166
2026-07-28 18:10:50,326 - DEBUG - VN ctest-vn-59915166 UUID is c34140b9-ccab-4c71-805e-b42d8f06fdf9
2026-07-28 18:10:50,549 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-31465197, 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-62551244:ctest-vn-59915166, 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]
2026-07-28 18:10:51,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a8eadcf-3351-47d9-b480-da0b816e2e77', 'name': 'ctest-vn-31465197', 'tenant_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'project_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d06f1f4d-4321-40e6-86f8-002031a40197'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-vn-31465197'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-policy-allow-all-00226766']], 'subnet_ipam': [{'subnet_cidr': '2.157.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-07-28T18:10:48.965257', 'updated_at': '2026-07-28T18:10:49.187442'}}
2026-07-28 18:10:51,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c34140b9-ccab-4c71-805e-b42d8f06fdf9', 'name': 'ctest-vn-59915166', 'tenant_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'project_id': '9f6ed3c1e5594b5cbdcd8109de33be7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a0268bda-ff63-4bee-bfff-3573ad45ee97'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-vn-59915166'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-policy-allow-all-00226766']], 'subnet_ipam': [{'subnet_cidr': '67.192.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-07-28T18:10:49.848046', 'updated_at': '2026-07-28T18:10:50.107055'}}
2026-07-28 18:10:51,618 - DEBUG - Requesting: https://10.0.0.185:8082/domains
2026-07-28 18:10:51,971 - DEBUG - Requesting: https://10.0.0.185:8082/domains
2026-07-28 18:10:52,063 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1
2026-07-28 18:10:52,127 - DEBUG - Requesting: https://10.0.0.185:8082/project/9f6ed3c1-e559-4b5c-bdcd-8109de33be7a
2026-07-28 18:10:52,211 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/2a8eadcf-3351-47d9-b480-da0b816e2e77
2026-07-28 18:10:52,272 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/2a8eadcf-3351-47d9-b480-da0b816e2e77
2026-07-28 18:10:52,332 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/edc4b498-505d-47c5-bd33-609ec5cdf50c
2026-07-28 18:10:52,387 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/edc4b498-505d-47c5-bd33-609ec5cdf50c
2026-07-28 18:10:52,447 - DEBUG - Requesting: https://10.0.0.185:8082/route-target/8a8c3576-7ffb-4a19-aea3-16099bd7f073
2026-07-28 18:10:52,503 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-28 18:10:52,503 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/2a8eadcf-3351-47d9-b480-da0b816e2e77
2026-07-28 18:10:52,560 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/edc4b498-505d-47c5-bd33-609ec5cdf50c
2026-07-28 18:10:52,626 - INFO - Verified VN network id 11 for VN 2a8eadcf-3351-47d9-b480-da0b816e2e77
2026-07-28 18:10:52,626 - INFO - Verifications in API Server for VN ctest-vn-31465197 passed
2026-07-28 18:10:52,626 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/2a8eadcf-3351-47d9-b480-da0b816e2e77
2026-07-28 18:10:52,685 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/edc4b498-505d-47c5-bd33-609ec5cdf50c
2026-07-28 18:10:52,741 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/edc4b498-505d-47c5-bd33-609ec5cdf50c
2026-07-28 18:10:52,795 - DEBUG - Requesting: https://10.0.0.185:8082/route-target/8a8c3576-7ffb-4a19-aea3-16099bd7f073
2026-07-28 18:10:52,939 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-31465197', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62551244', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3066579501716686809', 'uuid-lslong': '13006635466796969591'}, 'enable': 'true', 'created': '2026-07-28T18:10:48', 'last-modified': '2026-07-28T18:10:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.971850'}
2026-07-28 18:10:52,993 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-28 18:10:52,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31465197 passed
2026-07-28 18:10:52,993 - DEBUG - ====Verifying policy data for ctest-vn-31465197 in API_Server ======
2026-07-28 18:10:52,994 - DEBUG - Requesting: https://10.0.0.185:8082/domains
2026-07-28 18:10:53,046 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1
2026-07-28 18:10:53,103 - DEBUG - Requesting: https://10.0.0.185:8082/project/9f6ed3c1-e559-4b5c-bdcd-8109de33be7a
2026-07-28 18:10:53,192 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/2a8eadcf-3351-47d9-b480-da0b816e2e77
2026-07-28 18:10:53,256 - DEBUG - ==>Verifying data for policy with id: fb16bb3d-cbed-412f-943d-72f0ec178f72, fqn: ['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-policy-allow-all-00226766']
2026-07-28 18:10:53,256 - INFO - VN ctest-vn-31465197 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-28 18:10:53,256 - DEBUG - Verifying the vn in opserver
2026-07-28 18:10:53,256 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-31465197 virtual network link through opserver 10.0.0.185
2026-07-28 18:10:53,256 - DEBUG - Requesting: https://10.0.0.185:8081/analytics/uves/virtual-networks
2026-07-28 18:10:53,613 - DEBUG - Requesting: https://10.0.0.185:8081/analytics/uves/virtual-networks
2026-07-28 18:10:53,750 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-31465197', 'href': 'https://10.0.0.185:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-31465197?flat'}
2026-07-28 18:10:53,751 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-31465197 is found in opserver
2026-07-28 18:10:53,855 - DEBUG - Do not have enough data to verify VN in agent
2026-07-28 18:10:53,907 - DEBUG - VRF ids for VN ctest-vn-31465197: {}
2026-07-28 18:10:53,907 - DEBUG - Requesting: https://10.0.0.185:8082/domains
2026-07-28 18:10:53,959 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1
2026-07-28 18:10:54,019 - DEBUG - Requesting: https://10.0.0.185:8082/project/9f6ed3c1-e559-4b5c-bdcd-8109de33be7a
2026-07-28 18:10:54,107 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/c34140b9-ccab-4c71-805e-b42d8f06fdf9
2026-07-28 18:10:54,168 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/c34140b9-ccab-4c71-805e-b42d8f06fdf9
2026-07-28 18:10:54,228 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/bbdead66-c0f6-4af0-9a51-3584dfeeb246
2026-07-28 18:10:54,283 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/bbdead66-c0f6-4af0-9a51-3584dfeeb246
2026-07-28 18:10:54,339 - DEBUG - Requesting: https://10.0.0.185:8082/route-target/be39df47-d43e-4216-adde-c0cb2a6d9613
2026-07-28 18:10:54,395 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-28 18:10:54,395 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/c34140b9-ccab-4c71-805e-b42d8f06fdf9
2026-07-28 18:10:54,452 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/bbdead66-c0f6-4af0-9a51-3584dfeeb246
2026-07-28 18:10:54,521 - INFO - Verified VN network id 12 for VN c34140b9-ccab-4c71-805e-b42d8f06fdf9
2026-07-28 18:10:54,521 - INFO - Verifications in API Server for VN ctest-vn-59915166 passed
2026-07-28 18:10:54,522 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/c34140b9-ccab-4c71-805e-b42d8f06fdf9
2026-07-28 18:10:54,580 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/bbdead66-c0f6-4af0-9a51-3584dfeeb246
2026-07-28 18:10:54,635 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/bbdead66-c0f6-4af0-9a51-3584dfeeb246
2026-07-28 18:10:54,687 - DEBUG - Requesting: https://10.0.0.185:8082/route-target/be39df47-d43e-4216-adde-c0cb2a6d9613
2026-07-28 18:10:54,788 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-59915166', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62551244', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14069597877629045873', 'uuid-lslong': '9250028792431705593'}, 'enable': 'true', 'created': '2026-07-28T18:10:49', 'last-modified': '2026-07-28T18:10:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.413342'}
2026-07-28 18:10:54,841 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-28 18:10:54,841 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59915166 passed
2026-07-28 18:10:54,841 - DEBUG - ====Verifying policy data for ctest-vn-59915166 in API_Server ======
2026-07-28 18:10:54,841 - DEBUG - Requesting: https://10.0.0.185:8082/domains
2026-07-28 18:10:54,894 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1
2026-07-28 18:10:54,955 - DEBUG - Requesting: https://10.0.0.185:8082/project/9f6ed3c1-e559-4b5c-bdcd-8109de33be7a
2026-07-28 18:10:55,040 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/c34140b9-ccab-4c71-805e-b42d8f06fdf9
2026-07-28 18:10:55,095 - DEBUG - ==>Verifying data for policy with id: fb16bb3d-cbed-412f-943d-72f0ec178f72, fqn: ['admin_domain', 'ctest-TestBasicPolicy-62551244', 'ctest-policy-allow-all-00226766']
2026-07-28 18:10:55,095 - INFO - VN ctest-vn-59915166 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-28 18:10:55,095 - DEBUG - Verifying the vn in opserver
2026-07-28 18:10:55,096 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-59915166 virtual network link through opserver 10.0.0.185
2026-07-28 18:10:55,096 - DEBUG - Requesting: https://10.0.0.185:8081/analytics/uves/virtual-networks
2026-07-28 18:10:55,150 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-59915166', 'href': 'https://10.0.0.185:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-59915166?flat'}
2026-07-28 18:10:55,151 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-62551244:ctest-vn-59915166 is found in opserver
2026-07-28 18:10:55,251 - DEBUG - Do not have enough data to verify VN in agent
2026-07-28 18:10:55,303 - DEBUG - VRF ids for VN ctest-vn-59915166: {}
2026-07-28 18:10:55,393 - DEBUG - Services list from nova: [