2026-01-06 09:15:32,869 - INFO - Domain Default found not creating
2026-01-06 09:15:33,020 - INFO - Project ctest-TestBasicPolicy-24189815 not found, creating it
2026-01-06 09:15:33,469 - INFO - Created Project:ctest-TestBasicPolicy-24189815, ID : 55de1c94-5129-41af-a2a0-ac5131965918
2026-01-06 09:15:34,912 - INFO - ================================================================================
2026-01-06 09:15:34,912 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-06 09:15:34,912 - 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-01-06 09:15:35,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-06 09:15:35,165 - INFO - Initial checks done. Running the testcase now
2026-01-06 09:15:35,165 - INFO -
2026-01-06 09:15:35,699 - DEBUG - Response for create_network : {'network': {'id': '4e073cd9-b217-41f6-9fe3-d10cfa98e0e3', 'name': 'ctest-vn-67535811', 'tenant_id': '55de1c94512941afa2a0ac5131965918', 'project_id': '55de1c94512941afa2a0ac5131965918', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-vn-67535811'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 09:15:35,879 - DEBUG - Response for create_subnet : {'subnet': {'id': '64349205-7d9a-422d-bcdc-cfe0159ffc4d', 'name': '', 'tenant_id': '55de1c94512941afa2a0ac5131965918', 'network_id': '4e073cd9-b217-41f6-9fe3-d10cfa98e0e3', 'ip_version': 4, 'cidr': '149.31.147.128/26', 'allocation_pools': [{'start': '149.31.147.130', 'end': '149.31.147.190'}], 'gateway_ip': '149.31.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.31.147.130', 'tags': [], 'project_id': '55de1c94512941afa2a0ac5131965918'}}
2026-01-06 09:15:35,897 - INFO - Created VN ctest-vn-67535811
2026-01-06 09:15:35,952 - DEBUG - VN ctest-vn-67535811 UUID is 4e073cd9-b217-41f6-9fe3-d10cfa98e0e3
2026-01-06 09:15:36,283 - DEBUG - Response for create_network : {'network': {'id': '4a550af9-9212-4125-aad0-100c09750ab9', 'name': 'ctest-vn-89581512', 'tenant_id': '55de1c94512941afa2a0ac5131965918', 'project_id': '55de1c94512941afa2a0ac5131965918', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-vn-89581512'], 'port_security_enabled': True, 'description': ''}}
2026-01-06 09:15:36,456 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c256c1c-f203-44db-8c61-83365eae2d52', 'name': '', 'tenant_id': '55de1c94512941afa2a0ac5131965918', 'network_id': '4a550af9-9212-4125-aad0-100c09750ab9', 'ip_version': 4, 'cidr': '206.83.159.0/26', 'allocation_pools': [{'start': '206.83.159.2', 'end': '206.83.159.62'}], 'gateway_ip': '206.83.159.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.83.159.2', 'tags': [], 'project_id': '55de1c94512941afa2a0ac5131965918'}}
2026-01-06 09:15:36,473 - INFO - Created VN ctest-vn-89581512
2026-01-06 09:15:36,524 - DEBUG - VN ctest-vn-89581512 UUID is 4a550af9-9212-4125-aad0-100c09750ab9
2026-01-06 09:15:36,671 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-67535811, 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-24189815:ctest-vn-89581512, 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-01-06 09:15:36,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e073cd9-b217-41f6-9fe3-d10cfa98e0e3', 'name': 'ctest-vn-67535811', 'tenant_id': '55de1c94512941afa2a0ac5131965918', 'project_id': '55de1c94512941afa2a0ac5131965918', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64349205-7d9a-422d-bcdc-cfe0159ffc4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-vn-67535811'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-policy-allow-all-28062513']], 'subnet_ipam': [{'subnet_cidr': '149.31.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 09:15:37,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a550af9-9212-4125-aad0-100c09750ab9', 'name': 'ctest-vn-89581512', 'tenant_id': '55de1c94512941afa2a0ac5131965918', 'project_id': '55de1c94512941afa2a0ac5131965918', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c256c1c-f203-44db-8c61-83365eae2d52'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-vn-89581512'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-policy-allow-all-28062513']], 'subnet_ipam': [{'subnet_cidr': '206.83.159.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-06 09:15:37,299 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 09:15:37,596 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 09:15:37,623 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c
2026-01-06 09:15:37,635 - DEBUG - Requesting: http://10.0.0.38:8082/project/55de1c94-5129-41af-a2a0-ac5131965918
2026-01-06 09:15:37,703 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4e073cd9-b217-41f6-9fe3-d10cfa98e0e3
2026-01-06 09:15:37,712 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4e073cd9-b217-41f6-9fe3-d10cfa98e0e3
2026-01-06 09:15:37,720 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da416660-11a3-4345-a3de-f781e35c4a7a
2026-01-06 09:15:37,725 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da416660-11a3-4345-a3de-f781e35c4a7a
2026-01-06 09:15:37,730 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eedb5db5-00cd-485c-94f0-55720cac9993
2026-01-06 09:15:37,735 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 09:15:37,736 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4e073cd9-b217-41f6-9fe3-d10cfa98e0e3
2026-01-06 09:15:37,743 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da416660-11a3-4345-a3de-f781e35c4a7a
2026-01-06 09:15:37,754 - INFO - Verified VN network id 12 for VN 4e073cd9-b217-41f6-9fe3-d10cfa98e0e3
2026-01-06 09:15:37,754 - INFO - Verifications in API Server for VN ctest-vn-67535811 passed
2026-01-06 09:15:37,754 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4e073cd9-b217-41f6-9fe3-d10cfa98e0e3
2026-01-06 09:15:37,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da416660-11a3-4345-a3de-f781e35c4a7a
2026-01-06 09:15:37,767 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da416660-11a3-4345-a3de-f781e35c4a7a
2026-01-06 09:15:37,773 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/eedb5db5-00cd-485c-94f0-55720cac9993
2026-01-06 09:15:37,783 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-67535811', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24189815', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5622529565488792054', 'uuid-lslong': '11521282125417996515'}, 'enable': 'true', 'created': '2026-01-06T09:15:35', 'last-modified': '2026-01-06T09:15:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.854585'}
2026-01-06 09:15:37,788 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-06 09:15:37,788 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67535811 passed
2026-01-06 09:15:37,788 - DEBUG - ====Verifying policy data for ctest-vn-67535811 in API_Server ======
2026-01-06 09:15:37,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 09:15:37,793 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c
2026-01-06 09:15:37,802 - DEBUG - Requesting: http://10.0.0.38:8082/project/55de1c94-5129-41af-a2a0-ac5131965918
2026-01-06 09:15:37,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4e073cd9-b217-41f6-9fe3-d10cfa98e0e3
2026-01-06 09:15:37,880 - DEBUG - ==>Verifying data for policy with id: 70413ad9-57be-4dca-9ed7-f46e39573b42, fqn: ['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-policy-allow-all-28062513']
2026-01-06 09:15:37,881 - INFO - VN ctest-vn-67535811 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 09:15:37,881 - DEBUG - Verifying the vn in opserver
2026-01-06 09:15:37,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-67535811 virtual network link through opserver 10.0.0.38
2026-01-06 09:15:37,881 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-06 09:15:38,170 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-06 09:15:38,232 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-67535811', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-67535811?flat'}
2026-01-06 09:15:38,232 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-67535811 is found in opserver
2026-01-06 09:15:38,241 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 09:15:38,245 - DEBUG - VRF ids for VN ctest-vn-67535811: {}
2026-01-06 09:15:38,245 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 09:15:38,250 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c
2026-01-06 09:15:38,260 - DEBUG - Requesting: http://10.0.0.38:8082/project/55de1c94-5129-41af-a2a0-ac5131965918
2026-01-06 09:15:38,329 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a550af9-9212-4125-aad0-100c09750ab9
2026-01-06 09:15:38,340 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a550af9-9212-4125-aad0-100c09750ab9
2026-01-06 09:15:38,351 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6e6c1139-9984-431d-8f0d-b90212a1d7dd
2026-01-06 09:15:38,358 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6e6c1139-9984-431d-8f0d-b90212a1d7dd
2026-01-06 09:15:38,364 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a03aeb0-4f7d-4eba-93b1-0fea416bbb93
2026-01-06 09:15:38,369 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 09:15:38,369 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a550af9-9212-4125-aad0-100c09750ab9
2026-01-06 09:15:38,377 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6e6c1139-9984-431d-8f0d-b90212a1d7dd
2026-01-06 09:15:38,390 - INFO - Verified VN network id 13 for VN 4a550af9-9212-4125-aad0-100c09750ab9
2026-01-06 09:15:38,390 - INFO - Verifications in API Server for VN ctest-vn-89581512 passed
2026-01-06 09:15:38,390 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a550af9-9212-4125-aad0-100c09750ab9
2026-01-06 09:15:38,398 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6e6c1139-9984-431d-8f0d-b90212a1d7dd
2026-01-06 09:15:38,404 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6e6c1139-9984-431d-8f0d-b90212a1d7dd
2026-01-06 09:15:38,411 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8a03aeb0-4f7d-4eba-93b1-0fea416bbb93
2026-01-06 09:15:38,421 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-89581512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24189815', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5356199398840877349', 'uuid-lslong': '12308355425487882937'}, 'enable': 'true', 'created': '2026-01-06T09:15:36', 'last-modified': '2026-01-06T09:15:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.265817'}
2026-01-06 09:15:38,427 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-06 09:15:38,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89581512 passed
2026-01-06 09:15:38,427 - DEBUG - ====Verifying policy data for ctest-vn-89581512 in API_Server ======
2026-01-06 09:15:38,427 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-06 09:15:38,432 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fc2257cf-d573-4534-bfb0-b13b1227927c
2026-01-06 09:15:38,441 - DEBUG - Requesting: http://10.0.0.38:8082/project/55de1c94-5129-41af-a2a0-ac5131965918
2026-01-06 09:15:38,510 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a550af9-9212-4125-aad0-100c09750ab9
2026-01-06 09:15:38,518 - DEBUG - ==>Verifying data for policy with id: 70413ad9-57be-4dca-9ed7-f46e39573b42, fqn: ['default-domain', 'ctest-TestBasicPolicy-24189815', 'ctest-policy-allow-all-28062513']
2026-01-06 09:15:38,518 - INFO - VN ctest-vn-89581512 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-06 09:15:38,518 - DEBUG - Verifying the vn in opserver
2026-01-06 09:15:38,518 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-89581512 virtual network link through opserver 10.0.0.38
2026-01-06 09:15:38,518 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-06 09:15:38,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-89581512', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-89581512?flat'}
2026-01-06 09:15:38,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24189815:ctest-vn-89581512 is found in opserver
2026-01-06 09:15:38,535 - DEBUG - Do not have enough data to verify VN in agent
2026-01-06 09:15:38,539 - DEBUG - VRF ids for VN ctest-vn-89581512: {}
2026-01-06 09:15:38,592 - DEBUG - Services list from nova: [