2025-09-04 15:19:56,774 - INFO - Domain Default found not creating
2025-09-04 15:19:56,908 - INFO - Project ctest-TestBasicPolicy-60511530 not found, creating it
2025-09-04 15:19:57,349 - INFO - Created Project:ctest-TestBasicPolicy-60511530, ID : 0d6c1b77-a9c1-43ae-b56e-63fb05021219
2025-09-04 15:19:58,870 - INFO - ================================================================================
2025-09-04 15:19:58,870 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 15:19:58,870 - 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-09-04 15:19:59,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-04 15:19:59,126 - INFO - Initial checks done. Running the testcase now
2025-09-04 15:19:59,126 - INFO -
2025-09-04 15:19:59,705 - DEBUG - Response for create_network : {'network': {'id': '27e70808-6726-4132-96ee-51726892f2b4', 'name': 'ctest-vn-01939498', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-01939498'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 15:19:59,895 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fafdce28-fa3f-488d-8140-ac6aed635795', 'name': '', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'network_id': '27e70808-6726-4132-96ee-51726892f2b4', 'ip_version': 4, 'cidr': '171.50.219.0/26', 'allocation_pools': [{'start': '171.50.219.2', 'end': '171.50.219.62'}], 'gateway_ip': '171.50.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.50.219.2', 'tags': [], 'project_id': '0d6c1b77a9c143aeb56e63fb05021219'}}
2025-09-04 15:19:59,915 - INFO - Created VN ctest-vn-01939498
2025-09-04 15:19:59,969 - DEBUG - VN ctest-vn-01939498 UUID is 27e70808-6726-4132-96ee-51726892f2b4
2025-09-04 15:20:00,260 - DEBUG - Response for create_network : {'network': {'id': 'cab55c50-43ba-40ba-89ca-a1663d6d0bb2', 'name': 'ctest-vn-44219109', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-44219109'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 15:20:00,442 - DEBUG - Response for create_subnet : {'subnet': {'id': '19234572-283c-4dd8-ba10-349eca95cfc3', 'name': '', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'network_id': 'cab55c50-43ba-40ba-89ca-a1663d6d0bb2', 'ip_version': 4, 'cidr': '27.29.183.64/26', 'allocation_pools': [{'start': '27.29.183.66', 'end': '27.29.183.126'}], 'gateway_ip': '27.29.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.29.183.66', 'tags': [], 'project_id': '0d6c1b77a9c143aeb56e63fb05021219'}}
2025-09-04 15:20:00,460 - INFO - Created VN ctest-vn-44219109
2025-09-04 15:20:00,513 - DEBUG - VN ctest-vn-44219109 UUID is cab55c50-43ba-40ba-89ca-a1663d6d0bb2
2025-09-04 15:20:00,629 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498, 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-60511530:ctest-vn-44219109, 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-09-04 15:20:00,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27e70808-6726-4132-96ee-51726892f2b4', 'name': 'ctest-vn-01939498', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fafdce28-fa3f-488d-8140-ac6aed635795'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-01939498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687']], 'subnet_ipam': [{'subnet_cidr': '171.50.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 15:20:01,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cab55c50-43ba-40ba-89ca-a1663d6d0bb2', 'name': 'ctest-vn-44219109', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19234572-283c-4dd8-ba10-349eca95cfc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-44219109'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687']], 'subnet_ipam': [{'subnet_cidr': '27.29.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 15:20:01,333 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 15:20:01,670 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 15:20:01,701 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044
2025-09-04 15:20:01,714 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219
2025-09-04 15:20:01,791 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4
2025-09-04 15:20:01,804 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4
2025-09-04 15:20:01,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e
2025-09-04 15:20:01,820 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e
2025-09-04 15:20:01,826 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c75718aa-12c5-43a1-a2a4-d44908ac03ee
2025-09-04 15:20:01,833 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 15:20:01,833 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4
2025-09-04 15:20:01,842 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e
2025-09-04 15:20:01,858 - INFO - Verified VN network id 11 for VN 27e70808-6726-4132-96ee-51726892f2b4
2025-09-04 15:20:01,858 - INFO - Verifications in API Server for VN ctest-vn-01939498 passed
2025-09-04 15:20:01,858 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4
2025-09-04 15:20:01,868 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e
2025-09-04 15:20:01,875 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e
2025-09-04 15:20:01,882 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c75718aa-12c5-43a1-a2a4-d44908ac03ee
2025-09-04 15:20:01,895 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60511530', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2875275719282671922', 'uuid-lslong': '10875719701968908980'}, 'enable': 'true', 'created': '2025-09-04T15:19:59', 'last-modified': '2025-09-04T15:20:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982925'}
2025-09-04 15:20:01,901 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 15:20:01,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01939498 passed
2025-09-04 15:20:01,901 - DEBUG - ====Verifying policy data for ctest-vn-01939498 in API_Server ======
2025-09-04 15:20:01,901 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 15:20:01,906 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044
2025-09-04 15:20:01,917 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219
2025-09-04 15:20:01,990 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4
2025-09-04 15:20:01,999 - DEBUG - ==>Verifying data for policy with id: a28c464b-eb98-442f-a5ca-c1a079fa0b32, fqn: ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687']
2025-09-04 15:20:01,999 - INFO - VN ctest-vn-01939498 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 15:20:01,999 - DEBUG - Verifying the vn in opserver
2025-09-04 15:20:01,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498 virtual network link through opserver 10.0.0.22
2025-09-04 15:20:01,999 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-04 15:20:02,332 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-04 15:20:02,390 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498?flat'}
2025-09-04 15:20:02,390 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498 is found in opserver
2025-09-04 15:20:02,401 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 15:20:02,406 - DEBUG - VRF ids for VN ctest-vn-01939498: {}
2025-09-04 15:20:02,406 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 15:20:02,412 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044
2025-09-04 15:20:02,424 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219
2025-09-04 15:20:02,500 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2
2025-09-04 15:20:02,512 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2
2025-09-04 15:20:02,521 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94
2025-09-04 15:20:02,527 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94
2025-09-04 15:20:02,533 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e8c03aba-890c-4c9d-a627-2612fa4a54db
2025-09-04 15:20:02,539 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 15:20:02,539 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2
2025-09-04 15:20:02,548 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94
2025-09-04 15:20:02,560 - INFO - Verified VN network id 12 for VN cab55c50-43ba-40ba-89ca-a1663d6d0bb2
2025-09-04 15:20:02,560 - INFO - Verifications in API Server for VN ctest-vn-44219109 passed
2025-09-04 15:20:02,560 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2
2025-09-04 15:20:02,568 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94
2025-09-04 15:20:02,574 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94
2025-09-04 15:20:02,579 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e8c03aba-890c-4c9d-a627-2612fa4a54db
2025-09-04 15:20:02,589 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60511530', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14606682466249490618', 'uuid-lslong': '9928925788980972466'}, 'enable': 'true', 'created': '2025-09-04T15:20:00', 'last-modified': '2025-09-04T15:20:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.442389'}
2025-09-04 15:20:02,595 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 15:20:02,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44219109 passed
2025-09-04 15:20:02,597 - DEBUG - ====Verifying policy data for ctest-vn-44219109 in API_Server ======
2025-09-04 15:20:02,597 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-04 15:20:02,602 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044
2025-09-04 15:20:02,611 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219
2025-09-04 15:20:02,687 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2
2025-09-04 15:20:02,698 - DEBUG - ==>Verifying data for policy with id: a28c464b-eb98-442f-a5ca-c1a079fa0b32, fqn: ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687']
2025-09-04 15:20:02,698 - INFO - VN ctest-vn-44219109 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 15:20:02,698 - DEBUG - Verifying the vn in opserver
2025-09-04 15:20:02,698 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109 virtual network link through opserver 10.0.0.22
2025-09-04 15:20:02,698 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-04 15:20:02,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109?flat'}
2025-09-04 15:20:02,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109 is found in opserver
2025-09-04 15:20:02,718 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 15:20:02,723 - DEBUG - VRF ids for VN ctest-vn-44219109: {}
2025-09-04 15:20:02,782 - DEBUG - Services list from nova: [