2025-11-10 20:22:27,622 - INFO - Domain Default found not creating
2025-11-10 20:22:27,901 - INFO - Project ctest-TestBasicPolicy-62206916 not found, creating it
2025-11-10 20:22:28,505 - INFO - Created Project:ctest-TestBasicPolicy-62206916, ID : c83b425e-171b-4cf7-95d2-c9985469ed23
2025-11-10 20:22:30,398 - INFO - ================================================================================
2025-11-10 20:22:30,399 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 20:22:30,399 - 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-11-10 20:22:30,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with
2025-11-10 20:22:30,721 - INFO - Initial checks done. Running the testcase now
2025-11-10 20:22:30,721 - INFO -
2025-11-10 20:22:31,515 - DEBUG - Response for create_network : {'network': {'id': '320551eb-f909-41c6-9d61-123ef624efa8', 'name': 'ctest-vn-68598921', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-68598921'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:22:31,733 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd98f79fb-0f20-408a-902b-c5d2dbe48239', 'name': '', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'network_id': '320551eb-f909-41c6-9d61-123ef624efa8', 'ip_version': 4, 'cidr': '172.141.254.64/26', 'allocation_pools': [{'start': '172.141.254.66', 'end': '172.141.254.126'}], 'gateway_ip': '172.141.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.141.254.66', 'tags': [], 'project_id': 'c83b425e171b4cf795d2c9985469ed23'}}
2025-11-10 20:22:31,757 - INFO - Created VN ctest-vn-68598921
2025-11-10 20:22:31,820 - DEBUG - VN ctest-vn-68598921 UUID is 320551eb-f909-41c6-9d61-123ef624efa8
2025-11-10 20:22:32,276 - DEBUG - Response for create_network : {'network': {'id': '02c3b2aa-5d15-4142-8d7e-cf3726a2c545', 'name': 'ctest-vn-30312698', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-30312698'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:22:32,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '88936cb8-5e7d-46c4-98c0-6acc76d4a519', 'name': '', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'network_id': '02c3b2aa-5d15-4142-8d7e-cf3726a2c545', 'ip_version': 4, 'cidr': '158.38.198.128/26', 'allocation_pools': [{'start': '158.38.198.130', 'end': '158.38.198.190'}], 'gateway_ip': '158.38.198.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.38.198.130', 'tags': [], 'project_id': 'c83b425e171b4cf795d2c9985469ed23'}}
2025-11-10 20:22:32,552 - INFO - Created VN ctest-vn-30312698
2025-11-10 20:22:32,604 - DEBUG - VN ctest-vn-30312698 UUID is 02c3b2aa-5d15-4142-8d7e-cf3726a2c545
2025-11-10 20:22:32,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921, 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-62206916:ctest-vn-30312698, 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-11-10 20:22:33,157 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '320551eb-f909-41c6-9d61-123ef624efa8', 'name': 'ctest-vn-68598921', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d98f79fb-0f20-408a-902b-c5d2dbe48239'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-68598921'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455']], 'subnet_ipam': [{'subnet_cidr': '172.141.254.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:22:33,427 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02c3b2aa-5d15-4142-8d7e-cf3726a2c545', 'name': 'ctest-vn-30312698', 'tenant_id': 'c83b425e171b4cf795d2c9985469ed23', 'project_id': 'c83b425e171b4cf795d2c9985469ed23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['88936cb8-5e7d-46c4-98c0-6acc76d4a519'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-vn-30312698'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455']], 'subnet_ipam': [{'subnet_cidr': '158.38.198.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 20:22:33,604 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 20:22:33,933 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 20:22:33,991 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e
2025-11-10 20:22:34,005 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23
2025-11-10 20:22:34,089 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8
2025-11-10 20:22:34,107 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8
2025-11-10 20:22:34,125 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc
2025-11-10 20:22:34,137 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc
2025-11-10 20:22:34,148 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e78c3f5c-2d1d-4a4e-9717-28b161eaae8a
2025-11-10 20:22:34,158 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 20:22:34,158 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8
2025-11-10 20:22:34,174 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc
2025-11-10 20:22:34,192 - INFO - Verified VN network id 11 for VN 320551eb-f909-41c6-9d61-123ef624efa8
2025-11-10 20:22:34,192 - INFO - Verifications in API Server for VN ctest-vn-68598921 passed
2025-11-10 20:22:34,193 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8
2025-11-10 20:22:34,210 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc
2025-11-10 20:22:34,222 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8ec40b1c-8219-4572-baf1-c5831e648bfc
2025-11-10 20:22:34,233 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e78c3f5c-2d1d-4a4e-9717-28b161eaae8a
2025-11-10 20:22:34,247 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62206916', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3604377150717247942', 'uuid-lslong': '11340365398322507688'}, 'enable': 'true', 'created': '2025-11-10T20:22:31', 'last-modified': '2025-11-10T20:22:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.119161'}
2025-11-10 20:22:34,254 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 20:22:34,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68598921 passed
2025-11-10 20:22:34,255 - DEBUG - ====Verifying policy data for ctest-vn-68598921 in API_Server ======
2025-11-10 20:22:34,255 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 20:22:34,261 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e
2025-11-10 20:22:34,275 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23
2025-11-10 20:22:34,351 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/320551eb-f909-41c6-9d61-123ef624efa8
2025-11-10 20:22:34,364 - DEBUG - ==>Verifying data for policy with id: 58aec305-1a32-4ca9-b479-e182c10025e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455']
2025-11-10 20:22:34,364 - INFO - VN ctest-vn-68598921 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 20:22:34,364 - DEBUG - Verifying the vn in opserver
2025-11-10 20:22:34,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921 virtual network link through opserver 10.0.0.33
2025-11-10 20:22:34,365 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-10 20:22:34,683 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-10 20:22:34,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921?flat'}
2025-11-10 20:22:34,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-68598921 is found in opserver
2025-11-10 20:22:34,767 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 20:22:34,776 - DEBUG - VRF ids for VN ctest-vn-68598921: {}
2025-11-10 20:22:34,776 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 20:22:34,785 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e
2025-11-10 20:22:34,804 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23
2025-11-10 20:22:34,911 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545
2025-11-10 20:22:34,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545
2025-11-10 20:22:34,954 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5
2025-11-10 20:22:34,966 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5
2025-11-10 20:22:34,977 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/87bc545d-99c3-4b2c-bf56-73f54edabfc1
2025-11-10 20:22:34,987 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 20:22:34,987 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545
2025-11-10 20:22:35,001 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5
2025-11-10 20:22:35,024 - INFO - Verified VN network id 12 for VN 02c3b2aa-5d15-4142-8d7e-cf3726a2c545
2025-11-10 20:22:35,024 - INFO - Verifications in API Server for VN ctest-vn-30312698 passed
2025-11-10 20:22:35,025 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545
2025-11-10 20:22:35,041 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5
2025-11-10 20:22:35,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ae3b322c-eb95-4995-a177-207281283de5
2025-11-10 20:22:35,063 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/87bc545d-99c3-4b2c-bf56-73f54edabfc1
2025-11-10 20:22:35,088 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62206916', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '199199253310292290', 'uuid-lslong': '10195814442191734085'}, 'enable': 'true', 'created': '2025-11-10T20:22:32', 'last-modified': '2025-11-10T20:22:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.677320'}
2025-11-10 20:22:35,105 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 20:22:35,106 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30312698 passed
2025-11-10 20:22:35,106 - DEBUG - ====Verifying policy data for ctest-vn-30312698 in API_Server ======
2025-11-10 20:22:35,106 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-10 20:22:35,116 - DEBUG - Requesting: http://10.0.0.33:8082/domain/da23d1f3-c8cf-4080-ac96-5fbf109a080e
2025-11-10 20:22:35,138 - DEBUG - Requesting: http://10.0.0.33:8082/project/c83b425e-171b-4cf7-95d2-c9985469ed23
2025-11-10 20:22:35,248 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/02c3b2aa-5d15-4142-8d7e-cf3726a2c545
2025-11-10 20:22:35,268 - DEBUG - ==>Verifying data for policy with id: 58aec305-1a32-4ca9-b479-e182c10025e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-62206916', 'ctest-policy-allow-all-82447455']
2025-11-10 20:22:35,268 - INFO - VN ctest-vn-30312698 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 20:22:35,268 - DEBUG - Verifying the vn in opserver
2025-11-10 20:22:35,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698 virtual network link through opserver 10.0.0.33
2025-11-10 20:22:35,268 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-10 20:22:35,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698?flat'}
2025-11-10 20:22:35,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62206916:ctest-vn-30312698 is found in opserver
2025-11-10 20:22:35,307 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 20:22:35,315 - DEBUG - VRF ids for VN ctest-vn-30312698: {}
2025-11-10 20:22:35,427 - DEBUG - Services list from nova: [