2026-05-13 18:53:13,021 - INFO - Domain Default found not creating
2026-05-13 18:53:13,208 - INFO - Project ctest-TestBasicPolicy-64688999 not found, creating it
2026-05-13 18:53:13,694 - INFO - Created Project:ctest-TestBasicPolicy-64688999, ID : ab32f997-de37-4947-984f-49449c007c46
2026-05-13 18:53:15,184 - INFO - ================================================================================
2026-05-13 18:53:15,184 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-13 18:53:15,184 - 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-05-13 18:53:15,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-05-13 18:53:15,449 - INFO - Initial checks done. Running the testcase now
2026-05-13 18:53:15,449 - INFO -
2026-05-13 18:53:16,005 - DEBUG - Response for create_network : {'network': {'id': '982a79b3-b871-47cb-a595-e38fd74e9c36', 'name': 'ctest-vn-23346191', 'tenant_id': 'ab32f997de374947984f49449c007c46', 'project_id': 'ab32f997de374947984f49449c007c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-vn-23346191'], 'port_security_enabled': True, 'description': ''}}
2026-05-13 18:53:16,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '297f11e6-0794-4b09-abad-6c1cc7a48ffc', 'name': '', 'tenant_id': 'ab32f997de374947984f49449c007c46', 'network_id': '982a79b3-b871-47cb-a595-e38fd74e9c36', 'ip_version': 4, 'cidr': '146.75.12.192/26', 'allocation_pools': [{'start': '146.75.12.194', 'end': '146.75.12.254'}], 'gateway_ip': '146.75.12.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.75.12.194', 'tags': [], 'project_id': 'ab32f997de374947984f49449c007c46'}}
2026-05-13 18:53:16,237 - INFO - Created VN ctest-vn-23346191
2026-05-13 18:53:16,290 - DEBUG - VN ctest-vn-23346191 UUID is 982a79b3-b871-47cb-a595-e38fd74e9c36
2026-05-13 18:53:16,609 - DEBUG - Response for create_network : {'network': {'id': '866660e0-9b86-4bb0-abe8-a6f530e422f6', 'name': 'ctest-vn-20237941', 'tenant_id': 'ab32f997de374947984f49449c007c46', 'project_id': 'ab32f997de374947984f49449c007c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-vn-20237941'], 'port_security_enabled': True, 'description': ''}}
2026-05-13 18:53:16,829 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1744604-556a-4d24-af1e-037f7dd76a3d', 'name': '', 'tenant_id': 'ab32f997de374947984f49449c007c46', 'network_id': '866660e0-9b86-4bb0-abe8-a6f530e422f6', 'ip_version': 4, 'cidr': '152.38.135.64/26', 'allocation_pools': [{'start': '152.38.135.66', 'end': '152.38.135.126'}], 'gateway_ip': '152.38.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.38.135.66', 'tags': [], 'project_id': 'ab32f997de374947984f49449c007c46'}}
2026-05-13 18:53:16,848 - INFO - Created VN ctest-vn-20237941
2026-05-13 18:53:16,902 - DEBUG - VN ctest-vn-20237941 UUID is 866660e0-9b86-4bb0-abe8-a6f530e422f6
2026-05-13 18:53:17,054 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-23346191, 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-64688999:ctest-vn-20237941, 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-05-13 18:53:17,337 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '982a79b3-b871-47cb-a595-e38fd74e9c36', 'name': 'ctest-vn-23346191', 'tenant_id': 'ab32f997de374947984f49449c007c46', 'project_id': 'ab32f997de374947984f49449c007c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['297f11e6-0794-4b09-abad-6c1cc7a48ffc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-vn-23346191'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-policy-allow-all-62612755']], 'subnet_ipam': [{'subnet_cidr': '146.75.12.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-13 18:53:17,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '866660e0-9b86-4bb0-abe8-a6f530e422f6', 'name': 'ctest-vn-20237941', 'tenant_id': 'ab32f997de374947984f49449c007c46', 'project_id': 'ab32f997de374947984f49449c007c46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b1744604-556a-4d24-af1e-037f7dd76a3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-vn-20237941'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-policy-allow-all-62612755']], 'subnet_ipam': [{'subnet_cidr': '152.38.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-13 18:53:17,742 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-13 18:53:18,039 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-13 18:53:18,079 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c
2026-05-13 18:53:18,091 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab32f997-de37-4947-984f-49449c007c46
2026-05-13 18:53:18,173 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/982a79b3-b871-47cb-a595-e38fd74e9c36
2026-05-13 18:53:18,185 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/982a79b3-b871-47cb-a595-e38fd74e9c36
2026-05-13 18:53:18,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba54c94c-3505-440c-88d8-da8d17cf112e
2026-05-13 18:53:18,202 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba54c94c-3505-440c-88d8-da8d17cf112e
2026-05-13 18:53:18,208 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22d64b40-9658-4fe0-a6f0-de9b2d1db49a
2026-05-13 18:53:18,214 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-13 18:53:18,214 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/982a79b3-b871-47cb-a595-e38fd74e9c36
2026-05-13 18:53:18,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba54c94c-3505-440c-88d8-da8d17cf112e
2026-05-13 18:53:18,237 - INFO - Verified VN network id 10 for VN 982a79b3-b871-47cb-a595-e38fd74e9c36
2026-05-13 18:53:18,237 - INFO - Verifications in API Server for VN ctest-vn-23346191 passed
2026-05-13 18:53:18,237 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/982a79b3-b871-47cb-a595-e38fd74e9c36
2026-05-13 18:53:18,246 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba54c94c-3505-440c-88d8-da8d17cf112e
2026-05-13 18:53:18,252 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ba54c94c-3505-440c-88d8-da8d17cf112e
2026-05-13 18:53:18,258 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/22d64b40-9658-4fe0-a6f0-de9b2d1db49a
2026-05-13 18:53:18,271 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-23346191', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64688999', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10964710055587432395', 'uuid-lslong': '11931692994720078902'}, 'enable': 'true', 'created': '2026-05-13T18:53:15', 'last-modified': '2026-05-13T18:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954752'}
2026-05-13 18:53:18,277 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-13 18:53:18,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23346191 passed
2026-05-13 18:53:18,277 - DEBUG - ====Verifying policy data for ctest-vn-23346191 in API_Server ======
2026-05-13 18:53:18,277 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-13 18:53:18,283 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c
2026-05-13 18:53:18,294 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab32f997-de37-4947-984f-49449c007c46
2026-05-13 18:53:18,366 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/982a79b3-b871-47cb-a595-e38fd74e9c36
2026-05-13 18:53:18,375 - DEBUG - ==>Verifying data for policy with id: d9db0724-9750-4687-a674-9bb12a09fa1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-policy-allow-all-62612755']
2026-05-13 18:53:18,375 - INFO - VN ctest-vn-23346191 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-13 18:53:18,375 - DEBUG - Verifying the vn in opserver
2026-05-13 18:53:18,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-23346191 virtual network link through opserver 10.0.0.38
2026-05-13 18:53:18,375 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-13 18:53:18,669 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-13 18:53:18,742 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-23346191', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-23346191?flat'}
2026-05-13 18:53:18,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-23346191 is found in opserver
2026-05-13 18:53:18,752 - DEBUG - Do not have enough data to verify VN in agent
2026-05-13 18:53:18,756 - DEBUG - VRF ids for VN ctest-vn-23346191: {}
2026-05-13 18:53:18,756 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-13 18:53:18,761 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c
2026-05-13 18:53:18,773 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab32f997-de37-4947-984f-49449c007c46
2026-05-13 18:53:18,848 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/866660e0-9b86-4bb0-abe8-a6f530e422f6
2026-05-13 18:53:18,859 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/866660e0-9b86-4bb0-abe8-a6f530e422f6
2026-05-13 18:53:18,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c89d8c7-4dcd-452f-84d7-5cd93d698fa6
2026-05-13 18:53:18,879 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c89d8c7-4dcd-452f-84d7-5cd93d698fa6
2026-05-13 18:53:18,886 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/749e0fe5-3134-419c-81cd-0f48116a7995
2026-05-13 18:53:18,893 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-13 18:53:18,893 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/866660e0-9b86-4bb0-abe8-a6f530e422f6
2026-05-13 18:53:18,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c89d8c7-4dcd-452f-84d7-5cd93d698fa6
2026-05-13 18:53:18,915 - INFO - Verified VN network id 11 for VN 866660e0-9b86-4bb0-abe8-a6f530e422f6
2026-05-13 18:53:18,915 - INFO - Verifications in API Server for VN ctest-vn-20237941 passed
2026-05-13 18:53:18,916 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/866660e0-9b86-4bb0-abe8-a6f530e422f6
2026-05-13 18:53:18,924 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c89d8c7-4dcd-452f-84d7-5cd93d698fa6
2026-05-13 18:53:18,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c89d8c7-4dcd-452f-84d7-5cd93d698fa6
2026-05-13 18:53:18,937 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/749e0fe5-3134-419c-81cd-0f48116a7995
2026-05-13 18:53:18,950 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-20237941', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64688999', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9684534566505040816', 'uuid-lslong': '12387334347100005110'}, 'enable': 'true', 'created': '2026-05-13T18:53:16', 'last-modified': '2026-05-13T18:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.402379'}
2026-05-13 18:53:18,958 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-13 18:53:18,958 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20237941 passed
2026-05-13 18:53:18,958 - DEBUG - ====Verifying policy data for ctest-vn-20237941 in API_Server ======
2026-05-13 18:53:18,958 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-13 18:53:18,963 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c
2026-05-13 18:53:18,975 - DEBUG - Requesting: http://10.0.0.38:8082/project/ab32f997-de37-4947-984f-49449c007c46
2026-05-13 18:53:19,044 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/866660e0-9b86-4bb0-abe8-a6f530e422f6
2026-05-13 18:53:19,052 - DEBUG - ==>Verifying data for policy with id: d9db0724-9750-4687-a674-9bb12a09fa1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-64688999', 'ctest-policy-allow-all-62612755']
2026-05-13 18:53:19,052 - INFO - VN ctest-vn-20237941 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-13 18:53:19,052 - DEBUG - Verifying the vn in opserver
2026-05-13 18:53:19,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-20237941 virtual network link through opserver 10.0.0.38
2026-05-13 18:53:19,052 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-13 18:53:19,062 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-20237941', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-20237941?flat'}
2026-05-13 18:53:19,062 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64688999:ctest-vn-20237941 is found in opserver
2026-05-13 18:53:19,073 - DEBUG - Do not have enough data to verify VN in agent
2026-05-13 18:53:19,078 - DEBUG - VRF ids for VN ctest-vn-20237941: {}
2026-05-13 18:53:19,150 - DEBUG - Services list from nova: [