2026-09-29 14:55:18,792 - INFO - Domain Default found not creating
2026-09-29 14:55:18,994 - INFO - Project ctest-TestBasicPolicy-84818784 not found, creating it
2026-09-29 14:55:19,551 - INFO - Created Project:ctest-TestBasicPolicy-84818784, ID : a9cc1425-941d-483a-bdff-e6edf63ee51b
2026-09-29 14:55:21,491 - INFO - ================================================================================
2026-09-29 14:55:21,491 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-29 14:55:21,491 - 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-09-29 14:55:21,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with
2026-09-29 14:55:21,767 - INFO - Initial checks done. Running the testcase now
2026-09-29 14:55:21,767 - INFO -
2026-09-29 14:55:22,500 - DEBUG - Response for create_network : {'network': {'id': 'ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5', 'name': 'ctest-vn-33300622', 'tenant_id': 'a9cc1425941d483abdffe6edf63ee51b', 'project_id': 'a9cc1425941d483abdffe6edf63ee51b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-vn-33300622'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 14:55:22,782 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e5fa942-7bbe-40f2-9c6d-203fb600c338', 'name': '', 'tenant_id': 'a9cc1425941d483abdffe6edf63ee51b', 'network_id': 'ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5', 'ip_version': 4, 'cidr': '67.151.96.64/26', 'allocation_pools': [{'start': '67.151.96.66', 'end': '67.151.96.126'}], 'gateway_ip': '67.151.96.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.151.96.66', 'tags': [], 'project_id': 'a9cc1425941d483abdffe6edf63ee51b'}}
2026-09-29 14:55:22,804 - INFO - Created VN ctest-vn-33300622
2026-09-29 14:55:22,862 - DEBUG - VN ctest-vn-33300622 UUID is ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5
2026-09-29 14:55:23,231 - DEBUG - Response for create_network : {'network': {'id': '4917d011-8296-4dce-8459-5923a9e47081', 'name': 'ctest-vn-07357522', 'tenant_id': 'a9cc1425941d483abdffe6edf63ee51b', 'project_id': 'a9cc1425941d483abdffe6edf63ee51b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-vn-07357522'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 14:55:23,500 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e7786d9-ca5d-474e-9673-9ce935058ef5', 'name': '', 'tenant_id': 'a9cc1425941d483abdffe6edf63ee51b', 'network_id': '4917d011-8296-4dce-8459-5923a9e47081', 'ip_version': 4, 'cidr': '56.13.64.64/26', 'allocation_pools': [{'start': '56.13.64.66', 'end': '56.13.64.126'}], 'gateway_ip': '56.13.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.13.64.66', 'tags': [], 'project_id': 'a9cc1425941d483abdffe6edf63ee51b'}}
2026-09-29 14:55:23,528 - INFO - Created VN ctest-vn-07357522
2026-09-29 14:55:23,586 - DEBUG - VN ctest-vn-07357522 UUID is 4917d011-8296-4dce-8459-5923a9e47081
2026-09-29 14:55:23,718 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-33300622, 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-84818784:ctest-vn-07357522, 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-09-29 14:55:24,111 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5', 'name': 'ctest-vn-33300622', 'tenant_id': 'a9cc1425941d483abdffe6edf63ee51b', 'project_id': 'a9cc1425941d483abdffe6edf63ee51b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5e5fa942-7bbe-40f2-9c6d-203fb600c338'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-vn-33300622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-policy-allow-all-90260938']], 'subnet_ipam': [{'subnet_cidr': '67.151.96.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 14:55:24,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4917d011-8296-4dce-8459-5923a9e47081', 'name': 'ctest-vn-07357522', 'tenant_id': 'a9cc1425941d483abdffe6edf63ee51b', 'project_id': 'a9cc1425941d483abdffe6edf63ee51b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6e7786d9-ca5d-474e-9673-9ce935058ef5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-vn-07357522'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-policy-allow-all-90260938']], 'subnet_ipam': [{'subnet_cidr': '56.13.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 14:55:24,578 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-29 14:55:24,951 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-29 14:55:24,984 - DEBUG - Requesting: http://10.0.0.185:8082/domain/822d6882-9b6b-4a2c-a96b-1463563419a4
2026-09-29 14:55:25,000 - DEBUG - Requesting: http://10.0.0.185:8082/project/a9cc1425-941d-483a-bdff-e6edf63ee51b
2026-09-29 14:55:25,093 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5
2026-09-29 14:55:25,110 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5
2026-09-29 14:55:25,123 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8ca87419-a5b8-49fa-895a-1b4b1ec60874
2026-09-29 14:55:25,134 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8ca87419-a5b8-49fa-895a-1b4b1ec60874
2026-09-29 14:55:25,144 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/92e6088c-5412-4f6b-a53a-63ed667abcb4
2026-09-29 14:55:25,154 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 14:55:25,154 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5
2026-09-29 14:55:25,168 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8ca87419-a5b8-49fa-895a-1b4b1ec60874
2026-09-29 14:55:25,187 - INFO - Verified VN network id 12 for VN ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5
2026-09-29 14:55:25,187 - INFO - Verifications in API Server for VN ctest-vn-33300622 passed
2026-09-29 14:55:25,188 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5
2026-09-29 14:55:25,199 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8ca87419-a5b8-49fa-895a-1b4b1ec60874
2026-09-29 14:55:25,208 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/8ca87419-a5b8-49fa-895a-1b4b1ec60874
2026-09-29 14:55:25,218 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/92e6088c-5412-4f6b-a53a-63ed667abcb4
2026-09-29 14:55:25,235 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-33300622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84818784', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12511220356178266277', 'uuid-lslong': '10894970133767169733'}, 'enable': 'true', 'created': '2026-09-29T14:55:22', 'last-modified': '2026-09-29T14:55:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.167905'}
2026-09-29 14:55:25,243 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 14:55:25,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33300622 passed
2026-09-29 14:55:25,244 - DEBUG - ====Verifying policy data for ctest-vn-33300622 in API_Server ======
2026-09-29 14:55:25,244 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-29 14:55:25,251 - DEBUG - Requesting: http://10.0.0.185:8082/domain/822d6882-9b6b-4a2c-a96b-1463563419a4
2026-09-29 14:55:25,266 - DEBUG - Requesting: http://10.0.0.185:8082/project/a9cc1425-941d-483a-bdff-e6edf63ee51b
2026-09-29 14:55:25,354 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/ada0c8a0-6ca4-48a5-9732-b59cd5aea6c5
2026-09-29 14:55:25,365 - DEBUG - ==>Verifying data for policy with id: 887b3b49-d167-402d-b64d-5b9a8e5f8060, fqn: ['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-policy-allow-all-90260938']
2026-09-29 14:55:25,365 - INFO - VN ctest-vn-33300622 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 14:55:25,366 - DEBUG - Verifying the vn in opserver
2026-09-29 14:55:25,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-33300622 virtual network link through opserver 10.0.0.185
2026-09-29 14:55:25,366 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-29 14:55:25,739 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-29 14:55:25,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-33300622', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-33300622?flat'}
2026-09-29 14:55:25,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-33300622 is found in opserver
2026-09-29 14:55:25,816 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 14:55:25,823 - DEBUG - VRF ids for VN ctest-vn-33300622: {}
2026-09-29 14:55:25,823 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-29 14:55:25,830 - DEBUG - Requesting: http://10.0.0.185:8082/domain/822d6882-9b6b-4a2c-a96b-1463563419a4
2026-09-29 14:55:25,842 - DEBUG - Requesting: http://10.0.0.185:8082/project/a9cc1425-941d-483a-bdff-e6edf63ee51b
2026-09-29 14:55:25,919 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/4917d011-8296-4dce-8459-5923a9e47081
2026-09-29 14:55:25,935 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/4917d011-8296-4dce-8459-5923a9e47081
2026-09-29 14:55:25,948 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/482e93c8-ae50-4bf0-adc5-0e1f3ff9985d
2026-09-29 14:55:25,957 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/482e93c8-ae50-4bf0-adc5-0e1f3ff9985d
2026-09-29 14:55:25,966 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/4d402428-408a-4e7f-8b69-f806610a9795
2026-09-29 14:55:25,975 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 14:55:25,975 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/4917d011-8296-4dce-8459-5923a9e47081
2026-09-29 14:55:25,988 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/482e93c8-ae50-4bf0-adc5-0e1f3ff9985d
2026-09-29 14:55:26,009 - INFO - Verified VN network id 13 for VN 4917d011-8296-4dce-8459-5923a9e47081
2026-09-29 14:55:26,009 - INFO - Verifications in API Server for VN ctest-vn-07357522 passed
2026-09-29 14:55:26,010 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/4917d011-8296-4dce-8459-5923a9e47081
2026-09-29 14:55:26,023 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/482e93c8-ae50-4bf0-adc5-0e1f3ff9985d
2026-09-29 14:55:26,033 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/482e93c8-ae50-4bf0-adc5-0e1f3ff9985d
2026-09-29 14:55:26,042 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/4d402428-408a-4e7f-8b69-f806610a9795
2026-09-29 14:55:26,058 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-07357522', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84818784', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5266907062856994254', 'uuid-lslong': '9536751695642783873'}, 'enable': 'true', 'created': '2026-09-29T14:55:23', 'last-modified': '2026-09-29T14:55:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.684827'}
2026-09-29 14:55:26,066 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 14:55:26,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07357522 passed
2026-09-29 14:55:26,066 - DEBUG - ====Verifying policy data for ctest-vn-07357522 in API_Server ======
2026-09-29 14:55:26,066 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-29 14:55:26,074 - DEBUG - Requesting: http://10.0.0.185:8082/domain/822d6882-9b6b-4a2c-a96b-1463563419a4
2026-09-29 14:55:26,087 - DEBUG - Requesting: http://10.0.0.185:8082/project/a9cc1425-941d-483a-bdff-e6edf63ee51b
2026-09-29 14:55:26,175 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/4917d011-8296-4dce-8459-5923a9e47081
2026-09-29 14:55:26,189 - DEBUG - ==>Verifying data for policy with id: 887b3b49-d167-402d-b64d-5b9a8e5f8060, fqn: ['default-domain', 'ctest-TestBasicPolicy-84818784', 'ctest-policy-allow-all-90260938']
2026-09-29 14:55:26,189 - INFO - VN ctest-vn-07357522 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 14:55:26,189 - DEBUG - Verifying the vn in opserver
2026-09-29 14:55:26,189 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-07357522 virtual network link through opserver 10.0.0.185
2026-09-29 14:55:26,189 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-29 14:55:26,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-07357522', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-07357522?flat'}
2026-09-29 14:55:26,203 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84818784:ctest-vn-07357522 is found in opserver
2026-09-29 14:55:26,219 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 14:55:26,225 - DEBUG - VRF ids for VN ctest-vn-07357522: {}
2026-09-29 14:55:26,308 - DEBUG - Services list from nova: [