2025-07-30 20:22:17,303 - INFO - Domain Default found not creating
2025-07-30 20:22:17,717 - INFO - Project ctest-TestBasicPolicy-38944580 not found, creating it
2025-07-30 20:22:18,413 - INFO - Created Project:ctest-TestBasicPolicy-38944580, ID : e62cd8d7-9f41-446b-a55f-ba4afa457e4f
2025-07-30 20:22:20,402 - INFO - ================================================================================
2025-07-30 20:22:20,402 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-30 20:22:20,402 - 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-07-30 20:22:20,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-07-30 20:22:20,722 - INFO - Initial checks done. Running the testcase now
2025-07-30 20:22:20,722 - INFO -
2025-07-30 20:22:21,528 - DEBUG - Response for create_network : {'network': {'id': 'a2639ddb-2435-477c-835f-ef48c247deb9', 'name': 'ctest-vn-49239499', 'tenant_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'project_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-vn-49239499'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:22:21,748 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c2c971e-b602-47df-a83c-f17139368b27', 'name': '', 'tenant_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'network_id': 'a2639ddb-2435-477c-835f-ef48c247deb9', 'ip_version': 4, 'cidr': '58.109.121.0/26', 'allocation_pools': [{'start': '58.109.121.2', 'end': '58.109.121.62'}], 'gateway_ip': '58.109.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.109.121.2', 'tags': [], 'project_id': 'e62cd8d79f41446ba55fba4afa457e4f'}}
2025-07-30 20:22:21,777 - INFO - Created VN ctest-vn-49239499
2025-07-30 20:22:21,835 - DEBUG - VN ctest-vn-49239499 UUID is a2639ddb-2435-477c-835f-ef48c247deb9
2025-07-30 20:22:22,190 - DEBUG - Response for create_network : {'network': {'id': '163d0fff-8f65-4955-91c4-f81b1b32afef', 'name': 'ctest-vn-94066892', 'tenant_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'project_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-vn-94066892'], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:22:22,411 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a348a513-f5d5-429a-ad57-c895570d3a1b', 'name': '', 'tenant_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'network_id': '163d0fff-8f65-4955-91c4-f81b1b32afef', 'ip_version': 4, 'cidr': '88.211.22.64/26', 'allocation_pools': [{'start': '88.211.22.66', 'end': '88.211.22.126'}], 'gateway_ip': '88.211.22.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.211.22.66', 'tags': [], 'project_id': 'e62cd8d79f41446ba55fba4afa457e4f'}}
2025-07-30 20:22:22,440 - INFO - Created VN ctest-vn-94066892
2025-07-30 20:22:22,512 - DEBUG - VN ctest-vn-94066892 UUID is 163d0fff-8f65-4955-91c4-f81b1b32afef
2025-07-30 20:22:22,716 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-49239499, 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-38944580:ctest-vn-94066892, 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-07-30 20:22:23,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2639ddb-2435-477c-835f-ef48c247deb9', 'name': 'ctest-vn-49239499', 'tenant_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'project_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c2c971e-b602-47df-a83c-f17139368b27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-vn-49239499'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-policy-allow-all-39743389']], 'subnet_ipam': [{'subnet_cidr': '58.109.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:22:23,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '163d0fff-8f65-4955-91c4-f81b1b32afef', 'name': 'ctest-vn-94066892', 'tenant_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'project_id': 'e62cd8d79f41446ba55fba4afa457e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a348a513-f5d5-429a-ad57-c895570d3a1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-vn-94066892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-policy-allow-all-39743389']], 'subnet_ipam': [{'subnet_cidr': '88.211.22.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-30 20:22:23,731 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-30 20:22:24,061 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-30 20:22:24,116 - DEBUG - Requesting: http://10.0.0.57:8082/domain/50bf1c4a-6bfe-449d-bdf5-19bb22aa4730
2025-07-30 20:22:24,142 - DEBUG - Requesting: http://10.0.0.57:8082/project/e62cd8d7-9f41-446b-a55f-ba4afa457e4f
2025-07-30 20:22:24,246 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a2639ddb-2435-477c-835f-ef48c247deb9
2025-07-30 20:22:24,263 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a2639ddb-2435-477c-835f-ef48c247deb9
2025-07-30 20:22:24,277 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2d63be53-1583-4955-91fd-128431418c38
2025-07-30 20:22:24,287 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2d63be53-1583-4955-91fd-128431418c38
2025-07-30 20:22:24,298 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/67b52c42-3813-4f57-9944-7fd09526f56d
2025-07-30 20:22:24,309 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 20:22:24,310 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a2639ddb-2435-477c-835f-ef48c247deb9
2025-07-30 20:22:24,327 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2d63be53-1583-4955-91fd-128431418c38
2025-07-30 20:22:24,351 - INFO - Verified VN network id 11 for VN a2639ddb-2435-477c-835f-ef48c247deb9
2025-07-30 20:22:24,351 - INFO - Verifications in API Server for VN ctest-vn-49239499 passed
2025-07-30 20:22:24,352 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a2639ddb-2435-477c-835f-ef48c247deb9
2025-07-30 20:22:24,371 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2d63be53-1583-4955-91fd-128431418c38
2025-07-30 20:22:24,385 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2d63be53-1583-4955-91fd-128431418c38
2025-07-30 20:22:24,401 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/67b52c42-3813-4f57-9944-7fd09526f56d
2025-07-30 20:22:24,433 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-49239499', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38944580', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11701369821369550716', 'uuid-lslong': '9466548037532245689'}, 'enable': 'true', 'created': '2025-07-30T20:22:21', 'last-modified': '2025-07-30T20:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.283314'}
2025-07-30 20:22:24,452 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-30 20:22:24,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49239499 passed
2025-07-30 20:22:24,453 - DEBUG - ====Verifying policy data for ctest-vn-49239499 in API_Server ======
2025-07-30 20:22:24,453 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-30 20:22:24,468 - DEBUG - Requesting: http://10.0.0.57:8082/domain/50bf1c4a-6bfe-449d-bdf5-19bb22aa4730
2025-07-30 20:22:24,505 - DEBUG - Requesting: http://10.0.0.57:8082/project/e62cd8d7-9f41-446b-a55f-ba4afa457e4f
2025-07-30 20:22:24,637 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/a2639ddb-2435-477c-835f-ef48c247deb9
2025-07-30 20:22:24,666 - DEBUG - ==>Verifying data for policy with id: 36c05b8b-1e4b-495c-bd08-ff81106a0f19, fqn: ['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-policy-allow-all-39743389']
2025-07-30 20:22:24,667 - INFO - VN ctest-vn-49239499 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 20:22:24,667 - DEBUG - Verifying the vn in opserver
2025-07-30 20:22:24,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-49239499 virtual network link through opserver 10.0.0.57
2025-07-30 20:22:24,667 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-07-30 20:22:25,037 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-07-30 20:22:25,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-49239499', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-49239499?flat'}
2025-07-30 20:22:25,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-49239499 is found in opserver
2025-07-30 20:22:25,177 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 20:22:25,187 - DEBUG - VRF ids for VN ctest-vn-49239499: {}
2025-07-30 20:22:25,187 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-30 20:22:25,200 - DEBUG - Requesting: http://10.0.0.57:8082/domain/50bf1c4a-6bfe-449d-bdf5-19bb22aa4730
2025-07-30 20:22:25,226 - DEBUG - Requesting: http://10.0.0.57:8082/project/e62cd8d7-9f41-446b-a55f-ba4afa457e4f
2025-07-30 20:22:25,366 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/163d0fff-8f65-4955-91c4-f81b1b32afef
2025-07-30 20:22:25,398 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/163d0fff-8f65-4955-91c4-f81b1b32afef
2025-07-30 20:22:25,423 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1ab76ca3-feab-443c-a379-3bad033da018
2025-07-30 20:22:25,445 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1ab76ca3-feab-443c-a379-3bad033da018
2025-07-30 20:22:25,465 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/625948c8-d2ca-4fa2-b123-53f7f8b08469
2025-07-30 20:22:25,485 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 20:22:25,485 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/163d0fff-8f65-4955-91c4-f81b1b32afef
2025-07-30 20:22:25,517 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1ab76ca3-feab-443c-a379-3bad033da018
2025-07-30 20:22:25,560 - INFO - Verified VN network id 12 for VN 163d0fff-8f65-4955-91c4-f81b1b32afef
2025-07-30 20:22:25,561 - INFO - Verifications in API Server for VN ctest-vn-94066892 passed
2025-07-30 20:22:25,561 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/163d0fff-8f65-4955-91c4-f81b1b32afef
2025-07-30 20:22:25,594 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1ab76ca3-feab-443c-a379-3bad033da018
2025-07-30 20:22:25,616 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1ab76ca3-feab-443c-a379-3bad033da018
2025-07-30 20:22:25,633 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/625948c8-d2ca-4fa2-b123-53f7f8b08469
2025-07-30 20:22:25,667 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-94066892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38944580', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1602454632710621525', 'uuid-lslong': '10503793026238951407'}, 'enable': 'true', 'created': '2025-07-30T20:22:22', 'last-modified': '2025-07-30T20:22:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.162755'}
2025-07-30 20:22:25,687 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-30 20:22:25,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94066892 passed
2025-07-30 20:22:25,688 - DEBUG - ====Verifying policy data for ctest-vn-94066892 in API_Server ======
2025-07-30 20:22:25,688 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-07-30 20:22:25,703 - DEBUG - Requesting: http://10.0.0.57:8082/domain/50bf1c4a-6bfe-449d-bdf5-19bb22aa4730
2025-07-30 20:22:25,737 - DEBUG - Requesting: http://10.0.0.57:8082/project/e62cd8d7-9f41-446b-a55f-ba4afa457e4f
2025-07-30 20:22:25,875 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/163d0fff-8f65-4955-91c4-f81b1b32afef
2025-07-30 20:22:25,907 - DEBUG - ==>Verifying data for policy with id: 36c05b8b-1e4b-495c-bd08-ff81106a0f19, fqn: ['default-domain', 'ctest-TestBasicPolicy-38944580', 'ctest-policy-allow-all-39743389']
2025-07-30 20:22:25,907 - INFO - VN ctest-vn-94066892 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-30 20:22:25,907 - DEBUG - Verifying the vn in opserver
2025-07-30 20:22:25,907 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-94066892 virtual network link through opserver 10.0.0.57
2025-07-30 20:22:25,908 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-07-30 20:22:25,932 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-94066892', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-94066892?flat'}
2025-07-30 20:22:25,932 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38944580:ctest-vn-94066892 is found in opserver
2025-07-30 20:22:25,971 - DEBUG - Do not have enough data to verify VN in agent
2025-07-30 20:22:25,990 - DEBUG - VRF ids for VN ctest-vn-94066892: {}
2025-07-30 20:22:26,103 - DEBUG - Services list from nova: [