2026-02-01 12:01:02,496 - INFO - Domain Default found not creating
2026-02-01 12:01:02,655 - INFO - Project ctest-TestBasicPolicy-34551415 not found, creating it
2026-02-01 12:01:03,141 - INFO - Created Project:ctest-TestBasicPolicy-34551415, ID : 92cb240c-e078-44ae-83e6-6e0cbf08ad88
2026-02-01 12:01:04,635 - INFO - ================================================================================
2026-02-01 12:01:04,635 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-01 12:01:04,635 - 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-02-01 12:01:04,899 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2026-02-01 12:01:04,899 - INFO - Initial checks done. Running the testcase now
2026-02-01 12:01:04,899 - INFO -
2026-02-01 12:01:05,481 - DEBUG - Response for create_network : {'network': {'id': '95b91d39-6670-43bc-b32b-f0606556c944', 'name': 'ctest-vn-63453549', 'tenant_id': '92cb240ce07844ae83e66e0cbf08ad88', 'project_id': '92cb240ce07844ae83e66e0cbf08ad88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-vn-63453549'], 'port_security_enabled': True, 'description': ''}}
2026-02-01 12:01:05,636 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a27dfcaf-d2ac-45a5-a40c-bef95683cb13', 'name': '', 'tenant_id': '92cb240ce07844ae83e66e0cbf08ad88', 'network_id': '95b91d39-6670-43bc-b32b-f0606556c944', 'ip_version': 4, 'cidr': '47.11.227.192/26', 'allocation_pools': [{'start': '47.11.227.194', 'end': '47.11.227.254'}], 'gateway_ip': '47.11.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.11.227.194', 'tags': [], 'project_id': '92cb240ce07844ae83e66e0cbf08ad88'}}
2026-02-01 12:01:05,655 - INFO - Created VN ctest-vn-63453549
2026-02-01 12:01:05,710 - DEBUG - VN ctest-vn-63453549 UUID is 95b91d39-6670-43bc-b32b-f0606556c944
2026-02-01 12:01:06,024 - DEBUG - Response for create_network : {'network': {'id': '514454da-a677-4654-a097-82ea25887db6', 'name': 'ctest-vn-88686608', 'tenant_id': '92cb240ce07844ae83e66e0cbf08ad88', 'project_id': '92cb240ce07844ae83e66e0cbf08ad88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-vn-88686608'], 'port_security_enabled': True, 'description': ''}}
2026-02-01 12:01:06,193 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d12858e-55f1-4b1e-8cee-d19daeb0e7c3', 'name': '', 'tenant_id': '92cb240ce07844ae83e66e0cbf08ad88', 'network_id': '514454da-a677-4654-a097-82ea25887db6', 'ip_version': 4, 'cidr': '159.99.24.192/26', 'allocation_pools': [{'start': '159.99.24.194', 'end': '159.99.24.254'}], 'gateway_ip': '159.99.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.99.24.194', 'tags': [], 'project_id': '92cb240ce07844ae83e66e0cbf08ad88'}}
2026-02-01 12:01:06,211 - INFO - Created VN ctest-vn-88686608
2026-02-01 12:01:06,262 - DEBUG - VN ctest-vn-88686608 UUID is 514454da-a677-4654-a097-82ea25887db6
2026-02-01 12:01:06,414 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-63453549, 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-34551415:ctest-vn-88686608, 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-02-01 12:01:06,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95b91d39-6670-43bc-b32b-f0606556c944', 'name': 'ctest-vn-63453549', 'tenant_id': '92cb240ce07844ae83e66e0cbf08ad88', 'project_id': '92cb240ce07844ae83e66e0cbf08ad88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a27dfcaf-d2ac-45a5-a40c-bef95683cb13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-vn-63453549'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-policy-allow-all-24138304']], 'subnet_ipam': [{'subnet_cidr': '47.11.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-01 12:01:06,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '514454da-a677-4654-a097-82ea25887db6', 'name': 'ctest-vn-88686608', 'tenant_id': '92cb240ce07844ae83e66e0cbf08ad88', 'project_id': '92cb240ce07844ae83e66e0cbf08ad88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d12858e-55f1-4b1e-8cee-d19daeb0e7c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-vn-88686608'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-policy-allow-all-24138304']], 'subnet_ipam': [{'subnet_cidr': '159.99.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-01 12:01:07,098 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 12:01:07,399 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 12:01:07,437 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629
2026-02-01 12:01:07,450 - DEBUG - Requesting: http://10.0.0.33:8082/project/92cb240c-e078-44ae-83e6-6e0cbf08ad88
2026-02-01 12:01:07,520 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/95b91d39-6670-43bc-b32b-f0606556c944
2026-02-01 12:01:07,530 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/95b91d39-6670-43bc-b32b-f0606556c944
2026-02-01 12:01:07,541 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/158e4ec1-12b3-420e-b986-0444ba7c5cb6
2026-02-01 12:01:07,548 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/158e4ec1-12b3-420e-b986-0444ba7c5cb6
2026-02-01 12:01:07,555 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f4048404-01c4-495c-a7de-6dde30e50e9f
2026-02-01 12:01:07,561 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-01 12:01:07,561 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/95b91d39-6670-43bc-b32b-f0606556c944
2026-02-01 12:01:07,570 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/158e4ec1-12b3-420e-b986-0444ba7c5cb6
2026-02-01 12:01:07,583 - INFO - Verified VN network id 11 for VN 95b91d39-6670-43bc-b32b-f0606556c944
2026-02-01 12:01:07,583 - INFO - Verifications in API Server for VN ctest-vn-63453549 passed
2026-02-01 12:01:07,583 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/95b91d39-6670-43bc-b32b-f0606556c944
2026-02-01 12:01:07,593 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/158e4ec1-12b3-420e-b986-0444ba7c5cb6
2026-02-01 12:01:07,599 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/158e4ec1-12b3-420e-b986-0444ba7c5cb6
2026-02-01 12:01:07,605 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f4048404-01c4-495c-a7de-6dde30e50e9f
2026-02-01 12:01:07,618 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-63453549', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34551415', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10788686514711708604', 'uuid-lslong': '12910677053595371844'}, 'enable': 'true', 'created': '2026-02-01T12:01:05', 'last-modified': '2026-02-01T12:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934888'}
2026-02-01 12:01:07,625 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-01 12:01:07,625 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63453549 passed
2026-02-01 12:01:07,625 - DEBUG - ====Verifying policy data for ctest-vn-63453549 in API_Server ======
2026-02-01 12:01:07,625 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 12:01:07,631 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629
2026-02-01 12:01:07,642 - DEBUG - Requesting: http://10.0.0.33:8082/project/92cb240c-e078-44ae-83e6-6e0cbf08ad88
2026-02-01 12:01:07,711 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/95b91d39-6670-43bc-b32b-f0606556c944
2026-02-01 12:01:07,721 - DEBUG - ==>Verifying data for policy with id: 4fb28c75-9a9e-40ed-9f99-46cdf9a37150, fqn: ['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-policy-allow-all-24138304']
2026-02-01 12:01:07,721 - INFO - VN ctest-vn-63453549 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-01 12:01:07,721 - DEBUG - Verifying the vn in opserver
2026-02-01 12:01:07,721 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-63453549 virtual network link through opserver 10.0.0.33
2026-02-01 12:01:07,721 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-01 12:01:08,015 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-01 12:01:08,077 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-63453549', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-63453549?flat'}
2026-02-01 12:01:08,077 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-63453549 is found in opserver
2026-02-01 12:01:08,086 - DEBUG - Do not have enough data to verify VN in agent
2026-02-01 12:01:08,091 - DEBUG - VRF ids for VN ctest-vn-63453549: {}
2026-02-01 12:01:08,091 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 12:01:08,096 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629
2026-02-01 12:01:08,106 - DEBUG - Requesting: http://10.0.0.33:8082/project/92cb240c-e078-44ae-83e6-6e0cbf08ad88
2026-02-01 12:01:08,172 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/514454da-a677-4654-a097-82ea25887db6
2026-02-01 12:01:08,183 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/514454da-a677-4654-a097-82ea25887db6
2026-02-01 12:01:08,191 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c1b7a8-b7ca-419c-ab42-9fc6a7d50183
2026-02-01 12:01:08,198 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c1b7a8-b7ca-419c-ab42-9fc6a7d50183
2026-02-01 12:01:08,207 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/668fe174-f45e-4ca7-b7e1-5afdcd1e6785
2026-02-01 12:01:08,215 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-01 12:01:08,215 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/514454da-a677-4654-a097-82ea25887db6
2026-02-01 12:01:08,225 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c1b7a8-b7ca-419c-ab42-9fc6a7d50183
2026-02-01 12:01:08,241 - INFO - Verified VN network id 12 for VN 514454da-a677-4654-a097-82ea25887db6
2026-02-01 12:01:08,241 - INFO - Verifications in API Server for VN ctest-vn-88686608 passed
2026-02-01 12:01:08,241 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/514454da-a677-4654-a097-82ea25887db6
2026-02-01 12:01:08,253 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c1b7a8-b7ca-419c-ab42-9fc6a7d50183
2026-02-01 12:01:08,262 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/83c1b7a8-b7ca-419c-ab42-9fc6a7d50183
2026-02-01 12:01:08,270 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/668fe174-f45e-4ca7-b7e1-5afdcd1e6785
2026-02-01 12:01:08,282 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-88686608', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34551415', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5855898713560925780', 'uuid-lslong': '11571861709715439030'}, 'enable': 'true', 'created': '2026-02-01T12:01:05', 'last-modified': '2026-02-01T12:01:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372719'}
2026-02-01 12:01:08,289 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-01 12:01:08,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88686608 passed
2026-02-01 12:01:08,290 - DEBUG - ====Verifying policy data for ctest-vn-88686608 in API_Server ======
2026-02-01 12:01:08,290 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-01 12:01:08,297 - DEBUG - Requesting: http://10.0.0.33:8082/domain/64f9c071-327c-4c7e-97eb-6e373fb87629
2026-02-01 12:01:08,309 - DEBUG - Requesting: http://10.0.0.33:8082/project/92cb240c-e078-44ae-83e6-6e0cbf08ad88
2026-02-01 12:01:08,386 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/514454da-a677-4654-a097-82ea25887db6
2026-02-01 12:01:08,397 - DEBUG - ==>Verifying data for policy with id: 4fb28c75-9a9e-40ed-9f99-46cdf9a37150, fqn: ['default-domain', 'ctest-TestBasicPolicy-34551415', 'ctest-policy-allow-all-24138304']
2026-02-01 12:01:08,397 - INFO - VN ctest-vn-88686608 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-01 12:01:08,397 - DEBUG - Verifying the vn in opserver
2026-02-01 12:01:08,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-88686608 virtual network link through opserver 10.0.0.33
2026-02-01 12:01:08,397 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-01 12:01:08,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-88686608', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-88686608?flat'}
2026-02-01 12:01:08,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34551415:ctest-vn-88686608 is found in opserver
2026-02-01 12:01:08,417 - DEBUG - Do not have enough data to verify VN in agent
2026-02-01 12:01:08,422 - DEBUG - VRF ids for VN ctest-vn-88686608: {}
2026-02-01 12:01:08,477 - DEBUG - Services list from nova: [