2025-05-05 01:57:37,627 - INFO - Reading existing Domain with UUID 61d5f14e-0b5a-4169-8eb2-9811a5380ab2
2025-05-05 01:57:37,641 - INFO - Using existing domain ['admin_domain'](61d5f14e-0b5a-4169-8eb2-9811a5380ab2)
2025-05-05 01:57:37,845 - INFO - Project ctest-TestBasicPolicy-68261625 not found, creating it
2025-05-05 01:57:38,363 - INFO - Created Project:ctest-TestBasicPolicy-68261625, ID : a55e0b39-f58b-42a1-b944-4bda624c90ed
2025-05-05 01:57:40,254 - INFO - ================================================================================
2025-05-05 01:57:40,254 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-05 01:57:40,255 - 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-05 01:57:40,659 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with
2025-05-05 01:57:40,659 - INFO - Initial checks done. Running the testcase now
2025-05-05 01:57:40,659 - INFO -
2025-05-05 01:57:41,482 - DEBUG - Response for create_network : {'network': {'id': '59c1a811-1859-4c2c-9541-03e0a85a9273', 'name': 'ctest-vn-53645924', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-53645924'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-05-05 01:57:41,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '27954837-2868-4242-a953-3de1337dd43e', 'name': '', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'network_id': '59c1a811-1859-4c2c-9541-03e0a85a9273', 'ip_version': 4, 'cidr': '162.147.36.0/26', 'allocation_pools': [{'start': '162.147.36.2', 'end': '162.147.36.62'}], 'gateway_ip': '162.147.36.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-05-05T01:57:41.643822', 'updated_at': '2025-05-05T01:57:41.643822', 'dns_server_address': '162.147.36.2', 'tags': [], 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed'}}
2025-05-05 01:57:41,815 - INFO - Created VN ctest-vn-53645924
2025-05-05 01:57:41,869 - DEBUG - VN ctest-vn-53645924 UUID is 59c1a811-1859-4c2c-9541-03e0a85a9273
2025-05-05 01:57:42,375 - DEBUG - Response for create_network : {'network': {'id': '7e9430cd-e72f-40cf-a6da-90969f41b53a', 'name': 'ctest-vn-86005345', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-86005345'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-05-05 01:57:42,610 - DEBUG - Response for create_subnet : {'subnet': {'id': '989f49f1-7637-4fe4-8a78-5db11f480eca', 'name': '', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'network_id': '7e9430cd-e72f-40cf-a6da-90969f41b53a', 'ip_version': 4, 'cidr': '135.26.77.192/26', 'allocation_pools': [{'start': '135.26.77.194', 'end': '135.26.77.254'}], 'gateway_ip': '135.26.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-05-05T01:57:42.500543', 'updated_at': '2025-05-05T01:57:42.500543', 'dns_server_address': '135.26.77.194', 'tags': [], 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed'}}
2025-05-05 01:57:42,676 - INFO - Created VN ctest-vn-86005345
2025-05-05 01:57:42,733 - DEBUG - VN ctest-vn-86005345 UUID is 7e9430cd-e72f-40cf-a6da-90969f41b53a
2025-05-05 01:57:42,955 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345, 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-05 01:57:43,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59c1a811-1859-4c2c-9541-03e0a85a9273', 'name': 'ctest-vn-53645924', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27954837-2868-4242-a953-3de1337dd43e'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-53645924'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854']], 'subnet_ipam': [{'subnet_cidr': '162.147.36.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-05-05T01:57:41.393724', 'updated_at': '2025-05-05T01:57:41.657897'}}
2025-05-05 01:57:43,737 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e9430cd-e72f-40cf-a6da-90969f41b53a', 'name': 'ctest-vn-86005345', 'tenant_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'project_id': 'a55e0b39f58b42a1b9444bda624c90ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['989f49f1-7637-4fe4-8a78-5db11f480eca'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-vn-86005345'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854']], 'subnet_ipam': [{'subnet_cidr': '135.26.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-05-05T01:57:42.297442', 'updated_at': '2025-05-05T01:57:42.514935'}}
2025-05-05 01:57:43,957 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-05-05 01:57:44,340 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-05-05 01:57:44,422 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2
2025-05-05 01:57:44,487 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed
2025-05-05 01:57:44,571 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273
2025-05-05 01:57:44,632 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273
2025-05-05 01:57:44,688 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3
2025-05-05 01:57:44,743 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3
2025-05-05 01:57:44,799 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/3a800f7e-94b6-43f1-bbe9-629c6a020227
2025-05-05 01:57:44,855 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 01:57:44,855 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273
2025-05-05 01:57:44,912 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3
2025-05-05 01:57:44,976 - INFO - Verified VN network id 7 for VN 59c1a811-1859-4c2c-9541-03e0a85a9273
2025-05-05 01:57:44,976 - INFO - Verifications in API Server for VN ctest-vn-53645924 passed
2025-05-05 01:57:44,976 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273
2025-05-05 01:57:45,032 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3
2025-05-05 01:57:45,087 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/f714436e-d1b4-4d45-94f0-34f4d1b199c3
2025-05-05 01:57:45,143 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/3a800f7e-94b6-43f1-bbe9-629c6a020227
2025-05-05 01:57:45,250 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68261625', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6467635331257158700', 'uuid-lslong': '10754881648569520755'}, 'enable': 'true', 'created': '2025-05-05T01:57:41', 'last-modified': '2025-05-05T01:57:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.904426'}
2025-05-05 01:57:45,307 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 01:57:45,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53645924 passed
2025-05-05 01:57:45,308 - DEBUG - ====Verifying policy data for ctest-vn-53645924 in API_Server ======
2025-05-05 01:57:45,308 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-05-05 01:57:45,362 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2
2025-05-05 01:57:45,423 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed
2025-05-05 01:57:45,512 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/59c1a811-1859-4c2c-9541-03e0a85a9273
2025-05-05 01:57:45,570 - DEBUG - ==>Verifying data for policy with id: f9531831-ee82-4cab-b583-137766271376, fqn: ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854']
2025-05-05 01:57:45,570 - INFO - VN ctest-vn-53645924 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 01:57:45,570 - DEBUG - Verifying the vn in opserver
2025-05-05 01:57:45,570 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924 virtual network link through opserver 10.0.0.129
2025-05-05 01:57:45,571 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-05-05 01:57:45,963 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-05-05 01:57:46,078 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924?flat'}
2025-05-05 01:57:46,078 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-53645924 is found in opserver
2025-05-05 01:57:46,178 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 01:57:46,226 - DEBUG - VRF ids for VN ctest-vn-53645924: {}
2025-05-05 01:57:46,226 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-05-05 01:57:46,278 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2
2025-05-05 01:57:46,335 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed
2025-05-05 01:57:46,415 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a
2025-05-05 01:57:46,480 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a
2025-05-05 01:57:46,536 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d
2025-05-05 01:57:46,591 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d
2025-05-05 01:57:46,647 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4cb3c5fc-05bd-40fb-8c87-a33a99e6f7b8
2025-05-05 01:57:46,698 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 01:57:46,698 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a
2025-05-05 01:57:46,756 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d
2025-05-05 01:57:46,820 - INFO - Verified VN network id 8 for VN 7e9430cd-e72f-40cf-a6da-90969f41b53a
2025-05-05 01:57:46,820 - INFO - Verifications in API Server for VN ctest-vn-86005345 passed
2025-05-05 01:57:46,820 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a
2025-05-05 01:57:46,876 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d
2025-05-05 01:57:46,931 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/342b0736-0a12-4a84-be78-142e7f7c9a1d
2025-05-05 01:57:46,987 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/4cb3c5fc-05bd-40fb-8c87-a33a99e6f7b8
2025-05-05 01:57:47,091 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68261625', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9120968806237159631', 'uuid-lslong': '12023081131810338106'}, 'enable': 'true', 'created': '2025-05-05T01:57:42', 'last-modified': '2025-05-05T01:57:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.379860'}
2025-05-05 01:57:47,147 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 01:57:47,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86005345 passed
2025-05-05 01:57:47,148 - DEBUG - ====Verifying policy data for ctest-vn-86005345 in API_Server ======
2025-05-05 01:57:47,148 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-05-05 01:57:47,206 - DEBUG - Requesting: https://10.0.0.129:8082/domain/61d5f14e-0b5a-4169-8eb2-9811a5380ab2
2025-05-05 01:57:47,268 - DEBUG - Requesting: https://10.0.0.129:8082/project/a55e0b39-f58b-42a1-b944-4bda624c90ed
2025-05-05 01:57:47,347 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/7e9430cd-e72f-40cf-a6da-90969f41b53a
2025-05-05 01:57:47,408 - DEBUG - ==>Verifying data for policy with id: f9531831-ee82-4cab-b583-137766271376, fqn: ['admin_domain', 'ctest-TestBasicPolicy-68261625', 'ctest-policy-allow-all-65648854']
2025-05-05 01:57:47,408 - INFO - VN ctest-vn-86005345 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 01:57:47,408 - DEBUG - Verifying the vn in opserver
2025-05-05 01:57:47,408 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345 virtual network link through opserver 10.0.0.129
2025-05-05 01:57:47,408 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-05-05 01:57:47,466 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345?flat'}
2025-05-05 01:57:47,466 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-68261625:ctest-vn-86005345 is found in opserver
2025-05-05 01:57:47,570 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 01:57:47,622 - DEBUG - VRF ids for VN ctest-vn-86005345: {}
2025-05-05 01:57:47,697 - DEBUG - Services list from nova: [