2025-10-29 14:42:19,167 - INFO - Domain Default found not creating
2025-10-29 14:42:19,341 - INFO - Project ctest-TestBasicPolicy-68685435 not found, creating it
2025-10-29 14:42:19,814 - INFO - Created Project:ctest-TestBasicPolicy-68685435, ID : ef9f32ca-afa2-4bf9-98c5-98e2a857bf78
2025-10-29 14:42:21,357 - INFO - ================================================================================
2025-10-29 14:42:21,357 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-29 14:42:21,357 - 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
2025-10-29 14:42:21,620 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with
2025-10-29 14:42:21,620 - INFO - Initial checks done. Running the testcase now
2025-10-29 14:42:21,620 - INFO -
2025-10-29 14:42:22,201 - DEBUG - Response for create_network : {'network': {'id': '582a66a2-0fd4-4134-b57b-05539890ab4f', 'name': 'ctest-vn-39195574', 'tenant_id': 'ef9f32caafa24bf998c598e2a857bf78', 'project_id': 'ef9f32caafa24bf998c598e2a857bf78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-vn-39195574'], 'port_security_enabled': True, 'description': ''}}
2025-10-29 14:42:22,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '72285df8-9886-4dee-adb5-5c4309fb0425', 'name': '', 'tenant_id': 'ef9f32caafa24bf998c598e2a857bf78', 'network_id': '582a66a2-0fd4-4134-b57b-05539890ab4f', 'ip_version': 4, 'cidr': '207.216.2.192/26', 'allocation_pools': [{'start': '207.216.2.194', 'end': '207.216.2.254'}], 'gateway_ip': '207.216.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.216.2.194', 'tags': [], 'project_id': 'ef9f32caafa24bf998c598e2a857bf78'}}
2025-10-29 14:42:22,453 - INFO - Created VN ctest-vn-39195574
2025-10-29 14:42:22,506 - DEBUG - VN ctest-vn-39195574 UUID is 582a66a2-0fd4-4134-b57b-05539890ab4f
2025-10-29 14:42:22,841 - DEBUG - Response for create_network : {'network': {'id': '8b809eff-330e-4cc7-825b-e508e5ae9a69', 'name': 'ctest-vn-08161911', 'tenant_id': 'ef9f32caafa24bf998c598e2a857bf78', 'project_id': 'ef9f32caafa24bf998c598e2a857bf78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-vn-08161911'], 'port_security_enabled': True, 'description': ''}}
2025-10-29 14:42:23,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '42564df7-5fe1-45c8-8baf-f3b5d4c10b38', 'name': '', 'tenant_id': 'ef9f32caafa24bf998c598e2a857bf78', 'network_id': '8b809eff-330e-4cc7-825b-e508e5ae9a69', 'ip_version': 4, 'cidr': '33.99.159.192/26', 'allocation_pools': [{'start': '33.99.159.194', 'end': '33.99.159.254'}], 'gateway_ip': '33.99.159.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.99.159.194', 'tags': [], 'project_id': 'ef9f32caafa24bf998c598e2a857bf78'}}
2025-10-29 14:42:23,025 - INFO - Created VN ctest-vn-08161911
2025-10-29 14:42:23,074 - DEBUG - VN ctest-vn-08161911 UUID is 8b809eff-330e-4cc7-825b-e508e5ae9a69
2025-10-29 14:42:23,191 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-39195574, 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-68685435:ctest-vn-08161911, 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]
2025-10-29 14:42:23,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '582a66a2-0fd4-4134-b57b-05539890ab4f', 'name': 'ctest-vn-39195574', 'tenant_id': 'ef9f32caafa24bf998c598e2a857bf78', 'project_id': 'ef9f32caafa24bf998c598e2a857bf78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72285df8-9886-4dee-adb5-5c4309fb0425'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-vn-39195574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-policy-allow-all-44237054']], 'subnet_ipam': [{'subnet_cidr': '207.216.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-29 14:42:23,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b809eff-330e-4cc7-825b-e508e5ae9a69', 'name': 'ctest-vn-08161911', 'tenant_id': 'ef9f32caafa24bf998c598e2a857bf78', 'project_id': 'ef9f32caafa24bf998c598e2a857bf78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42564df7-5fe1-45c8-8baf-f3b5d4c10b38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-vn-08161911'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-policy-allow-all-44237054']], 'subnet_ipam': [{'subnet_cidr': '33.99.159.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-29 14:42:23,862 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-29 14:42:24,205 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-29 14:42:24,234 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc
2025-10-29 14:42:24,246 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef9f32ca-afa2-4bf9-98c5-98e2a857bf78
2025-10-29 14:42:24,319 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/582a66a2-0fd4-4134-b57b-05539890ab4f
2025-10-29 14:42:24,329 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/582a66a2-0fd4-4134-b57b-05539890ab4f
2025-10-29 14:42:24,338 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7fa676d0-675e-4ded-8960-474a3bfd5a9c
2025-10-29 14:42:24,345 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7fa676d0-675e-4ded-8960-474a3bfd5a9c
2025-10-29 14:42:24,352 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c85a1d9b-1859-4e78-9392-2a2028717822
2025-10-29 14:42:24,358 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-29 14:42:24,358 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/582a66a2-0fd4-4134-b57b-05539890ab4f
2025-10-29 14:42:24,367 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7fa676d0-675e-4ded-8960-474a3bfd5a9c
2025-10-29 14:42:24,381 - INFO - Verified VN network id 11 for VN 582a66a2-0fd4-4134-b57b-05539890ab4f
2025-10-29 14:42:24,381 - INFO - Verifications in API Server for VN ctest-vn-39195574 passed
2025-10-29 14:42:24,381 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/582a66a2-0fd4-4134-b57b-05539890ab4f
2025-10-29 14:42:24,392 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7fa676d0-675e-4ded-8960-474a3bfd5a9c
2025-10-29 14:42:24,398 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7fa676d0-675e-4ded-8960-474a3bfd5a9c
2025-10-29 14:42:24,404 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c85a1d9b-1859-4e78-9392-2a2028717822
2025-10-29 14:42:24,414 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-39195574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68685435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6353003070595809588', 'uuid-lslong': '13077051799600409423'}, 'enable': 'true', 'created': '2025-10-29T14:42:22', 'last-modified': '2025-10-29T14:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956932'}
2025-10-29 14:42:24,419 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-29 14:42:24,419 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39195574 passed
2025-10-29 14:42:24,419 - DEBUG - ====Verifying policy data for ctest-vn-39195574 in API_Server ======
2025-10-29 14:42:24,420 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-29 14:42:24,424 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc
2025-10-29 14:42:24,436 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef9f32ca-afa2-4bf9-98c5-98e2a857bf78
2025-10-29 14:42:24,506 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/582a66a2-0fd4-4134-b57b-05539890ab4f
2025-10-29 14:42:24,516 - DEBUG - ==>Verifying data for policy with id: 413010de-bad6-47f8-a9bc-ca8dcf1d5929, fqn: ['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-policy-allow-all-44237054']
2025-10-29 14:42:24,516 - INFO - VN ctest-vn-39195574 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-29 14:42:24,516 - DEBUG - Verifying the vn in opserver
2025-10-29 14:42:24,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-39195574 virtual network link through opserver 10.0.0.33
2025-10-29 14:42:24,516 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-29 14:42:24,848 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-29 14:42:24,908 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-39195574', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-39195574?flat'}
2025-10-29 14:42:24,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-39195574 is found in opserver
2025-10-29 14:42:24,919 - DEBUG - Do not have enough data to verify VN in agent
2025-10-29 14:42:24,924 - DEBUG - VRF ids for VN ctest-vn-39195574: {}
2025-10-29 14:42:24,924 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-29 14:42:24,929 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc
2025-10-29 14:42:24,940 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef9f32ca-afa2-4bf9-98c5-98e2a857bf78
2025-10-29 14:42:25,011 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8b809eff-330e-4cc7-825b-e508e5ae9a69
2025-10-29 14:42:25,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8b809eff-330e-4cc7-825b-e508e5ae9a69
2025-10-29 14:42:25,033 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/feb920c9-a93c-46a3-a145-c9a6a5d85bc4
2025-10-29 14:42:25,040 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/feb920c9-a93c-46a3-a145-c9a6a5d85bc4
2025-10-29 14:42:25,046 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ed598c13-2ecd-4402-a300-c8f6bc09ec67
2025-10-29 14:42:25,052 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-29 14:42:25,052 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8b809eff-330e-4cc7-825b-e508e5ae9a69
2025-10-29 14:42:25,061 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/feb920c9-a93c-46a3-a145-c9a6a5d85bc4
2025-10-29 14:42:25,073 - INFO - Verified VN network id 12 for VN 8b809eff-330e-4cc7-825b-e508e5ae9a69
2025-10-29 14:42:25,073 - INFO - Verifications in API Server for VN ctest-vn-08161911 passed
2025-10-29 14:42:25,073 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8b809eff-330e-4cc7-825b-e508e5ae9a69
2025-10-29 14:42:25,081 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/feb920c9-a93c-46a3-a145-c9a6a5d85bc4
2025-10-29 14:42:25,087 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/feb920c9-a93c-46a3-a145-c9a6a5d85bc4
2025-10-29 14:42:25,094 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ed598c13-2ecd-4402-a300-c8f6bc09ec67
2025-10-29 14:42:25,105 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-08161911', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68685435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10052209187201371335', 'uuid-lslong': '9393353274187225705'}, 'enable': 'true', 'created': '2025-10-29T14:42:22', 'last-modified': '2025-10-29T14:42:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414761'}
2025-10-29 14:42:25,112 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-29 14:42:25,112 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08161911 passed
2025-10-29 14:42:25,113 - DEBUG - ====Verifying policy data for ctest-vn-08161911 in API_Server ======
2025-10-29 14:42:25,113 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-29 14:42:25,119 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1ba524dc-f32c-4c6c-b739-f1f9172404bc
2025-10-29 14:42:25,129 - DEBUG - Requesting: http://10.0.0.33:8082/project/ef9f32ca-afa2-4bf9-98c5-98e2a857bf78
2025-10-29 14:42:25,210 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8b809eff-330e-4cc7-825b-e508e5ae9a69
2025-10-29 14:42:25,219 - DEBUG - ==>Verifying data for policy with id: 413010de-bad6-47f8-a9bc-ca8dcf1d5929, fqn: ['default-domain', 'ctest-TestBasicPolicy-68685435', 'ctest-policy-allow-all-44237054']
2025-10-29 14:42:25,219 - INFO - VN ctest-vn-08161911 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-29 14:42:25,220 - DEBUG - Verifying the vn in opserver
2025-10-29 14:42:25,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-08161911 virtual network link through opserver 10.0.0.33
2025-10-29 14:42:25,220 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-29 14:42:25,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-08161911', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-08161911?flat'}
2025-10-29 14:42:25,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68685435:ctest-vn-08161911 is found in opserver
2025-10-29 14:42:25,238 - DEBUG - Do not have enough data to verify VN in agent
2025-10-29 14:42:25,243 - DEBUG - VRF ids for VN ctest-vn-08161911: {}
2025-10-29 14:42:25,303 - DEBUG - Services list from nova: [