2026-04-29 19:59:40,915 - INFO - Domain Default found not creating
2026-04-29 19:59:41,093 - INFO - Project ctest-TestBasicPolicy-70359610 not found, creating it
2026-04-29 19:59:41,569 - INFO - Created Project:ctest-TestBasicPolicy-70359610, ID : 6d7b14e3-53be-44c8-87e8-6f9b38b75e71
2026-04-29 19:59:43,074 - INFO - ================================================================================
2026-04-29 19:59:43,074 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 19:59:43,074 - 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-04-29 19:59:43,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-04-29 19:59:43,342 - INFO - Initial checks done. Running the testcase now
2026-04-29 19:59:43,342 - INFO -
2026-04-29 19:59:43,874 - DEBUG - Response for create_network : {'network': {'id': 'd1fea663-faaa-4a28-8b2c-e8be7d0d8d60', 'name': 'ctest-vn-43876208', 'tenant_id': '6d7b14e353be44c887e86f9b38b75e71', 'project_id': '6d7b14e353be44c887e86f9b38b75e71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-vn-43876208'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:59:44,045 - DEBUG - Response for create_subnet : {'subnet': {'id': '37c194bc-04f7-4798-9a24-61d04edf0bab', 'name': '', 'tenant_id': '6d7b14e353be44c887e86f9b38b75e71', 'network_id': 'd1fea663-faaa-4a28-8b2c-e8be7d0d8d60', 'ip_version': 4, 'cidr': '173.97.139.128/26', 'allocation_pools': [{'start': '173.97.139.130', 'end': '173.97.139.190'}], 'gateway_ip': '173.97.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.97.139.130', 'tags': [], 'project_id': '6d7b14e353be44c887e86f9b38b75e71'}}
2026-04-29 19:59:44,062 - INFO - Created VN ctest-vn-43876208
2026-04-29 19:59:44,113 - DEBUG - VN ctest-vn-43876208 UUID is d1fea663-faaa-4a28-8b2c-e8be7d0d8d60
2026-04-29 19:59:44,431 - DEBUG - Response for create_network : {'network': {'id': 'c7897e9e-931c-4e78-be59-303ba2988a16', 'name': 'ctest-vn-60211595', 'tenant_id': '6d7b14e353be44c887e86f9b38b75e71', 'project_id': '6d7b14e353be44c887e86f9b38b75e71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-vn-60211595'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:59:44,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c00a969-1f77-4d8e-9dca-0c1f2dd6716d', 'name': '', 'tenant_id': '6d7b14e353be44c887e86f9b38b75e71', 'network_id': 'c7897e9e-931c-4e78-be59-303ba2988a16', 'ip_version': 4, 'cidr': '75.76.143.64/26', 'allocation_pools': [{'start': '75.76.143.66', 'end': '75.76.143.126'}], 'gateway_ip': '75.76.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.76.143.66', 'tags': [], 'project_id': '6d7b14e353be44c887e86f9b38b75e71'}}
2026-04-29 19:59:44,616 - INFO - Created VN ctest-vn-60211595
2026-04-29 19:59:44,669 - DEBUG - VN ctest-vn-60211595 UUID is c7897e9e-931c-4e78-be59-303ba2988a16
2026-04-29 19:59:44,781 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-43876208, 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-70359610:ctest-vn-60211595, 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-04-29 19:59:45,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1fea663-faaa-4a28-8b2c-e8be7d0d8d60', 'name': 'ctest-vn-43876208', 'tenant_id': '6d7b14e353be44c887e86f9b38b75e71', 'project_id': '6d7b14e353be44c887e86f9b38b75e71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37c194bc-04f7-4798-9a24-61d04edf0bab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-vn-43876208'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-policy-allow-all-28810868']], 'subnet_ipam': [{'subnet_cidr': '173.97.139.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:59:45,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7897e9e-931c-4e78-be59-303ba2988a16', 'name': 'ctest-vn-60211595', 'tenant_id': '6d7b14e353be44c887e86f9b38b75e71', 'project_id': '6d7b14e353be44c887e86f9b38b75e71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c00a969-1f77-4d8e-9dca-0c1f2dd6716d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-vn-60211595'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-policy-allow-all-28810868']], 'subnet_ipam': [{'subnet_cidr': '75.76.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:59:45,461 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 19:59:45,753 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 19:59:45,786 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f2dea382-0f33-4c04-a957-c3e354510002
2026-04-29 19:59:45,798 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d7b14e3-53be-44c8-87e8-6f9b38b75e71
2026-04-29 19:59:45,867 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d1fea663-faaa-4a28-8b2c-e8be7d0d8d60
2026-04-29 19:59:45,878 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d1fea663-faaa-4a28-8b2c-e8be7d0d8d60
2026-04-29 19:59:45,886 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b94811c-584d-4ea5-bcda-32a6d44456c5
2026-04-29 19:59:45,893 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b94811c-584d-4ea5-bcda-32a6d44456c5
2026-04-29 19:59:45,901 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/60d8851b-7d4a-41af-bb18-925199aea06c
2026-04-29 19:59:45,910 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 19:59:45,910 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d1fea663-faaa-4a28-8b2c-e8be7d0d8d60
2026-04-29 19:59:45,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b94811c-584d-4ea5-bcda-32a6d44456c5
2026-04-29 19:59:45,936 - INFO - Verified VN network id 11 for VN d1fea663-faaa-4a28-8b2c-e8be7d0d8d60
2026-04-29 19:59:45,936 - INFO - Verifications in API Server for VN ctest-vn-43876208 passed
2026-04-29 19:59:45,936 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d1fea663-faaa-4a28-8b2c-e8be7d0d8d60
2026-04-29 19:59:45,947 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b94811c-584d-4ea5-bcda-32a6d44456c5
2026-04-29 19:59:45,958 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b94811c-584d-4ea5-bcda-32a6d44456c5
2026-04-29 19:59:45,973 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/60d8851b-7d4a-41af-bb18-925199aea06c
2026-04-29 19:59:45,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-43876208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70359610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15131714746348882472', 'uuid-lslong': '10028646375086722400'}, 'enable': 'true', 'created': '2026-04-29T19:59:43', 'last-modified': '2026-04-29T19:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937645'}
2026-04-29 19:59:45,993 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 19:59:45,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43876208 passed
2026-04-29 19:59:45,993 - DEBUG - ====Verifying policy data for ctest-vn-43876208 in API_Server ======
2026-04-29 19:59:45,993 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 19:59:45,999 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f2dea382-0f33-4c04-a957-c3e354510002
2026-04-29 19:59:46,011 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d7b14e3-53be-44c8-87e8-6f9b38b75e71
2026-04-29 19:59:46,081 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d1fea663-faaa-4a28-8b2c-e8be7d0d8d60
2026-04-29 19:59:46,090 - DEBUG - ==>Verifying data for policy with id: e7d8f677-6437-4cc0-982a-2574f9f50387, fqn: ['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-policy-allow-all-28810868']
2026-04-29 19:59:46,090 - INFO - VN ctest-vn-43876208 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 19:59:46,090 - DEBUG - Verifying the vn in opserver
2026-04-29 19:59:46,090 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-43876208 virtual network link through opserver 10.0.0.50
2026-04-29 19:59:46,090 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 19:59:46,391 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 19:59:46,453 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-43876208', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-43876208?flat'}
2026-04-29 19:59:46,453 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-43876208 is found in opserver
2026-04-29 19:59:46,462 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 19:59:46,466 - DEBUG - VRF ids for VN ctest-vn-43876208: {}
2026-04-29 19:59:46,466 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 19:59:46,471 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f2dea382-0f33-4c04-a957-c3e354510002
2026-04-29 19:59:46,481 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d7b14e3-53be-44c8-87e8-6f9b38b75e71
2026-04-29 19:59:46,554 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c7897e9e-931c-4e78-be59-303ba2988a16
2026-04-29 19:59:46,567 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c7897e9e-931c-4e78-be59-303ba2988a16
2026-04-29 19:59:46,577 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f503bce-8633-49b5-89cc-cc770806afa1
2026-04-29 19:59:46,586 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f503bce-8633-49b5-89cc-cc770806afa1
2026-04-29 19:59:46,597 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0aca3d7a-2b2c-4aef-be80-526436bee63e
2026-04-29 19:59:46,606 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 19:59:46,606 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c7897e9e-931c-4e78-be59-303ba2988a16
2026-04-29 19:59:46,617 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f503bce-8633-49b5-89cc-cc770806afa1
2026-04-29 19:59:46,636 - INFO - Verified VN network id 12 for VN c7897e9e-931c-4e78-be59-303ba2988a16
2026-04-29 19:59:46,637 - INFO - Verifications in API Server for VN ctest-vn-60211595 passed
2026-04-29 19:59:46,637 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c7897e9e-931c-4e78-be59-303ba2988a16
2026-04-29 19:59:46,648 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f503bce-8633-49b5-89cc-cc770806afa1
2026-04-29 19:59:46,655 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f503bce-8633-49b5-89cc-cc770806afa1
2026-04-29 19:59:46,662 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0aca3d7a-2b2c-4aef-be80-526436bee63e
2026-04-29 19:59:46,674 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-60211595', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70359610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14378162504895057528', 'uuid-lslong': '13716047172822665750'}, 'enable': 'true', 'created': '2026-04-29T19:59:44', 'last-modified': '2026-04-29T19:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400791'}
2026-04-29 19:59:46,679 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 19:59:46,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60211595 passed
2026-04-29 19:59:46,680 - DEBUG - ====Verifying policy data for ctest-vn-60211595 in API_Server ======
2026-04-29 19:59:46,680 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-29 19:59:46,685 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f2dea382-0f33-4c04-a957-c3e354510002
2026-04-29 19:59:46,695 - DEBUG - Requesting: http://10.0.0.50:8082/project/6d7b14e3-53be-44c8-87e8-6f9b38b75e71
2026-04-29 19:59:46,771 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c7897e9e-931c-4e78-be59-303ba2988a16
2026-04-29 19:59:46,780 - DEBUG - ==>Verifying data for policy with id: e7d8f677-6437-4cc0-982a-2574f9f50387, fqn: ['default-domain', 'ctest-TestBasicPolicy-70359610', 'ctest-policy-allow-all-28810868']
2026-04-29 19:59:46,780 - INFO - VN ctest-vn-60211595 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 19:59:46,780 - DEBUG - Verifying the vn in opserver
2026-04-29 19:59:46,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-60211595 virtual network link through opserver 10.0.0.50
2026-04-29 19:59:46,780 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-29 19:59:46,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-60211595', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-60211595?flat'}
2026-04-29 19:59:46,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70359610:ctest-vn-60211595 is found in opserver
2026-04-29 19:59:46,798 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 19:59:46,803 - DEBUG - VRF ids for VN ctest-vn-60211595: {}
2026-04-29 19:59:46,862 - DEBUG - Services list from nova: [