2026-09-22 02:54:43,303 - INFO - Domain Default found not creating
2026-09-22 02:54:43,538 - INFO - Project ctest-TestBasicPolicy-75835549 not found, creating it
2026-09-22 02:54:44,084 - INFO - Created Project:ctest-TestBasicPolicy-75835549, ID : 59b794d9-d22f-4a42-b86c-bee83d4628fe
2026-09-22 02:54:45,779 - INFO - ================================================================================
2026-09-22 02:54:45,779 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-22 02:54:45,779 - 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-09-22 02:54:46,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with
2026-09-22 02:54:46,047 - INFO - Initial checks done. Running the testcase now
2026-09-22 02:54:46,047 - INFO -
2026-09-22 02:54:46,670 - DEBUG - Response for create_network : {'network': {'id': '30c70329-dba6-4023-8248-03c3520e1084', 'name': 'ctest-vn-33253718', 'tenant_id': '59b794d9d22f4a42b86cbee83d4628fe', 'project_id': '59b794d9d22f4a42b86cbee83d4628fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-vn-33253718'], 'port_security_enabled': True, 'description': ''}}
2026-09-22 02:54:46,922 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2f869c0-aef9-494d-89dd-0d644ad2fc37', 'name': '', 'tenant_id': '59b794d9d22f4a42b86cbee83d4628fe', 'network_id': '30c70329-dba6-4023-8248-03c3520e1084', 'ip_version': 4, 'cidr': '142.121.103.0/26', 'allocation_pools': [{'start': '142.121.103.2', 'end': '142.121.103.62'}], 'gateway_ip': '142.121.103.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.121.103.2', 'tags': [], 'project_id': '59b794d9d22f4a42b86cbee83d4628fe'}}
2026-09-22 02:54:46,944 - INFO - Created VN ctest-vn-33253718
2026-09-22 02:54:46,999 - DEBUG - VN ctest-vn-33253718 UUID is 30c70329-dba6-4023-8248-03c3520e1084
2026-09-22 02:54:47,362 - DEBUG - Response for create_network : {'network': {'id': 'e68044b8-2f5e-479c-84b5-bb14efb3dc17', 'name': 'ctest-vn-44123061', 'tenant_id': '59b794d9d22f4a42b86cbee83d4628fe', 'project_id': '59b794d9d22f4a42b86cbee83d4628fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-vn-44123061'], 'port_security_enabled': True, 'description': ''}}
2026-09-22 02:54:47,564 - DEBUG - Response for create_subnet : {'subnet': {'id': '686f527a-10a5-40d6-9554-2bc4f678c9e1', 'name': '', 'tenant_id': '59b794d9d22f4a42b86cbee83d4628fe', 'network_id': 'e68044b8-2f5e-479c-84b5-bb14efb3dc17', 'ip_version': 4, 'cidr': '151.34.86.0/26', 'allocation_pools': [{'start': '151.34.86.2', 'end': '151.34.86.62'}], 'gateway_ip': '151.34.86.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.34.86.2', 'tags': [], 'project_id': '59b794d9d22f4a42b86cbee83d4628fe'}}
2026-09-22 02:54:47,585 - INFO - Created VN ctest-vn-44123061
2026-09-22 02:54:47,647 - DEBUG - VN ctest-vn-44123061 UUID is e68044b8-2f5e-479c-84b5-bb14efb3dc17
2026-09-22 02:54:47,769 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-33253718, 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-75835549:ctest-vn-44123061, 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-09-22 02:54:48,114 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30c70329-dba6-4023-8248-03c3520e1084', 'name': 'ctest-vn-33253718', 'tenant_id': '59b794d9d22f4a42b86cbee83d4628fe', 'project_id': '59b794d9d22f4a42b86cbee83d4628fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c2f869c0-aef9-494d-89dd-0d644ad2fc37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-vn-33253718'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-policy-allow-all-34231074']], 'subnet_ipam': [{'subnet_cidr': '142.121.103.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-22 02:54:48,383 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e68044b8-2f5e-479c-84b5-bb14efb3dc17', 'name': 'ctest-vn-44123061', 'tenant_id': '59b794d9d22f4a42b86cbee83d4628fe', 'project_id': '59b794d9d22f4a42b86cbee83d4628fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['686f527a-10a5-40d6-9554-2bc4f678c9e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-vn-44123061'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-policy-allow-all-34231074']], 'subnet_ipam': [{'subnet_cidr': '151.34.86.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-22 02:54:48,547 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-22 02:54:48,882 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-22 02:54:48,915 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca
2026-09-22 02:54:48,930 - DEBUG - Requesting: http://10.0.0.185:8082/project/59b794d9-d22f-4a42-b86c-bee83d4628fe
2026-09-22 02:54:49,015 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/30c70329-dba6-4023-8248-03c3520e1084
2026-09-22 02:54:49,029 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/30c70329-dba6-4023-8248-03c3520e1084
2026-09-22 02:54:49,040 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d814b831-33b5-4680-9402-73d7e9e7f1d3
2026-09-22 02:54:49,051 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d814b831-33b5-4680-9402-73d7e9e7f1d3
2026-09-22 02:54:49,060 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/9c29ec81-d89a-4e5c-9883-afcf111cc0c4
2026-09-22 02:54:49,069 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-22 02:54:49,069 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/30c70329-dba6-4023-8248-03c3520e1084
2026-09-22 02:54:49,081 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d814b831-33b5-4680-9402-73d7e9e7f1d3
2026-09-22 02:54:49,101 - INFO - Verified VN network id 12 for VN 30c70329-dba6-4023-8248-03c3520e1084
2026-09-22 02:54:49,101 - INFO - Verifications in API Server for VN ctest-vn-33253718 passed
2026-09-22 02:54:49,101 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/30c70329-dba6-4023-8248-03c3520e1084
2026-09-22 02:54:49,114 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d814b831-33b5-4680-9402-73d7e9e7f1d3
2026-09-22 02:54:49,123 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d814b831-33b5-4680-9402-73d7e9e7f1d3
2026-09-22 02:54:49,132 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/9c29ec81-d89a-4e5c-9883-afcf111cc0c4
2026-09-22 02:54:49,147 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-33253718', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75835549', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3514781512499609635', 'uuid-lslong': '9387757560683958404'}, 'enable': 'true', 'created': '2026-09-22T02:54:46', 'last-modified': '2026-09-22T02:54:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061806'}
2026-09-22 02:54:49,156 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-22 02:54:49,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33253718 passed
2026-09-22 02:54:49,157 - DEBUG - ====Verifying policy data for ctest-vn-33253718 in API_Server ======
2026-09-22 02:54:49,157 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-22 02:54:49,164 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca
2026-09-22 02:54:49,175 - DEBUG - Requesting: http://10.0.0.185:8082/project/59b794d9-d22f-4a42-b86c-bee83d4628fe
2026-09-22 02:54:49,257 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/30c70329-dba6-4023-8248-03c3520e1084
2026-09-22 02:54:49,269 - DEBUG - ==>Verifying data for policy with id: 3440caa8-008b-40c7-a035-c786c4166264, fqn: ['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-policy-allow-all-34231074']
2026-09-22 02:54:49,269 - INFO - VN ctest-vn-33253718 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-22 02:54:49,269 - DEBUG - Verifying the vn in opserver
2026-09-22 02:54:49,269 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-33253718 virtual network link through opserver 10.0.0.185
2026-09-22 02:54:49,269 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-22 02:54:49,608 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-22 02:54:49,674 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-33253718', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-33253718?flat'}
2026-09-22 02:54:49,674 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-33253718 is found in opserver
2026-09-22 02:54:49,688 - DEBUG - Do not have enough data to verify VN in agent
2026-09-22 02:54:49,694 - DEBUG - VRF ids for VN ctest-vn-33253718: {}
2026-09-22 02:54:49,694 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-22 02:54:49,701 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca
2026-09-22 02:54:49,714 - DEBUG - Requesting: http://10.0.0.185:8082/project/59b794d9-d22f-4a42-b86c-bee83d4628fe
2026-09-22 02:54:49,796 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/e68044b8-2f5e-479c-84b5-bb14efb3dc17
2026-09-22 02:54:49,811 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/e68044b8-2f5e-479c-84b5-bb14efb3dc17
2026-09-22 02:54:49,823 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/83c2f40f-ed45-4e5d-9873-c6892dee836c
2026-09-22 02:54:49,834 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/83c2f40f-ed45-4e5d-9873-c6892dee836c
2026-09-22 02:54:49,842 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/a2867339-f421-42f5-ba46-b773653552eb
2026-09-22 02:54:49,850 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-22 02:54:49,851 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/e68044b8-2f5e-479c-84b5-bb14efb3dc17
2026-09-22 02:54:49,862 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/83c2f40f-ed45-4e5d-9873-c6892dee836c
2026-09-22 02:54:49,881 - INFO - Verified VN network id 13 for VN e68044b8-2f5e-479c-84b5-bb14efb3dc17
2026-09-22 02:54:49,881 - INFO - Verifications in API Server for VN ctest-vn-44123061 passed
2026-09-22 02:54:49,881 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/e68044b8-2f5e-479c-84b5-bb14efb3dc17
2026-09-22 02:54:49,895 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/83c2f40f-ed45-4e5d-9873-c6892dee836c
2026-09-22 02:54:49,903 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/83c2f40f-ed45-4e5d-9873-c6892dee836c
2026-09-22 02:54:49,915 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/a2867339-f421-42f5-ba46-b773653552eb
2026-09-22 02:54:49,932 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-44123061', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75835549', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16609350983601768348', 'uuid-lslong': '9562755082386398231'}, 'enable': 'true', 'created': '2026-09-22T02:54:47', 'last-modified': '2026-09-22T02:54:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.579746'}
2026-09-22 02:54:49,941 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-22 02:54:49,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44123061 passed
2026-09-22 02:54:49,941 - DEBUG - ====Verifying policy data for ctest-vn-44123061 in API_Server ======
2026-09-22 02:54:49,941 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-22 02:54:49,950 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca
2026-09-22 02:54:49,964 - DEBUG - Requesting: http://10.0.0.185:8082/project/59b794d9-d22f-4a42-b86c-bee83d4628fe
2026-09-22 02:54:50,041 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/e68044b8-2f5e-479c-84b5-bb14efb3dc17
2026-09-22 02:54:50,052 - DEBUG - ==>Verifying data for policy with id: 3440caa8-008b-40c7-a035-c786c4166264, fqn: ['default-domain', 'ctest-TestBasicPolicy-75835549', 'ctest-policy-allow-all-34231074']
2026-09-22 02:54:50,052 - INFO - VN ctest-vn-44123061 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-22 02:54:50,052 - DEBUG - Verifying the vn in opserver
2026-09-22 02:54:50,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-44123061 virtual network link through opserver 10.0.0.185
2026-09-22 02:54:50,052 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-22 02:54:50,062 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-44123061', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-44123061?flat'}
2026-09-22 02:54:50,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75835549:ctest-vn-44123061 is found in opserver
2026-09-22 02:54:50,074 - DEBUG - Do not have enough data to verify VN in agent
2026-09-22 02:54:50,080 - DEBUG - VRF ids for VN ctest-vn-44123061: {}
2026-09-22 02:54:50,147 - DEBUG - Services list from nova: [