2026-07-10 17:41:29,808 - INFO - Domain Default found not creating
2026-07-10 17:41:29,979 - INFO - Project ctest-TestBasicPolicy-10082453 not found, creating it
2026-07-10 17:41:30,496 - INFO - Created Project:ctest-TestBasicPolicy-10082453, ID : 4a30c6b2-f2ce-4d6c-b672-cb455979ee8d
2026-07-10 17:41:32,170 - INFO - ================================================================================
2026-07-10 17:41:32,171 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-10 17:41:32,171 - 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-10 17:41:32,426 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-07-10 17:41:32,426 - INFO - Initial checks done. Running the testcase now
2026-07-10 17:41:32,426 - INFO -
2026-07-10 17:41:33,001 - DEBUG - Response for create_network : {'network': {'id': '1b749d6b-e985-4a9f-86c4-857a1c10443f', 'name': 'ctest-vn-92263863', 'tenant_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'project_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-vn-92263863'], 'port_security_enabled': True, 'description': ''}}
2026-07-10 17:41:33,206 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f2a6858-e809-4782-9fc3-a8dd8b629552', 'name': '', 'tenant_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'network_id': '1b749d6b-e985-4a9f-86c4-857a1c10443f', 'ip_version': 4, 'cidr': '85.245.240.64/26', 'allocation_pools': [{'start': '85.245.240.66', 'end': '85.245.240.126'}], 'gateway_ip': '85.245.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.245.240.66', 'tags': [], 'project_id': '4a30c6b2f2ce4d6cb672cb455979ee8d'}}
2026-07-10 17:41:33,224 - INFO - Created VN ctest-vn-92263863
2026-07-10 17:41:33,278 - DEBUG - VN ctest-vn-92263863 UUID is 1b749d6b-e985-4a9f-86c4-857a1c10443f
2026-07-10 17:41:33,630 - DEBUG - Response for create_network : {'network': {'id': '1fb5af17-ef4a-4af4-8a3c-b3295da0e57f', 'name': 'ctest-vn-66007633', 'tenant_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'project_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-vn-66007633'], 'port_security_enabled': True, 'description': ''}}
2026-07-10 17:41:33,830 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f29c2cc8-1b91-4e96-ad00-c93738dc0c4f', 'name': '', 'tenant_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'network_id': '1fb5af17-ef4a-4af4-8a3c-b3295da0e57f', 'ip_version': 4, 'cidr': '41.206.140.128/26', 'allocation_pools': [{'start': '41.206.140.130', 'end': '41.206.140.190'}], 'gateway_ip': '41.206.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.206.140.130', 'tags': [], 'project_id': '4a30c6b2f2ce4d6cb672cb455979ee8d'}}
2026-07-10 17:41:33,851 - INFO - Created VN ctest-vn-66007633
2026-07-10 17:41:33,910 - DEBUG - VN ctest-vn-66007633 UUID is 1fb5af17-ef4a-4af4-8a3c-b3295da0e57f
2026-07-10 17:41:34,034 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-92263863, 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-10082453:ctest-vn-66007633, 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-10 17:41:34,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b749d6b-e985-4a9f-86c4-857a1c10443f', 'name': 'ctest-vn-92263863', 'tenant_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'project_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f2a6858-e809-4782-9fc3-a8dd8b629552'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-vn-92263863'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-policy-allow-all-95678629']], 'subnet_ipam': [{'subnet_cidr': '85.245.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-10 17:41:34,608 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fb5af17-ef4a-4af4-8a3c-b3295da0e57f', 'name': 'ctest-vn-66007633', 'tenant_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'project_id': '4a30c6b2f2ce4d6cb672cb455979ee8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f29c2cc8-1b91-4e96-ad00-c93738dc0c4f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-vn-66007633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-policy-allow-all-95678629']], 'subnet_ipam': [{'subnet_cidr': '41.206.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-10 17:41:34,779 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-10 17:41:35,126 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-10 17:41:35,155 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f3898a9-a7f8-4174-b697-0aed186c0f37
2026-07-10 17:41:35,170 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a30c6b2-f2ce-4d6c-b672-cb455979ee8d
2026-07-10 17:41:35,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b749d6b-e985-4a9f-86c4-857a1c10443f
2026-07-10 17:41:35,259 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b749d6b-e985-4a9f-86c4-857a1c10443f
2026-07-10 17:41:35,269 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edc9562d-35fa-4d51-8b6b-ea36188a8ac0
2026-07-10 17:41:35,277 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edc9562d-35fa-4d51-8b6b-ea36188a8ac0
2026-07-10 17:41:35,285 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0898d91-c05b-487f-babb-7a386432c1d6
2026-07-10 17:41:35,293 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-10 17:41:35,293 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b749d6b-e985-4a9f-86c4-857a1c10443f
2026-07-10 17:41:35,307 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edc9562d-35fa-4d51-8b6b-ea36188a8ac0
2026-07-10 17:41:35,321 - INFO - Verified VN network id 11 for VN 1b749d6b-e985-4a9f-86c4-857a1c10443f
2026-07-10 17:41:35,321 - INFO - Verifications in API Server for VN ctest-vn-92263863 passed
2026-07-10 17:41:35,321 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b749d6b-e985-4a9f-86c4-857a1c10443f
2026-07-10 17:41:35,331 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edc9562d-35fa-4d51-8b6b-ea36188a8ac0
2026-07-10 17:41:35,339 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/edc9562d-35fa-4d51-8b6b-ea36188a8ac0
2026-07-10 17:41:35,350 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0898d91-c05b-487f-babb-7a386432c1d6
2026-07-10 17:41:35,362 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-92263863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10082453', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1978379223127378591', 'uuid-lslong': '9711033456020964415'}, 'enable': 'true', 'created': '2026-07-10T17:41:32', 'last-modified': '2026-07-10T17:41:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013482'}
2026-07-10 17:41:35,370 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-10 17:41:35,370 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92263863 passed
2026-07-10 17:41:35,370 - DEBUG - ====Verifying policy data for ctest-vn-92263863 in API_Server ======
2026-07-10 17:41:35,371 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-10 17:41:35,377 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f3898a9-a7f8-4174-b697-0aed186c0f37
2026-07-10 17:41:35,388 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a30c6b2-f2ce-4d6c-b672-cb455979ee8d
2026-07-10 17:41:35,463 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b749d6b-e985-4a9f-86c4-857a1c10443f
2026-07-10 17:41:35,474 - DEBUG - ==>Verifying data for policy with id: 2d390014-e9bd-46bb-a8b8-f95b16b14501, fqn: ['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-policy-allow-all-95678629']
2026-07-10 17:41:35,474 - INFO - VN ctest-vn-92263863 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-10 17:41:35,474 - DEBUG - Verifying the vn in opserver
2026-07-10 17:41:35,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-92263863 virtual network link through opserver 10.0.0.38
2026-07-10 17:41:35,474 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-10 17:41:35,810 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-10 17:41:35,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-92263863', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-92263863?flat'}
2026-07-10 17:41:35,868 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-92263863 is found in opserver
2026-07-10 17:41:35,878 - DEBUG - Do not have enough data to verify VN in agent
2026-07-10 17:41:35,885 - DEBUG - VRF ids for VN ctest-vn-92263863: {}
2026-07-10 17:41:35,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-10 17:41:35,891 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f3898a9-a7f8-4174-b697-0aed186c0f37
2026-07-10 17:41:35,902 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a30c6b2-f2ce-4d6c-b672-cb455979ee8d
2026-07-10 17:41:35,977 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fb5af17-ef4a-4af4-8a3c-b3295da0e57f
2026-07-10 17:41:35,990 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fb5af17-ef4a-4af4-8a3c-b3295da0e57f
2026-07-10 17:41:36,001 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa1f1693-28e8-47d7-9860-71867078e1d0
2026-07-10 17:41:36,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa1f1693-28e8-47d7-9860-71867078e1d0
2026-07-10 17:41:36,020 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4605674-7e73-43c7-9936-463b79190693
2026-07-10 17:41:36,027 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-10 17:41:36,027 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fb5af17-ef4a-4af4-8a3c-b3295da0e57f
2026-07-10 17:41:36,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa1f1693-28e8-47d7-9860-71867078e1d0
2026-07-10 17:41:36,052 - INFO - Verified VN network id 12 for VN 1fb5af17-ef4a-4af4-8a3c-b3295da0e57f
2026-07-10 17:41:36,052 - INFO - Verifications in API Server for VN ctest-vn-66007633 passed
2026-07-10 17:41:36,052 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fb5af17-ef4a-4af4-8a3c-b3295da0e57f
2026-07-10 17:41:36,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa1f1693-28e8-47d7-9860-71867078e1d0
2026-07-10 17:41:36,070 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fa1f1693-28e8-47d7-9860-71867078e1d0
2026-07-10 17:41:36,079 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4605674-7e73-43c7-9936-463b79190693
2026-07-10 17:41:36,093 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-66007633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10082453', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2284924903294126836', 'uuid-lslong': '9961033466082551167'}, 'enable': 'true', 'created': '2026-07-10T17:41:33', 'last-modified': '2026-07-10T17:41:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500678'}
2026-07-10 17:41:36,100 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-10 17:41:36,101 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66007633 passed
2026-07-10 17:41:36,101 - DEBUG - ====Verifying policy data for ctest-vn-66007633 in API_Server ======
2026-07-10 17:41:36,101 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-07-10 17:41:36,107 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5f3898a9-a7f8-4174-b697-0aed186c0f37
2026-07-10 17:41:36,120 - DEBUG - Requesting: http://10.0.0.38:8082/project/4a30c6b2-f2ce-4d6c-b672-cb455979ee8d
2026-07-10 17:41:36,199 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1fb5af17-ef4a-4af4-8a3c-b3295da0e57f
2026-07-10 17:41:36,209 - DEBUG - ==>Verifying data for policy with id: 2d390014-e9bd-46bb-a8b8-f95b16b14501, fqn: ['default-domain', 'ctest-TestBasicPolicy-10082453', 'ctest-policy-allow-all-95678629']
2026-07-10 17:41:36,209 - INFO - VN ctest-vn-66007633 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-10 17:41:36,209 - DEBUG - Verifying the vn in opserver
2026-07-10 17:41:36,209 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-66007633 virtual network link through opserver 10.0.0.38
2026-07-10 17:41:36,209 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-07-10 17:41:36,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-66007633', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-66007633?flat'}
2026-07-10 17:41:36,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10082453:ctest-vn-66007633 is found in opserver
2026-07-10 17:41:36,232 - DEBUG - Do not have enough data to verify VN in agent
2026-07-10 17:41:36,238 - DEBUG - VRF ids for VN ctest-vn-66007633: {}
2026-07-10 17:41:36,328 - DEBUG - Services list from nova: [