2026-08-17 02:28:19,129 - INFO - Domain Default found not creating
2026-08-17 02:28:19,268 - INFO - Project ctest-TestBasicPolicy-18572077 not found, creating it
2026-08-17 02:28:19,719 - INFO - Created Project:ctest-TestBasicPolicy-18572077, ID : 46909105-23db-4bf6-a7c6-d45dee5fce41
2026-08-17 02:28:21,193 - INFO - ================================================================================
2026-08-17 02:28:21,193 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-17 02:28:21,193 - 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-08-17 02:28:21,446 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with
2026-08-17 02:28:21,446 - INFO - Initial checks done. Running the testcase now
2026-08-17 02:28:21,446 - INFO -
2026-08-17 02:28:22,011 - DEBUG - Response for create_network : {'network': {'id': '7457e829-eb91-4f1a-9c20-da181cd17740', 'name': 'ctest-vn-27794389', 'tenant_id': '4690910523db4bf6a7c6d45dee5fce41', 'project_id': '4690910523db4bf6a7c6d45dee5fce41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-vn-27794389'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 02:28:22,160 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8ddbb6c-b387-4150-ab2c-c5c61edc5da3', 'name': '', 'tenant_id': '4690910523db4bf6a7c6d45dee5fce41', 'network_id': '7457e829-eb91-4f1a-9c20-da181cd17740', 'ip_version': 4, 'cidr': '165.131.216.64/26', 'allocation_pools': [{'start': '165.131.216.66', 'end': '165.131.216.126'}], 'gateway_ip': '165.131.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.131.216.66', 'tags': [], 'project_id': '4690910523db4bf6a7c6d45dee5fce41'}}
2026-08-17 02:28:22,176 - INFO - Created VN ctest-vn-27794389
2026-08-17 02:28:22,228 - DEBUG - VN ctest-vn-27794389 UUID is 7457e829-eb91-4f1a-9c20-da181cd17740
2026-08-17 02:28:22,555 - DEBUG - Response for create_network : {'network': {'id': '5fb6b2b4-a285-4826-a7fb-2b386699870f', 'name': 'ctest-vn-20868863', 'tenant_id': '4690910523db4bf6a7c6d45dee5fce41', 'project_id': '4690910523db4bf6a7c6d45dee5fce41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-vn-20868863'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 02:28:22,743 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0c5a4cc-506f-4ee2-b7a2-6626978bf681', 'name': '', 'tenant_id': '4690910523db4bf6a7c6d45dee5fce41', 'network_id': '5fb6b2b4-a285-4826-a7fb-2b386699870f', 'ip_version': 4, 'cidr': '171.172.38.64/26', 'allocation_pools': [{'start': '171.172.38.66', 'end': '171.172.38.126'}], 'gateway_ip': '171.172.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.172.38.66', 'tags': [], 'project_id': '4690910523db4bf6a7c6d45dee5fce41'}}
2026-08-17 02:28:22,759 - INFO - Created VN ctest-vn-20868863
2026-08-17 02:28:22,812 - DEBUG - VN ctest-vn-20868863 UUID is 5fb6b2b4-a285-4826-a7fb-2b386699870f
2026-08-17 02:28:22,956 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-27794389, 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-18572077:ctest-vn-20868863, 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-08-17 02:28:23,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7457e829-eb91-4f1a-9c20-da181cd17740', 'name': 'ctest-vn-27794389', 'tenant_id': '4690910523db4bf6a7c6d45dee5fce41', 'project_id': '4690910523db4bf6a7c6d45dee5fce41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8ddbb6c-b387-4150-ab2c-c5c61edc5da3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-vn-27794389'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-policy-allow-all-82104224']], 'subnet_ipam': [{'subnet_cidr': '165.131.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 02:28:23,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fb6b2b4-a285-4826-a7fb-2b386699870f', 'name': 'ctest-vn-20868863', 'tenant_id': '4690910523db4bf6a7c6d45dee5fce41', 'project_id': '4690910523db4bf6a7c6d45dee5fce41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0c5a4cc-506f-4ee2-b7a2-6626978bf681'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-vn-20868863'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-policy-allow-all-82104224']], 'subnet_ipam': [{'subnet_cidr': '171.172.38.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 02:28:23,632 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-17 02:28:23,963 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-17 02:28:23,991 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2
2026-08-17 02:28:24,004 - DEBUG - Requesting: http://10.0.0.189:8082/project/46909105-23db-4bf6-a7c6-d45dee5fce41
2026-08-17 02:28:24,079 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/7457e829-eb91-4f1a-9c20-da181cd17740
2026-08-17 02:28:24,090 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/7457e829-eb91-4f1a-9c20-da181cd17740
2026-08-17 02:28:24,099 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0266da7b-c055-441d-8ba6-6dc285262515
2026-08-17 02:28:24,107 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0266da7b-c055-441d-8ba6-6dc285262515
2026-08-17 02:28:24,113 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/0ce3f9c7-3e1c-45d3-a3e1-34f5b043f43e
2026-08-17 02:28:24,118 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 02:28:24,118 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/7457e829-eb91-4f1a-9c20-da181cd17740
2026-08-17 02:28:24,126 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0266da7b-c055-441d-8ba6-6dc285262515
2026-08-17 02:28:24,138 - INFO - Verified VN network id 11 for VN 7457e829-eb91-4f1a-9c20-da181cd17740
2026-08-17 02:28:24,139 - INFO - Verifications in API Server for VN ctest-vn-27794389 passed
2026-08-17 02:28:24,139 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/7457e829-eb91-4f1a-9c20-da181cd17740
2026-08-17 02:28:24,146 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0266da7b-c055-441d-8ba6-6dc285262515
2026-08-17 02:28:24,152 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0266da7b-c055-441d-8ba6-6dc285262515
2026-08-17 02:28:24,158 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/0ce3f9c7-3e1c-45d3-a3e1-34f5b043f43e
2026-08-17 02:28:24,168 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-27794389', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18572077', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8383424498116939546', 'uuid-lslong': '11250231666269058880'}, 'enable': 'true', 'created': '2026-08-17T02:28:21', 'last-modified': '2026-08-17T02:28:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944290'}
2026-08-17 02:28:24,174 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-17 02:28:24,174 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27794389 passed
2026-08-17 02:28:24,175 - DEBUG - ====Verifying policy data for ctest-vn-27794389 in API_Server ======
2026-08-17 02:28:24,175 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-17 02:28:24,180 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2
2026-08-17 02:28:24,190 - DEBUG - Requesting: http://10.0.0.189:8082/project/46909105-23db-4bf6-a7c6-d45dee5fce41
2026-08-17 02:28:24,263 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/7457e829-eb91-4f1a-9c20-da181cd17740
2026-08-17 02:28:24,274 - DEBUG - ==>Verifying data for policy with id: 31cec547-fa08-4f9d-84ac-6fd349211c92, fqn: ['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-policy-allow-all-82104224']
2026-08-17 02:28:24,274 - INFO - VN ctest-vn-27794389 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 02:28:24,274 - DEBUG - Verifying the vn in opserver
2026-08-17 02:28:24,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-27794389 virtual network link through opserver 10.0.0.189
2026-08-17 02:28:24,274 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-08-17 02:28:24,597 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-08-17 02:28:24,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-27794389', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-27794389?flat'}
2026-08-17 02:28:24,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-27794389 is found in opserver
2026-08-17 02:28:24,661 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 02:28:24,666 - DEBUG - VRF ids for VN ctest-vn-27794389: {}
2026-08-17 02:28:24,666 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-17 02:28:24,671 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2
2026-08-17 02:28:24,680 - DEBUG - Requesting: http://10.0.0.189:8082/project/46909105-23db-4bf6-a7c6-d45dee5fce41
2026-08-17 02:28:24,751 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5fb6b2b4-a285-4826-a7fb-2b386699870f
2026-08-17 02:28:24,762 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5fb6b2b4-a285-4826-a7fb-2b386699870f
2026-08-17 02:28:24,770 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f56cca97-fdbb-4550-bf3e-388b3151e829
2026-08-17 02:28:24,775 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f56cca97-fdbb-4550-bf3e-388b3151e829
2026-08-17 02:28:24,781 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/ac94dd69-012e-4411-b1b5-a8f0edd4ec7b
2026-08-17 02:28:24,786 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 02:28:24,786 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5fb6b2b4-a285-4826-a7fb-2b386699870f
2026-08-17 02:28:24,793 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f56cca97-fdbb-4550-bf3e-388b3151e829
2026-08-17 02:28:24,805 - INFO - Verified VN network id 12 for VN 5fb6b2b4-a285-4826-a7fb-2b386699870f
2026-08-17 02:28:24,806 - INFO - Verifications in API Server for VN ctest-vn-20868863 passed
2026-08-17 02:28:24,806 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5fb6b2b4-a285-4826-a7fb-2b386699870f
2026-08-17 02:28:24,814 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f56cca97-fdbb-4550-bf3e-388b3151e829
2026-08-17 02:28:24,820 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/f56cca97-fdbb-4550-bf3e-388b3151e829
2026-08-17 02:28:24,826 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/ac94dd69-012e-4411-b1b5-a8f0edd4ec7b
2026-08-17 02:28:24,837 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-20868863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18572077', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6896896368254994470', 'uuid-lslong': '12104315944727840527'}, 'enable': 'true', 'created': '2026-08-17T02:28:22', 'last-modified': '2026-08-17T02:28:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.391001'}
2026-08-17 02:28:24,843 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 02:28:24,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20868863 passed
2026-08-17 02:28:24,844 - DEBUG - ====Verifying policy data for ctest-vn-20868863 in API_Server ======
2026-08-17 02:28:24,844 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-08-17 02:28:24,848 - DEBUG - Requesting: http://10.0.0.189:8082/domain/dfc0c64e-f091-468c-b4a2-c81ce920aea2
2026-08-17 02:28:24,858 - DEBUG - Requesting: http://10.0.0.189:8082/project/46909105-23db-4bf6-a7c6-d45dee5fce41
2026-08-17 02:28:24,927 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/5fb6b2b4-a285-4826-a7fb-2b386699870f
2026-08-17 02:28:24,935 - DEBUG - ==>Verifying data for policy with id: 31cec547-fa08-4f9d-84ac-6fd349211c92, fqn: ['default-domain', 'ctest-TestBasicPolicy-18572077', 'ctest-policy-allow-all-82104224']
2026-08-17 02:28:24,936 - INFO - VN ctest-vn-20868863 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 02:28:24,936 - DEBUG - Verifying the vn in opserver
2026-08-17 02:28:24,936 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-20868863 virtual network link through opserver 10.0.0.189
2026-08-17 02:28:24,936 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-08-17 02:28:24,944 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-20868863', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-20868863?flat'}
2026-08-17 02:28:24,944 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18572077:ctest-vn-20868863 is found in opserver
2026-08-17 02:28:24,953 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 02:28:24,957 - DEBUG - VRF ids for VN ctest-vn-20868863: {}
2026-08-17 02:28:25,007 - DEBUG - Services list from nova: [