2026-01-28 20:34:41,404 - INFO - Domain Default found not creating
2026-01-28 20:34:41,557 - INFO - Project ctest-TestBasicPolicy-99655421 not found, creating it
2026-01-28 20:34:41,992 - INFO - Created Project:ctest-TestBasicPolicy-99655421, ID : 81aa32a3-98ba-4b42-9301-f7e5d621adfb
2026-01-28 20:34:43,583 - INFO - ================================================================================
2026-01-28 20:34:43,583 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 20:34:43,584 - 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-28 20:34:43,838 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-01-28 20:34:43,838 - INFO - Initial checks done. Running the testcase now
2026-01-28 20:34:43,838 - INFO -
2026-01-28 20:34:44,443 - DEBUG - Response for create_network : {'network': {'id': 'dcf13c9a-328b-4756-8a34-5d151b6e914d', 'name': 'ctest-vn-63565752', 'tenant_id': '81aa32a398ba4b429301f7e5d621adfb', 'project_id': '81aa32a398ba4b429301f7e5d621adfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-vn-63565752'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 20:34:44,659 - DEBUG - Response for create_subnet : {'subnet': {'id': '612bb07c-0ec1-4ec5-ad05-c696459775a3', 'name': '', 'tenant_id': '81aa32a398ba4b429301f7e5d621adfb', 'network_id': 'dcf13c9a-328b-4756-8a34-5d151b6e914d', 'ip_version': 4, 'cidr': '24.170.99.64/26', 'allocation_pools': [{'start': '24.170.99.66', 'end': '24.170.99.126'}], 'gateway_ip': '24.170.99.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.170.99.66', 'tags': [], 'project_id': '81aa32a398ba4b429301f7e5d621adfb'}}
2026-01-28 20:34:44,677 - INFO - Created VN ctest-vn-63565752
2026-01-28 20:34:44,729 - DEBUG - VN ctest-vn-63565752 UUID is dcf13c9a-328b-4756-8a34-5d151b6e914d
2026-01-28 20:34:45,043 - DEBUG - Response for create_network : {'network': {'id': 'e7b99b74-62cd-4a70-b79e-9497e95df262', 'name': 'ctest-vn-24521066', 'tenant_id': '81aa32a398ba4b429301f7e5d621adfb', 'project_id': '81aa32a398ba4b429301f7e5d621adfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-vn-24521066'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 20:34:45,224 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd64db25f-978b-4c22-9f6f-6d0819ff5fe7', 'name': '', 'tenant_id': '81aa32a398ba4b429301f7e5d621adfb', 'network_id': 'e7b99b74-62cd-4a70-b79e-9497e95df262', 'ip_version': 4, 'cidr': '51.135.10.64/26', 'allocation_pools': [{'start': '51.135.10.66', 'end': '51.135.10.126'}], 'gateway_ip': '51.135.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.135.10.66', 'tags': [], 'project_id': '81aa32a398ba4b429301f7e5d621adfb'}}
2026-01-28 20:34:45,242 - INFO - Created VN ctest-vn-24521066
2026-01-28 20:34:45,292 - DEBUG - VN ctest-vn-24521066 UUID is e7b99b74-62cd-4a70-b79e-9497e95df262
2026-01-28 20:34:45,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-63565752, 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-99655421:ctest-vn-24521066, 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-28 20:34:45,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dcf13c9a-328b-4756-8a34-5d151b6e914d', 'name': 'ctest-vn-63565752', 'tenant_id': '81aa32a398ba4b429301f7e5d621adfb', 'project_id': '81aa32a398ba4b429301f7e5d621adfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['612bb07c-0ec1-4ec5-ad05-c696459775a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-vn-63565752'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-policy-allow-all-21077324']], 'subnet_ipam': [{'subnet_cidr': '24.170.99.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 20:34:45,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7b99b74-62cd-4a70-b79e-9497e95df262', 'name': 'ctest-vn-24521066', 'tenant_id': '81aa32a398ba4b429301f7e5d621adfb', 'project_id': '81aa32a398ba4b429301f7e5d621adfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d64db25f-978b-4c22-9f6f-6d0819ff5fe7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-vn-24521066'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-policy-allow-all-21077324']], 'subnet_ipam': [{'subnet_cidr': '51.135.10.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 20:34:46,145 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 20:34:46,484 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 20:34:46,513 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c13699c4-7e90-4a3c-b416-55ec6d6d1c27
2026-01-28 20:34:46,525 - DEBUG - Requesting: http://10.0.0.50:8082/project/81aa32a3-98ba-4b42-9301-f7e5d621adfb
2026-01-28 20:34:46,601 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcf13c9a-328b-4756-8a34-5d151b6e914d
2026-01-28 20:34:46,611 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcf13c9a-328b-4756-8a34-5d151b6e914d
2026-01-28 20:34:46,620 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3c31469-f9f9-4df4-abbc-14a016fe2e8b
2026-01-28 20:34:46,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3c31469-f9f9-4df4-abbc-14a016fe2e8b
2026-01-28 20:34:46,633 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8c5449a-4ea1-4177-8b0e-58a0e63c0996
2026-01-28 20:34:46,638 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 20:34:46,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcf13c9a-328b-4756-8a34-5d151b6e914d
2026-01-28 20:34:46,646 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3c31469-f9f9-4df4-abbc-14a016fe2e8b
2026-01-28 20:34:46,659 - INFO - Verified VN network id 11 for VN dcf13c9a-328b-4756-8a34-5d151b6e914d
2026-01-28 20:34:46,659 - INFO - Verifications in API Server for VN ctest-vn-63565752 passed
2026-01-28 20:34:46,659 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcf13c9a-328b-4756-8a34-5d151b6e914d
2026-01-28 20:34:46,668 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3c31469-f9f9-4df4-abbc-14a016fe2e8b
2026-01-28 20:34:46,675 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3c31469-f9f9-4df4-abbc-14a016fe2e8b
2026-01-28 20:34:46,681 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8c5449a-4ea1-4177-8b0e-58a0e63c0996
2026-01-28 20:34:46,692 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-63565752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99655421', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15920572790702032726', 'uuid-lslong': '9958687021258936653'}, 'enable': 'true', 'created': '2026-01-28T20:34:44', 'last-modified': '2026-01-28T20:34:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001379'}
2026-01-28 20:34:46,701 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 20:34:46,701 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63565752 passed
2026-01-28 20:34:46,701 - DEBUG - ====Verifying policy data for ctest-vn-63565752 in API_Server ======
2026-01-28 20:34:46,701 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 20:34:46,707 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c13699c4-7e90-4a3c-b416-55ec6d6d1c27
2026-01-28 20:34:46,719 - DEBUG - Requesting: http://10.0.0.50:8082/project/81aa32a3-98ba-4b42-9301-f7e5d621adfb
2026-01-28 20:34:46,795 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dcf13c9a-328b-4756-8a34-5d151b6e914d
2026-01-28 20:34:46,806 - DEBUG - ==>Verifying data for policy with id: 104af89d-90ba-4e9b-85e6-eec91a25f654, fqn: ['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-policy-allow-all-21077324']
2026-01-28 20:34:46,807 - INFO - VN ctest-vn-63565752 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 20:34:46,807 - DEBUG - Verifying the vn in opserver
2026-01-28 20:34:46,807 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-63565752 virtual network link through opserver 10.0.0.50
2026-01-28 20:34:46,807 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-28 20:34:47,138 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-28 20:34:47,202 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-63565752', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-63565752?flat'}
2026-01-28 20:34:47,202 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-63565752 is found in opserver
2026-01-28 20:34:47,215 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 20:34:47,220 - DEBUG - VRF ids for VN ctest-vn-63565752: {}
2026-01-28 20:34:47,220 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 20:34:47,225 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c13699c4-7e90-4a3c-b416-55ec6d6d1c27
2026-01-28 20:34:47,236 - DEBUG - Requesting: http://10.0.0.50:8082/project/81aa32a3-98ba-4b42-9301-f7e5d621adfb
2026-01-28 20:34:47,308 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e7b99b74-62cd-4a70-b79e-9497e95df262
2026-01-28 20:34:47,325 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e7b99b74-62cd-4a70-b79e-9497e95df262
2026-01-28 20:34:47,336 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/564ef8a3-371d-4e4b-aa35-27b2e0fa3d8c
2026-01-28 20:34:47,344 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/564ef8a3-371d-4e4b-aa35-27b2e0fa3d8c
2026-01-28 20:34:47,351 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b2d331c4-0ce4-4b04-86e6-3e38f13fb92e
2026-01-28 20:34:47,358 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 20:34:47,358 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e7b99b74-62cd-4a70-b79e-9497e95df262
2026-01-28 20:34:47,366 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/564ef8a3-371d-4e4b-aa35-27b2e0fa3d8c
2026-01-28 20:34:47,383 - INFO - Verified VN network id 12 for VN e7b99b74-62cd-4a70-b79e-9497e95df262
2026-01-28 20:34:47,384 - INFO - Verifications in API Server for VN ctest-vn-24521066 passed
2026-01-28 20:34:47,384 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e7b99b74-62cd-4a70-b79e-9497e95df262
2026-01-28 20:34:47,396 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/564ef8a3-371d-4e4b-aa35-27b2e0fa3d8c
2026-01-28 20:34:47,404 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/564ef8a3-371d-4e4b-aa35-27b2e0fa3d8c
2026-01-28 20:34:47,411 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b2d331c4-0ce4-4b04-86e6-3e38f13fb92e
2026-01-28 20:34:47,424 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-24521066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99655421', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16697548017628957296', 'uuid-lslong': '13231176135437316706'}, 'enable': 'true', 'created': '2026-01-28T20:34:45', 'last-modified': '2026-01-28T20:34:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.503197'}
2026-01-28 20:34:47,429 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 20:34:47,429 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24521066 passed
2026-01-28 20:34:47,429 - DEBUG - ====Verifying policy data for ctest-vn-24521066 in API_Server ======
2026-01-28 20:34:47,429 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-28 20:34:47,434 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c13699c4-7e90-4a3c-b416-55ec6d6d1c27
2026-01-28 20:34:47,444 - DEBUG - Requesting: http://10.0.0.50:8082/project/81aa32a3-98ba-4b42-9301-f7e5d621adfb
2026-01-28 20:34:47,514 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e7b99b74-62cd-4a70-b79e-9497e95df262
2026-01-28 20:34:47,523 - DEBUG - ==>Verifying data for policy with id: 104af89d-90ba-4e9b-85e6-eec91a25f654, fqn: ['default-domain', 'ctest-TestBasicPolicy-99655421', 'ctest-policy-allow-all-21077324']
2026-01-28 20:34:47,523 - INFO - VN ctest-vn-24521066 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 20:34:47,523 - DEBUG - Verifying the vn in opserver
2026-01-28 20:34:47,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-24521066 virtual network link through opserver 10.0.0.50
2026-01-28 20:34:47,523 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-28 20:34:47,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-24521066', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-24521066?flat'}
2026-01-28 20:34:47,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99655421:ctest-vn-24521066 is found in opserver
2026-01-28 20:34:47,542 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 20:34:47,547 - DEBUG - VRF ids for VN ctest-vn-24521066: {}
2026-01-28 20:34:47,614 - DEBUG - Services list from nova: [