2025-11-12 18:16:50,157 - INFO - Domain Default found not creating
2025-11-12 18:16:50,300 - INFO - Project ctest-TestBasicPolicy-93647558 not found, creating it
2025-11-12 18:16:50,722 - INFO - Created Project:ctest-TestBasicPolicy-93647558, ID : ba70510b-2fb3-4921-bf0e-262df76e5296
2025-11-12 18:16:52,083 - INFO - ================================================================================
2025-11-12 18:16:52,083 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-12 18:16:52,083 - 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-11-12 18:16:52,337 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-11-12 18:16:52,337 - INFO - Initial checks done. Running the testcase now
2025-11-12 18:16:52,337 - INFO -
2025-11-12 18:16:52,858 - DEBUG - Response for create_network : {'network': {'id': '74dc0af3-3c66-483c-bd41-4fe8e61fc17b', 'name': 'ctest-vn-37129719', 'tenant_id': 'ba70510b2fb34921bf0e262df76e5296', 'project_id': 'ba70510b2fb34921bf0e262df76e5296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-vn-37129719'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:16:53,022 - DEBUG - Response for create_subnet : {'subnet': {'id': '4cd6fd36-e94b-453e-aa14-dbecd20833a6', 'name': '', 'tenant_id': 'ba70510b2fb34921bf0e262df76e5296', 'network_id': '74dc0af3-3c66-483c-bd41-4fe8e61fc17b', 'ip_version': 4, 'cidr': '107.86.77.192/26', 'allocation_pools': [{'start': '107.86.77.194', 'end': '107.86.77.254'}], 'gateway_ip': '107.86.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.86.77.194', 'tags': [], 'project_id': 'ba70510b2fb34921bf0e262df76e5296'}}
2025-11-12 18:16:53,037 - INFO - Created VN ctest-vn-37129719
2025-11-12 18:16:53,088 - DEBUG - VN ctest-vn-37129719 UUID is 74dc0af3-3c66-483c-bd41-4fe8e61fc17b
2025-11-12 18:16:53,392 - DEBUG - Response for create_network : {'network': {'id': 'eb02518f-938a-47cd-8ab4-c8f0646cab97', 'name': 'ctest-vn-09127466', 'tenant_id': 'ba70510b2fb34921bf0e262df76e5296', 'project_id': 'ba70510b2fb34921bf0e262df76e5296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-vn-09127466'], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:16:53,539 - DEBUG - Response for create_subnet : {'subnet': {'id': '77b8556e-673f-4bf5-b621-81bc05e9d1bc', 'name': '', 'tenant_id': 'ba70510b2fb34921bf0e262df76e5296', 'network_id': 'eb02518f-938a-47cd-8ab4-c8f0646cab97', 'ip_version': 4, 'cidr': '122.118.185.64/26', 'allocation_pools': [{'start': '122.118.185.66', 'end': '122.118.185.126'}], 'gateway_ip': '122.118.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.118.185.66', 'tags': [], 'project_id': 'ba70510b2fb34921bf0e262df76e5296'}}
2025-11-12 18:16:53,554 - INFO - Created VN ctest-vn-09127466
2025-11-12 18:16:53,604 - DEBUG - VN ctest-vn-09127466 UUID is eb02518f-938a-47cd-8ab4-c8f0646cab97
2025-11-12 18:16:53,752 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-37129719, 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-93647558:ctest-vn-09127466, 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-11-12 18:16:54,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74dc0af3-3c66-483c-bd41-4fe8e61fc17b', 'name': 'ctest-vn-37129719', 'tenant_id': 'ba70510b2fb34921bf0e262df76e5296', 'project_id': 'ba70510b2fb34921bf0e262df76e5296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4cd6fd36-e94b-453e-aa14-dbecd20833a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-vn-37129719'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-policy-allow-all-53125548']], 'subnet_ipam': [{'subnet_cidr': '107.86.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:16:54,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb02518f-938a-47cd-8ab4-c8f0646cab97', 'name': 'ctest-vn-09127466', 'tenant_id': 'ba70510b2fb34921bf0e262df76e5296', 'project_id': 'ba70510b2fb34921bf0e262df76e5296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77b8556e-673f-4bf5-b621-81bc05e9d1bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-vn-09127466'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-policy-allow-all-53125548']], 'subnet_ipam': [{'subnet_cidr': '122.118.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-12 18:16:54,436 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 18:16:54,727 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 18:16:54,765 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3935e5ee-c7fa-4be7-8ba4-4cb6f24aacfa
2025-11-12 18:16:54,778 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba70510b-2fb3-4921-bf0e-262df76e5296
2025-11-12 18:16:54,844 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/74dc0af3-3c66-483c-bd41-4fe8e61fc17b
2025-11-12 18:16:54,854 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/74dc0af3-3c66-483c-bd41-4fe8e61fc17b
2025-11-12 18:16:54,862 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e243de35-001c-4122-a0cc-5d843b932916
2025-11-12 18:16:54,867 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e243de35-001c-4122-a0cc-5d843b932916
2025-11-12 18:16:54,873 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dd755a3d-c93b-4431-8536-50f8d0a33c37
2025-11-12 18:16:54,877 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 18:16:54,877 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/74dc0af3-3c66-483c-bd41-4fe8e61fc17b
2025-11-12 18:16:54,885 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e243de35-001c-4122-a0cc-5d843b932916
2025-11-12 18:16:54,896 - INFO - Verified VN network id 11 for VN 74dc0af3-3c66-483c-bd41-4fe8e61fc17b
2025-11-12 18:16:54,897 - INFO - Verifications in API Server for VN ctest-vn-37129719 passed
2025-11-12 18:16:54,897 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/74dc0af3-3c66-483c-bd41-4fe8e61fc17b
2025-11-12 18:16:54,903 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e243de35-001c-4122-a0cc-5d843b932916
2025-11-12 18:16:54,908 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e243de35-001c-4122-a0cc-5d843b932916
2025-11-12 18:16:54,913 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/dd755a3d-c93b-4431-8536-50f8d0a33c37
2025-11-12 18:16:54,922 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-37129719', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93647558', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8420617443082651708', 'uuid-lslong': '13637269008366420347'}, 'enable': 'true', 'created': '2025-11-12T18:16:52', 'last-modified': '2025-11-12T18:16:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913672'}
2025-11-12 18:16:54,927 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-12 18:16:54,927 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37129719 passed
2025-11-12 18:16:54,928 - DEBUG - ====Verifying policy data for ctest-vn-37129719 in API_Server ======
2025-11-12 18:16:54,928 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 18:16:54,932 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3935e5ee-c7fa-4be7-8ba4-4cb6f24aacfa
2025-11-12 18:16:54,940 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba70510b-2fb3-4921-bf0e-262df76e5296
2025-11-12 18:16:55,007 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/74dc0af3-3c66-483c-bd41-4fe8e61fc17b
2025-11-12 18:16:55,014 - DEBUG - ==>Verifying data for policy with id: b63f1927-351b-4067-a3a2-8943c704fd07, fqn: ['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-policy-allow-all-53125548']
2025-11-12 18:16:55,015 - INFO - VN ctest-vn-37129719 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 18:16:55,015 - DEBUG - Verifying the vn in opserver
2025-11-12 18:16:55,015 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-37129719 virtual network link through opserver 10.0.0.22
2025-11-12 18:16:55,015 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-12 18:16:55,303 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-12 18:16:55,358 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-37129719', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-37129719?flat'}
2025-11-12 18:16:55,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-37129719 is found in opserver
2025-11-12 18:16:55,367 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 18:16:55,371 - DEBUG - VRF ids for VN ctest-vn-37129719: {}
2025-11-12 18:16:55,371 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 18:16:55,376 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3935e5ee-c7fa-4be7-8ba4-4cb6f24aacfa
2025-11-12 18:16:55,384 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba70510b-2fb3-4921-bf0e-262df76e5296
2025-11-12 18:16:55,453 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eb02518f-938a-47cd-8ab4-c8f0646cab97
2025-11-12 18:16:55,463 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eb02518f-938a-47cd-8ab4-c8f0646cab97
2025-11-12 18:16:55,470 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a386bd59-ad8d-49b4-be16-989410bd6151
2025-11-12 18:16:55,476 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a386bd59-ad8d-49b4-be16-989410bd6151
2025-11-12 18:16:55,481 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6bf5b5b5-9a61-4138-92cf-93f77c5d1a6c
2025-11-12 18:16:55,487 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 18:16:55,487 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eb02518f-938a-47cd-8ab4-c8f0646cab97
2025-11-12 18:16:55,494 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a386bd59-ad8d-49b4-be16-989410bd6151
2025-11-12 18:16:55,505 - INFO - Verified VN network id 12 for VN eb02518f-938a-47cd-8ab4-c8f0646cab97
2025-11-12 18:16:55,505 - INFO - Verifications in API Server for VN ctest-vn-09127466 passed
2025-11-12 18:16:55,505 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eb02518f-938a-47cd-8ab4-c8f0646cab97
2025-11-12 18:16:55,513 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a386bd59-ad8d-49b4-be16-989410bd6151
2025-11-12 18:16:55,519 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a386bd59-ad8d-49b4-be16-989410bd6151
2025-11-12 18:16:55,524 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6bf5b5b5-9a61-4138-92cf-93f77c5d1a6c
2025-11-12 18:16:55,533 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-09127466', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93647558', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16934187225963972557', 'uuid-lslong': '9994834407844522903'}, 'enable': 'true', 'created': '2025-11-12T18:16:53', 'last-modified': '2025-11-12T18:16:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.302934'}
2025-11-12 18:16:55,538 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-12 18:16:55,539 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09127466 passed
2025-11-12 18:16:55,539 - DEBUG - ====Verifying policy data for ctest-vn-09127466 in API_Server ======
2025-11-12 18:16:55,539 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-12 18:16:55,543 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3935e5ee-c7fa-4be7-8ba4-4cb6f24aacfa
2025-11-12 18:16:55,551 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba70510b-2fb3-4921-bf0e-262df76e5296
2025-11-12 18:16:55,613 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eb02518f-938a-47cd-8ab4-c8f0646cab97
2025-11-12 18:16:55,620 - DEBUG - ==>Verifying data for policy with id: b63f1927-351b-4067-a3a2-8943c704fd07, fqn: ['default-domain', 'ctest-TestBasicPolicy-93647558', 'ctest-policy-allow-all-53125548']
2025-11-12 18:16:55,620 - INFO - VN ctest-vn-09127466 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-12 18:16:55,620 - DEBUG - Verifying the vn in opserver
2025-11-12 18:16:55,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-09127466 virtual network link through opserver 10.0.0.22
2025-11-12 18:16:55,620 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-12 18:16:55,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-09127466', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-09127466?flat'}
2025-11-12 18:16:55,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93647558:ctest-vn-09127466 is found in opserver
2025-11-12 18:16:55,635 - DEBUG - Do not have enough data to verify VN in agent
2025-11-12 18:16:55,639 - DEBUG - VRF ids for VN ctest-vn-09127466: {}
2025-11-12 18:16:55,687 - DEBUG - Services list from nova: [