2026-01-22 16:23:32,928 - INFO - Domain Default found not creating
2026-01-22 16:23:33,111 - INFO - Project ctest-TestBasicPolicy-04922935 not found, creating it
2026-01-22 16:23:33,586 - INFO - Created Project:ctest-TestBasicPolicy-04922935, ID : d9fe7e44-aa48-4237-b2c0-8e421d630d7c
2026-01-22 16:23:35,136 - INFO - ================================================================================
2026-01-22 16:23:35,136 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-22 16:23:35,136 - 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-22 16:23:35,395 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.130': '0'}} with
2026-01-22 16:23:35,395 - INFO - Initial checks done. Running the testcase now
2026-01-22 16:23:35,395 - INFO -
2026-01-22 16:23:35,973 - DEBUG - Response for create_network : {'network': {'id': '6c21cecd-6775-4c2e-909e-4813f395e0cd', 'name': 'ctest-vn-56058115', 'tenant_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'project_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-vn-56058115'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 16:23:36,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '3534e077-93c3-43bd-ade4-21d8da459041', 'name': '', 'tenant_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'network_id': '6c21cecd-6775-4c2e-909e-4813f395e0cd', 'ip_version': 4, 'cidr': '193.158.69.0/26', 'allocation_pools': [{'start': '193.158.69.2', 'end': '193.158.69.62'}], 'gateway_ip': '193.158.69.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.158.69.2', 'tags': [], 'project_id': 'd9fe7e44aa484237b2c08e421d630d7c'}}
2026-01-22 16:23:36,156 - INFO - Created VN ctest-vn-56058115
2026-01-22 16:23:36,206 - DEBUG - VN ctest-vn-56058115 UUID is 6c21cecd-6775-4c2e-909e-4813f395e0cd
2026-01-22 16:23:36,504 - DEBUG - Response for create_network : {'network': {'id': 'e427abd0-4f9b-44a6-a8be-455b9c2b52aa', 'name': 'ctest-vn-28390864', 'tenant_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'project_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-vn-28390864'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 16:23:36,716 - DEBUG - Response for create_subnet : {'subnet': {'id': '4317a636-cc77-41f8-9fb5-0881a7548960', 'name': '', 'tenant_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'network_id': 'e427abd0-4f9b-44a6-a8be-455b9c2b52aa', 'ip_version': 4, 'cidr': '196.202.97.64/26', 'allocation_pools': [{'start': '196.202.97.66', 'end': '196.202.97.126'}], 'gateway_ip': '196.202.97.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.202.97.66', 'tags': [], 'project_id': 'd9fe7e44aa484237b2c08e421d630d7c'}}
2026-01-22 16:23:36,736 - INFO - Created VN ctest-vn-28390864
2026-01-22 16:23:36,790 - DEBUG - VN ctest-vn-28390864 UUID is e427abd0-4f9b-44a6-a8be-455b9c2b52aa
2026-01-22 16:23:36,905 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-56058115, 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-04922935:ctest-vn-28390864, 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-22 16:23:37,205 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c21cecd-6775-4c2e-909e-4813f395e0cd', 'name': 'ctest-vn-56058115', 'tenant_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'project_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3534e077-93c3-43bd-ade4-21d8da459041'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-vn-56058115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-policy-allow-all-87768404']], 'subnet_ipam': [{'subnet_cidr': '193.158.69.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 16:23:37,482 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e427abd0-4f9b-44a6-a8be-455b9c2b52aa', 'name': 'ctest-vn-28390864', 'tenant_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'project_id': 'd9fe7e44aa484237b2c08e421d630d7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4317a636-cc77-41f8-9fb5-0881a7548960'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-vn-28390864'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-policy-allow-all-87768404']], 'subnet_ipam': [{'subnet_cidr': '196.202.97.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 16:23:37,626 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 16:23:37,934 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 16:23:37,970 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7
2026-01-22 16:23:37,983 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9fe7e44-aa48-4237-b2c0-8e421d630d7c
2026-01-22 16:23:38,059 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c21cecd-6775-4c2e-909e-4813f395e0cd
2026-01-22 16:23:38,075 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c21cecd-6775-4c2e-909e-4813f395e0cd
2026-01-22 16:23:38,084 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/898a44cb-c0b5-42de-a56d-fb5f017e2b62
2026-01-22 16:23:38,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/898a44cb-c0b5-42de-a56d-fb5f017e2b62
2026-01-22 16:23:38,097 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/af036dc1-8694-40ac-a6c7-a7cb82bb737f
2026-01-22 16:23:38,104 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 16:23:38,104 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c21cecd-6775-4c2e-909e-4813f395e0cd
2026-01-22 16:23:38,113 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/898a44cb-c0b5-42de-a56d-fb5f017e2b62
2026-01-22 16:23:38,127 - INFO - Verified VN network id 11 for VN 6c21cecd-6775-4c2e-909e-4813f395e0cd
2026-01-22 16:23:38,127 - INFO - Verifications in API Server for VN ctest-vn-56058115 passed
2026-01-22 16:23:38,127 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c21cecd-6775-4c2e-909e-4813f395e0cd
2026-01-22 16:23:38,138 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/898a44cb-c0b5-42de-a56d-fb5f017e2b62
2026-01-22 16:23:38,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/898a44cb-c0b5-42de-a56d-fb5f017e2b62
2026-01-22 16:23:38,157 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/af036dc1-8694-40ac-a6c7-a7cb82bb737f
2026-01-22 16:23:38,171 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-56058115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04922935', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7791736211927026734', 'uuid-lslong': '10420845838310170829'}, 'enable': 'true', 'created': '2026-01-22T16:23:35', 'last-modified': '2026-01-22T16:23:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995059'}
2026-01-22 16:23:38,179 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 16:23:38,179 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56058115 passed
2026-01-22 16:23:38,179 - DEBUG - ====Verifying policy data for ctest-vn-56058115 in API_Server ======
2026-01-22 16:23:38,179 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 16:23:38,185 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7
2026-01-22 16:23:38,197 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9fe7e44-aa48-4237-b2c0-8e421d630d7c
2026-01-22 16:23:38,278 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c21cecd-6775-4c2e-909e-4813f395e0cd
2026-01-22 16:23:38,290 - DEBUG - ==>Verifying data for policy with id: 20293af0-9385-4a78-af73-f53712c6ca9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-policy-allow-all-87768404']
2026-01-22 16:23:38,290 - INFO - VN ctest-vn-56058115 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 16:23:38,290 - DEBUG - Verifying the vn in opserver
2026-01-22 16:23:38,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-56058115 virtual network link through opserver 10.0.0.38
2026-01-22 16:23:38,290 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-22 16:23:38,583 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-22 16:23:38,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-56058115', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-56058115?flat'}
2026-01-22 16:23:38,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-56058115 is found in opserver
2026-01-22 16:23:38,664 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 16:23:38,669 - DEBUG - VRF ids for VN ctest-vn-56058115: {}
2026-01-22 16:23:38,669 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 16:23:38,675 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7
2026-01-22 16:23:38,686 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9fe7e44-aa48-4237-b2c0-8e421d630d7c
2026-01-22 16:23:38,759 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e427abd0-4f9b-44a6-a8be-455b9c2b52aa
2026-01-22 16:23:38,771 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e427abd0-4f9b-44a6-a8be-455b9c2b52aa
2026-01-22 16:23:38,781 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f499a98-4313-4ba3-b183-b1468768752c
2026-01-22 16:23:38,790 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f499a98-4313-4ba3-b183-b1468768752c
2026-01-22 16:23:38,798 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/001f66d0-d5e6-4eb4-a74f-a66b2d9a6bcd
2026-01-22 16:23:38,806 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 16:23:38,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e427abd0-4f9b-44a6-a8be-455b9c2b52aa
2026-01-22 16:23:38,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f499a98-4313-4ba3-b183-b1468768752c
2026-01-22 16:23:38,832 - INFO - Verified VN network id 12 for VN e427abd0-4f9b-44a6-a8be-455b9c2b52aa
2026-01-22 16:23:38,832 - INFO - Verifications in API Server for VN ctest-vn-28390864 passed
2026-01-22 16:23:38,832 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e427abd0-4f9b-44a6-a8be-455b9c2b52aa
2026-01-22 16:23:38,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f499a98-4313-4ba3-b183-b1468768752c
2026-01-22 16:23:38,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1f499a98-4313-4ba3-b183-b1468768752c
2026-01-22 16:23:38,858 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/001f66d0-d5e6-4eb4-a74f-a66b2d9a6bcd
2026-01-22 16:23:38,871 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-28390864', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04922935', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16440297875916407974', 'uuid-lslong': '12159232303711343274'}, 'enable': 'true', 'created': '2026-01-22T16:23:36', 'last-modified': '2026-01-22T16:23:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.455005'}
2026-01-22 16:23:38,879 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 16:23:38,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28390864 passed
2026-01-22 16:23:38,880 - DEBUG - ====Verifying policy data for ctest-vn-28390864 in API_Server ======
2026-01-22 16:23:38,880 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-22 16:23:38,886 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2b7b0b7-bbea-43c0-b1dd-669b15e68da7
2026-01-22 16:23:38,898 - DEBUG - Requesting: http://10.0.0.38:8082/project/d9fe7e44-aa48-4237-b2c0-8e421d630d7c
2026-01-22 16:23:38,969 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e427abd0-4f9b-44a6-a8be-455b9c2b52aa
2026-01-22 16:23:38,978 - DEBUG - ==>Verifying data for policy with id: 20293af0-9385-4a78-af73-f53712c6ca9b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04922935', 'ctest-policy-allow-all-87768404']
2026-01-22 16:23:38,978 - INFO - VN ctest-vn-28390864 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 16:23:38,978 - DEBUG - Verifying the vn in opserver
2026-01-22 16:23:38,978 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-28390864 virtual network link through opserver 10.0.0.38
2026-01-22 16:23:38,978 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-22 16:23:38,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-28390864', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-28390864?flat'}
2026-01-22 16:23:38,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04922935:ctest-vn-28390864 is found in opserver
2026-01-22 16:23:38,999 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 16:23:39,003 - DEBUG - VRF ids for VN ctest-vn-28390864: {}
2026-01-22 16:23:39,062 - DEBUG - Services list from nova: [