2026-07-18 19:14:06,077 - INFO - Domain Default found not creating
2026-07-18 19:14:06,250 - INFO - Project ctest-TestBasicPolicy-43096181 not found, creating it
2026-07-18 19:14:06,740 - INFO - Created Project:ctest-TestBasicPolicy-43096181, ID : b0bbbaf7-bc99-4ceb-a798-fa90c6d21b19
2026-07-18 19:14:08,464 - INFO - ================================================================================
2026-07-18 19:14:08,464 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-18 19:14:08,464 - 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-07-18 19:14:08,735 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-18 19:14:08,735 - INFO - Initial checks done. Running the testcase now
2026-07-18 19:14:08,735 - INFO -
2026-07-18 19:14:09,386 - DEBUG - Response for create_network : {'network': {'id': 'ae5e9f38-7fc2-4992-9429-bb35cd06ee60', 'name': 'ctest-vn-30219342', 'tenant_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'project_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-vn-30219342'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 19:14:09,595 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae3b4532-cfdc-4f05-aa22-8cf44ca25563', 'name': '', 'tenant_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'network_id': 'ae5e9f38-7fc2-4992-9429-bb35cd06ee60', 'ip_version': 4, 'cidr': '194.135.213.128/26', 'allocation_pools': [{'start': '194.135.213.130', 'end': '194.135.213.190'}], 'gateway_ip': '194.135.213.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.135.213.130', 'tags': [], 'project_id': 'b0bbbaf7bc994ceba798fa90c6d21b19'}}
2026-07-18 19:14:09,613 - INFO - Created VN ctest-vn-30219342
2026-07-18 19:14:09,669 - DEBUG - VN ctest-vn-30219342 UUID is ae5e9f38-7fc2-4992-9429-bb35cd06ee60
2026-07-18 19:14:10,000 - DEBUG - Response for create_network : {'network': {'id': 'a048c529-0ba5-4cd4-a72b-6c3db417937f', 'name': 'ctest-vn-64324828', 'tenant_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'project_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-vn-64324828'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 19:14:10,232 - DEBUG - Response for create_subnet : {'subnet': {'id': '1371a1c6-650e-4595-99ba-fe9bd1fc0328', 'name': '', 'tenant_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'network_id': 'a048c529-0ba5-4cd4-a72b-6c3db417937f', 'ip_version': 4, 'cidr': '151.169.237.64/26', 'allocation_pools': [{'start': '151.169.237.66', 'end': '151.169.237.126'}], 'gateway_ip': '151.169.237.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.169.237.66', 'tags': [], 'project_id': 'b0bbbaf7bc994ceba798fa90c6d21b19'}}
2026-07-18 19:14:10,248 - INFO - Created VN ctest-vn-64324828
2026-07-18 19:14:10,305 - DEBUG - VN ctest-vn-64324828 UUID is a048c529-0ba5-4cd4-a72b-6c3db417937f
2026-07-18 19:14:10,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-30219342, 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-43096181:ctest-vn-64324828, 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-07-18 19:14:10,738 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae5e9f38-7fc2-4992-9429-bb35cd06ee60', 'name': 'ctest-vn-30219342', 'tenant_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'project_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae3b4532-cfdc-4f05-aa22-8cf44ca25563'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-vn-30219342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-policy-allow-all-09011972']], 'subnet_ipam': [{'subnet_cidr': '194.135.213.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 19:14:10,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a048c529-0ba5-4cd4-a72b-6c3db417937f', 'name': 'ctest-vn-64324828', 'tenant_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'project_id': 'b0bbbaf7bc994ceba798fa90c6d21b19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1371a1c6-650e-4595-99ba-fe9bd1fc0328'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-vn-64324828'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-policy-allow-all-09011972']], 'subnet_ipam': [{'subnet_cidr': '151.169.237.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 19:14:11,173 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 19:14:11,548 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 19:14:11,579 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f
2026-07-18 19:14:11,594 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0bbbaf7-bc99-4ceb-a798-fa90c6d21b19
2026-07-18 19:14:11,674 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ae5e9f38-7fc2-4992-9429-bb35cd06ee60
2026-07-18 19:14:11,687 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ae5e9f38-7fc2-4992-9429-bb35cd06ee60
2026-07-18 19:14:11,696 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3faf2f73-c638-42df-b96a-f553df1c30d0
2026-07-18 19:14:11,704 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3faf2f73-c638-42df-b96a-f553df1c30d0
2026-07-18 19:14:11,712 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/91d4c7b1-50ef-49f0-90c8-073a8b470526
2026-07-18 19:14:11,720 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 19:14:11,720 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ae5e9f38-7fc2-4992-9429-bb35cd06ee60
2026-07-18 19:14:11,730 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3faf2f73-c638-42df-b96a-f553df1c30d0
2026-07-18 19:14:11,744 - INFO - Verified VN network id 11 for VN ae5e9f38-7fc2-4992-9429-bb35cd06ee60
2026-07-18 19:14:11,744 - INFO - Verifications in API Server for VN ctest-vn-30219342 passed
2026-07-18 19:14:11,745 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ae5e9f38-7fc2-4992-9429-bb35cd06ee60
2026-07-18 19:14:11,754 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3faf2f73-c638-42df-b96a-f553df1c30d0
2026-07-18 19:14:11,761 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3faf2f73-c638-42df-b96a-f553df1c30d0
2026-07-18 19:14:11,768 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/91d4c7b1-50ef-49f0-90c8-073a8b470526
2026-07-18 19:14:11,782 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-30219342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43096181', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12564655075420686738', 'uuid-lslong': '10676270231405915744'}, 'enable': 'true', 'created': '2026-07-18T19:14:09', 'last-modified': '2026-07-18T19:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073092'}
2026-07-18 19:14:11,789 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 19:14:11,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30219342 passed
2026-07-18 19:14:11,790 - DEBUG - ====Verifying policy data for ctest-vn-30219342 in API_Server ======
2026-07-18 19:14:11,790 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 19:14:11,796 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f
2026-07-18 19:14:11,808 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0bbbaf7-bc99-4ceb-a798-fa90c6d21b19
2026-07-18 19:14:11,881 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ae5e9f38-7fc2-4992-9429-bb35cd06ee60
2026-07-18 19:14:11,892 - DEBUG - ==>Verifying data for policy with id: 574fa41a-257a-4f4d-bbe6-05f91f0d8a76, fqn: ['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-policy-allow-all-09011972']
2026-07-18 19:14:11,892 - INFO - VN ctest-vn-30219342 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 19:14:11,892 - DEBUG - Verifying the vn in opserver
2026-07-18 19:14:11,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-30219342 virtual network link through opserver 10.0.0.50
2026-07-18 19:14:11,892 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 19:14:12,266 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 19:14:12,335 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-30219342', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-30219342?flat'}
2026-07-18 19:14:12,335 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-30219342 is found in opserver
2026-07-18 19:14:12,347 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 19:14:12,352 - DEBUG - VRF ids for VN ctest-vn-30219342: {}
2026-07-18 19:14:12,353 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 19:14:12,360 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f
2026-07-18 19:14:12,372 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0bbbaf7-bc99-4ceb-a798-fa90c6d21b19
2026-07-18 19:14:12,448 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a048c529-0ba5-4cd4-a72b-6c3db417937f
2026-07-18 19:14:12,464 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a048c529-0ba5-4cd4-a72b-6c3db417937f
2026-07-18 19:14:12,475 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0edb328-0d93-4c9b-9957-37336cd24ea2
2026-07-18 19:14:12,483 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0edb328-0d93-4c9b-9957-37336cd24ea2
2026-07-18 19:14:12,490 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/aa3ea131-5042-438a-89e6-e85b6c131405
2026-07-18 19:14:12,497 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 19:14:12,497 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a048c529-0ba5-4cd4-a72b-6c3db417937f
2026-07-18 19:14:12,507 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0edb328-0d93-4c9b-9957-37336cd24ea2
2026-07-18 19:14:12,524 - INFO - Verified VN network id 12 for VN a048c529-0ba5-4cd4-a72b-6c3db417937f
2026-07-18 19:14:12,524 - INFO - Verifications in API Server for VN ctest-vn-64324828 passed
2026-07-18 19:14:12,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a048c529-0ba5-4cd4-a72b-6c3db417937f
2026-07-18 19:14:12,534 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0edb328-0d93-4c9b-9957-37336cd24ea2
2026-07-18 19:14:12,542 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f0edb328-0d93-4c9b-9957-37336cd24ea2
2026-07-18 19:14:12,551 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/aa3ea131-5042-438a-89e6-e85b6c131405
2026-07-18 19:14:12,565 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-64324828', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43096181', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11549698024471350484', 'uuid-lslong': '12045840640602772351'}, 'enable': 'true', 'created': '2026-07-18T19:14:09', 'last-modified': '2026-07-18T19:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.610211'}
2026-07-18 19:14:12,573 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 19:14:12,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64324828 passed
2026-07-18 19:14:12,573 - DEBUG - ====Verifying policy data for ctest-vn-64324828 in API_Server ======
2026-07-18 19:14:12,573 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 19:14:12,580 - DEBUG - Requesting: http://10.0.0.50:8082/domain/921b8c37-d14d-4640-976e-f6b7fb57f21f
2026-07-18 19:14:12,593 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0bbbaf7-bc99-4ceb-a798-fa90c6d21b19
2026-07-18 19:14:12,671 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a048c529-0ba5-4cd4-a72b-6c3db417937f
2026-07-18 19:14:12,681 - DEBUG - ==>Verifying data for policy with id: 574fa41a-257a-4f4d-bbe6-05f91f0d8a76, fqn: ['default-domain', 'ctest-TestBasicPolicy-43096181', 'ctest-policy-allow-all-09011972']
2026-07-18 19:14:12,681 - INFO - VN ctest-vn-64324828 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 19:14:12,681 - DEBUG - Verifying the vn in opserver
2026-07-18 19:14:12,681 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-64324828 virtual network link through opserver 10.0.0.50
2026-07-18 19:14:12,681 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 19:14:12,693 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-64324828', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-64324828?flat'}
2026-07-18 19:14:12,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43096181:ctest-vn-64324828 is found in opserver
2026-07-18 19:14:12,705 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 19:14:12,711 - DEBUG - VRF ids for VN ctest-vn-64324828: {}
2026-07-18 19:14:12,774 - DEBUG - Services list from nova: [