2026-05-29 12:59:02,062 - INFO - Domain Default found not creating
2026-05-29 12:59:02,239 - INFO - Project ctest-TestBasicPolicy-93819322 not found, creating it
2026-05-29 12:59:02,735 - INFO - Created Project:ctest-TestBasicPolicy-93819322, ID : 6d6aa4b5-3f6f-4ec5-83c3-ba919ac8ebe5
2026-05-29 12:59:04,222 - INFO - ================================================================================
2026-05-29 12:59:04,222 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-29 12:59:04,222 - 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-29 12:59:04,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2026-05-29 12:59:04,476 - INFO - Initial checks done. Running the testcase now
2026-05-29 12:59:04,476 - INFO -
2026-05-29 12:59:05,005 - DEBUG - Response for create_network : {'network': {'id': '25ca668b-2a2c-49a8-a3eb-068e94502c43', 'name': 'ctest-vn-60997716', 'tenant_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'project_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-vn-60997716'], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:59:05,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '711cb7f6-a6c4-4afb-b85c-1a69212f9029', 'name': '', 'tenant_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'network_id': '25ca668b-2a2c-49a8-a3eb-068e94502c43', 'ip_version': 4, 'cidr': '32.170.57.64/26', 'allocation_pools': [{'start': '32.170.57.66', 'end': '32.170.57.126'}], 'gateway_ip': '32.170.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.170.57.66', 'tags': [], 'project_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5'}}
2026-05-29 12:59:05,240 - INFO - Created VN ctest-vn-60997716
2026-05-29 12:59:05,294 - DEBUG - VN ctest-vn-60997716 UUID is 25ca668b-2a2c-49a8-a3eb-068e94502c43
2026-05-29 12:59:05,585 - DEBUG - Response for create_network : {'network': {'id': 'fc869067-cf22-4ed2-a4ad-a54c7a756843', 'name': 'ctest-vn-58207684', 'tenant_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'project_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-vn-58207684'], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:59:05,779 - DEBUG - Response for create_subnet : {'subnet': {'id': '2220bda0-6fe1-43c2-a104-bc4b0273f0e3', 'name': '', 'tenant_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'network_id': 'fc869067-cf22-4ed2-a4ad-a54c7a756843', 'ip_version': 4, 'cidr': '122.218.236.128/26', 'allocation_pools': [{'start': '122.218.236.130', 'end': '122.218.236.190'}], 'gateway_ip': '122.218.236.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.218.236.130', 'tags': [], 'project_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5'}}
2026-05-29 12:59:05,796 - INFO - Created VN ctest-vn-58207684
2026-05-29 12:59:05,850 - DEBUG - VN ctest-vn-58207684 UUID is fc869067-cf22-4ed2-a4ad-a54c7a756843
2026-05-29 12:59:06,006 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-60997716, 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-93819322:ctest-vn-58207684, 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-29 12:59:06,302 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25ca668b-2a2c-49a8-a3eb-068e94502c43', 'name': 'ctest-vn-60997716', 'tenant_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'project_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['711cb7f6-a6c4-4afb-b85c-1a69212f9029'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-vn-60997716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-policy-allow-all-49929222']], 'subnet_ipam': [{'subnet_cidr': '32.170.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:59:06,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc869067-cf22-4ed2-a4ad-a54c7a756843', 'name': 'ctest-vn-58207684', 'tenant_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'project_id': '6d6aa4b53f6f4ec583c3ba919ac8ebe5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2220bda0-6fe1-43c2-a104-bc4b0273f0e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-vn-58207684'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-policy-allow-all-49929222']], 'subnet_ipam': [{'subnet_cidr': '122.218.236.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-29 12:59:06,698 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-29 12:59:06,992 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-29 12:59:07,033 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5
2026-05-29 12:59:07,043 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d6aa4b5-3f6f-4ec5-83c3-ba919ac8ebe5
2026-05-29 12:59:07,117 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/25ca668b-2a2c-49a8-a3eb-068e94502c43
2026-05-29 12:59:07,128 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/25ca668b-2a2c-49a8-a3eb-068e94502c43
2026-05-29 12:59:07,139 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9f67a954-3102-4d7a-b2d3-b3e3a35929bb
2026-05-29 12:59:07,146 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9f67a954-3102-4d7a-b2d3-b3e3a35929bb
2026-05-29 12:59:07,155 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/65b33ce5-5011-4aee-95a8-538ca709b0c7
2026-05-29 12:59:07,161 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-29 12:59:07,161 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/25ca668b-2a2c-49a8-a3eb-068e94502c43
2026-05-29 12:59:07,169 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9f67a954-3102-4d7a-b2d3-b3e3a35929bb
2026-05-29 12:59:07,182 - INFO - Verified VN network id 11 for VN 25ca668b-2a2c-49a8-a3eb-068e94502c43
2026-05-29 12:59:07,182 - INFO - Verifications in API Server for VN ctest-vn-60997716 passed
2026-05-29 12:59:07,183 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/25ca668b-2a2c-49a8-a3eb-068e94502c43
2026-05-29 12:59:07,191 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9f67a954-3102-4d7a-b2d3-b3e3a35929bb
2026-05-29 12:59:07,197 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9f67a954-3102-4d7a-b2d3-b3e3a35929bb
2026-05-29 12:59:07,204 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/65b33ce5-5011-4aee-95a8-538ca709b0c7
2026-05-29 12:59:07,215 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-60997716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93819322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2723101672592918952', 'uuid-lslong': '11811541657152662595'}, 'enable': 'true', 'created': '2026-05-29T12:59:04', 'last-modified': '2026-05-29T12:59:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938631'}
2026-05-29 12:59:07,220 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-29 12:59:07,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60997716 passed
2026-05-29 12:59:07,221 - DEBUG - ====Verifying policy data for ctest-vn-60997716 in API_Server ======
2026-05-29 12:59:07,221 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-29 12:59:07,226 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5
2026-05-29 12:59:07,237 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d6aa4b5-3f6f-4ec5-83c3-ba919ac8ebe5
2026-05-29 12:59:07,306 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/25ca668b-2a2c-49a8-a3eb-068e94502c43
2026-05-29 12:59:07,314 - DEBUG - ==>Verifying data for policy with id: 1cdfb2a2-f836-4258-8f20-49084a3cf260, fqn: ['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-policy-allow-all-49929222']
2026-05-29 12:59:07,315 - INFO - VN ctest-vn-60997716 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-29 12:59:07,315 - DEBUG - Verifying the vn in opserver
2026-05-29 12:59:07,315 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-60997716 virtual network link through opserver 10.0.0.33
2026-05-29 12:59:07,315 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-05-29 12:59:07,607 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-05-29 12:59:07,670 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-60997716', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-60997716?flat'}
2026-05-29 12:59:07,670 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-60997716 is found in opserver
2026-05-29 12:59:07,679 - DEBUG - Do not have enough data to verify VN in agent
2026-05-29 12:59:07,685 - DEBUG - VRF ids for VN ctest-vn-60997716: {}
2026-05-29 12:59:07,685 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-29 12:59:07,692 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5
2026-05-29 12:59:07,703 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d6aa4b5-3f6f-4ec5-83c3-ba919ac8ebe5
2026-05-29 12:59:07,775 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fc869067-cf22-4ed2-a4ad-a54c7a756843
2026-05-29 12:59:07,786 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fc869067-cf22-4ed2-a4ad-a54c7a756843
2026-05-29 12:59:07,794 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4a5cfc31-24f7-48ad-a20f-7b69b59d4bd5
2026-05-29 12:59:07,801 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4a5cfc31-24f7-48ad-a20f-7b69b59d4bd5
2026-05-29 12:59:07,808 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/28e5fabd-ae72-4696-b0f1-6be0d1ed73ec
2026-05-29 12:59:07,814 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-29 12:59:07,814 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fc869067-cf22-4ed2-a4ad-a54c7a756843
2026-05-29 12:59:07,824 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4a5cfc31-24f7-48ad-a20f-7b69b59d4bd5
2026-05-29 12:59:07,839 - INFO - Verified VN network id 12 for VN fc869067-cf22-4ed2-a4ad-a54c7a756843
2026-05-29 12:59:07,839 - INFO - Verifications in API Server for VN ctest-vn-58207684 passed
2026-05-29 12:59:07,839 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fc869067-cf22-4ed2-a4ad-a54c7a756843
2026-05-29 12:59:07,847 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4a5cfc31-24f7-48ad-a20f-7b69b59d4bd5
2026-05-29 12:59:07,854 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4a5cfc31-24f7-48ad-a20f-7b69b59d4bd5
2026-05-29 12:59:07,860 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/28e5fabd-ae72-4696-b0f1-6be0d1ed73ec
2026-05-29 12:59:07,871 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-58207684', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93819322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18196390119968231122', 'uuid-lslong': '11866322341081737283'}, 'enable': 'true', 'created': '2026-05-29T12:59:05', 'last-modified': '2026-05-29T12:59:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361919'}
2026-05-29 12:59:07,877 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-29 12:59:07,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58207684 passed
2026-05-29 12:59:07,877 - DEBUG - ====Verifying policy data for ctest-vn-58207684 in API_Server ======
2026-05-29 12:59:07,877 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-29 12:59:07,882 - DEBUG - Requesting: http://10.0.0.33:8082/domain/85a7a162-38a2-4247-9a3b-f3e8e668adc5
2026-05-29 12:59:07,892 - DEBUG - Requesting: http://10.0.0.33:8082/project/6d6aa4b5-3f6f-4ec5-83c3-ba919ac8ebe5
2026-05-29 12:59:07,963 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fc869067-cf22-4ed2-a4ad-a54c7a756843
2026-05-29 12:59:07,972 - DEBUG - ==>Verifying data for policy with id: 1cdfb2a2-f836-4258-8f20-49084a3cf260, fqn: ['default-domain', 'ctest-TestBasicPolicy-93819322', 'ctest-policy-allow-all-49929222']
2026-05-29 12:59:07,972 - INFO - VN ctest-vn-58207684 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-29 12:59:07,972 - DEBUG - Verifying the vn in opserver
2026-05-29 12:59:07,972 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-58207684 virtual network link through opserver 10.0.0.33
2026-05-29 12:59:07,972 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-05-29 12:59:07,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-58207684', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-58207684?flat'}
2026-05-29 12:59:07,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93819322:ctest-vn-58207684 is found in opserver
2026-05-29 12:59:07,991 - DEBUG - Do not have enough data to verify VN in agent
2026-05-29 12:59:07,995 - DEBUG - VRF ids for VN ctest-vn-58207684: {}
2026-05-29 12:59:08,051 - DEBUG - Services list from nova: [