2025-10-21 21:27:58,988 - INFO - Domain Default found not creating
2025-10-21 21:27:59,135 - INFO - Project ctest-TestBasicPolicy-92144210 not found, creating it
2025-10-21 21:27:59,570 - INFO - Created Project:ctest-TestBasicPolicy-92144210, ID : 00be1f62-5e3d-4dbf-9bf7-83527525fb9e
2025-10-21 21:28:01,083 - INFO - ================================================================================
2025-10-21 21:28:01,084 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 21:28:01,084 - 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-10-21 21:28:01,350 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-21 21:28:01,350 - INFO - Initial checks done. Running the testcase now
2025-10-21 21:28:01,350 - INFO -
2025-10-21 21:28:01,871 - DEBUG - Response for create_network : {'network': {'id': '2f8939be-7d96-4158-a282-635d6ba774d0', 'name': 'ctest-vn-71162272', 'tenant_id': '00be1f625e3d4dbf9bf783527525fb9e', 'project_id': '00be1f625e3d4dbf9bf783527525fb9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-vn-71162272'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:28:02,031 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a98bc0e-ec6d-47d7-a68c-025c94737028', 'name': '', 'tenant_id': '00be1f625e3d4dbf9bf783527525fb9e', 'network_id': '2f8939be-7d96-4158-a282-635d6ba774d0', 'ip_version': 4, 'cidr': '37.165.106.0/26', 'allocation_pools': [{'start': '37.165.106.2', 'end': '37.165.106.62'}], 'gateway_ip': '37.165.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.165.106.2', 'tags': [], 'project_id': '00be1f625e3d4dbf9bf783527525fb9e'}}
2025-10-21 21:28:02,050 - INFO - Created VN ctest-vn-71162272
2025-10-21 21:28:02,103 - DEBUG - VN ctest-vn-71162272 UUID is 2f8939be-7d96-4158-a282-635d6ba774d0
2025-10-21 21:28:02,395 - DEBUG - Response for create_network : {'network': {'id': '2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca', 'name': 'ctest-vn-01703123', 'tenant_id': '00be1f625e3d4dbf9bf783527525fb9e', 'project_id': '00be1f625e3d4dbf9bf783527525fb9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-vn-01703123'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:28:02,567 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7b27030-d3fa-4965-8b4a-b49e740b0e7b', 'name': '', 'tenant_id': '00be1f625e3d4dbf9bf783527525fb9e', 'network_id': '2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca', 'ip_version': 4, 'cidr': '163.226.1.192/26', 'allocation_pools': [{'start': '163.226.1.194', 'end': '163.226.1.254'}], 'gateway_ip': '163.226.1.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.226.1.194', 'tags': [], 'project_id': '00be1f625e3d4dbf9bf783527525fb9e'}}
2025-10-21 21:28:02,584 - INFO - Created VN ctest-vn-01703123
2025-10-21 21:28:02,635 - DEBUG - VN ctest-vn-01703123 UUID is 2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca
2025-10-21 21:28:02,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-71162272, 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-92144210:ctest-vn-01703123, 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-10-21 21:28:03,062 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f8939be-7d96-4158-a282-635d6ba774d0', 'name': 'ctest-vn-71162272', 'tenant_id': '00be1f625e3d4dbf9bf783527525fb9e', 'project_id': '00be1f625e3d4dbf9bf783527525fb9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a98bc0e-ec6d-47d7-a68c-025c94737028'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-vn-71162272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-policy-allow-all-64336845']], 'subnet_ipam': [{'subnet_cidr': '37.165.106.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:28:03,347 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca', 'name': 'ctest-vn-01703123', 'tenant_id': '00be1f625e3d4dbf9bf783527525fb9e', 'project_id': '00be1f625e3d4dbf9bf783527525fb9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7b27030-d3fa-4965-8b4a-b49e740b0e7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-vn-01703123'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-policy-allow-all-64336845']], 'subnet_ipam': [{'subnet_cidr': '163.226.1.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 21:28:03,511 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 21:28:03,822 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 21:28:03,851 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e
2025-10-21 21:28:03,862 - DEBUG - Requesting: http://10.0.0.254:8082/project/00be1f62-5e3d-4dbf-9bf7-83527525fb9e
2025-10-21 21:28:03,939 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f8939be-7d96-4158-a282-635d6ba774d0
2025-10-21 21:28:03,950 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f8939be-7d96-4158-a282-635d6ba774d0
2025-10-21 21:28:03,959 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff5ca8f5-fca3-4112-924d-7f1cf69d1453
2025-10-21 21:28:03,966 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff5ca8f5-fca3-4112-924d-7f1cf69d1453
2025-10-21 21:28:03,973 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af19eb2b-6516-4dfa-9018-d876aeec992f
2025-10-21 21:28:03,978 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 21:28:03,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f8939be-7d96-4158-a282-635d6ba774d0
2025-10-21 21:28:03,986 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff5ca8f5-fca3-4112-924d-7f1cf69d1453
2025-10-21 21:28:03,998 - INFO - Verified VN network id 10 for VN 2f8939be-7d96-4158-a282-635d6ba774d0
2025-10-21 21:28:03,998 - INFO - Verifications in API Server for VN ctest-vn-71162272 passed
2025-10-21 21:28:03,998 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f8939be-7d96-4158-a282-635d6ba774d0
2025-10-21 21:28:04,007 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff5ca8f5-fca3-4112-924d-7f1cf69d1453
2025-10-21 21:28:04,015 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff5ca8f5-fca3-4112-924d-7f1cf69d1453
2025-10-21 21:28:04,024 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af19eb2b-6516-4dfa-9018-d876aeec992f
2025-10-21 21:28:04,036 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-71162272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92144210', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3425332481905541464', 'uuid-lslong': '11710031234005955792'}, 'enable': 'true', 'created': '2025-10-21T21:28:01', 'last-modified': '2025-10-21T21:28:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999278'}
2025-10-21 21:28:04,041 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 21:28:04,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71162272 passed
2025-10-21 21:28:04,042 - DEBUG - ====Verifying policy data for ctest-vn-71162272 in API_Server ======
2025-10-21 21:28:04,042 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 21:28:04,047 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e
2025-10-21 21:28:04,057 - DEBUG - Requesting: http://10.0.0.254:8082/project/00be1f62-5e3d-4dbf-9bf7-83527525fb9e
2025-10-21 21:28:04,125 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2f8939be-7d96-4158-a282-635d6ba774d0
2025-10-21 21:28:04,134 - DEBUG - ==>Verifying data for policy with id: 11c15be3-55d0-426d-b4f8-b2c41f8a07db, fqn: ['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-policy-allow-all-64336845']
2025-10-21 21:28:04,134 - INFO - VN ctest-vn-71162272 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 21:28:04,134 - DEBUG - Verifying the vn in opserver
2025-10-21 21:28:04,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-71162272 virtual network link through opserver 10.0.0.254
2025-10-21 21:28:04,134 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 21:28:04,433 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 21:28:04,485 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-71162272', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-71162272?flat'}
2025-10-21 21:28:04,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-71162272 is found in opserver
2025-10-21 21:28:04,494 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 21:28:04,498 - DEBUG - VRF ids for VN ctest-vn-71162272: {}
2025-10-21 21:28:04,498 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 21:28:04,504 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e
2025-10-21 21:28:04,514 - DEBUG - Requesting: http://10.0.0.254:8082/project/00be1f62-5e3d-4dbf-9bf7-83527525fb9e
2025-10-21 21:28:04,587 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca
2025-10-21 21:28:04,599 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca
2025-10-21 21:28:04,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/85188712-cac9-4c0e-9e59-0d5fe52ef374
2025-10-21 21:28:04,614 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/85188712-cac9-4c0e-9e59-0d5fe52ef374
2025-10-21 21:28:04,621 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d0bfdee0-63fd-4336-8024-50b3cc131c86
2025-10-21 21:28:04,627 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 21:28:04,627 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca
2025-10-21 21:28:04,636 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/85188712-cac9-4c0e-9e59-0d5fe52ef374
2025-10-21 21:28:04,660 - INFO - Verified VN network id 11 for VN 2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca
2025-10-21 21:28:04,660 - INFO - Verifications in API Server for VN ctest-vn-01703123 passed
2025-10-21 21:28:04,660 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca
2025-10-21 21:28:04,669 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/85188712-cac9-4c0e-9e59-0d5fe52ef374
2025-10-21 21:28:04,676 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/85188712-cac9-4c0e-9e59-0d5fe52ef374
2025-10-21 21:28:04,683 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d0bfdee0-63fd-4336-8024-50b3cc131c86
2025-10-21 21:28:04,694 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-01703123', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92144210', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3331654828057513424', 'uuid-lslong': '9364924151608890314'}, 'enable': 'true', 'created': '2025-10-21T21:28:02', 'last-modified': '2025-10-21T21:28:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371328'}
2025-10-21 21:28:04,699 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 21:28:04,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01703123 passed
2025-10-21 21:28:04,699 - DEBUG - ====Verifying policy data for ctest-vn-01703123 in API_Server ======
2025-10-21 21:28:04,699 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-21 21:28:04,705 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e
2025-10-21 21:28:04,716 - DEBUG - Requesting: http://10.0.0.254:8082/project/00be1f62-5e3d-4dbf-9bf7-83527525fb9e
2025-10-21 21:28:04,784 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e3c6a6a-0c95-4dd0-81f6-e4e5fd1fd3ca
2025-10-21 21:28:04,792 - DEBUG - ==>Verifying data for policy with id: 11c15be3-55d0-426d-b4f8-b2c41f8a07db, fqn: ['default-domain', 'ctest-TestBasicPolicy-92144210', 'ctest-policy-allow-all-64336845']
2025-10-21 21:28:04,793 - INFO - VN ctest-vn-01703123 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 21:28:04,793 - DEBUG - Verifying the vn in opserver
2025-10-21 21:28:04,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-01703123 virtual network link through opserver 10.0.0.254
2025-10-21 21:28:04,793 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-21 21:28:04,801 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-01703123', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-01703123?flat'}
2025-10-21 21:28:04,801 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92144210:ctest-vn-01703123 is found in opserver
2025-10-21 21:28:04,811 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 21:28:04,815 - DEBUG - VRF ids for VN ctest-vn-01703123: {}
2025-10-21 21:28:04,872 - DEBUG - Services list from nova: [