2026-05-08 19:33:01,424 - INFO - Domain Default found not creating
2026-05-08 19:33:01,575 - INFO - Project ctest-TestBasicPolicy-52240686 not found, creating it
2026-05-08 19:33:02,029 - INFO - Created Project:ctest-TestBasicPolicy-52240686, ID : daca2454-c24d-4559-8dd3-44270be5ccc3
2026-05-08 19:33:03,487 - INFO - ================================================================================
2026-05-08 19:33:03,487 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-08 19:33:03,487 - 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-05-08 19:33:03,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-08 19:33:03,745 - INFO - Initial checks done. Running the testcase now
2026-05-08 19:33:03,745 - INFO -
2026-05-08 19:33:04,324 - DEBUG - Response for create_network : {'network': {'id': 'dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a', 'name': 'ctest-vn-06904764', 'tenant_id': 'daca2454c24d45598dd344270be5ccc3', 'project_id': 'daca2454c24d45598dd344270be5ccc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-vn-06904764'], 'port_security_enabled': True, 'description': ''}}
2026-05-08 19:33:04,532 - DEBUG - Response for create_subnet : {'subnet': {'id': '52768c0f-f1a8-4e95-876b-f960e14cca36', 'name': '', 'tenant_id': 'daca2454c24d45598dd344270be5ccc3', 'network_id': 'dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a', 'ip_version': 4, 'cidr': '154.85.77.128/26', 'allocation_pools': [{'start': '154.85.77.130', 'end': '154.85.77.190'}], 'gateway_ip': '154.85.77.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.85.77.130', 'tags': [], 'project_id': 'daca2454c24d45598dd344270be5ccc3'}}
2026-05-08 19:33:04,548 - INFO - Created VN ctest-vn-06904764
2026-05-08 19:33:04,599 - DEBUG - VN ctest-vn-06904764 UUID is dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a
2026-05-08 19:33:04,926 - DEBUG - Response for create_network : {'network': {'id': '2e8ac3f9-ffeb-4549-8134-53ffe4cb57db', 'name': 'ctest-vn-79546171', 'tenant_id': 'daca2454c24d45598dd344270be5ccc3', 'project_id': 'daca2454c24d45598dd344270be5ccc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-vn-79546171'], 'port_security_enabled': True, 'description': ''}}
2026-05-08 19:33:05,126 - DEBUG - Response for create_subnet : {'subnet': {'id': '54f49e15-3be0-424f-8cbd-bab4e700a2f8', 'name': '', 'tenant_id': 'daca2454c24d45598dd344270be5ccc3', 'network_id': '2e8ac3f9-ffeb-4549-8134-53ffe4cb57db', 'ip_version': 4, 'cidr': '87.225.169.128/26', 'allocation_pools': [{'start': '87.225.169.130', 'end': '87.225.169.190'}], 'gateway_ip': '87.225.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.225.169.130', 'tags': [], 'project_id': 'daca2454c24d45598dd344270be5ccc3'}}
2026-05-08 19:33:05,143 - INFO - Created VN ctest-vn-79546171
2026-05-08 19:33:05,194 - DEBUG - VN ctest-vn-79546171 UUID is 2e8ac3f9-ffeb-4549-8134-53ffe4cb57db
2026-05-08 19:33:05,342 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-06904764, 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-52240686:ctest-vn-79546171, 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-05-08 19:33:05,630 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a', 'name': 'ctest-vn-06904764', 'tenant_id': 'daca2454c24d45598dd344270be5ccc3', 'project_id': 'daca2454c24d45598dd344270be5ccc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52768c0f-f1a8-4e95-876b-f960e14cca36'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-vn-06904764'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-policy-allow-all-11662705']], 'subnet_ipam': [{'subnet_cidr': '154.85.77.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-08 19:33:05,855 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8ac3f9-ffeb-4549-8134-53ffe4cb57db', 'name': 'ctest-vn-79546171', 'tenant_id': 'daca2454c24d45598dd344270be5ccc3', 'project_id': 'daca2454c24d45598dd344270be5ccc3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54f49e15-3be0-424f-8cbd-bab4e700a2f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-vn-79546171'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-policy-allow-all-11662705']], 'subnet_ipam': [{'subnet_cidr': '87.225.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-08 19:33:06,019 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 19:33:06,312 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 19:33:06,344 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fa040dd8-e6fd-4b87-8557-631a6565bdb7
2026-05-08 19:33:06,355 - DEBUG - Requesting: http://10.0.0.50:8082/project/daca2454-c24d-4559-8dd3-44270be5ccc3
2026-05-08 19:33:06,428 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a
2026-05-08 19:33:06,439 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a
2026-05-08 19:33:06,448 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5652bde-1fd5-4d56-9e61-a1d19359db1b
2026-05-08 19:33:06,454 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5652bde-1fd5-4d56-9e61-a1d19359db1b
2026-05-08 19:33:06,461 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ad6892b1-9368-408b-9ce9-bf93e249bae0
2026-05-08 19:33:06,476 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-08 19:33:06,476 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a
2026-05-08 19:33:06,486 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5652bde-1fd5-4d56-9e61-a1d19359db1b
2026-05-08 19:33:06,501 - INFO - Verified VN network id 11 for VN dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a
2026-05-08 19:33:06,501 - INFO - Verifications in API Server for VN ctest-vn-06904764 passed
2026-05-08 19:33:06,502 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a
2026-05-08 19:33:06,512 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5652bde-1fd5-4d56-9e61-a1d19359db1b
2026-05-08 19:33:06,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5652bde-1fd5-4d56-9e61-a1d19359db1b
2026-05-08 19:33:06,527 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ad6892b1-9368-408b-9ce9-bf93e249bae0
2026-05-08 19:33:06,546 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-06904764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52240686', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15847873790146595276', 'uuid-lslong': '13826450296485072506'}, 'enable': 'true', 'created': '2026-05-08T19:33:04', 'last-modified': '2026-05-08T19:33:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937635'}
2026-05-08 19:33:06,552 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-08 19:33:06,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06904764 passed
2026-05-08 19:33:06,552 - DEBUG - ====Verifying policy data for ctest-vn-06904764 in API_Server ======
2026-05-08 19:33:06,552 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 19:33:06,557 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fa040dd8-e6fd-4b87-8557-631a6565bdb7
2026-05-08 19:33:06,567 - DEBUG - Requesting: http://10.0.0.50:8082/project/daca2454-c24d-4559-8dd3-44270be5ccc3
2026-05-08 19:33:06,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dbeef53f-1ae9-49cc-bfe1-6b49fa964e7a
2026-05-08 19:33:06,648 - DEBUG - ==>Verifying data for policy with id: 2b0fa881-0547-4fc9-90a5-fb5a453993dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-policy-allow-all-11662705']
2026-05-08 19:33:06,648 - INFO - VN ctest-vn-06904764 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-08 19:33:06,648 - DEBUG - Verifying the vn in opserver
2026-05-08 19:33:06,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-06904764 virtual network link through opserver 10.0.0.50
2026-05-08 19:33:06,648 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-08 19:33:06,944 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-08 19:33:07,000 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-06904764', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-06904764?flat'}
2026-05-08 19:33:07,000 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-06904764 is found in opserver
2026-05-08 19:33:07,009 - DEBUG - Do not have enough data to verify VN in agent
2026-05-08 19:33:07,013 - DEBUG - VRF ids for VN ctest-vn-06904764: {}
2026-05-08 19:33:07,013 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 19:33:07,018 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fa040dd8-e6fd-4b87-8557-631a6565bdb7
2026-05-08 19:33:07,027 - DEBUG - Requesting: http://10.0.0.50:8082/project/daca2454-c24d-4559-8dd3-44270be5ccc3
2026-05-08 19:33:07,095 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e8ac3f9-ffeb-4549-8134-53ffe4cb57db
2026-05-08 19:33:07,106 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e8ac3f9-ffeb-4549-8134-53ffe4cb57db
2026-05-08 19:33:07,114 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9bbcd59-e574-4e76-8591-126f6bc48e1d
2026-05-08 19:33:07,121 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9bbcd59-e574-4e76-8591-126f6bc48e1d
2026-05-08 19:33:07,128 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/406ebc3a-295e-45b8-9b13-2ca2e80b500f
2026-05-08 19:33:07,134 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-08 19:33:07,134 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e8ac3f9-ffeb-4549-8134-53ffe4cb57db
2026-05-08 19:33:07,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9bbcd59-e574-4e76-8591-126f6bc48e1d
2026-05-08 19:33:07,154 - INFO - Verified VN network id 12 for VN 2e8ac3f9-ffeb-4549-8134-53ffe4cb57db
2026-05-08 19:33:07,154 - INFO - Verifications in API Server for VN ctest-vn-79546171 passed
2026-05-08 19:33:07,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e8ac3f9-ffeb-4549-8134-53ffe4cb57db
2026-05-08 19:33:07,164 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9bbcd59-e574-4e76-8591-126f6bc48e1d
2026-05-08 19:33:07,170 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9bbcd59-e574-4e76-8591-126f6bc48e1d
2026-05-08 19:33:07,175 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/406ebc3a-295e-45b8-9b13-2ca2e80b500f
2026-05-08 19:33:07,184 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-79546171', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52240686', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3353708351038637385', 'uuid-lslong': '9310158688201955291'}, 'enable': 'true', 'created': '2026-05-08T19:33:04', 'last-modified': '2026-05-08T19:33:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.348021'}
2026-05-08 19:33:07,189 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-08 19:33:07,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79546171 passed
2026-05-08 19:33:07,189 - DEBUG - ====Verifying policy data for ctest-vn-79546171 in API_Server ======
2026-05-08 19:33:07,190 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-08 19:33:07,195 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fa040dd8-e6fd-4b87-8557-631a6565bdb7
2026-05-08 19:33:07,204 - DEBUG - Requesting: http://10.0.0.50:8082/project/daca2454-c24d-4559-8dd3-44270be5ccc3
2026-05-08 19:33:07,271 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e8ac3f9-ffeb-4549-8134-53ffe4cb57db
2026-05-08 19:33:07,280 - DEBUG - ==>Verifying data for policy with id: 2b0fa881-0547-4fc9-90a5-fb5a453993dd, fqn: ['default-domain', 'ctest-TestBasicPolicy-52240686', 'ctest-policy-allow-all-11662705']
2026-05-08 19:33:07,280 - INFO - VN ctest-vn-79546171 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-08 19:33:07,280 - DEBUG - Verifying the vn in opserver
2026-05-08 19:33:07,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-79546171 virtual network link through opserver 10.0.0.50
2026-05-08 19:33:07,280 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-08 19:33:07,290 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-79546171', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-79546171?flat'}
2026-05-08 19:33:07,290 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52240686:ctest-vn-79546171 is found in opserver
2026-05-08 19:33:07,299 - DEBUG - Do not have enough data to verify VN in agent
2026-05-08 19:33:07,302 - DEBUG - VRF ids for VN ctest-vn-79546171: {}
2026-05-08 19:33:07,360 - DEBUG - Services list from nova: [