2025-05-11 19:02:38,188 - INFO - Domain Default found not creating
2025-05-11 19:02:38,912 - INFO - Project ctest-TestBasicPolicy-22101826 not found, creating it
2025-05-11 19:02:39,440 - INFO - Created Project:ctest-TestBasicPolicy-22101826, ID : cde6daf5-e086-40fe-84a2-93f20814ef18
2025-05-11 19:02:40,782 - INFO - ================================================================================
2025-05-11 19:02:40,782 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-11 19:02:40,782 - 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-05-11 19:02:41,046 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-05-11 19:02:41,046 - INFO - Initial checks done. Running the testcase now
2025-05-11 19:02:41,046 - INFO -
2025-05-11 19:02:41,559 - DEBUG - Response for create_network : {'network': {'id': '898328dc-431d-4b0e-9888-d44c8b4e1b26', 'name': 'ctest-vn-47756427', 'tenant_id': 'cde6daf5e08640fe84a293f20814ef18', 'project_id': 'cde6daf5e08640fe84a293f20814ef18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-vn-47756427'], 'port_security_enabled': True, 'description': ''}}
2025-05-11 19:02:41,770 - DEBUG - Response for create_subnet : {'subnet': {'id': '56bd4e2c-a811-418c-9d80-be349a6f5925', 'name': '', 'tenant_id': 'cde6daf5e08640fe84a293f20814ef18', 'network_id': '898328dc-431d-4b0e-9888-d44c8b4e1b26', 'ip_version': 4, 'cidr': '23.96.38.64/26', 'allocation_pools': [{'start': '23.96.38.66', 'end': '23.96.38.126'}], 'gateway_ip': '23.96.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.96.38.66', 'tags': [], 'project_id': 'cde6daf5e08640fe84a293f20814ef18'}}
2025-05-11 19:02:41,786 - INFO - Created VN ctest-vn-47756427
2025-05-11 19:02:41,836 - DEBUG - VN ctest-vn-47756427 UUID is 898328dc-431d-4b0e-9888-d44c8b4e1b26
2025-05-11 19:02:42,146 - DEBUG - Response for create_network : {'network': {'id': 'f1bae6b5-298d-491b-899b-65c935de1c83', 'name': 'ctest-vn-76060877', 'tenant_id': 'cde6daf5e08640fe84a293f20814ef18', 'project_id': 'cde6daf5e08640fe84a293f20814ef18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-vn-76060877'], 'port_security_enabled': True, 'description': ''}}
2025-05-11 19:02:42,290 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8203515-50e9-40d6-8479-b568ef41c8ae', 'name': '', 'tenant_id': 'cde6daf5e08640fe84a293f20814ef18', 'network_id': 'f1bae6b5-298d-491b-899b-65c935de1c83', 'ip_version': 4, 'cidr': '103.37.155.192/26', 'allocation_pools': [{'start': '103.37.155.194', 'end': '103.37.155.254'}], 'gateway_ip': '103.37.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.37.155.194', 'tags': [], 'project_id': 'cde6daf5e08640fe84a293f20814ef18'}}
2025-05-11 19:02:42,306 - INFO - Created VN ctest-vn-76060877
2025-05-11 19:02:42,356 - DEBUG - VN ctest-vn-76060877 UUID is f1bae6b5-298d-491b-899b-65c935de1c83
2025-05-11 19:02:42,468 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-47756427, 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-22101826:ctest-vn-76060877, 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-05-11 19:02:42,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '898328dc-431d-4b0e-9888-d44c8b4e1b26', 'name': 'ctest-vn-47756427', 'tenant_id': 'cde6daf5e08640fe84a293f20814ef18', 'project_id': 'cde6daf5e08640fe84a293f20814ef18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56bd4e2c-a811-418c-9d80-be349a6f5925'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-vn-47756427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-policy-allow-all-67658306']], 'subnet_ipam': [{'subnet_cidr': '23.96.38.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-11 19:02:43,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1bae6b5-298d-491b-899b-65c935de1c83', 'name': 'ctest-vn-76060877', 'tenant_id': 'cde6daf5e08640fe84a293f20814ef18', 'project_id': 'cde6daf5e08640fe84a293f20814ef18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8203515-50e9-40d6-8479-b568ef41c8ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-vn-76060877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-policy-allow-all-67658306']], 'subnet_ipam': [{'subnet_cidr': '103.37.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-11 19:02:43,164 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-11 19:02:43,474 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-11 19:02:43,509 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2344d33b-34f6-4e98-9e51-68e1842c8428
2025-05-11 19:02:43,523 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde6daf5-e086-40fe-84a2-93f20814ef18
2025-05-11 19:02:43,597 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/898328dc-431d-4b0e-9888-d44c8b4e1b26
2025-05-11 19:02:43,608 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/898328dc-431d-4b0e-9888-d44c8b4e1b26
2025-05-11 19:02:43,617 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38668477-4e02-4a41-a653-5baf51b6c48a
2025-05-11 19:02:43,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38668477-4e02-4a41-a653-5baf51b6c48a
2025-05-11 19:02:43,630 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1296f00c-2a58-45b8-a3da-c0841ab0d9fe
2025-05-11 19:02:43,636 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-11 19:02:43,636 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/898328dc-431d-4b0e-9888-d44c8b4e1b26
2025-05-11 19:02:43,645 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38668477-4e02-4a41-a653-5baf51b6c48a
2025-05-11 19:02:43,659 - INFO - Verified VN network id 8 for VN 898328dc-431d-4b0e-9888-d44c8b4e1b26
2025-05-11 19:02:43,659 - INFO - Verifications in API Server for VN ctest-vn-47756427 passed
2025-05-11 19:02:43,659 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/898328dc-431d-4b0e-9888-d44c8b4e1b26
2025-05-11 19:02:43,666 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38668477-4e02-4a41-a653-5baf51b6c48a
2025-05-11 19:02:43,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38668477-4e02-4a41-a653-5baf51b6c48a
2025-05-11 19:02:43,679 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1296f00c-2a58-45b8-a3da-c0841ab0d9fe
2025-05-11 19:02:43,688 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-47756427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22101826', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9908808531629132558', 'uuid-lslong': '10991268315817450278'}, 'enable': 'true', 'created': '2025-05-11T19:02:41', 'last-modified': '2025-05-11T19:02:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936434'}
2025-05-11 19:02:43,694 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-11 19:02:43,694 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47756427 passed
2025-05-11 19:02:43,695 - DEBUG - ====Verifying policy data for ctest-vn-47756427 in API_Server ======
2025-05-11 19:02:43,695 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-11 19:02:43,703 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2344d33b-34f6-4e98-9e51-68e1842c8428
2025-05-11 19:02:43,712 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde6daf5-e086-40fe-84a2-93f20814ef18
2025-05-11 19:02:43,778 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/898328dc-431d-4b0e-9888-d44c8b4e1b26
2025-05-11 19:02:43,790 - DEBUG - ==>Verifying data for policy with id: f161f2c7-1993-439b-9e0e-f5eacf99293f, fqn: ['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-policy-allow-all-67658306']
2025-05-11 19:02:43,790 - INFO - VN ctest-vn-47756427 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-11 19:02:43,790 - DEBUG - Verifying the vn in opserver
2025-05-11 19:02:43,790 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-47756427 virtual network link through opserver 10.0.0.38
2025-05-11 19:02:43,791 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-11 19:02:44,083 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-11 19:02:44,129 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-47756427', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-47756427?flat'}
2025-05-11 19:02:44,129 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-47756427 is found in opserver
2025-05-11 19:02:44,138 - DEBUG - Do not have enough data to verify VN in agent
2025-05-11 19:02:44,142 - DEBUG - VRF ids for VN ctest-vn-47756427: {}
2025-05-11 19:02:44,142 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-11 19:02:44,147 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2344d33b-34f6-4e98-9e51-68e1842c8428
2025-05-11 19:02:44,159 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde6daf5-e086-40fe-84a2-93f20814ef18
2025-05-11 19:02:44,233 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1bae6b5-298d-491b-899b-65c935de1c83
2025-05-11 19:02:44,244 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1bae6b5-298d-491b-899b-65c935de1c83
2025-05-11 19:02:44,251 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43a4651f-dade-403b-b8aa-2494b214d4f1
2025-05-11 19:02:44,257 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43a4651f-dade-403b-b8aa-2494b214d4f1
2025-05-11 19:02:44,262 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c5f2bd60-7e2e-4868-8c32-a90bf7b98fc5
2025-05-11 19:02:44,267 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-11 19:02:44,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1bae6b5-298d-491b-899b-65c935de1c83
2025-05-11 19:02:44,273 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43a4651f-dade-403b-b8aa-2494b214d4f1
2025-05-11 19:02:44,284 - INFO - Verified VN network id 9 for VN f1bae6b5-298d-491b-899b-65c935de1c83
2025-05-11 19:02:44,284 - INFO - Verifications in API Server for VN ctest-vn-76060877 passed
2025-05-11 19:02:44,284 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1bae6b5-298d-491b-899b-65c935de1c83
2025-05-11 19:02:44,291 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43a4651f-dade-403b-b8aa-2494b214d4f1
2025-05-11 19:02:44,296 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/43a4651f-dade-403b-b8aa-2494b214d4f1
2025-05-11 19:02:44,301 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c5f2bd60-7e2e-4868-8c32-a90bf7b98fc5
2025-05-11 19:02:44,310 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-76060877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22101826', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17418488174569408795', 'uuid-lslong': '9915630919452859523'}, 'enable': 'true', 'created': '2025-05-11T19:02:42', 'last-modified': '2025-05-11T19:02:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.319890'}
2025-05-11 19:02:44,315 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-11 19:02:44,315 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76060877 passed
2025-05-11 19:02:44,315 - DEBUG - ====Verifying policy data for ctest-vn-76060877 in API_Server ======
2025-05-11 19:02:44,315 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-11 19:02:44,318 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2344d33b-34f6-4e98-9e51-68e1842c8428
2025-05-11 19:02:44,327 - DEBUG - Requesting: http://10.0.0.38:8082/project/cde6daf5-e086-40fe-84a2-93f20814ef18
2025-05-11 19:02:44,402 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f1bae6b5-298d-491b-899b-65c935de1c83
2025-05-11 19:02:44,410 - DEBUG - ==>Verifying data for policy with id: f161f2c7-1993-439b-9e0e-f5eacf99293f, fqn: ['default-domain', 'ctest-TestBasicPolicy-22101826', 'ctest-policy-allow-all-67658306']
2025-05-11 19:02:44,410 - INFO - VN ctest-vn-76060877 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-11 19:02:44,410 - DEBUG - Verifying the vn in opserver
2025-05-11 19:02:44,410 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-76060877 virtual network link through opserver 10.0.0.38
2025-05-11 19:02:44,410 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-11 19:02:44,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-76060877', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-76060877?flat'}
2025-05-11 19:02:44,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22101826:ctest-vn-76060877 is found in opserver
2025-05-11 19:02:44,432 - DEBUG - Do not have enough data to verify VN in agent
2025-05-11 19:02:44,438 - DEBUG - VRF ids for VN ctest-vn-76060877: {}
2025-05-11 19:02:44,495 - DEBUG - Services list from nova: [