2026-06-17 12:47:09,557 - INFO - Domain Default found not creating
2026-06-17 12:47:09,705 - INFO - Project ctest-TestBasicPolicy-29258693 not found, creating it
2026-06-17 12:47:10,167 - INFO - Created Project:ctest-TestBasicPolicy-29258693, ID : 8fd9c2c6-2253-4a96-972a-54e94adc5488
2026-06-17 12:47:11,678 - INFO - ================================================================================
2026-06-17 12:47:11,678 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-17 12:47:11,678 - 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-06-17 12:47:11,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2026-06-17 12:47:11,934 - INFO - Initial checks done. Running the testcase now
2026-06-17 12:47:11,934 - INFO -
2026-06-17 12:47:12,510 - DEBUG - Response for create_network : {'network': {'id': 'dec8e556-8b61-4fd2-bc7f-383efd7ccca7', 'name': 'ctest-vn-94142482', 'tenant_id': '8fd9c2c622534a96972a54e94adc5488', 'project_id': '8fd9c2c622534a96972a54e94adc5488', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-vn-94142482'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:47:12,651 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5b84ffa-83f6-4fe8-9c08-2e70b92311de', 'name': '', 'tenant_id': '8fd9c2c622534a96972a54e94adc5488', 'network_id': 'dec8e556-8b61-4fd2-bc7f-383efd7ccca7', 'ip_version': 4, 'cidr': '5.138.39.64/26', 'allocation_pools': [{'start': '5.138.39.66', 'end': '5.138.39.126'}], 'gateway_ip': '5.138.39.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.138.39.66', 'tags': [], 'project_id': '8fd9c2c622534a96972a54e94adc5488'}}
2026-06-17 12:47:12,667 - INFO - Created VN ctest-vn-94142482
2026-06-17 12:47:12,719 - DEBUG - VN ctest-vn-94142482 UUID is dec8e556-8b61-4fd2-bc7f-383efd7ccca7
2026-06-17 12:47:13,054 - DEBUG - Response for create_network : {'network': {'id': 'f5f19484-279b-44cf-813b-ba8f33cb6db8', 'name': 'ctest-vn-98204037', 'tenant_id': '8fd9c2c622534a96972a54e94adc5488', 'project_id': '8fd9c2c622534a96972a54e94adc5488', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-vn-98204037'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:47:13,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '57eb1260-eaaf-4c5f-ab2d-043a443ef190', 'name': '', 'tenant_id': '8fd9c2c622534a96972a54e94adc5488', 'network_id': 'f5f19484-279b-44cf-813b-ba8f33cb6db8', 'ip_version': 4, 'cidr': '37.107.36.64/26', 'allocation_pools': [{'start': '37.107.36.66', 'end': '37.107.36.126'}], 'gateway_ip': '37.107.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.107.36.66', 'tags': [], 'project_id': '8fd9c2c622534a96972a54e94adc5488'}}
2026-06-17 12:47:13,308 - INFO - Created VN ctest-vn-98204037
2026-06-17 12:47:13,359 - DEBUG - VN ctest-vn-98204037 UUID is f5f19484-279b-44cf-813b-ba8f33cb6db8
2026-06-17 12:47:13,507 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-94142482, 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-29258693:ctest-vn-98204037, 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-06-17 12:47:13,794 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dec8e556-8b61-4fd2-bc7f-383efd7ccca7', 'name': 'ctest-vn-94142482', 'tenant_id': '8fd9c2c622534a96972a54e94adc5488', 'project_id': '8fd9c2c622534a96972a54e94adc5488', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5b84ffa-83f6-4fe8-9c08-2e70b92311de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-vn-94142482'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-policy-allow-all-29153296']], 'subnet_ipam': [{'subnet_cidr': '5.138.39.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:47:14,008 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5f19484-279b-44cf-813b-ba8f33cb6db8', 'name': 'ctest-vn-98204037', 'tenant_id': '8fd9c2c622534a96972a54e94adc5488', 'project_id': '8fd9c2c622534a96972a54e94adc5488', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57eb1260-eaaf-4c5f-ab2d-043a443ef190'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-vn-98204037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-policy-allow-all-29153296']], 'subnet_ipam': [{'subnet_cidr': '37.107.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 12:47:14,175 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-06-17 12:47:14,500 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-06-17 12:47:14,527 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e
2026-06-17 12:47:14,538 - DEBUG - Requesting: http://10.0.0.19:8082/project/8fd9c2c6-2253-4a96-972a-54e94adc5488
2026-06-17 12:47:14,613 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dec8e556-8b61-4fd2-bc7f-383efd7ccca7
2026-06-17 12:47:14,625 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dec8e556-8b61-4fd2-bc7f-383efd7ccca7
2026-06-17 12:47:14,633 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1aa34f80-f595-45ff-9db8-6cc20d7f2a97
2026-06-17 12:47:14,640 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1aa34f80-f595-45ff-9db8-6cc20d7f2a97
2026-06-17 12:47:14,646 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/bb26a7ca-93f2-499c-a078-f7b098f0ccf8
2026-06-17 12:47:14,652 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 12:47:14,652 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dec8e556-8b61-4fd2-bc7f-383efd7ccca7
2026-06-17 12:47:14,660 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1aa34f80-f595-45ff-9db8-6cc20d7f2a97
2026-06-17 12:47:14,671 - INFO - Verified VN network id 12 for VN dec8e556-8b61-4fd2-bc7f-383efd7ccca7
2026-06-17 12:47:14,671 - INFO - Verifications in API Server for VN ctest-vn-94142482 passed
2026-06-17 12:47:14,671 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dec8e556-8b61-4fd2-bc7f-383efd7ccca7
2026-06-17 12:47:14,679 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1aa34f80-f595-45ff-9db8-6cc20d7f2a97
2026-06-17 12:47:14,685 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1aa34f80-f595-45ff-9db8-6cc20d7f2a97
2026-06-17 12:47:14,691 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/bb26a7ca-93f2-499c-a078-f7b098f0ccf8
2026-06-17 12:47:14,701 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-94142482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29258693', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16053333031630491602', 'uuid-lslong': '13582636844364647591'}, 'enable': 'true', 'created': '2026-06-17T12:47:12', 'last-modified': '2026-06-17T12:47:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926236'}
2026-06-17 12:47:14,706 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 12:47:14,706 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94142482 passed
2026-06-17 12:47:14,707 - DEBUG - ====Verifying policy data for ctest-vn-94142482 in API_Server ======
2026-06-17 12:47:14,707 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-06-17 12:47:14,712 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e
2026-06-17 12:47:14,722 - DEBUG - Requesting: http://10.0.0.19:8082/project/8fd9c2c6-2253-4a96-972a-54e94adc5488
2026-06-17 12:47:14,786 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dec8e556-8b61-4fd2-bc7f-383efd7ccca7
2026-06-17 12:47:14,795 - DEBUG - ==>Verifying data for policy with id: 0e23e62b-404f-453b-b948-a3893ac1a97c, fqn: ['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-policy-allow-all-29153296']
2026-06-17 12:47:14,795 - INFO - VN ctest-vn-94142482 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 12:47:14,795 - DEBUG - Verifying the vn in opserver
2026-06-17 12:47:14,795 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-94142482 virtual network link through opserver 10.0.0.19
2026-06-17 12:47:14,795 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-06-17 12:47:15,113 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-06-17 12:47:15,161 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-94142482', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-94142482?flat'}
2026-06-17 12:47:15,161 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-94142482 is found in opserver
2026-06-17 12:47:15,170 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 12:47:15,174 - DEBUG - VRF ids for VN ctest-vn-94142482: {}
2026-06-17 12:47:15,174 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-06-17 12:47:15,179 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e
2026-06-17 12:47:15,189 - DEBUG - Requesting: http://10.0.0.19:8082/project/8fd9c2c6-2253-4a96-972a-54e94adc5488
2026-06-17 12:47:15,258 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f5f19484-279b-44cf-813b-ba8f33cb6db8
2026-06-17 12:47:15,268 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f5f19484-279b-44cf-813b-ba8f33cb6db8
2026-06-17 12:47:15,278 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c07deb6-8424-4207-b44d-17da2c5fa7c5
2026-06-17 12:47:15,285 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c07deb6-8424-4207-b44d-17da2c5fa7c5
2026-06-17 12:47:15,292 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/17bcca93-9609-42d4-88d5-f16ca793e833
2026-06-17 12:47:15,297 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 12:47:15,297 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f5f19484-279b-44cf-813b-ba8f33cb6db8
2026-06-17 12:47:15,306 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c07deb6-8424-4207-b44d-17da2c5fa7c5
2026-06-17 12:47:15,320 - INFO - Verified VN network id 13 for VN f5f19484-279b-44cf-813b-ba8f33cb6db8
2026-06-17 12:47:15,320 - INFO - Verifications in API Server for VN ctest-vn-98204037 passed
2026-06-17 12:47:15,320 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f5f19484-279b-44cf-813b-ba8f33cb6db8
2026-06-17 12:47:15,328 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c07deb6-8424-4207-b44d-17da2c5fa7c5
2026-06-17 12:47:15,335 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c07deb6-8424-4207-b44d-17da2c5fa7c5
2026-06-17 12:47:15,342 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/17bcca93-9609-42d4-88d5-f16ca793e833
2026-06-17 12:47:15,352 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-98204037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29258693', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17722109304000693455', 'uuid-lslong': '9312241778730692024'}, 'enable': 'true', 'created': '2026-06-17T12:47:13', 'last-modified': '2026-06-17T12:47:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361628'}
2026-06-17 12:47:15,358 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 12:47:15,358 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98204037 passed
2026-06-17 12:47:15,358 - DEBUG - ====Verifying policy data for ctest-vn-98204037 in API_Server ======
2026-06-17 12:47:15,358 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-06-17 12:47:15,363 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e
2026-06-17 12:47:15,375 - DEBUG - Requesting: http://10.0.0.19:8082/project/8fd9c2c6-2253-4a96-972a-54e94adc5488
2026-06-17 12:47:15,453 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f5f19484-279b-44cf-813b-ba8f33cb6db8
2026-06-17 12:47:15,461 - DEBUG - ==>Verifying data for policy with id: 0e23e62b-404f-453b-b948-a3893ac1a97c, fqn: ['default-domain', 'ctest-TestBasicPolicy-29258693', 'ctest-policy-allow-all-29153296']
2026-06-17 12:47:15,461 - INFO - VN ctest-vn-98204037 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 12:47:15,461 - DEBUG - Verifying the vn in opserver
2026-06-17 12:47:15,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-98204037 virtual network link through opserver 10.0.0.19
2026-06-17 12:47:15,461 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-06-17 12:47:15,471 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-98204037', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-98204037?flat'}
2026-06-17 12:47:15,471 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29258693:ctest-vn-98204037 is found in opserver
2026-06-17 12:47:15,479 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 12:47:15,483 - DEBUG - VRF ids for VN ctest-vn-98204037: {}
2026-06-17 12:47:15,537 - DEBUG - Services list from nova: [