2026-08-25 14:54:41,374 - INFO - Domain Default found not creating
2026-08-25 14:54:41,546 - INFO - Project ctest-TestBasicPolicy-11350051 not found, creating it
2026-08-25 14:54:42,082 - INFO - Created Project:ctest-TestBasicPolicy-11350051, ID : a04ae68f-6c08-48cc-8bf3-93bfdaed1fc9
2026-08-25 14:54:43,790 - INFO - ================================================================================
2026-08-25 14:54:43,790 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-25 14:54:43,791 - 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-25 14:54:44,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.17': '0'}} with
2026-08-25 14:54:44,056 - INFO - Initial checks done. Running the testcase now
2026-08-25 14:54:44,056 - INFO -
2026-08-25 14:54:44,723 - DEBUG - Response for create_network : {'network': {'id': '9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4', 'name': 'ctest-vn-33542288', 'tenant_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'project_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-vn-33542288'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 14:54:44,929 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c07b9c3b-dd04-4d2a-8761-d77eaf8b0f34', 'name': '', 'tenant_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'network_id': '9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4', 'ip_version': 4, 'cidr': '12.233.132.128/26', 'allocation_pools': [{'start': '12.233.132.130', 'end': '12.233.132.190'}], 'gateway_ip': '12.233.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.233.132.130', 'tags': [], 'project_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9'}}
2026-08-25 14:54:44,950 - INFO - Created VN ctest-vn-33542288
2026-08-25 14:54:45,002 - DEBUG - VN ctest-vn-33542288 UUID is 9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4
2026-08-25 14:54:45,362 - DEBUG - Response for create_network : {'network': {'id': '306bfa2d-8763-4fe1-8078-9e77a3cd748f', 'name': 'ctest-vn-20989208', 'tenant_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'project_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-vn-20989208'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 14:54:45,583 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b0c3cab-ac79-4726-b6ac-953f0ca01faf', 'name': '', 'tenant_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'network_id': '306bfa2d-8763-4fe1-8078-9e77a3cd748f', 'ip_version': 4, 'cidr': '126.12.122.64/26', 'allocation_pools': [{'start': '126.12.122.66', 'end': '126.12.122.126'}], 'gateway_ip': '126.12.122.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.12.122.66', 'tags': [], 'project_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9'}}
2026-08-25 14:54:45,604 - INFO - Created VN ctest-vn-20989208
2026-08-25 14:54:45,658 - DEBUG - VN ctest-vn-20989208 UUID is 306bfa2d-8763-4fe1-8078-9e77a3cd748f
2026-08-25 14:54:45,779 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-33542288, 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-11350051:ctest-vn-20989208, 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-25 14:54:46,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4', 'name': 'ctest-vn-33542288', 'tenant_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'project_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c07b9c3b-dd04-4d2a-8761-d77eaf8b0f34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-vn-33542288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-policy-allow-all-95243348']], 'subnet_ipam': [{'subnet_cidr': '12.233.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 14:54:46,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '306bfa2d-8763-4fe1-8078-9e77a3cd748f', 'name': 'ctest-vn-20989208', 'tenant_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'project_id': 'a04ae68f6c0848cc8bf393bfdaed1fc9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5b0c3cab-ac79-4726-b6ac-953f0ca01faf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-vn-20989208'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-policy-allow-all-95243348']], 'subnet_ipam': [{'subnet_cidr': '126.12.122.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 14:54:46,554 - DEBUG - Requesting: http://10.0.0.188:8082/domains
2026-08-25 14:54:46,891 - DEBUG - Requesting: http://10.0.0.188:8082/domains
2026-08-25 14:54:46,923 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7
2026-08-25 14:54:46,938 - DEBUG - Requesting: http://10.0.0.188:8082/project/a04ae68f-6c08-48cc-8bf3-93bfdaed1fc9
2026-08-25 14:54:47,032 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4
2026-08-25 14:54:47,048 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4
2026-08-25 14:54:47,060 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/929f9e64-e747-4cc3-a697-a0d80c9d826e
2026-08-25 14:54:47,069 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/929f9e64-e747-4cc3-a697-a0d80c9d826e
2026-08-25 14:54:47,078 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/9a88ad33-c577-4e62-b0a0-4aeca79c72f1
2026-08-25 14:54:47,087 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 14:54:47,087 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4
2026-08-25 14:54:47,098 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/929f9e64-e747-4cc3-a697-a0d80c9d826e
2026-08-25 14:54:47,117 - INFO - Verified VN network id 12 for VN 9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4
2026-08-25 14:54:47,117 - INFO - Verifications in API Server for VN ctest-vn-33542288 passed
2026-08-25 14:54:47,117 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4
2026-08-25 14:54:47,132 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/929f9e64-e747-4cc3-a697-a0d80c9d826e
2026-08-25 14:54:47,141 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/929f9e64-e747-4cc3-a697-a0d80c9d826e
2026-08-25 14:54:47,150 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/9a88ad33-c577-4e62-b0a0-4aeca79c72f1
2026-08-25 14:54:47,164 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-33542288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11350051', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10738480096893816404', 'uuid-lslong': '12172257408624985796'}, 'enable': 'true', 'created': '2026-08-25T14:54:44', 'last-modified': '2026-08-25T14:54:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.070332'}
2026-08-25 14:54:47,173 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 14:54:47,174 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33542288 passed
2026-08-25 14:54:47,174 - DEBUG - ====Verifying policy data for ctest-vn-33542288 in API_Server ======
2026-08-25 14:54:47,174 - DEBUG - Requesting: http://10.0.0.188:8082/domains
2026-08-25 14:54:47,182 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7
2026-08-25 14:54:47,197 - DEBUG - Requesting: http://10.0.0.188:8082/project/a04ae68f-6c08-48cc-8bf3-93bfdaed1fc9
2026-08-25 14:54:47,277 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/9506bec0-d2f5-4e54-a8ec-8b9f2bb586c4
2026-08-25 14:54:47,290 - DEBUG - ==>Verifying data for policy with id: abd0ca75-4657-46de-aa3a-d8d3c8ba3958, fqn: ['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-policy-allow-all-95243348']
2026-08-25 14:54:47,290 - INFO - VN ctest-vn-33542288 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 14:54:47,290 - DEBUG - Verifying the vn in opserver
2026-08-25 14:54:47,290 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-33542288 virtual network link through opserver 10.0.0.188
2026-08-25 14:54:47,290 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks
2026-08-25 14:54:47,611 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks
2026-08-25 14:54:47,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-33542288', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-33542288?flat'}
2026-08-25 14:54:47,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-33542288 is found in opserver
2026-08-25 14:54:47,686 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 14:54:47,693 - DEBUG - VRF ids for VN ctest-vn-33542288: {}
2026-08-25 14:54:47,693 - DEBUG - Requesting: http://10.0.0.188:8082/domains
2026-08-25 14:54:47,700 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7
2026-08-25 14:54:47,716 - DEBUG - Requesting: http://10.0.0.188:8082/project/a04ae68f-6c08-48cc-8bf3-93bfdaed1fc9
2026-08-25 14:54:47,803 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/306bfa2d-8763-4fe1-8078-9e77a3cd748f
2026-08-25 14:54:47,820 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/306bfa2d-8763-4fe1-8078-9e77a3cd748f
2026-08-25 14:54:47,833 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/ca539156-63b2-48ec-8709-d7f292f1baa1
2026-08-25 14:54:47,844 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/ca539156-63b2-48ec-8709-d7f292f1baa1
2026-08-25 14:54:47,854 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/6a013bf2-d6d6-4aac-aa26-9843899b62a5
2026-08-25 14:54:47,863 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-25 14:54:47,863 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/306bfa2d-8763-4fe1-8078-9e77a3cd748f
2026-08-25 14:54:47,876 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/ca539156-63b2-48ec-8709-d7f292f1baa1
2026-08-25 14:54:47,895 - INFO - Verified VN network id 13 for VN 306bfa2d-8763-4fe1-8078-9e77a3cd748f
2026-08-25 14:54:47,896 - INFO - Verifications in API Server for VN ctest-vn-20989208 passed
2026-08-25 14:54:47,896 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/306bfa2d-8763-4fe1-8078-9e77a3cd748f
2026-08-25 14:54:47,908 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/ca539156-63b2-48ec-8709-d7f292f1baa1
2026-08-25 14:54:47,918 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/ca539156-63b2-48ec-8709-d7f292f1baa1
2026-08-25 14:54:47,927 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/6a013bf2-d6d6-4aac-aa26-9843899b62a5
2026-08-25 14:54:47,941 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-20989208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11350051', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3489157409780486113', 'uuid-lslong': '9257323270746502287'}, 'enable': 'true', 'created': '2026-08-25T14:54:45', 'last-modified': '2026-08-25T14:54:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.586366'}
2026-08-25 14:54:47,950 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-25 14:54:47,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20989208 passed
2026-08-25 14:54:47,951 - DEBUG - ====Verifying policy data for ctest-vn-20989208 in API_Server ======
2026-08-25 14:54:47,951 - DEBUG - Requesting: http://10.0.0.188:8082/domains
2026-08-25 14:54:47,959 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7
2026-08-25 14:54:47,974 - DEBUG - Requesting: http://10.0.0.188:8082/project/a04ae68f-6c08-48cc-8bf3-93bfdaed1fc9
2026-08-25 14:54:48,062 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/306bfa2d-8763-4fe1-8078-9e77a3cd748f
2026-08-25 14:54:48,076 - DEBUG - ==>Verifying data for policy with id: abd0ca75-4657-46de-aa3a-d8d3c8ba3958, fqn: ['default-domain', 'ctest-TestBasicPolicy-11350051', 'ctest-policy-allow-all-95243348']
2026-08-25 14:54:48,076 - INFO - VN ctest-vn-20989208 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 14:54:48,076 - DEBUG - Verifying the vn in opserver
2026-08-25 14:54:48,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-20989208 virtual network link through opserver 10.0.0.188
2026-08-25 14:54:48,076 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks
2026-08-25 14:54:48,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-20989208', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-20989208?flat'}
2026-08-25 14:54:48,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11350051:ctest-vn-20989208 is found in opserver
2026-08-25 14:54:48,103 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 14:54:48,108 - DEBUG - VRF ids for VN ctest-vn-20989208: {}
2026-08-25 14:54:48,185 - DEBUG - Services list from nova: [