2025-04-22 23:13:27,108 - INFO - Domain Default found not creating
2025-04-22 23:13:27,239 - INFO - Project ctest-TestBasicPolicy-43604458 not found, creating it
2025-04-22 23:13:27,673 - INFO - Created Project:ctest-TestBasicPolicy-43604458, ID : 697c6eb7-43ab-4234-b64a-f00f625d0446
2025-04-22 23:13:29,168 - INFO - ================================================================================
2025-04-22 23:13:29,168 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 23:13:29,168 - 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-04-22 23:13:29,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-04-22 23:13:29,430 - INFO - Initial checks done. Running the testcase now
2025-04-22 23:13:29,430 - INFO -
2025-04-22 23:13:30,005 - DEBUG - Response for create_network : {'network': {'id': 'f1b69944-4b39-43a6-a558-3a60a046d43b', 'name': 'ctest-vn-82494832', 'tenant_id': '697c6eb743ab4234b64af00f625d0446', 'project_id': '697c6eb743ab4234b64af00f625d0446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-vn-82494832'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 23:13:30,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '18843226-9d42-41f1-92d5-b30d902ad9e6', 'name': '', 'tenant_id': '697c6eb743ab4234b64af00f625d0446', 'network_id': 'f1b69944-4b39-43a6-a558-3a60a046d43b', 'ip_version': 4, 'cidr': '4.9.82.128/26', 'allocation_pools': [{'start': '4.9.82.130', 'end': '4.9.82.190'}], 'gateway_ip': '4.9.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.9.82.130', 'tags': [], 'project_id': '697c6eb743ab4234b64af00f625d0446'}}
2025-04-22 23:13:30,172 - INFO - Created VN ctest-vn-82494832
2025-04-22 23:13:30,224 - DEBUG - VN ctest-vn-82494832 UUID is f1b69944-4b39-43a6-a558-3a60a046d43b
2025-04-22 23:13:30,546 - DEBUG - Response for create_network : {'network': {'id': '6d70b42a-06b2-4af4-aeb7-5e06475a1c58', 'name': 'ctest-vn-39748342', 'tenant_id': '697c6eb743ab4234b64af00f625d0446', 'project_id': '697c6eb743ab4234b64af00f625d0446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-vn-39748342'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 23:13:30,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8440f45-929a-4563-bf51-0a74d48dfa9f', 'name': '', 'tenant_id': '697c6eb743ab4234b64af00f625d0446', 'network_id': '6d70b42a-06b2-4af4-aeb7-5e06475a1c58', 'ip_version': 4, 'cidr': '154.101.2.192/26', 'allocation_pools': [{'start': '154.101.2.194', 'end': '154.101.2.254'}], 'gateway_ip': '154.101.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.101.2.194', 'tags': [], 'project_id': '697c6eb743ab4234b64af00f625d0446'}}
2025-04-22 23:13:30,761 - INFO - Created VN ctest-vn-39748342
2025-04-22 23:13:30,816 - DEBUG - VN ctest-vn-39748342 UUID is 6d70b42a-06b2-4af4-aeb7-5e06475a1c58
2025-04-22 23:13:30,964 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-82494832, 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-43604458:ctest-vn-39748342, 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-04-22 23:13:31,254 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1b69944-4b39-43a6-a558-3a60a046d43b', 'name': 'ctest-vn-82494832', 'tenant_id': '697c6eb743ab4234b64af00f625d0446', 'project_id': '697c6eb743ab4234b64af00f625d0446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18843226-9d42-41f1-92d5-b30d902ad9e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-vn-82494832'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-policy-allow-all-05706843']], 'subnet_ipam': [{'subnet_cidr': '4.9.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 23:13:31,504 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d70b42a-06b2-4af4-aeb7-5e06475a1c58', 'name': 'ctest-vn-39748342', 'tenant_id': '697c6eb743ab4234b64af00f625d0446', 'project_id': '697c6eb743ab4234b64af00f625d0446', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8440f45-929a-4563-bf51-0a74d48dfa9f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-vn-39748342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-policy-allow-all-05706843']], 'subnet_ipam': [{'subnet_cidr': '154.101.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 23:13:31,668 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-22 23:13:31,997 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-22 23:13:32,023 - DEBUG - Requesting: http://10.0.0.48:8082/domain/df7abd37-3a96-44a7-b668-5802dd524793
2025-04-22 23:13:32,036 - DEBUG - Requesting: http://10.0.0.48:8082/project/697c6eb7-43ab-4234-b64a-f00f625d0446
2025-04-22 23:13:32,119 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f1b69944-4b39-43a6-a558-3a60a046d43b
2025-04-22 23:13:32,130 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f1b69944-4b39-43a6-a558-3a60a046d43b
2025-04-22 23:13:32,140 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/787ae3df-94ac-4dde-b812-8356203189d9
2025-04-22 23:13:32,147 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/787ae3df-94ac-4dde-b812-8356203189d9
2025-04-22 23:13:32,153 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7126851d-fac3-4461-8db3-e46a173dc8ba
2025-04-22 23:13:32,160 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 23:13:32,160 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f1b69944-4b39-43a6-a558-3a60a046d43b
2025-04-22 23:13:32,170 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/787ae3df-94ac-4dde-b812-8356203189d9
2025-04-22 23:13:32,183 - INFO - Verified VN network id 8 for VN f1b69944-4b39-43a6-a558-3a60a046d43b
2025-04-22 23:13:32,183 - INFO - Verifications in API Server for VN ctest-vn-82494832 passed
2025-04-22 23:13:32,183 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f1b69944-4b39-43a6-a558-3a60a046d43b
2025-04-22 23:13:32,192 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/787ae3df-94ac-4dde-b812-8356203189d9
2025-04-22 23:13:32,199 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/787ae3df-94ac-4dde-b812-8356203189d9
2025-04-22 23:13:32,205 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7126851d-fac3-4461-8db3-e46a173dc8ba
2025-04-22 23:13:32,218 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-82494832', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43604458', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17417277127500841894', 'uuid-lslong': '11914337000888915003'}, 'enable': 'true', 'created': '2025-04-22T23:13:29', 'last-modified': '2025-04-22T23:13:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978312'}
2025-04-22 23:13:32,224 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 23:13:32,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82494832 passed
2025-04-22 23:13:32,225 - DEBUG - ====Verifying policy data for ctest-vn-82494832 in API_Server ======
2025-04-22 23:13:32,225 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-22 23:13:32,230 - DEBUG - Requesting: http://10.0.0.48:8082/domain/df7abd37-3a96-44a7-b668-5802dd524793
2025-04-22 23:13:32,241 - DEBUG - Requesting: http://10.0.0.48:8082/project/697c6eb7-43ab-4234-b64a-f00f625d0446
2025-04-22 23:13:32,316 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f1b69944-4b39-43a6-a558-3a60a046d43b
2025-04-22 23:13:32,326 - DEBUG - ==>Verifying data for policy with id: 97c4fe29-1deb-4889-a279-a5d92cc17d9a, fqn: ['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-policy-allow-all-05706843']
2025-04-22 23:13:32,326 - INFO - VN ctest-vn-82494832 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 23:13:32,326 - DEBUG - Verifying the vn in opserver
2025-04-22 23:13:32,326 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-82494832 virtual network link through opserver 10.0.0.48
2025-04-22 23:13:32,326 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-22 23:13:32,654 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-22 23:13:32,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-82494832', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-82494832?flat'}
2025-04-22 23:13:32,713 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-82494832 is found in opserver
2025-04-22 23:13:32,724 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 23:13:32,729 - DEBUG - VRF ids for VN ctest-vn-82494832: {}
2025-04-22 23:13:32,729 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-22 23:13:32,735 - DEBUG - Requesting: http://10.0.0.48:8082/domain/df7abd37-3a96-44a7-b668-5802dd524793
2025-04-22 23:13:32,747 - DEBUG - Requesting: http://10.0.0.48:8082/project/697c6eb7-43ab-4234-b64a-f00f625d0446
2025-04-22 23:13:32,838 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6d70b42a-06b2-4af4-aeb7-5e06475a1c58
2025-04-22 23:13:32,854 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6d70b42a-06b2-4af4-aeb7-5e06475a1c58
2025-04-22 23:13:32,866 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a066a444-6a18-499b-8f70-27c4be8878a7
2025-04-22 23:13:32,874 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a066a444-6a18-499b-8f70-27c4be8878a7
2025-04-22 23:13:32,882 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/45f324e6-01c4-4efe-9e40-27a3cc052c1d
2025-04-22 23:13:32,888 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 23:13:32,889 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6d70b42a-06b2-4af4-aeb7-5e06475a1c58
2025-04-22 23:13:32,898 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a066a444-6a18-499b-8f70-27c4be8878a7
2025-04-22 23:13:32,911 - INFO - Verified VN network id 9 for VN 6d70b42a-06b2-4af4-aeb7-5e06475a1c58
2025-04-22 23:13:32,911 - INFO - Verifications in API Server for VN ctest-vn-39748342 passed
2025-04-22 23:13:32,911 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6d70b42a-06b2-4af4-aeb7-5e06475a1c58
2025-04-22 23:13:32,921 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a066a444-6a18-499b-8f70-27c4be8878a7
2025-04-22 23:13:32,928 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a066a444-6a18-499b-8f70-27c4be8878a7
2025-04-22 23:13:32,934 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/45f324e6-01c4-4efe-9e40-27a3cc052c1d
2025-04-22 23:13:32,946 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-39748342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43604458', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7886001040119712500', 'uuid-lslong': '12589634664397413464'}, 'enable': 'true', 'created': '2025-04-22T23:13:30', 'last-modified': '2025-04-22T23:13:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.469814'}
2025-04-22 23:13:32,952 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 23:13:32,952 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39748342 passed
2025-04-22 23:13:32,953 - DEBUG - ====Verifying policy data for ctest-vn-39748342 in API_Server ======
2025-04-22 23:13:32,953 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-04-22 23:13:32,957 - DEBUG - Requesting: http://10.0.0.48:8082/domain/df7abd37-3a96-44a7-b668-5802dd524793
2025-04-22 23:13:32,968 - DEBUG - Requesting: http://10.0.0.48:8082/project/697c6eb7-43ab-4234-b64a-f00f625d0446
2025-04-22 23:13:33,042 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6d70b42a-06b2-4af4-aeb7-5e06475a1c58
2025-04-22 23:13:33,052 - DEBUG - ==>Verifying data for policy with id: 97c4fe29-1deb-4889-a279-a5d92cc17d9a, fqn: ['default-domain', 'ctest-TestBasicPolicy-43604458', 'ctest-policy-allow-all-05706843']
2025-04-22 23:13:33,052 - INFO - VN ctest-vn-39748342 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 23:13:33,052 - DEBUG - Verifying the vn in opserver
2025-04-22 23:13:33,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-39748342 virtual network link through opserver 10.0.0.48
2025-04-22 23:13:33,052 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-04-22 23:13:33,062 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-39748342', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-39748342?flat'}
2025-04-22 23:13:33,062 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43604458:ctest-vn-39748342 is found in opserver
2025-04-22 23:13:33,072 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 23:13:33,078 - DEBUG - VRF ids for VN ctest-vn-39748342: {}
2025-04-22 23:13:33,128 - DEBUG - Services list from nova: [