2026-07-18 15:33:53,694 - INFO - Domain Default found not creating
2026-07-18 15:33:53,874 - INFO - Project ctest-TestBasicPolicy-78824251 not found, creating it
2026-07-18 15:33:54,404 - INFO - Created Project:ctest-TestBasicPolicy-78824251, ID : b7d26853-9f33-4303-b65e-174b8bb8ce9f
2026-07-18 15:33:56,044 - INFO - ================================================================================
2026-07-18 15:33:56,045 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-18 15:33:56,045 - 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-18 15:33:56,316 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-07-18 15:33:56,316 - INFO - Initial checks done. Running the testcase now
2026-07-18 15:33:56,316 - INFO -
2026-07-18 15:33:56,930 - DEBUG - Response for create_network : {'network': {'id': 'e1616a1f-4d62-4ea6-96e1-1c70d2987760', 'name': 'ctest-vn-38996587', 'tenant_id': 'b7d268539f334303b65e174b8bb8ce9f', 'project_id': 'b7d268539f334303b65e174b8bb8ce9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-vn-38996587'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:33:57,143 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de84ffb3-3c70-4f4e-889d-688eb822c1ca', 'name': '', 'tenant_id': 'b7d268539f334303b65e174b8bb8ce9f', 'network_id': 'e1616a1f-4d62-4ea6-96e1-1c70d2987760', 'ip_version': 4, 'cidr': '43.136.162.192/26', 'allocation_pools': [{'start': '43.136.162.194', 'end': '43.136.162.254'}], 'gateway_ip': '43.136.162.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.136.162.194', 'tags': [], 'project_id': 'b7d268539f334303b65e174b8bb8ce9f'}}
2026-07-18 15:33:57,164 - INFO - Created VN ctest-vn-38996587
2026-07-18 15:33:57,218 - DEBUG - VN ctest-vn-38996587 UUID is e1616a1f-4d62-4ea6-96e1-1c70d2987760
2026-07-18 15:33:57,555 - DEBUG - Response for create_network : {'network': {'id': '4b9f1ac3-785b-4bd5-9067-98b6febcc20e', 'name': 'ctest-vn-28032287', 'tenant_id': 'b7d268539f334303b65e174b8bb8ce9f', 'project_id': 'b7d268539f334303b65e174b8bb8ce9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-vn-28032287'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:33:57,726 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0fda5c6-124e-41e7-b616-2b6060350411', 'name': '', 'tenant_id': 'b7d268539f334303b65e174b8bb8ce9f', 'network_id': '4b9f1ac3-785b-4bd5-9067-98b6febcc20e', 'ip_version': 4, 'cidr': '177.53.129.192/26', 'allocation_pools': [{'start': '177.53.129.194', 'end': '177.53.129.254'}], 'gateway_ip': '177.53.129.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.53.129.194', 'tags': [], 'project_id': 'b7d268539f334303b65e174b8bb8ce9f'}}
2026-07-18 15:33:57,745 - INFO - Created VN ctest-vn-28032287
2026-07-18 15:33:57,798 - DEBUG - VN ctest-vn-28032287 UUID is 4b9f1ac3-785b-4bd5-9067-98b6febcc20e
2026-07-18 15:33:57,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-38996587, 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-78824251:ctest-vn-28032287, 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-18 15:33:58,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1616a1f-4d62-4ea6-96e1-1c70d2987760', 'name': 'ctest-vn-38996587', 'tenant_id': 'b7d268539f334303b65e174b8bb8ce9f', 'project_id': 'b7d268539f334303b65e174b8bb8ce9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de84ffb3-3c70-4f4e-889d-688eb822c1ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-vn-38996587'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-policy-allow-all-45759927']], 'subnet_ipam': [{'subnet_cidr': '43.136.162.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:33:58,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b9f1ac3-785b-4bd5-9067-98b6febcc20e', 'name': 'ctest-vn-28032287', 'tenant_id': 'b7d268539f334303b65e174b8bb8ce9f', 'project_id': 'b7d268539f334303b65e174b8bb8ce9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0fda5c6-124e-41e7-b616-2b6060350411'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-vn-28032287'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-policy-allow-all-45759927']], 'subnet_ipam': [{'subnet_cidr': '177.53.129.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:33:58,662 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 15:33:58,987 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 15:33:59,020 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e58a1f19-c2d3-440e-8eb2-eb82bf351285
2026-07-18 15:33:59,036 - DEBUG - Requesting: http://10.0.0.242:8082/project/b7d26853-9f33-4303-b65e-174b8bb8ce9f
2026-07-18 15:33:59,122 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e1616a1f-4d62-4ea6-96e1-1c70d2987760
2026-07-18 15:33:59,139 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e1616a1f-4d62-4ea6-96e1-1c70d2987760
2026-07-18 15:33:59,153 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7ac3692-4942-4275-80bc-0ec6cc5f9346
2026-07-18 15:33:59,162 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7ac3692-4942-4275-80bc-0ec6cc5f9346
2026-07-18 15:33:59,171 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4a05bfb9-2a7e-4105-9726-27658f24999c
2026-07-18 15:33:59,179 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 15:33:59,179 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e1616a1f-4d62-4ea6-96e1-1c70d2987760
2026-07-18 15:33:59,190 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7ac3692-4942-4275-80bc-0ec6cc5f9346
2026-07-18 15:33:59,205 - INFO - Verified VN network id 11 for VN e1616a1f-4d62-4ea6-96e1-1c70d2987760
2026-07-18 15:33:59,206 - INFO - Verifications in API Server for VN ctest-vn-38996587 passed
2026-07-18 15:33:59,206 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e1616a1f-4d62-4ea6-96e1-1c70d2987760
2026-07-18 15:33:59,221 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7ac3692-4942-4275-80bc-0ec6cc5f9346
2026-07-18 15:33:59,230 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e7ac3692-4942-4275-80bc-0ec6cc5f9346
2026-07-18 15:33:59,240 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4a05bfb9-2a7e-4105-9726-27658f24999c
2026-07-18 15:33:59,256 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-38996587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78824251', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16240378413949537958', 'uuid-lslong': '10872002246344210272'}, 'enable': 'true', 'created': '2026-07-18T15:33:56', 'last-modified': '2026-07-18T15:33:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042414'}
2026-07-18 15:33:59,264 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 15:33:59,264 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38996587 passed
2026-07-18 15:33:59,264 - DEBUG - ====Verifying policy data for ctest-vn-38996587 in API_Server ======
2026-07-18 15:33:59,264 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 15:33:59,271 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e58a1f19-c2d3-440e-8eb2-eb82bf351285
2026-07-18 15:33:59,286 - DEBUG - Requesting: http://10.0.0.242:8082/project/b7d26853-9f33-4303-b65e-174b8bb8ce9f
2026-07-18 15:33:59,364 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e1616a1f-4d62-4ea6-96e1-1c70d2987760
2026-07-18 15:33:59,377 - DEBUG - ==>Verifying data for policy with id: 65b58458-4226-4787-8173-9dda8c2a54d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-policy-allow-all-45759927']
2026-07-18 15:33:59,377 - INFO - VN ctest-vn-38996587 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 15:33:59,377 - DEBUG - Verifying the vn in opserver
2026-07-18 15:33:59,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-38996587 virtual network link through opserver 10.0.0.242
2026-07-18 15:33:59,377 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-07-18 15:33:59,721 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-07-18 15:33:59,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-38996587', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-38996587?flat'}
2026-07-18 15:33:59,781 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-38996587 is found in opserver
2026-07-18 15:33:59,792 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 15:33:59,798 - DEBUG - VRF ids for VN ctest-vn-38996587: {}
2026-07-18 15:33:59,798 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 15:33:59,805 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e58a1f19-c2d3-440e-8eb2-eb82bf351285
2026-07-18 15:33:59,816 - DEBUG - Requesting: http://10.0.0.242:8082/project/b7d26853-9f33-4303-b65e-174b8bb8ce9f
2026-07-18 15:33:59,894 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b9f1ac3-785b-4bd5-9067-98b6febcc20e
2026-07-18 15:33:59,907 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b9f1ac3-785b-4bd5-9067-98b6febcc20e
2026-07-18 15:33:59,917 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/895566e0-10d0-4c04-9c7f-b25d6d7b7857
2026-07-18 15:33:59,924 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/895566e0-10d0-4c04-9c7f-b25d6d7b7857
2026-07-18 15:33:59,932 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/36025ce9-afd5-490e-a900-8879b3c07029
2026-07-18 15:33:59,940 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 15:33:59,940 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b9f1ac3-785b-4bd5-9067-98b6febcc20e
2026-07-18 15:33:59,950 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/895566e0-10d0-4c04-9c7f-b25d6d7b7857
2026-07-18 15:33:59,968 - INFO - Verified VN network id 12 for VN 4b9f1ac3-785b-4bd5-9067-98b6febcc20e
2026-07-18 15:33:59,968 - INFO - Verifications in API Server for VN ctest-vn-28032287 passed
2026-07-18 15:33:59,968 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b9f1ac3-785b-4bd5-9067-98b6febcc20e
2026-07-18 15:33:59,978 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/895566e0-10d0-4c04-9c7f-b25d6d7b7857
2026-07-18 15:33:59,986 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/895566e0-10d0-4c04-9c7f-b25d6d7b7857
2026-07-18 15:33:59,995 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/36025ce9-afd5-490e-a900-8879b3c07029
2026-07-18 15:34:00,014 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-28032287', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78824251', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5449103500981783509', 'uuid-lslong': '10405453375788073486'}, 'enable': 'true', 'created': '2026-07-18T15:33:57', 'last-modified': '2026-07-18T15:33:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.555690'}
2026-07-18 15:34:00,022 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 15:34:00,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28032287 passed
2026-07-18 15:34:00,023 - DEBUG - ====Verifying policy data for ctest-vn-28032287 in API_Server ======
2026-07-18 15:34:00,023 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 15:34:00,030 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e58a1f19-c2d3-440e-8eb2-eb82bf351285
2026-07-18 15:34:00,045 - DEBUG - Requesting: http://10.0.0.242:8082/project/b7d26853-9f33-4303-b65e-174b8bb8ce9f
2026-07-18 15:34:00,127 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b9f1ac3-785b-4bd5-9067-98b6febcc20e
2026-07-18 15:34:00,138 - DEBUG - ==>Verifying data for policy with id: 65b58458-4226-4787-8173-9dda8c2a54d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-78824251', 'ctest-policy-allow-all-45759927']
2026-07-18 15:34:00,138 - INFO - VN ctest-vn-28032287 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 15:34:00,138 - DEBUG - Verifying the vn in opserver
2026-07-18 15:34:00,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-28032287 virtual network link through opserver 10.0.0.242
2026-07-18 15:34:00,138 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-07-18 15:34:00,150 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-28032287', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-28032287?flat'}
2026-07-18 15:34:00,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78824251:ctest-vn-28032287 is found in opserver
2026-07-18 15:34:00,161 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 15:34:00,167 - DEBUG - VRF ids for VN ctest-vn-28032287: {}
2026-07-18 15:34:00,242 - DEBUG - Services list from nova: [