2025-08-11 11:20:18,986 - INFO - Domain Default found not creating
2025-08-11 11:20:19,121 - INFO - Project ctest-TestBasicPolicy-71395549 not found, creating it
2025-08-11 11:20:19,542 - INFO - Created Project:ctest-TestBasicPolicy-71395549, ID : 85b4a418-08ba-4af2-9e1f-df6b8c3ff496
2025-08-11 11:20:20,926 - INFO - ================================================================================
2025-08-11 11:20:20,926 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 11:20:20,926 - 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-08-11 11:20:21,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with
2025-08-11 11:20:21,190 - INFO - Initial checks done. Running the testcase now
2025-08-11 11:20:21,190 - INFO -
2025-08-11 11:20:21,729 - DEBUG - Response for create_network : {'network': {'id': 'afb377d5-07d5-42c9-9b42-66affcdd0a1c', 'name': 'ctest-vn-54579196', 'tenant_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'project_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-vn-54579196'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 11:20:21,880 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f434950-29bb-489e-8320-6ed65ca0d789', 'name': '', 'tenant_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'network_id': 'afb377d5-07d5-42c9-9b42-66affcdd0a1c', 'ip_version': 4, 'cidr': '128.40.118.0/26', 'allocation_pools': [{'start': '128.40.118.2', 'end': '128.40.118.62'}], 'gateway_ip': '128.40.118.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.40.118.2', 'tags': [], 'project_id': '85b4a41808ba4af29e1fdf6b8c3ff496'}}
2025-08-11 11:20:21,897 - INFO - Created VN ctest-vn-54579196
2025-08-11 11:20:21,949 - DEBUG - VN ctest-vn-54579196 UUID is afb377d5-07d5-42c9-9b42-66affcdd0a1c
2025-08-11 11:20:22,262 - DEBUG - Response for create_network : {'network': {'id': '332c8d0e-2875-485e-9506-68c429360838', 'name': 'ctest-vn-75383750', 'tenant_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'project_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-vn-75383750'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 11:20:22,449 - DEBUG - Response for create_subnet : {'subnet': {'id': '526afa9f-db65-4abc-b20c-4ec352570f9e', 'name': '', 'tenant_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'network_id': '332c8d0e-2875-485e-9506-68c429360838', 'ip_version': 4, 'cidr': '84.128.225.128/26', 'allocation_pools': [{'start': '84.128.225.130', 'end': '84.128.225.190'}], 'gateway_ip': '84.128.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.128.225.130', 'tags': [], 'project_id': '85b4a41808ba4af29e1fdf6b8c3ff496'}}
2025-08-11 11:20:22,465 - INFO - Created VN ctest-vn-75383750
2025-08-11 11:20:22,517 - DEBUG - VN ctest-vn-75383750 UUID is 332c8d0e-2875-485e-9506-68c429360838
2025-08-11 11:20:22,672 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-54579196, 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-71395549:ctest-vn-75383750, 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-08-11 11:20:22,956 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afb377d5-07d5-42c9-9b42-66affcdd0a1c', 'name': 'ctest-vn-54579196', 'tenant_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'project_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f434950-29bb-489e-8320-6ed65ca0d789'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-vn-54579196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-policy-allow-all-51654509']], 'subnet_ipam': [{'subnet_cidr': '128.40.118.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 11:20:23,180 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '332c8d0e-2875-485e-9506-68c429360838', 'name': 'ctest-vn-75383750', 'tenant_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'project_id': '85b4a41808ba4af29e1fdf6b8c3ff496', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['526afa9f-db65-4abc-b20c-4ec352570f9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-vn-75383750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-policy-allow-all-51654509']], 'subnet_ipam': [{'subnet_cidr': '84.128.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 11:20:23,349 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-11 11:20:23,637 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-11 11:20:23,662 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f
2025-08-11 11:20:23,675 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b4a418-08ba-4af2-9e1f-df6b8c3ff496
2025-08-11 11:20:23,748 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/afb377d5-07d5-42c9-9b42-66affcdd0a1c
2025-08-11 11:20:23,758 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/afb377d5-07d5-42c9-9b42-66affcdd0a1c
2025-08-11 11:20:23,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b713de9-12e7-4487-8297-a1c0829e0866
2025-08-11 11:20:23,775 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b713de9-12e7-4487-8297-a1c0829e0866
2025-08-11 11:20:23,781 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b9d116b8-535e-46d0-9d7c-d0eb3b04dc11
2025-08-11 11:20:23,788 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 11:20:23,788 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/afb377d5-07d5-42c9-9b42-66affcdd0a1c
2025-08-11 11:20:23,797 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b713de9-12e7-4487-8297-a1c0829e0866
2025-08-11 11:20:23,811 - INFO - Verified VN network id 11 for VN afb377d5-07d5-42c9-9b42-66affcdd0a1c
2025-08-11 11:20:23,811 - INFO - Verifications in API Server for VN ctest-vn-54579196 passed
2025-08-11 11:20:23,811 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/afb377d5-07d5-42c9-9b42-66affcdd0a1c
2025-08-11 11:20:23,821 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b713de9-12e7-4487-8297-a1c0829e0866
2025-08-11 11:20:23,828 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0b713de9-12e7-4487-8297-a1c0829e0866
2025-08-11 11:20:23,835 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b9d116b8-535e-46d0-9d7c-d0eb3b04dc11
2025-08-11 11:20:23,847 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-54579196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71395549', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12660594734311752393', 'uuid-lslong': '11187617330389387804'}, 'enable': 'true', 'created': '2025-08-11T11:20:21', 'last-modified': '2025-08-11T11:20:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910246'}
2025-08-11 11:20:23,853 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 11:20:23,853 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54579196 passed
2025-08-11 11:20:23,853 - DEBUG - ====Verifying policy data for ctest-vn-54579196 in API_Server ======
2025-08-11 11:20:23,853 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-11 11:20:23,859 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f
2025-08-11 11:20:23,869 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b4a418-08ba-4af2-9e1f-df6b8c3ff496
2025-08-11 11:20:23,942 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/afb377d5-07d5-42c9-9b42-66affcdd0a1c
2025-08-11 11:20:23,952 - DEBUG - ==>Verifying data for policy with id: f9694a2b-cfe9-4cab-8590-6bba576e4170, fqn: ['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-policy-allow-all-51654509']
2025-08-11 11:20:23,952 - INFO - VN ctest-vn-54579196 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 11:20:23,952 - DEBUG - Verifying the vn in opserver
2025-08-11 11:20:23,952 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-54579196 virtual network link through opserver 10.0.0.33
2025-08-11 11:20:23,952 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-11 11:20:24,239 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-11 11:20:24,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-54579196', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-54579196?flat'}
2025-08-11 11:20:24,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-54579196 is found in opserver
2025-08-11 11:20:24,300 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 11:20:24,305 - DEBUG - VRF ids for VN ctest-vn-54579196: {}
2025-08-11 11:20:24,305 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-11 11:20:24,310 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f
2025-08-11 11:20:24,322 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b4a418-08ba-4af2-9e1f-df6b8c3ff496
2025-08-11 11:20:24,395 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/332c8d0e-2875-485e-9506-68c429360838
2025-08-11 11:20:24,407 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/332c8d0e-2875-485e-9506-68c429360838
2025-08-11 11:20:24,416 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ddeb764-c5be-4af3-b1ca-78ff8c026acb
2025-08-11 11:20:24,424 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ddeb764-c5be-4af3-b1ca-78ff8c026acb
2025-08-11 11:20:24,430 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/df040dc8-cdd4-4775-9967-d648d1ab49f6
2025-08-11 11:20:24,437 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 11:20:24,437 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/332c8d0e-2875-485e-9506-68c429360838
2025-08-11 11:20:24,447 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ddeb764-c5be-4af3-b1ca-78ff8c026acb
2025-08-11 11:20:24,460 - INFO - Verified VN network id 12 for VN 332c8d0e-2875-485e-9506-68c429360838
2025-08-11 11:20:24,461 - INFO - Verifications in API Server for VN ctest-vn-75383750 passed
2025-08-11 11:20:24,461 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/332c8d0e-2875-485e-9506-68c429360838
2025-08-11 11:20:24,471 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ddeb764-c5be-4af3-b1ca-78ff8c026acb
2025-08-11 11:20:24,478 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ddeb764-c5be-4af3-b1ca-78ff8c026acb
2025-08-11 11:20:24,486 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/df040dc8-cdd4-4775-9967-d648d1ab49f6
2025-08-11 11:20:24,501 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-75383750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71395549', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3687477286857427038', 'uuid-lslong': '10738385553225812024'}, 'enable': 'true', 'created': '2025-08-11T11:20:22', 'last-modified': '2025-08-11T11:20:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343709'}
2025-08-11 11:20:24,507 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 11:20:24,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75383750 passed
2025-08-11 11:20:24,507 - DEBUG - ====Verifying policy data for ctest-vn-75383750 in API_Server ======
2025-08-11 11:20:24,507 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-11 11:20:24,513 - DEBUG - Requesting: http://10.0.0.33:8082/domain/78ebd613-adbc-492c-af69-67765f8a538f
2025-08-11 11:20:24,526 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b4a418-08ba-4af2-9e1f-df6b8c3ff496
2025-08-11 11:20:24,598 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/332c8d0e-2875-485e-9506-68c429360838
2025-08-11 11:20:24,610 - DEBUG - ==>Verifying data for policy with id: f9694a2b-cfe9-4cab-8590-6bba576e4170, fqn: ['default-domain', 'ctest-TestBasicPolicy-71395549', 'ctest-policy-allow-all-51654509']
2025-08-11 11:20:24,610 - INFO - VN ctest-vn-75383750 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 11:20:24,610 - DEBUG - Verifying the vn in opserver
2025-08-11 11:20:24,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-75383750 virtual network link through opserver 10.0.0.33
2025-08-11 11:20:24,611 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-11 11:20:24,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-75383750', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-75383750?flat'}
2025-08-11 11:20:24,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71395549:ctest-vn-75383750 is found in opserver
2025-08-11 11:20:24,631 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 11:20:24,636 - DEBUG - VRF ids for VN ctest-vn-75383750: {}
2025-08-11 11:20:24,691 - DEBUG - Services list from nova: [