2025-11-18 17:10:25,668 - INFO - Domain Default found not creating
2025-11-18 17:10:25,870 - INFO - Project ctest-TestBasicPolicy-35476116 not found, creating it
2025-11-18 17:10:26,358 - INFO - Created Project:ctest-TestBasicPolicy-35476116, ID : 3a59c331-1735-4ebb-9e2a-b1f84510dd7f
2025-11-18 17:10:27,844 - INFO - ================================================================================
2025-11-18 17:10:27,844 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-18 17:10:27,844 - 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-18 17:10:28,113 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-11-18 17:10:28,114 - INFO - Initial checks done. Running the testcase now
2025-11-18 17:10:28,114 - INFO -
2025-11-18 17:10:28,709 - DEBUG - Response for create_network : {'network': {'id': 'e8ee8a71-80a5-469a-8891-cddd3a20e378', 'name': 'ctest-vn-33680673', 'tenant_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'project_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-vn-33680673'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 17:10:28,929 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6defed7-2bdc-485d-967b-fbfb6ea0c18f', 'name': '', 'tenant_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'network_id': 'e8ee8a71-80a5-469a-8891-cddd3a20e378', 'ip_version': 4, 'cidr': '192.212.101.64/26', 'allocation_pools': [{'start': '192.212.101.66', 'end': '192.212.101.126'}], 'gateway_ip': '192.212.101.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.212.101.66', 'tags': [], 'project_id': '3a59c33117354ebb9e2ab1f84510dd7f'}}
2025-11-18 17:10:28,950 - INFO - Created VN ctest-vn-33680673
2025-11-18 17:10:29,003 - DEBUG - VN ctest-vn-33680673 UUID is e8ee8a71-80a5-469a-8891-cddd3a20e378
2025-11-18 17:10:29,336 - DEBUG - Response for create_network : {'network': {'id': 'fde3c049-10ac-4eb7-90d0-820da1a3c22b', 'name': 'ctest-vn-76028444', 'tenant_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'project_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-vn-76028444'], 'port_security_enabled': True, 'description': ''}}
2025-11-18 17:10:29,510 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4b8487c-ec1f-4b79-a104-cc81958b9eae', 'name': '', 'tenant_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'network_id': 'fde3c049-10ac-4eb7-90d0-820da1a3c22b', 'ip_version': 4, 'cidr': '65.20.103.128/26', 'allocation_pools': [{'start': '65.20.103.130', 'end': '65.20.103.190'}], 'gateway_ip': '65.20.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.20.103.130', 'tags': [], 'project_id': '3a59c33117354ebb9e2ab1f84510dd7f'}}
2025-11-18 17:10:29,528 - INFO - Created VN ctest-vn-76028444
2025-11-18 17:10:29,583 - DEBUG - VN ctest-vn-76028444 UUID is fde3c049-10ac-4eb7-90d0-820da1a3c22b
2025-11-18 17:10:29,735 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-33680673, 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-35476116:ctest-vn-76028444, 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-18 17:10:30,033 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8ee8a71-80a5-469a-8891-cddd3a20e378', 'name': 'ctest-vn-33680673', 'tenant_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'project_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6defed7-2bdc-485d-967b-fbfb6ea0c18f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-vn-33680673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-policy-allow-all-97313189']], 'subnet_ipam': [{'subnet_cidr': '192.212.101.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 17:10:30,254 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fde3c049-10ac-4eb7-90d0-820da1a3c22b', 'name': 'ctest-vn-76028444', 'tenant_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'project_id': '3a59c33117354ebb9e2ab1f84510dd7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4b8487c-ec1f-4b79-a104-cc81958b9eae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-vn-76028444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-policy-allow-all-97313189']], 'subnet_ipam': [{'subnet_cidr': '65.20.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-18 17:10:30,455 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-18 17:10:30,749 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-18 17:10:30,780 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774
2025-11-18 17:10:30,791 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a59c331-1735-4ebb-9e2a-b1f84510dd7f
2025-11-18 17:10:30,864 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8ee8a71-80a5-469a-8891-cddd3a20e378
2025-11-18 17:10:30,875 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8ee8a71-80a5-469a-8891-cddd3a20e378
2025-11-18 17:10:30,883 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80af274-bf1a-4b1c-9999-44e9e10843d4
2025-11-18 17:10:30,893 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80af274-bf1a-4b1c-9999-44e9e10843d4
2025-11-18 17:10:30,901 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f6d2d1ba-1a89-412b-b0eb-899edc0d16b9
2025-11-18 17:10:30,907 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 17:10:30,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8ee8a71-80a5-469a-8891-cddd3a20e378
2025-11-18 17:10:30,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80af274-bf1a-4b1c-9999-44e9e10843d4
2025-11-18 17:10:30,928 - INFO - Verified VN network id 11 for VN e8ee8a71-80a5-469a-8891-cddd3a20e378
2025-11-18 17:10:30,929 - INFO - Verifications in API Server for VN ctest-vn-33680673 passed
2025-11-18 17:10:30,929 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8ee8a71-80a5-469a-8891-cddd3a20e378
2025-11-18 17:10:30,937 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80af274-bf1a-4b1c-9999-44e9e10843d4
2025-11-18 17:10:30,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d80af274-bf1a-4b1c-9999-44e9e10843d4
2025-11-18 17:10:30,950 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f6d2d1ba-1a89-412b-b0eb-899edc0d16b9
2025-11-18 17:10:30,961 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-33680673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35476116', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16784505081350669978', 'uuid-lslong': '9840873010827944824'}, 'enable': 'true', 'created': '2025-11-18T17:10:28', 'last-modified': '2025-11-18T17:10:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953698'}
2025-11-18 17:10:30,967 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-18 17:10:30,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33680673 passed
2025-11-18 17:10:30,968 - DEBUG - ====Verifying policy data for ctest-vn-33680673 in API_Server ======
2025-11-18 17:10:30,968 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-18 17:10:30,973 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774
2025-11-18 17:10:30,983 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a59c331-1735-4ebb-9e2a-b1f84510dd7f
2025-11-18 17:10:31,052 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8ee8a71-80a5-469a-8891-cddd3a20e378
2025-11-18 17:10:31,061 - DEBUG - ==>Verifying data for policy with id: 2fcc5746-a580-41df-bfb8-c28d893acb3b, fqn: ['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-policy-allow-all-97313189']
2025-11-18 17:10:31,061 - INFO - VN ctest-vn-33680673 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 17:10:31,061 - DEBUG - Verifying the vn in opserver
2025-11-18 17:10:31,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-33680673 virtual network link through opserver 10.0.0.38
2025-11-18 17:10:31,061 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-18 17:10:31,351 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-18 17:10:31,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-33680673', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-33680673?flat'}
2025-11-18 17:10:31,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-33680673 is found in opserver
2025-11-18 17:10:31,433 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 17:10:31,438 - DEBUG - VRF ids for VN ctest-vn-33680673: {}
2025-11-18 17:10:31,438 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-18 17:10:31,444 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774
2025-11-18 17:10:31,455 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a59c331-1735-4ebb-9e2a-b1f84510dd7f
2025-11-18 17:10:31,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fde3c049-10ac-4eb7-90d0-820da1a3c22b
2025-11-18 17:10:31,540 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fde3c049-10ac-4eb7-90d0-820da1a3c22b
2025-11-18 17:10:31,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a54b0c85-c55b-443f-9d6e-216601951767
2025-11-18 17:10:31,556 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a54b0c85-c55b-443f-9d6e-216601951767
2025-11-18 17:10:31,562 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/97d09f49-8fe2-4e8d-b414-166baed0aa96
2025-11-18 17:10:31,569 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 17:10:31,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fde3c049-10ac-4eb7-90d0-820da1a3c22b
2025-11-18 17:10:31,577 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a54b0c85-c55b-443f-9d6e-216601951767
2025-11-18 17:10:31,591 - INFO - Verified VN network id 12 for VN fde3c049-10ac-4eb7-90d0-820da1a3c22b
2025-11-18 17:10:31,591 - INFO - Verifications in API Server for VN ctest-vn-76028444 passed
2025-11-18 17:10:31,591 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fde3c049-10ac-4eb7-90d0-820da1a3c22b
2025-11-18 17:10:31,600 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a54b0c85-c55b-443f-9d6e-216601951767
2025-11-18 17:10:31,607 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a54b0c85-c55b-443f-9d6e-216601951767
2025-11-18 17:10:31,613 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/97d09f49-8fe2-4e8d-b414-166baed0aa96
2025-11-18 17:10:31,625 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-76028444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35476116', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18294677531353960119', 'uuid-lslong': '10434983331675488811'}, 'enable': 'true', 'created': '2025-11-18T17:10:29', 'last-modified': '2025-11-18T17:10:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.388473'}
2025-11-18 17:10:31,631 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-18 17:10:31,631 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76028444 passed
2025-11-18 17:10:31,631 - DEBUG - ====Verifying policy data for ctest-vn-76028444 in API_Server ======
2025-11-18 17:10:31,631 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-18 17:10:31,637 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774
2025-11-18 17:10:31,648 - DEBUG - Requesting: http://10.0.0.38:8082/project/3a59c331-1735-4ebb-9e2a-b1f84510dd7f
2025-11-18 17:10:31,715 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fde3c049-10ac-4eb7-90d0-820da1a3c22b
2025-11-18 17:10:31,723 - DEBUG - ==>Verifying data for policy with id: 2fcc5746-a580-41df-bfb8-c28d893acb3b, fqn: ['default-domain', 'ctest-TestBasicPolicy-35476116', 'ctest-policy-allow-all-97313189']
2025-11-18 17:10:31,723 - INFO - VN ctest-vn-76028444 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-18 17:10:31,723 - DEBUG - Verifying the vn in opserver
2025-11-18 17:10:31,723 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-76028444 virtual network link through opserver 10.0.0.38
2025-11-18 17:10:31,723 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-18 17:10:31,733 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-76028444', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-76028444?flat'}
2025-11-18 17:10:31,733 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35476116:ctest-vn-76028444 is found in opserver
2025-11-18 17:10:31,744 - DEBUG - Do not have enough data to verify VN in agent
2025-11-18 17:10:31,749 - DEBUG - VRF ids for VN ctest-vn-76028444: {}
2025-11-18 17:10:31,808 - DEBUG - Services list from nova: [