2025-11-04 14:08:10,973 - INFO - Domain Default found not creating
2025-11-04 14:08:11,122 - INFO - Project ctest-TestBasicPolicy-90747037 not found, creating it
2025-11-04 14:08:11,555 - INFO - Created Project:ctest-TestBasicPolicy-90747037, ID : 688a3291-b444-4bad-ba35-e4b932025e83
2025-11-04 14:08:13,102 - INFO - ================================================================================
2025-11-04 14:08:13,103 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 14:08:13,103 - 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
2025-11-04 14:08:13,371 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with
2025-11-04 14:08:13,371 - INFO - Initial checks done. Running the testcase now
2025-11-04 14:08:13,371 - INFO -
2025-11-04 14:08:13,956 - DEBUG - Response for create_network : {'network': {'id': '25078365-405b-4844-b476-97b5588c0762', 'name': 'ctest-vn-54120813', 'tenant_id': '688a3291b4444badba35e4b932025e83', 'project_id': '688a3291b4444badba35e4b932025e83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-vn-54120813'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 14:08:14,144 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b00084c-4783-4370-a12d-da9c20aa23ce', 'name': '', 'tenant_id': '688a3291b4444badba35e4b932025e83', 'network_id': '25078365-405b-4844-b476-97b5588c0762', 'ip_version': 4, 'cidr': '9.41.251.64/26', 'allocation_pools': [{'start': '9.41.251.66', 'end': '9.41.251.126'}], 'gateway_ip': '9.41.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.41.251.66', 'tags': [], 'project_id': '688a3291b4444badba35e4b932025e83'}}
2025-11-04 14:08:14,162 - INFO - Created VN ctest-vn-54120813
2025-11-04 14:08:14,215 - DEBUG - VN ctest-vn-54120813 UUID is 25078365-405b-4844-b476-97b5588c0762
2025-11-04 14:08:14,547 - DEBUG - Response for create_network : {'network': {'id': 'e52ddeea-39ad-4ffe-9e26-8a86c0bac607', 'name': 'ctest-vn-86738940', 'tenant_id': '688a3291b4444badba35e4b932025e83', 'project_id': '688a3291b4444badba35e4b932025e83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-vn-86738940'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 14:08:14,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '112960c3-5c09-400d-89a4-b4bb3f7dca65', 'name': '', 'tenant_id': '688a3291b4444badba35e4b932025e83', 'network_id': 'e52ddeea-39ad-4ffe-9e26-8a86c0bac607', 'ip_version': 4, 'cidr': '222.117.147.192/26', 'allocation_pools': [{'start': '222.117.147.194', 'end': '222.117.147.254'}], 'gateway_ip': '222.117.147.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.117.147.194', 'tags': [], 'project_id': '688a3291b4444badba35e4b932025e83'}}
2025-11-04 14:08:14,753 - INFO - Created VN ctest-vn-86738940
2025-11-04 14:08:14,803 - DEBUG - VN ctest-vn-86738940 UUID is e52ddeea-39ad-4ffe-9e26-8a86c0bac607
2025-11-04 14:08:14,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-54120813, 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-90747037:ctest-vn-86738940, 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]
2025-11-04 14:08:15,211 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25078365-405b-4844-b476-97b5588c0762', 'name': 'ctest-vn-54120813', 'tenant_id': '688a3291b4444badba35e4b932025e83', 'project_id': '688a3291b4444badba35e4b932025e83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4b00084c-4783-4370-a12d-da9c20aa23ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-vn-54120813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-policy-allow-all-69500780']], 'subnet_ipam': [{'subnet_cidr': '9.41.251.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 14:08:15,439 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e52ddeea-39ad-4ffe-9e26-8a86c0bac607', 'name': 'ctest-vn-86738940', 'tenant_id': '688a3291b4444badba35e4b932025e83', 'project_id': '688a3291b4444badba35e4b932025e83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['112960c3-5c09-400d-89a4-b4bb3f7dca65'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-vn-86738940'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-policy-allow-all-69500780']], 'subnet_ipam': [{'subnet_cidr': '222.117.147.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 14:08:15,595 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 14:08:15,940 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 14:08:15,970 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95
2025-11-04 14:08:15,981 - DEBUG - Requesting: http://10.0.0.49:8082/project/688a3291-b444-4bad-ba35-e4b932025e83
2025-11-04 14:08:16,049 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/25078365-405b-4844-b476-97b5588c0762
2025-11-04 14:08:16,059 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/25078365-405b-4844-b476-97b5588c0762
2025-11-04 14:08:16,067 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5274a6bd-2d74-4b9c-b2f2-1fedb998c2ad
2025-11-04 14:08:16,073 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5274a6bd-2d74-4b9c-b2f2-1fedb998c2ad
2025-11-04 14:08:16,079 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7f35f39a-b746-48c0-8fec-3d22835ad35e
2025-11-04 14:08:16,084 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 14:08:16,084 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/25078365-405b-4844-b476-97b5588c0762
2025-11-04 14:08:16,092 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5274a6bd-2d74-4b9c-b2f2-1fedb998c2ad
2025-11-04 14:08:16,104 - INFO - Verified VN network id 11 for VN 25078365-405b-4844-b476-97b5588c0762
2025-11-04 14:08:16,104 - INFO - Verifications in API Server for VN ctest-vn-54120813 passed
2025-11-04 14:08:16,104 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/25078365-405b-4844-b476-97b5588c0762
2025-11-04 14:08:16,112 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5274a6bd-2d74-4b9c-b2f2-1fedb998c2ad
2025-11-04 14:08:16,118 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/5274a6bd-2d74-4b9c-b2f2-1fedb998c2ad
2025-11-04 14:08:16,123 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7f35f39a-b746-48c0-8fec-3d22835ad35e
2025-11-04 14:08:16,133 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-54120813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90747037', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2668245775134967876', 'uuid-lslong': '13003747779209332578'}, 'enable': 'true', 'created': '2025-11-04T14:08:13', 'last-modified': '2025-11-04T14:08:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946165'}
2025-11-04 14:08:16,139 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 14:08:16,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54120813 passed
2025-11-04 14:08:16,139 - DEBUG - ====Verifying policy data for ctest-vn-54120813 in API_Server ======
2025-11-04 14:08:16,139 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 14:08:16,144 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95
2025-11-04 14:08:16,153 - DEBUG - Requesting: http://10.0.0.49:8082/project/688a3291-b444-4bad-ba35-e4b932025e83
2025-11-04 14:08:16,223 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/25078365-405b-4844-b476-97b5588c0762
2025-11-04 14:08:16,232 - DEBUG - ==>Verifying data for policy with id: 94c11d22-098a-4372-857c-3f3278910545, fqn: ['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-policy-allow-all-69500780']
2025-11-04 14:08:16,232 - INFO - VN ctest-vn-54120813 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 14:08:16,232 - DEBUG - Verifying the vn in opserver
2025-11-04 14:08:16,232 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-54120813 virtual network link through opserver 10.0.0.49
2025-11-04 14:08:16,232 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-04 14:08:16,562 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-04 14:08:16,620 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-54120813', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-54120813?flat'}
2025-11-04 14:08:16,620 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-54120813 is found in opserver
2025-11-04 14:08:16,630 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 14:08:16,634 - DEBUG - VRF ids for VN ctest-vn-54120813: {}
2025-11-04 14:08:16,634 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 14:08:16,640 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95
2025-11-04 14:08:16,650 - DEBUG - Requesting: http://10.0.0.49:8082/project/688a3291-b444-4bad-ba35-e4b932025e83
2025-11-04 14:08:16,725 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e52ddeea-39ad-4ffe-9e26-8a86c0bac607
2025-11-04 14:08:16,738 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e52ddeea-39ad-4ffe-9e26-8a86c0bac607
2025-11-04 14:08:16,748 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/77a2d10a-532d-4d51-b679-570c39717417
2025-11-04 14:08:16,755 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/77a2d10a-532d-4d51-b679-570c39717417
2025-11-04 14:08:16,761 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b591f06e-8964-422e-9bc4-e182d65b2b7e
2025-11-04 14:08:16,767 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 14:08:16,767 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e52ddeea-39ad-4ffe-9e26-8a86c0bac607
2025-11-04 14:08:16,776 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/77a2d10a-532d-4d51-b679-570c39717417
2025-11-04 14:08:16,789 - INFO - Verified VN network id 12 for VN e52ddeea-39ad-4ffe-9e26-8a86c0bac607
2025-11-04 14:08:16,789 - INFO - Verifications in API Server for VN ctest-vn-86738940 passed
2025-11-04 14:08:16,789 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e52ddeea-39ad-4ffe-9e26-8a86c0bac607
2025-11-04 14:08:16,798 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/77a2d10a-532d-4d51-b679-570c39717417
2025-11-04 14:08:16,804 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/77a2d10a-532d-4d51-b679-570c39717417
2025-11-04 14:08:16,810 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b591f06e-8964-422e-9bc4-e182d65b2b7e
2025-11-04 14:08:16,821 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-86738940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90747037', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16514100506208849918', 'uuid-lslong': '11395948218471335431'}, 'enable': 'true', 'created': '2025-11-04T14:08:14', 'last-modified': '2025-11-04T14:08:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.407873'}
2025-11-04 14:08:16,827 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 14:08:16,827 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86738940 passed
2025-11-04 14:08:16,827 - DEBUG - ====Verifying policy data for ctest-vn-86738940 in API_Server ======
2025-11-04 14:08:16,827 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-11-04 14:08:16,833 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95
2025-11-04 14:08:16,843 - DEBUG - Requesting: http://10.0.0.49:8082/project/688a3291-b444-4bad-ba35-e4b932025e83
2025-11-04 14:08:16,915 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e52ddeea-39ad-4ffe-9e26-8a86c0bac607
2025-11-04 14:08:16,924 - DEBUG - ==>Verifying data for policy with id: 94c11d22-098a-4372-857c-3f3278910545, fqn: ['default-domain', 'ctest-TestBasicPolicy-90747037', 'ctest-policy-allow-all-69500780']
2025-11-04 14:08:16,925 - INFO - VN ctest-vn-86738940 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 14:08:16,925 - DEBUG - Verifying the vn in opserver
2025-11-04 14:08:16,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-86738940 virtual network link through opserver 10.0.0.49
2025-11-04 14:08:16,925 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-11-04 14:08:16,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-86738940', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-86738940?flat'}
2025-11-04 14:08:16,936 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90747037:ctest-vn-86738940 is found in opserver
2025-11-04 14:08:16,947 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 14:08:16,951 - DEBUG - VRF ids for VN ctest-vn-86738940: {}
2025-11-04 14:08:17,007 - DEBUG - Services list from nova: [