2025-02-11 14:22:14,146 - INFO - Domain Default found not creating
2025-02-11 14:22:14,303 - INFO - Project ctest-TestBasicPolicy-35086353 not found, creating it
2025-02-11 14:22:14,824 - INFO - Created Project:ctest-TestBasicPolicy-35086353, ID : 74dcff64-3673-46c5-af60-8822a474be61
2025-02-11 14:22:16,463 - INFO - ================================================================================
2025-02-11 14:22:16,463 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-11 14:22:16,463 - 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-02-11 14:22:16,726 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.13': '0'}} with
2025-02-11 14:22:16,727 - INFO - Initial checks done. Running the testcase now
2025-02-11 14:22:16,727 - INFO -
2025-02-11 14:22:17,341 - DEBUG - Response for create_network : {'network': {'id': 'c17f3414-e2bc-486b-8157-7d90d73217d5', 'name': 'ctest-vn-92091040', 'tenant_id': '74dcff64367346c5af608822a474be61', 'project_id': '74dcff64367346c5af608822a474be61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-vn-92091040'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 14:22:17,506 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a9b3687-48c5-4967-b291-8bac2f59245e', 'name': '', 'tenant_id': '74dcff64367346c5af608822a474be61', 'network_id': 'c17f3414-e2bc-486b-8157-7d90d73217d5', 'ip_version': 4, 'cidr': '120.178.30.0/26', 'allocation_pools': [{'start': '120.178.30.2', 'end': '120.178.30.62'}], 'gateway_ip': '120.178.30.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.178.30.2', 'tags': [], 'project_id': '74dcff64367346c5af608822a474be61'}}
2025-02-11 14:22:17,528 - INFO - Created VN ctest-vn-92091040
2025-02-11 14:22:17,583 - DEBUG - VN ctest-vn-92091040 UUID is c17f3414-e2bc-486b-8157-7d90d73217d5
2025-02-11 14:22:17,900 - DEBUG - Response for create_network : {'network': {'id': '6fc6eee8-c480-4ada-a9dc-342ac2973e98', 'name': 'ctest-vn-04650956', 'tenant_id': '74dcff64367346c5af608822a474be61', 'project_id': '74dcff64367346c5af608822a474be61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-vn-04650956'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 14:22:18,090 - DEBUG - Response for create_subnet : {'subnet': {'id': '603e1e94-9154-44fe-8623-8966ce5e2584', 'name': '', 'tenant_id': '74dcff64367346c5af608822a474be61', 'network_id': '6fc6eee8-c480-4ada-a9dc-342ac2973e98', 'ip_version': 4, 'cidr': '165.187.57.192/26', 'allocation_pools': [{'start': '165.187.57.194', 'end': '165.187.57.254'}], 'gateway_ip': '165.187.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.187.57.194', 'tags': [], 'project_id': '74dcff64367346c5af608822a474be61'}}
2025-02-11 14:22:18,110 - INFO - Created VN ctest-vn-04650956
2025-02-11 14:22:18,163 - DEBUG - VN ctest-vn-04650956 UUID is 6fc6eee8-c480-4ada-a9dc-342ac2973e98
2025-02-11 14:22:18,287 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-92091040, 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-35086353:ctest-vn-04650956, 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-02-11 14:22:18,614 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c17f3414-e2bc-486b-8157-7d90d73217d5', 'name': 'ctest-vn-92091040', 'tenant_id': '74dcff64367346c5af608822a474be61', 'project_id': '74dcff64367346c5af608822a474be61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a9b3687-48c5-4967-b291-8bac2f59245e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-vn-92091040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-policy-allow-all-65904261']], 'subnet_ipam': [{'subnet_cidr': '120.178.30.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 14:22:18,863 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fc6eee8-c480-4ada-a9dc-342ac2973e98', 'name': 'ctest-vn-04650956', 'tenant_id': '74dcff64367346c5af608822a474be61', 'project_id': '74dcff64367346c5af608822a474be61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['603e1e94-9154-44fe-8623-8966ce5e2584'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-vn-04650956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-policy-allow-all-65904261']], 'subnet_ipam': [{'subnet_cidr': '165.187.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 14:22:19,040 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-02-11 14:22:19,378 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-02-11 14:22:19,408 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68de0f8e-b9ab-4dfd-bba8-7b1fb86f12f1
2025-02-11 14:22:19,425 - DEBUG - Requesting: http://10.0.0.22:8082/project/74dcff64-3673-46c5-af60-8822a474be61
2025-02-11 14:22:19,503 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c17f3414-e2bc-486b-8157-7d90d73217d5
2025-02-11 14:22:19,518 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c17f3414-e2bc-486b-8157-7d90d73217d5
2025-02-11 14:22:19,529 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d4d0e2a6-1a38-4933-9dac-0bb52ad1223a
2025-02-11 14:22:19,539 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d4d0e2a6-1a38-4933-9dac-0bb52ad1223a
2025-02-11 14:22:19,548 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a12dec3c-eda7-44eb-9c1b-ebe86786cbe0
2025-02-11 14:22:19,556 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 14:22:19,556 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c17f3414-e2bc-486b-8157-7d90d73217d5
2025-02-11 14:22:19,566 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d4d0e2a6-1a38-4933-9dac-0bb52ad1223a
2025-02-11 14:22:19,583 - INFO - Verified VN network id 7 for VN c17f3414-e2bc-486b-8157-7d90d73217d5
2025-02-11 14:22:19,583 - INFO - Verifications in API Server for VN ctest-vn-92091040 passed
2025-02-11 14:22:19,583 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c17f3414-e2bc-486b-8157-7d90d73217d5
2025-02-11 14:22:19,594 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d4d0e2a6-1a38-4933-9dac-0bb52ad1223a
2025-02-11 14:22:19,602 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d4d0e2a6-1a38-4933-9dac-0bb52ad1223a
2025-02-11 14:22:19,610 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a12dec3c-eda7-44eb-9c1b-ebe86786cbe0
2025-02-11 14:22:19,625 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-92091040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35086353', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13942920235670325355', 'uuid-lslong': '9320056014905677781'}, 'enable': 'true', 'created': '2025-02-11T14:22:17', 'last-modified': '2025-02-11T14:22:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039650'}
2025-02-11 14:22:19,632 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 14:22:19,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92091040 passed
2025-02-11 14:22:19,633 - DEBUG - ====Verifying policy data for ctest-vn-92091040 in API_Server ======
2025-02-11 14:22:19,633 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-02-11 14:22:19,640 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68de0f8e-b9ab-4dfd-bba8-7b1fb86f12f1
2025-02-11 14:22:19,655 - DEBUG - Requesting: http://10.0.0.22:8082/project/74dcff64-3673-46c5-af60-8822a474be61
2025-02-11 14:22:19,731 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c17f3414-e2bc-486b-8157-7d90d73217d5
2025-02-11 14:22:19,743 - DEBUG - ==>Verifying data for policy with id: 7aa00288-6827-44ae-a697-0477e4f41284, fqn: ['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-policy-allow-all-65904261']
2025-02-11 14:22:19,743 - INFO - VN ctest-vn-92091040 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 14:22:19,743 - DEBUG - Verifying the vn in opserver
2025-02-11 14:22:19,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-92091040 virtual network link through opserver 10.0.0.22
2025-02-11 14:22:19,743 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-02-11 14:22:20,080 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-02-11 14:22:20,143 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-92091040', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-92091040?flat'}
2025-02-11 14:22:20,143 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-92091040 is found in opserver
2025-02-11 14:22:20,156 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 14:22:20,162 - DEBUG - VRF ids for VN ctest-vn-92091040: {}
2025-02-11 14:22:20,162 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-02-11 14:22:20,169 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68de0f8e-b9ab-4dfd-bba8-7b1fb86f12f1
2025-02-11 14:22:20,182 - DEBUG - Requesting: http://10.0.0.22:8082/project/74dcff64-3673-46c5-af60-8822a474be61
2025-02-11 14:22:20,261 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6fc6eee8-c480-4ada-a9dc-342ac2973e98
2025-02-11 14:22:20,276 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6fc6eee8-c480-4ada-a9dc-342ac2973e98
2025-02-11 14:22:20,288 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fd23ef3-6bb6-4e1f-bb6a-cf8e7cf53548
2025-02-11 14:22:20,296 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fd23ef3-6bb6-4e1f-bb6a-cf8e7cf53548
2025-02-11 14:22:20,305 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e73b0e62-4b27-4e54-8438-c15f5e00a72d
2025-02-11 14:22:20,312 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 14:22:20,312 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6fc6eee8-c480-4ada-a9dc-342ac2973e98
2025-02-11 14:22:20,323 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fd23ef3-6bb6-4e1f-bb6a-cf8e7cf53548
2025-02-11 14:22:20,339 - INFO - Verified VN network id 8 for VN 6fc6eee8-c480-4ada-a9dc-342ac2973e98
2025-02-11 14:22:20,339 - INFO - Verifications in API Server for VN ctest-vn-04650956 passed
2025-02-11 14:22:20,339 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6fc6eee8-c480-4ada-a9dc-342ac2973e98
2025-02-11 14:22:20,350 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fd23ef3-6bb6-4e1f-bb6a-cf8e7cf53548
2025-02-11 14:22:20,358 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3fd23ef3-6bb6-4e1f-bb6a-cf8e7cf53548
2025-02-11 14:22:20,365 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e73b0e62-4b27-4e54-8438-c15f5e00a72d
2025-02-11 14:22:20,379 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-04650956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35086353', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8054387667095276250', 'uuid-lslong': '12239715245544128152'}, 'enable': 'true', 'created': '2025-02-11T14:22:17', 'last-modified': '2025-02-11T14:22:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.542838'}
2025-02-11 14:22:20,386 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 14:22:20,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04650956 passed
2025-02-11 14:22:20,387 - DEBUG - ====Verifying policy data for ctest-vn-04650956 in API_Server ======
2025-02-11 14:22:20,387 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-02-11 14:22:20,394 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68de0f8e-b9ab-4dfd-bba8-7b1fb86f12f1
2025-02-11 14:22:20,412 - DEBUG - Requesting: http://10.0.0.22:8082/project/74dcff64-3673-46c5-af60-8822a474be61
2025-02-11 14:22:20,491 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6fc6eee8-c480-4ada-a9dc-342ac2973e98
2025-02-11 14:22:20,506 - DEBUG - ==>Verifying data for policy with id: 7aa00288-6827-44ae-a697-0477e4f41284, fqn: ['default-domain', 'ctest-TestBasicPolicy-35086353', 'ctest-policy-allow-all-65904261']
2025-02-11 14:22:20,506 - INFO - VN ctest-vn-04650956 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 14:22:20,506 - DEBUG - Verifying the vn in opserver
2025-02-11 14:22:20,506 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-04650956 virtual network link through opserver 10.0.0.22
2025-02-11 14:22:20,506 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-02-11 14:22:20,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-04650956', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-04650956?flat'}
2025-02-11 14:22:20,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35086353:ctest-vn-04650956 is found in opserver
2025-02-11 14:22:20,531 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 14:22:20,537 - DEBUG - VRF ids for VN ctest-vn-04650956: {}
2025-02-11 14:22:20,613 - DEBUG - Services list from nova: [