2025-11-19 17:36:08,710 - INFO - Domain Default found not creating
2025-11-19 17:36:08,850 - INFO - Project ctest-TestBasicPolicy-34333858 not found, creating it
2025-11-19 17:36:09,288 - INFO - Created Project:ctest-TestBasicPolicy-34333858, ID : 2e38e402-bca0-4c2c-a9ab-2c1b9a8e9a80
2025-11-19 17:36:10,699 - INFO - ================================================================================
2025-11-19 17:36:10,699 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-19 17:36:10,699 - 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-19 17:36:10,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.209': '0'}} with
2025-11-19 17:36:10,955 - INFO - Initial checks done. Running the testcase now
2025-11-19 17:36:10,955 - INFO -
2025-11-19 17:36:11,478 - DEBUG - Response for create_network : {'network': {'id': 'ce2ebcf9-98ee-4536-984b-81ce40466fb4', 'name': 'ctest-vn-12173275', 'tenant_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'project_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-vn-12173275'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:36:11,646 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b6ffb41-f94a-4baf-9319-9f74afc4f8be', 'name': '', 'tenant_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'network_id': 'ce2ebcf9-98ee-4536-984b-81ce40466fb4', 'ip_version': 4, 'cidr': '172.6.221.64/26', 'allocation_pools': [{'start': '172.6.221.66', 'end': '172.6.221.126'}], 'gateway_ip': '172.6.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.6.221.66', 'tags': [], 'project_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80'}}
2025-11-19 17:36:11,662 - INFO - Created VN ctest-vn-12173275
2025-11-19 17:36:11,713 - DEBUG - VN ctest-vn-12173275 UUID is ce2ebcf9-98ee-4536-984b-81ce40466fb4
2025-11-19 17:36:12,011 - DEBUG - Response for create_network : {'network': {'id': '604aa276-e8d2-4cd8-b127-48e3c44ff82e', 'name': 'ctest-vn-63796218', 'tenant_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'project_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-vn-63796218'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:36:12,214 - DEBUG - Response for create_subnet : {'subnet': {'id': '085896fa-46f5-4208-abbd-a21d219c405c', 'name': '', 'tenant_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'network_id': '604aa276-e8d2-4cd8-b127-48e3c44ff82e', 'ip_version': 4, 'cidr': '17.138.120.0/26', 'allocation_pools': [{'start': '17.138.120.2', 'end': '17.138.120.62'}], 'gateway_ip': '17.138.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.138.120.2', 'tags': [], 'project_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80'}}
2025-11-19 17:36:12,229 - INFO - Created VN ctest-vn-63796218
2025-11-19 17:36:12,277 - DEBUG - VN ctest-vn-63796218 UUID is 604aa276-e8d2-4cd8-b127-48e3c44ff82e
2025-11-19 17:36:12,421 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-12173275, 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-34333858:ctest-vn-63796218, 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-19 17:36:12,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce2ebcf9-98ee-4536-984b-81ce40466fb4', 'name': 'ctest-vn-12173275', 'tenant_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'project_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b6ffb41-f94a-4baf-9319-9f74afc4f8be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-vn-12173275'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-policy-allow-all-68422765']], 'subnet_ipam': [{'subnet_cidr': '172.6.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:36:12,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '604aa276-e8d2-4cd8-b127-48e3c44ff82e', 'name': 'ctest-vn-63796218', 'tenant_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'project_id': '2e38e402bca04c2ca9ab2c1b9a8e9a80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['085896fa-46f5-4208-abbd-a21d219c405c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-vn-63796218'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-policy-allow-all-68422765']], 'subnet_ipam': [{'subnet_cidr': '17.138.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:36:13,065 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-19 17:36:13,357 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-19 17:36:13,388 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1
2025-11-19 17:36:13,400 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e38e402-bca0-4c2c-a9ab-2c1b9a8e9a80
2025-11-19 17:36:13,470 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce2ebcf9-98ee-4536-984b-81ce40466fb4
2025-11-19 17:36:13,479 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce2ebcf9-98ee-4536-984b-81ce40466fb4
2025-11-19 17:36:13,486 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f26ad4e-720e-4baf-b1b8-e049d23aebc8
2025-11-19 17:36:13,493 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f26ad4e-720e-4baf-b1b8-e049d23aebc8
2025-11-19 17:36:13,499 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/01131944-0763-4f47-9e82-c5efee774e03
2025-11-19 17:36:13,504 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 17:36:13,504 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce2ebcf9-98ee-4536-984b-81ce40466fb4
2025-11-19 17:36:13,511 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f26ad4e-720e-4baf-b1b8-e049d23aebc8
2025-11-19 17:36:13,522 - INFO - Verified VN network id 12 for VN ce2ebcf9-98ee-4536-984b-81ce40466fb4
2025-11-19 17:36:13,522 - INFO - Verifications in API Server for VN ctest-vn-12173275 passed
2025-11-19 17:36:13,522 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce2ebcf9-98ee-4536-984b-81ce40466fb4
2025-11-19 17:36:13,528 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f26ad4e-720e-4baf-b1b8-e049d23aebc8
2025-11-19 17:36:13,533 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4f26ad4e-720e-4baf-b1b8-e049d23aebc8
2025-11-19 17:36:13,538 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/01131944-0763-4f47-9e82-c5efee774e03
2025-11-19 17:36:13,546 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-12173275', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34333858', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14857020000940475702', 'uuid-lslong': '10974007639859949492'}, 'enable': 'true', 'created': '2025-11-19T17:36:11', 'last-modified': '2025-11-19T17:36:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866101'}
2025-11-19 17:36:13,551 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 17:36:13,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12173275 passed
2025-11-19 17:36:13,552 - DEBUG - ====Verifying policy data for ctest-vn-12173275 in API_Server ======
2025-11-19 17:36:13,552 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-19 17:36:13,555 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1
2025-11-19 17:36:13,565 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e38e402-bca0-4c2c-a9ab-2c1b9a8e9a80
2025-11-19 17:36:13,633 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ce2ebcf9-98ee-4536-984b-81ce40466fb4
2025-11-19 17:36:13,641 - DEBUG - ==>Verifying data for policy with id: 82fe3e47-6eac-45a2-a0cc-e00b2fce3e92, fqn: ['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-policy-allow-all-68422765']
2025-11-19 17:36:13,641 - INFO - VN ctest-vn-12173275 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 17:36:13,641 - DEBUG - Verifying the vn in opserver
2025-11-19 17:36:13,641 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-12173275 virtual network link through opserver 10.0.0.38
2025-11-19 17:36:13,641 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-19 17:36:13,932 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-19 17:36:13,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-12173275', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-12173275?flat'}
2025-11-19 17:36:13,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-12173275 is found in opserver
2025-11-19 17:36:13,995 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 17:36:13,999 - DEBUG - VRF ids for VN ctest-vn-12173275: {}
2025-11-19 17:36:13,999 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-19 17:36:14,004 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1
2025-11-19 17:36:14,013 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e38e402-bca0-4c2c-a9ab-2c1b9a8e9a80
2025-11-19 17:36:14,093 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/604aa276-e8d2-4cd8-b127-48e3c44ff82e
2025-11-19 17:36:14,103 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/604aa276-e8d2-4cd8-b127-48e3c44ff82e
2025-11-19 17:36:14,111 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/024efafa-3fe4-4c14-92cf-ef0cff092c2f
2025-11-19 17:36:14,116 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/024efafa-3fe4-4c14-92cf-ef0cff092c2f
2025-11-19 17:36:14,121 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3b604338-2231-4d32-95df-c236d80ab22f
2025-11-19 17:36:14,126 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 17:36:14,126 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/604aa276-e8d2-4cd8-b127-48e3c44ff82e
2025-11-19 17:36:14,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/024efafa-3fe4-4c14-92cf-ef0cff092c2f
2025-11-19 17:36:14,144 - INFO - Verified VN network id 13 for VN 604aa276-e8d2-4cd8-b127-48e3c44ff82e
2025-11-19 17:36:14,144 - INFO - Verifications in API Server for VN ctest-vn-63796218 passed
2025-11-19 17:36:14,144 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/604aa276-e8d2-4cd8-b127-48e3c44ff82e
2025-11-19 17:36:14,151 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/024efafa-3fe4-4c14-92cf-ef0cff092c2f
2025-11-19 17:36:14,156 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/024efafa-3fe4-4c14-92cf-ef0cff092c2f
2025-11-19 17:36:14,161 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3b604338-2231-4d32-95df-c236d80ab22f
2025-11-19 17:36:14,170 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-63796218', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34333858', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6938536807513607384', 'uuid-lslong': '12765251811893311534'}, 'enable': 'true', 'created': '2025-11-19T17:36:11', 'last-modified': '2025-11-19T17:36:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.278453'}
2025-11-19 17:36:14,175 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 17:36:14,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63796218 passed
2025-11-19 17:36:14,176 - DEBUG - ====Verifying policy data for ctest-vn-63796218 in API_Server ======
2025-11-19 17:36:14,176 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-19 17:36:14,180 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1
2025-11-19 17:36:14,189 - DEBUG - Requesting: http://10.0.0.38:8082/project/2e38e402-bca0-4c2c-a9ab-2c1b9a8e9a80
2025-11-19 17:36:14,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/604aa276-e8d2-4cd8-b127-48e3c44ff82e
2025-11-19 17:36:14,265 - DEBUG - ==>Verifying data for policy with id: 82fe3e47-6eac-45a2-a0cc-e00b2fce3e92, fqn: ['default-domain', 'ctest-TestBasicPolicy-34333858', 'ctest-policy-allow-all-68422765']
2025-11-19 17:36:14,265 - INFO - VN ctest-vn-63796218 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 17:36:14,265 - DEBUG - Verifying the vn in opserver
2025-11-19 17:36:14,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-63796218 virtual network link through opserver 10.0.0.38
2025-11-19 17:36:14,265 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-19 17:36:14,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-63796218', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-63796218?flat'}
2025-11-19 17:36:14,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34333858:ctest-vn-63796218 is found in opserver
2025-11-19 17:36:14,282 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 17:36:14,286 - DEBUG - VRF ids for VN ctest-vn-63796218: {}
2025-11-19 17:36:14,335 - DEBUG - Services list from nova: [