2026-01-28 19:50:37,577 - INFO - Domain Default found not creating
2026-01-28 19:50:37,719 - INFO - Project ctest-TestBasicPolicy-37671723 not found, creating it
2026-01-28 19:50:38,178 - INFO - Created Project:ctest-TestBasicPolicy-37671723, ID : 79cff2e8-8a01-431d-acab-1fef36c96c79
2026-01-28 19:50:39,586 - INFO - ================================================================================
2026-01-28 19:50:39,586 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 19:50:39,586 - 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-01-28 19:50:39,842 - DEBUG - Nothing to compare xmpp stats {'10.0.0.156': {'10.20.0.17': '0'}} with
2026-01-28 19:50:39,842 - INFO - Initial checks done. Running the testcase now
2026-01-28 19:50:39,842 - INFO -
2026-01-28 19:50:40,369 - DEBUG - Response for create_network : {'network': {'id': '3643d4bd-51c6-44df-98a1-e4c9f11fc4c6', 'name': 'ctest-vn-78706000', 'tenant_id': '79cff2e88a01431dacab1fef36c96c79', 'project_id': '79cff2e88a01431dacab1fef36c96c79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-vn-78706000'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:50:40,535 - DEBUG - Response for create_subnet : {'subnet': {'id': '8edce6d5-470d-4c2f-8679-a31da7dfd90a', 'name': '', 'tenant_id': '79cff2e88a01431dacab1fef36c96c79', 'network_id': '3643d4bd-51c6-44df-98a1-e4c9f11fc4c6', 'ip_version': 4, 'cidr': '199.34.5.64/26', 'allocation_pools': [{'start': '199.34.5.66', 'end': '199.34.5.126'}], 'gateway_ip': '199.34.5.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.34.5.66', 'tags': [], 'project_id': '79cff2e88a01431dacab1fef36c96c79'}}
2026-01-28 19:50:40,550 - INFO - Created VN ctest-vn-78706000
2026-01-28 19:50:40,606 - DEBUG - VN ctest-vn-78706000 UUID is 3643d4bd-51c6-44df-98a1-e4c9f11fc4c6
2026-01-28 19:50:40,921 - DEBUG - Response for create_network : {'network': {'id': '62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639', 'name': 'ctest-vn-16399243', 'tenant_id': '79cff2e88a01431dacab1fef36c96c79', 'project_id': '79cff2e88a01431dacab1fef36c96c79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-vn-16399243'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:50:41,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c908175-8199-4c2a-8489-c319be3794d2', 'name': '', 'tenant_id': '79cff2e88a01431dacab1fef36c96c79', 'network_id': '62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639', 'ip_version': 4, 'cidr': '110.174.92.192/26', 'allocation_pools': [{'start': '110.174.92.194', 'end': '110.174.92.254'}], 'gateway_ip': '110.174.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.174.92.194', 'tags': [], 'project_id': '79cff2e88a01431dacab1fef36c96c79'}}
2026-01-28 19:50:41,088 - INFO - Created VN ctest-vn-16399243
2026-01-28 19:50:41,138 - DEBUG - VN ctest-vn-16399243 UUID is 62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639
2026-01-28 19:50:41,282 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-78706000, 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-37671723:ctest-vn-16399243, 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-01-28 19:50:41,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3643d4bd-51c6-44df-98a1-e4c9f11fc4c6', 'name': 'ctest-vn-78706000', 'tenant_id': '79cff2e88a01431dacab1fef36c96c79', 'project_id': '79cff2e88a01431dacab1fef36c96c79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8edce6d5-470d-4c2f-8679-a31da7dfd90a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-vn-78706000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-policy-allow-all-88404388']], 'subnet_ipam': [{'subnet_cidr': '199.34.5.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:50:41,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639', 'name': 'ctest-vn-16399243', 'tenant_id': '79cff2e88a01431dacab1fef36c96c79', 'project_id': '79cff2e88a01431dacab1fef36c96c79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c908175-8199-4c2a-8489-c319be3794d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-vn-16399243'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-policy-allow-all-88404388']], 'subnet_ipam': [{'subnet_cidr': '110.174.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:50:41,938 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-28 19:50:42,233 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-28 19:50:42,259 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2
2026-01-28 19:50:42,270 - DEBUG - Requesting: http://10.0.0.156:8082/project/79cff2e8-8a01-431d-acab-1fef36c96c79
2026-01-28 19:50:42,357 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3643d4bd-51c6-44df-98a1-e4c9f11fc4c6
2026-01-28 19:50:42,366 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3643d4bd-51c6-44df-98a1-e4c9f11fc4c6
2026-01-28 19:50:42,373 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/2adeedc4-8d70-4f7f-aed3-b0708f5f9e36
2026-01-28 19:50:42,379 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/2adeedc4-8d70-4f7f-aed3-b0708f5f9e36
2026-01-28 19:50:42,385 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/917632f3-f372-4150-a7fe-62b7da9fe511
2026-01-28 19:50:42,390 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 19:50:42,390 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3643d4bd-51c6-44df-98a1-e4c9f11fc4c6
2026-01-28 19:50:42,398 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/2adeedc4-8d70-4f7f-aed3-b0708f5f9e36
2026-01-28 19:50:42,408 - INFO - Verified VN network id 11 for VN 3643d4bd-51c6-44df-98a1-e4c9f11fc4c6
2026-01-28 19:50:42,408 - INFO - Verifications in API Server for VN ctest-vn-78706000 passed
2026-01-28 19:50:42,408 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3643d4bd-51c6-44df-98a1-e4c9f11fc4c6
2026-01-28 19:50:42,415 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/2adeedc4-8d70-4f7f-aed3-b0708f5f9e36
2026-01-28 19:50:42,420 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/2adeedc4-8d70-4f7f-aed3-b0708f5f9e36
2026-01-28 19:50:42,426 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/917632f3-f372-4150-a7fe-62b7da9fe511
2026-01-28 19:50:42,435 - DEBUG - Control-node 10.0.0.156 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-78706000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37671723', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3910202811073578207', 'uuid-lslong': '10998323321000412358'}, 'enable': 'true', 'created': '2026-01-28T19:50:40', 'last-modified': '2026-01-28T19:50:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888651'}
2026-01-28 19:50:42,440 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 19:50:42,440 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78706000 passed
2026-01-28 19:50:42,440 - DEBUG - ====Verifying policy data for ctest-vn-78706000 in API_Server ======
2026-01-28 19:50:42,441 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-28 19:50:42,445 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2
2026-01-28 19:50:42,454 - DEBUG - Requesting: http://10.0.0.156:8082/project/79cff2e8-8a01-431d-acab-1fef36c96c79
2026-01-28 19:50:42,522 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/3643d4bd-51c6-44df-98a1-e4c9f11fc4c6
2026-01-28 19:50:42,530 - DEBUG - ==>Verifying data for policy with id: 59f30b77-93f2-4e3b-8a80-cf29d6d846cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-policy-allow-all-88404388']
2026-01-28 19:50:42,530 - INFO - VN ctest-vn-78706000 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 19:50:42,530 - DEBUG - Verifying the vn in opserver
2026-01-28 19:50:42,530 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-78706000 virtual network link through opserver 10.0.0.156
2026-01-28 19:50:42,530 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks
2026-01-28 19:50:42,822 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks
2026-01-28 19:50:42,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-78706000', 'href': 'http://10.0.0.156:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-78706000?flat'}
2026-01-28 19:50:42,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-78706000 is found in opserver
2026-01-28 19:50:42,886 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 19:50:42,890 - DEBUG - VRF ids for VN ctest-vn-78706000: {}
2026-01-28 19:50:42,890 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-28 19:50:42,897 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2
2026-01-28 19:50:42,907 - DEBUG - Requesting: http://10.0.0.156:8082/project/79cff2e8-8a01-431d-acab-1fef36c96c79
2026-01-28 19:50:42,974 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639
2026-01-28 19:50:42,984 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639
2026-01-28 19:50:42,992 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f985ab85-530e-4ad5-bf31-d1c8c5525a06
2026-01-28 19:50:43,000 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f985ab85-530e-4ad5-bf31-d1c8c5525a06
2026-01-28 19:50:43,006 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/22959ef5-6c06-47c1-8957-90929b3e4a3d
2026-01-28 19:50:43,011 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 19:50:43,012 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639
2026-01-28 19:50:43,019 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f985ab85-530e-4ad5-bf31-d1c8c5525a06
2026-01-28 19:50:43,041 - INFO - Verified VN network id 12 for VN 62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639
2026-01-28 19:50:43,041 - INFO - Verifications in API Server for VN ctest-vn-16399243 passed
2026-01-28 19:50:43,041 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639
2026-01-28 19:50:43,052 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f985ab85-530e-4ad5-bf31-d1c8c5525a06
2026-01-28 19:50:43,059 - DEBUG - Requesting: http://10.0.0.156:8082/routing-instance/f985ab85-530e-4ad5-bf31-d1c8c5525a06
2026-01-28 19:50:43,064 - DEBUG - Requesting: http://10.0.0.156:8082/route-target/22959ef5-6c06-47c1-8957-90929b3e4a3d
2026-01-28 19:50:43,074 - DEBUG - Control-node 10.0.0.156 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-16399243', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37671723', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7123035175969311909', 'uuid-lslong': '13262339761629009465'}, 'enable': 'true', 'created': '2026-01-28T19:50:40', 'last-modified': '2026-01-28T19:50:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.309202'}
2026-01-28 19:50:43,080 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 19:50:43,080 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16399243 passed
2026-01-28 19:50:43,080 - DEBUG - ====Verifying policy data for ctest-vn-16399243 in API_Server ======
2026-01-28 19:50:43,080 - DEBUG - Requesting: http://10.0.0.156:8082/domains
2026-01-28 19:50:43,085 - DEBUG - Requesting: http://10.0.0.156:8082/domain/3dd0d628-0c71-4c2c-b3e0-c94e8da421f2
2026-01-28 19:50:43,095 - DEBUG - Requesting: http://10.0.0.156:8082/project/79cff2e8-8a01-431d-acab-1fef36c96c79
2026-01-28 19:50:43,162 - DEBUG - Requesting: http://10.0.0.156:8082/virtual-network/62da1ac0-ca43-4ca5-b80d-4bbf0e6f9639
2026-01-28 19:50:43,170 - DEBUG - ==>Verifying data for policy with id: 59f30b77-93f2-4e3b-8a80-cf29d6d846cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-37671723', 'ctest-policy-allow-all-88404388']
2026-01-28 19:50:43,170 - INFO - VN ctest-vn-16399243 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 19:50:43,170 - DEBUG - Verifying the vn in opserver
2026-01-28 19:50:43,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-16399243 virtual network link through opserver 10.0.0.156
2026-01-28 19:50:43,170 - DEBUG - Requesting: http://10.0.0.156:8081/analytics/uves/virtual-networks
2026-01-28 19:50:43,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-16399243', 'href': 'http://10.0.0.156:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-16399243?flat'}
2026-01-28 19:50:43,178 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37671723:ctest-vn-16399243 is found in opserver
2026-01-28 19:50:43,186 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 19:50:43,190 - DEBUG - VRF ids for VN ctest-vn-16399243: {}
2026-01-28 19:50:43,247 - DEBUG - Services list from nova: [