2026-07-18 03:06:06,096 - INFO - Domain Default found not creating
2026-07-18 03:06:06,266 - INFO - Project ctest-TestBasicPolicy-64636160 not found, creating it
2026-07-18 03:06:06,750 - INFO - Created Project:ctest-TestBasicPolicy-64636160, ID : a6498b8e-1870-44a4-8906-eb19f2ed7efd
2026-07-18 03:06:08,267 - INFO - ================================================================================
2026-07-18 03:06:08,268 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-18 03:06:08,268 - 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-07-18 03:06:08,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-18 03:06:08,526 - INFO - Initial checks done. Running the testcase now
2026-07-18 03:06:08,527 - INFO -
2026-07-18 03:06:09,106 - DEBUG - Response for create_network : {'network': {'id': 'e01fca93-7d4c-4837-a7d8-60cbe23ac470', 'name': 'ctest-vn-47031345', 'tenant_id': 'a6498b8e187044a48906eb19f2ed7efd', 'project_id': 'a6498b8e187044a48906eb19f2ed7efd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-vn-47031345'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 03:06:09,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '735f451d-0e04-4714-94fa-ccf7fe0398e2', 'name': '', 'tenant_id': 'a6498b8e187044a48906eb19f2ed7efd', 'network_id': 'e01fca93-7d4c-4837-a7d8-60cbe23ac470', 'ip_version': 4, 'cidr': '34.109.73.64/26', 'allocation_pools': [{'start': '34.109.73.66', 'end': '34.109.73.126'}], 'gateway_ip': '34.109.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.109.73.66', 'tags': [], 'project_id': 'a6498b8e187044a48906eb19f2ed7efd'}}
2026-07-18 03:06:09,302 - INFO - Created VN ctest-vn-47031345
2026-07-18 03:06:09,356 - DEBUG - VN ctest-vn-47031345 UUID is e01fca93-7d4c-4837-a7d8-60cbe23ac470
2026-07-18 03:06:09,655 - DEBUG - Response for create_network : {'network': {'id': '51c4f287-aabd-409f-a9c4-87d457ac52c1', 'name': 'ctest-vn-84466717', 'tenant_id': 'a6498b8e187044a48906eb19f2ed7efd', 'project_id': 'a6498b8e187044a48906eb19f2ed7efd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-vn-84466717'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 03:06:09,871 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa6a74ee-322f-4925-ba48-765536ec7517', 'name': '', 'tenant_id': 'a6498b8e187044a48906eb19f2ed7efd', 'network_id': '51c4f287-aabd-409f-a9c4-87d457ac52c1', 'ip_version': 4, 'cidr': '160.47.247.0/26', 'allocation_pools': [{'start': '160.47.247.2', 'end': '160.47.247.62'}], 'gateway_ip': '160.47.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.47.247.2', 'tags': [], 'project_id': 'a6498b8e187044a48906eb19f2ed7efd'}}
2026-07-18 03:06:09,887 - INFO - Created VN ctest-vn-84466717
2026-07-18 03:06:09,940 - DEBUG - VN ctest-vn-84466717 UUID is 51c4f287-aabd-409f-a9c4-87d457ac52c1
2026-07-18 03:06:10,092 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-47031345, 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-64636160:ctest-vn-84466717, 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-07-18 03:06:10,415 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e01fca93-7d4c-4837-a7d8-60cbe23ac470', 'name': 'ctest-vn-47031345', 'tenant_id': 'a6498b8e187044a48906eb19f2ed7efd', 'project_id': 'a6498b8e187044a48906eb19f2ed7efd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['735f451d-0e04-4714-94fa-ccf7fe0398e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-vn-47031345'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-policy-allow-all-35854569']], 'subnet_ipam': [{'subnet_cidr': '34.109.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 03:06:10,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51c4f287-aabd-409f-a9c4-87d457ac52c1', 'name': 'ctest-vn-84466717', 'tenant_id': 'a6498b8e187044a48906eb19f2ed7efd', 'project_id': 'a6498b8e187044a48906eb19f2ed7efd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa6a74ee-322f-4925-ba48-765536ec7517'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-vn-84466717'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-policy-allow-all-35854569']], 'subnet_ipam': [{'subnet_cidr': '160.47.247.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 03:06:10,817 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 03:06:11,144 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 03:06:11,175 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01e088ab-8237-4f11-99b8-b03c928dd6cc
2026-07-18 03:06:11,188 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6498b8e-1870-44a4-8906-eb19f2ed7efd
2026-07-18 03:06:11,270 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e01fca93-7d4c-4837-a7d8-60cbe23ac470
2026-07-18 03:06:11,282 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e01fca93-7d4c-4837-a7d8-60cbe23ac470
2026-07-18 03:06:11,295 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/647692a4-a5bf-45a3-95ab-469f666bfa37
2026-07-18 03:06:11,303 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/647692a4-a5bf-45a3-95ab-469f666bfa37
2026-07-18 03:06:11,311 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da62ab52-c378-4756-bf63-1459fa67a108
2026-07-18 03:06:11,318 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 03:06:11,318 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e01fca93-7d4c-4837-a7d8-60cbe23ac470
2026-07-18 03:06:11,328 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/647692a4-a5bf-45a3-95ab-469f666bfa37
2026-07-18 03:06:11,345 - INFO - Verified VN network id 11 for VN e01fca93-7d4c-4837-a7d8-60cbe23ac470
2026-07-18 03:06:11,346 - INFO - Verifications in API Server for VN ctest-vn-47031345 passed
2026-07-18 03:06:11,346 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e01fca93-7d4c-4837-a7d8-60cbe23ac470
2026-07-18 03:06:11,357 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/647692a4-a5bf-45a3-95ab-469f666bfa37
2026-07-18 03:06:11,366 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/647692a4-a5bf-45a3-95ab-469f666bfa37
2026-07-18 03:06:11,374 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da62ab52-c378-4756-bf63-1459fa67a108
2026-07-18 03:06:11,391 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-47031345', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64636160', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16149849523585042487', 'uuid-lslong': '12094523228093596784'}, 'enable': 'true', 'created': '2026-07-18T03:06:09', 'last-modified': '2026-07-18T03:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007794'}
2026-07-18 03:06:11,399 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 03:06:11,399 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47031345 passed
2026-07-18 03:06:11,399 - DEBUG - ====Verifying policy data for ctest-vn-47031345 in API_Server ======
2026-07-18 03:06:11,400 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 03:06:11,406 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01e088ab-8237-4f11-99b8-b03c928dd6cc
2026-07-18 03:06:11,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6498b8e-1870-44a4-8906-eb19f2ed7efd
2026-07-18 03:06:11,496 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e01fca93-7d4c-4837-a7d8-60cbe23ac470
2026-07-18 03:06:11,507 - DEBUG - ==>Verifying data for policy with id: 7c1234ff-1774-480d-b201-60f993dbcaae, fqn: ['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-policy-allow-all-35854569']
2026-07-18 03:06:11,507 - INFO - VN ctest-vn-47031345 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 03:06:11,507 - DEBUG - Verifying the vn in opserver
2026-07-18 03:06:11,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-47031345 virtual network link through opserver 10.0.0.50
2026-07-18 03:06:11,507 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 03:06:11,842 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 03:06:11,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-47031345', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-47031345?flat'}
2026-07-18 03:06:11,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-47031345 is found in opserver
2026-07-18 03:06:11,906 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 03:06:11,914 - DEBUG - VRF ids for VN ctest-vn-47031345: {}
2026-07-18 03:06:11,914 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 03:06:11,921 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01e088ab-8237-4f11-99b8-b03c928dd6cc
2026-07-18 03:06:11,931 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6498b8e-1870-44a4-8906-eb19f2ed7efd
2026-07-18 03:06:12,012 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51c4f287-aabd-409f-a9c4-87d457ac52c1
2026-07-18 03:06:12,027 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51c4f287-aabd-409f-a9c4-87d457ac52c1
2026-07-18 03:06:12,037 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a2a1794b-c97c-4015-bdd2-9faf348aa2f3
2026-07-18 03:06:12,045 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a2a1794b-c97c-4015-bdd2-9faf348aa2f3
2026-07-18 03:06:12,052 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e729859f-e48e-407b-9c82-1e9370b9b6fc
2026-07-18 03:06:12,059 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 03:06:12,059 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51c4f287-aabd-409f-a9c4-87d457ac52c1
2026-07-18 03:06:12,069 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a2a1794b-c97c-4015-bdd2-9faf348aa2f3
2026-07-18 03:06:12,083 - INFO - Verified VN network id 12 for VN 51c4f287-aabd-409f-a9c4-87d457ac52c1
2026-07-18 03:06:12,084 - INFO - Verifications in API Server for VN ctest-vn-84466717 passed
2026-07-18 03:06:12,084 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51c4f287-aabd-409f-a9c4-87d457ac52c1
2026-07-18 03:06:12,094 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a2a1794b-c97c-4015-bdd2-9faf348aa2f3
2026-07-18 03:06:12,100 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a2a1794b-c97c-4015-bdd2-9faf348aa2f3
2026-07-18 03:06:12,107 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e729859f-e48e-407b-9c82-1e9370b9b6fc
2026-07-18 03:06:12,119 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-84466717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64636160', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5892100877006487711', 'uuid-lslong': '12233051833918837441'}, 'enable': 'true', 'created': '2026-07-18T03:06:09', 'last-modified': '2026-07-18T03:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.491039'}
2026-07-18 03:06:12,125 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 03:06:12,125 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84466717 passed
2026-07-18 03:06:12,125 - DEBUG - ====Verifying policy data for ctest-vn-84466717 in API_Server ======
2026-07-18 03:06:12,125 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-18 03:06:12,132 - DEBUG - Requesting: http://10.0.0.50:8082/domain/01e088ab-8237-4f11-99b8-b03c928dd6cc
2026-07-18 03:06:12,148 - DEBUG - Requesting: http://10.0.0.50:8082/project/a6498b8e-1870-44a4-8906-eb19f2ed7efd
2026-07-18 03:06:12,224 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/51c4f287-aabd-409f-a9c4-87d457ac52c1
2026-07-18 03:06:12,235 - DEBUG - ==>Verifying data for policy with id: 7c1234ff-1774-480d-b201-60f993dbcaae, fqn: ['default-domain', 'ctest-TestBasicPolicy-64636160', 'ctest-policy-allow-all-35854569']
2026-07-18 03:06:12,235 - INFO - VN ctest-vn-84466717 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 03:06:12,235 - DEBUG - Verifying the vn in opserver
2026-07-18 03:06:12,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-84466717 virtual network link through opserver 10.0.0.50
2026-07-18 03:06:12,235 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-18 03:06:12,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-84466717', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-84466717?flat'}
2026-07-18 03:06:12,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64636160:ctest-vn-84466717 is found in opserver
2026-07-18 03:06:12,256 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 03:06:12,260 - DEBUG - VRF ids for VN ctest-vn-84466717: {}
2026-07-18 03:06:12,319 - DEBUG - Services list from nova: [