2026-10-27 17:31:57,487 - INFO - Domain Default found not creating
2026-10-27 17:31:57,718 - INFO - Project ctest-TestBasicPolicy-77937381 not found, creating it
2026-10-27 17:31:58,290 - INFO - Created Project:ctest-TestBasicPolicy-77937381, ID : 062ef5c4-b086-4d83-a37d-69f2f9b200ad
2026-10-27 17:32:00,096 - INFO - ================================================================================
2026-10-27 17:32:00,096 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-27 17:32:00,096 - 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-10-27 17:32:00,415 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.254': '0'}} with
2026-10-27 17:32:00,415 - INFO - Initial checks done. Running the testcase now
2026-10-27 17:32:00,415 - INFO -
2026-10-27 17:32:01,147 - DEBUG - Response for create_network : {'network': {'id': '6eab8691-3dd0-4878-b019-937358be3e79', 'name': 'ctest-vn-48817459', 'tenant_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'project_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-vn-48817459'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-10-27 17:32:01,448 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b0c87ec-939b-4f59-bb24-652c0eda53f7', 'name': '', 'tenant_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'network_id': '6eab8691-3dd0-4878-b019-937358be3e79', 'ip_version': 4, 'cidr': '223.173.167.192/26', 'allocation_pools': [{'start': '223.173.167.194', 'end': '223.173.167.254'}], 'gateway_ip': '223.173.167.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-27T17:32:01.367205', 'updated_at': '2026-10-27T17:32:01.367205', 'dns_server_address': '223.173.167.194', 'tags': [], 'project_id': '062ef5c4b0864d83a37d69f2f9b200ad'}}
2026-10-27 17:32:01,464 - INFO - Created VN ctest-vn-48817459
2026-10-27 17:32:01,516 - DEBUG - VN ctest-vn-48817459 UUID is 6eab8691-3dd0-4878-b019-937358be3e79
2026-10-27 17:32:01,840 - DEBUG - Response for create_network : {'network': {'id': 'bd9596ae-19ea-4f80-904b-8a6f5eeffc38', 'name': 'ctest-vn-61648324', 'tenant_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'project_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-vn-61648324'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-10-27 17:32:02,098 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eababc30-0f0c-46cf-9769-5caac690cccf', 'name': '', 'tenant_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'network_id': 'bd9596ae-19ea-4f80-904b-8a6f5eeffc38', 'ip_version': 4, 'cidr': '5.115.190.64/26', 'allocation_pools': [{'start': '5.115.190.66', 'end': '5.115.190.126'}], 'gateway_ip': '5.115.190.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-10-27T17:32:02.019950', 'updated_at': '2026-10-27T17:32:02.019950', 'dns_server_address': '5.115.190.66', 'tags': [], 'project_id': '062ef5c4b0864d83a37d69f2f9b200ad'}}
2026-10-27 17:32:02,186 - INFO - Created VN ctest-vn-61648324
2026-10-27 17:32:02,240 - DEBUG - VN ctest-vn-61648324 UUID is bd9596ae-19ea-4f80-904b-8a6f5eeffc38
2026-10-27 17:32:02,353 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-48817459, 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-77937381:ctest-vn-61648324, 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-10-27 17:32:02,676 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6eab8691-3dd0-4878-b019-937358be3e79', 'name': 'ctest-vn-48817459', 'tenant_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'project_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1b0c87ec-939b-4f59-bb24-652c0eda53f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-vn-48817459'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-policy-allow-all-80957011']], 'subnet_ipam': [{'subnet_cidr': '223.173.167.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-10-27T17:32:01.018864', 'updated_at': '2026-10-27T17:32:01.405067'}}
2026-10-27 17:32:03,013 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd9596ae-19ea-4f80-904b-8a6f5eeffc38', 'name': 'ctest-vn-61648324', 'tenant_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'project_id': '062ef5c4b0864d83a37d69f2f9b200ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['eababc30-0f0c-46cf-9769-5caac690cccf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-vn-61648324'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-policy-allow-all-80957011']], 'subnet_ipam': [{'subnet_cidr': '5.115.190.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-10-27T17:32:01.797205', 'updated_at': '2026-10-27T17:32:02.037373'}}
2026-10-27 17:32:03,168 - DEBUG - Requesting: http://10.0.0.190:8082/domains
2026-10-27 17:32:03,544 - DEBUG - Requesting: http://10.0.0.190:8082/domains
2026-10-27 17:32:03,572 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12
2026-10-27 17:32:03,586 - DEBUG - Requesting: http://10.0.0.190:8082/project/062ef5c4-b086-4d83-a37d-69f2f9b200ad
2026-10-27 17:32:03,686 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/6eab8691-3dd0-4878-b019-937358be3e79
2026-10-27 17:32:03,724 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/6eab8691-3dd0-4878-b019-937358be3e79
2026-10-27 17:32:03,745 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/04d111c9-58e8-4c15-ad10-09a6c0f367c7
2026-10-27 17:32:03,759 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/04d111c9-58e8-4c15-ad10-09a6c0f367c7
2026-10-27 17:32:03,766 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/dd8e1571-00d3-406d-b523-be24bacd62f0
2026-10-27 17:32:03,773 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-27 17:32:03,774 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/6eab8691-3dd0-4878-b019-937358be3e79
2026-10-27 17:32:03,784 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/04d111c9-58e8-4c15-ad10-09a6c0f367c7
2026-10-27 17:32:03,809 - INFO - Verified VN network id 12 for VN 6eab8691-3dd0-4878-b019-937358be3e79
2026-10-27 17:32:03,809 - INFO - Verifications in API Server for VN ctest-vn-48817459 passed
2026-10-27 17:32:03,809 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/6eab8691-3dd0-4878-b019-937358be3e79
2026-10-27 17:32:03,821 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/04d111c9-58e8-4c15-ad10-09a6c0f367c7
2026-10-27 17:32:03,829 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/04d111c9-58e8-4c15-ad10-09a6c0f367c7
2026-10-27 17:32:03,838 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/dd8e1571-00d3-406d-b523-be24bacd62f0
2026-10-27 17:32:03,853 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-48817459', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77937381', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7974615523555035256', 'uuid-lslong': '12689335548712468089'}, 'enable': 'true', 'created': '2026-10-27T17:32:01', 'last-modified': '2026-10-27T17:32:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.200789'}
2026-10-27 17:32:03,861 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-27 17:32:03,861 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48817459 passed
2026-10-27 17:32:03,862 - DEBUG - ====Verifying policy data for ctest-vn-48817459 in API_Server ======
2026-10-27 17:32:03,862 - DEBUG - Requesting: http://10.0.0.190:8082/domains
2026-10-27 17:32:03,868 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12
2026-10-27 17:32:03,882 - DEBUG - Requesting: http://10.0.0.190:8082/project/062ef5c4-b086-4d83-a37d-69f2f9b200ad
2026-10-27 17:32:03,957 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/6eab8691-3dd0-4878-b019-937358be3e79
2026-10-27 17:32:03,967 - DEBUG - ==>Verifying data for policy with id: 3348c710-c9fe-4cfb-9dd7-c84ac7a18553, fqn: ['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-policy-allow-all-80957011']
2026-10-27 17:32:03,967 - INFO - VN ctest-vn-48817459 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-27 17:32:03,967 - DEBUG - Verifying the vn in opserver
2026-10-27 17:32:03,967 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-48817459 virtual network link through opserver 10.0.0.190
2026-10-27 17:32:03,967 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks
2026-10-27 17:32:04,338 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks
2026-10-27 17:32:04,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-48817459', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-48817459?flat'}
2026-10-27 17:32:04,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-48817459 is found in opserver
2026-10-27 17:32:04,404 - DEBUG - Do not have enough data to verify VN in agent
2026-10-27 17:32:04,409 - DEBUG - VRF ids for VN ctest-vn-48817459: {}
2026-10-27 17:32:04,409 - DEBUG - Requesting: http://10.0.0.190:8082/domains
2026-10-27 17:32:04,415 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12
2026-10-27 17:32:04,426 - DEBUG - Requesting: http://10.0.0.190:8082/project/062ef5c4-b086-4d83-a37d-69f2f9b200ad
2026-10-27 17:32:04,536 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/bd9596ae-19ea-4f80-904b-8a6f5eeffc38
2026-10-27 17:32:04,592 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/bd9596ae-19ea-4f80-904b-8a6f5eeffc38
2026-10-27 17:32:04,606 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/35ddacd8-fcbf-4916-bae2-1c18ee57ce97
2026-10-27 17:32:04,614 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/35ddacd8-fcbf-4916-bae2-1c18ee57ce97
2026-10-27 17:32:04,622 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/c3769db3-b838-4198-ac3d-61e5d6308e60
2026-10-27 17:32:04,629 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-27 17:32:04,629 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/bd9596ae-19ea-4f80-904b-8a6f5eeffc38
2026-10-27 17:32:04,641 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/35ddacd8-fcbf-4916-bae2-1c18ee57ce97
2026-10-27 17:32:04,657 - INFO - Verified VN network id 13 for VN bd9596ae-19ea-4f80-904b-8a6f5eeffc38
2026-10-27 17:32:04,657 - INFO - Verifications in API Server for VN ctest-vn-61648324 passed
2026-10-27 17:32:04,657 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/bd9596ae-19ea-4f80-904b-8a6f5eeffc38
2026-10-27 17:32:04,671 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/35ddacd8-fcbf-4916-bae2-1c18ee57ce97
2026-10-27 17:32:04,681 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/35ddacd8-fcbf-4916-bae2-1c18ee57ce97
2026-10-27 17:32:04,690 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/c3769db3-b838-4198-ac3d-61e5d6308e60
2026-10-27 17:32:04,707 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-61648324', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77937381', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13660990719201529728', 'uuid-lslong': '10397556375653710904'}, 'enable': 'true', 'created': '2026-10-27T17:32:01', 'last-modified': '2026-10-27T17:32:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.794922'}
2026-10-27 17:32:04,715 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-27 17:32:04,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61648324 passed
2026-10-27 17:32:04,716 - DEBUG - ====Verifying policy data for ctest-vn-61648324 in API_Server ======
2026-10-27 17:32:04,716 - DEBUG - Requesting: http://10.0.0.190:8082/domains
2026-10-27 17:32:04,722 - DEBUG - Requesting: http://10.0.0.190:8082/domain/db95c7c0-0778-4fff-b25e-491603e52b12
2026-10-27 17:32:04,737 - DEBUG - Requesting: http://10.0.0.190:8082/project/062ef5c4-b086-4d83-a37d-69f2f9b200ad
2026-10-27 17:32:04,822 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/bd9596ae-19ea-4f80-904b-8a6f5eeffc38
2026-10-27 17:32:04,835 - DEBUG - ==>Verifying data for policy with id: 3348c710-c9fe-4cfb-9dd7-c84ac7a18553, fqn: ['default-domain', 'ctest-TestBasicPolicy-77937381', 'ctest-policy-allow-all-80957011']
2026-10-27 17:32:04,835 - INFO - VN ctest-vn-61648324 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-27 17:32:04,835 - DEBUG - Verifying the vn in opserver
2026-10-27 17:32:04,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-61648324 virtual network link through opserver 10.0.0.190
2026-10-27 17:32:04,836 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks
2026-10-27 17:32:04,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-61648324', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-61648324?flat'}
2026-10-27 17:32:04,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77937381:ctest-vn-61648324 is found in opserver
2026-10-27 17:32:04,862 - DEBUG - Do not have enough data to verify VN in agent
2026-10-27 17:32:04,870 - DEBUG - VRF ids for VN ctest-vn-61648324: {}
2026-10-27 17:32:04,935 - DEBUG - Services list from nova: [