2025-02-12 03:05:24,038 - INFO - Domain Default found not creating
2025-02-12 03:05:24,189 - INFO - Project ctest-TestBasicPolicy-64663725 not found, creating it
2025-02-12 03:05:24,660 - INFO - Created Project:ctest-TestBasicPolicy-64663725, ID : fc82ca7a-34e2-485a-a81e-87cebd041237
2025-02-12 03:05:26,137 - INFO - ================================================================================
2025-02-12 03:05:26,138 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-12 03:05:26,138 - 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-12 03:05:26,403 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.5': '0'}} with
2025-02-12 03:05:26,403 - INFO - Initial checks done. Running the testcase now
2025-02-12 03:05:26,403 - INFO -
2025-02-12 03:05:26,965 - DEBUG - Response for create_network : {'network': {'id': 'f9a6e00e-9157-4e5b-8d19-661053ac9ed0', 'name': 'ctest-vn-94343893', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-94343893'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 03:05:27,184 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afb861a3-9dc8-46a5-97da-fe9b9d10a21a', 'name': '', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'network_id': 'f9a6e00e-9157-4e5b-8d19-661053ac9ed0', 'ip_version': 4, 'cidr': '218.22.13.128/26', 'allocation_pools': [{'start': '218.22.13.130', 'end': '218.22.13.190'}], 'gateway_ip': '218.22.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.22.13.130', 'tags': [], 'project_id': 'fc82ca7a34e2485aa81e87cebd041237'}}
2025-02-12 03:05:27,203 - INFO - Created VN ctest-vn-94343893
2025-02-12 03:05:27,257 - DEBUG - VN ctest-vn-94343893 UUID is f9a6e00e-9157-4e5b-8d19-661053ac9ed0
2025-02-12 03:05:27,551 - DEBUG - Response for create_network : {'network': {'id': '0cd37da3-9dd3-40b4-82aa-79e91e71e4cb', 'name': 'ctest-vn-13858716', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-13858716'], 'port_security_enabled': True, 'description': ''}}
2025-02-12 03:05:27,737 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0e96b75-dda4-4c64-bb89-6f65f21931b6', 'name': '', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'network_id': '0cd37da3-9dd3-40b4-82aa-79e91e71e4cb', 'ip_version': 4, 'cidr': '137.36.14.64/26', 'allocation_pools': [{'start': '137.36.14.66', 'end': '137.36.14.126'}], 'gateway_ip': '137.36.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.36.14.66', 'tags': [], 'project_id': 'fc82ca7a34e2485aa81e87cebd041237'}}
2025-02-12 03:05:27,759 - INFO - Created VN ctest-vn-13858716
2025-02-12 03:05:27,813 - DEBUG - VN ctest-vn-13858716 UUID is 0cd37da3-9dd3-40b4-82aa-79e91e71e4cb
2025-02-12 03:05:27,930 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893, 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-64663725:ctest-vn-13858716, 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-12 03:05:28,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9a6e00e-9157-4e5b-8d19-661053ac9ed0', 'name': 'ctest-vn-94343893', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afb861a3-9dc8-46a5-97da-fe9b9d10a21a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-94343893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092']], 'subnet_ipam': [{'subnet_cidr': '218.22.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 03:05:28,510 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cd37da3-9dd3-40b4-82aa-79e91e71e4cb', 'name': 'ctest-vn-13858716', 'tenant_id': 'fc82ca7a34e2485aa81e87cebd041237', 'project_id': 'fc82ca7a34e2485aa81e87cebd041237', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0e96b75-dda4-4c64-bb89-6f65f21931b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-vn-13858716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092']], 'subnet_ipam': [{'subnet_cidr': '137.36.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-12 03:05:28,661 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-12 03:05:28,953 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-12 03:05:28,983 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648
2025-02-12 03:05:28,997 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237
2025-02-12 03:05:29,073 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0
2025-02-12 03:05:29,085 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0
2025-02-12 03:05:29,095 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a
2025-02-12 03:05:29,104 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a
2025-02-12 03:05:29,111 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/3c8b4c6c-8f30-4621-be3f-f0d80fa3e2d7
2025-02-12 03:05:29,118 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 03:05:29,118 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0
2025-02-12 03:05:29,128 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a
2025-02-12 03:05:29,142 - INFO - Verified VN network id 8 for VN f9a6e00e-9157-4e5b-8d19-661053ac9ed0
2025-02-12 03:05:29,142 - INFO - Verifications in API Server for VN ctest-vn-94343893 passed
2025-02-12 03:05:29,142 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0
2025-02-12 03:05:29,154 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a
2025-02-12 03:05:29,164 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/b82f2369-8b7e-4509-8e8e-c5f789de956a
2025-02-12 03:05:29,171 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/3c8b4c6c-8f30-4621-be3f-f0d80fa3e2d7
2025-02-12 03:05:29,184 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64663725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17989312114750606939', 'uuid-lslong': '10167269854074937040'}, 'enable': 'true', 'created': '2025-02-12T03:05:26', 'last-modified': '2025-02-12T03:05:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972640'}
2025-02-12 03:05:29,191 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-12 03:05:29,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94343893 passed
2025-02-12 03:05:29,192 - DEBUG - ====Verifying policy data for ctest-vn-94343893 in API_Server ======
2025-02-12 03:05:29,192 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-12 03:05:29,198 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648
2025-02-12 03:05:29,210 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237
2025-02-12 03:05:29,286 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f9a6e00e-9157-4e5b-8d19-661053ac9ed0
2025-02-12 03:05:29,298 - DEBUG - ==>Verifying data for policy with id: 216d9d13-7147-40a2-bf8c-4710073f35fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092']
2025-02-12 03:05:29,298 - INFO - VN ctest-vn-94343893 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 03:05:29,298 - DEBUG - Verifying the vn in opserver
2025-02-12 03:05:29,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893 virtual network link through opserver 10.0.0.28
2025-02-12 03:05:29,298 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-02-12 03:05:29,594 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-02-12 03:05:29,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893?flat'}
2025-02-12 03:05:29,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-94343893 is found in opserver
2025-02-12 03:05:29,665 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 03:05:29,670 - DEBUG - VRF ids for VN ctest-vn-94343893: {}
2025-02-12 03:05:29,670 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-12 03:05:29,676 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648
2025-02-12 03:05:29,688 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237
2025-02-12 03:05:29,765 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb
2025-02-12 03:05:29,779 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb
2025-02-12 03:05:29,788 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6
2025-02-12 03:05:29,796 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6
2025-02-12 03:05:29,804 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/5410d696-0103-4c87-907f-435ae92f2197
2025-02-12 03:05:29,813 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 03:05:29,813 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb
2025-02-12 03:05:29,824 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6
2025-02-12 03:05:29,838 - INFO - Verified VN network id 9 for VN 0cd37da3-9dd3-40b4-82aa-79e91e71e4cb
2025-02-12 03:05:29,838 - INFO - Verifications in API Server for VN ctest-vn-13858716 passed
2025-02-12 03:05:29,838 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb
2025-02-12 03:05:29,849 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6
2025-02-12 03:05:29,858 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/33485446-31e3-4388-ba2f-ef41f4485bb6
2025-02-12 03:05:29,865 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/5410d696-0103-4c87-907f-435ae92f2197
2025-02-12 03:05:29,882 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64663725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '924220490222092468', 'uuid-lslong': '9415472013116564683'}, 'enable': 'true', 'created': '2025-02-12T03:05:27', 'last-modified': '2025-02-12T03:05:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433337'}
2025-02-12 03:05:29,889 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-12 03:05:29,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13858716 passed
2025-02-12 03:05:29,890 - DEBUG - ====Verifying policy data for ctest-vn-13858716 in API_Server ======
2025-02-12 03:05:29,890 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-02-12 03:05:29,896 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6b8ca316-986a-4015-a6b0-fac1d24bc648
2025-02-12 03:05:29,908 - DEBUG - Requesting: http://10.0.0.28:8082/project/fc82ca7a-34e2-485a-a81e-87cebd041237
2025-02-12 03:05:29,989 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0cd37da3-9dd3-40b4-82aa-79e91e71e4cb
2025-02-12 03:05:29,999 - DEBUG - ==>Verifying data for policy with id: 216d9d13-7147-40a2-bf8c-4710073f35fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-64663725', 'ctest-policy-allow-all-81964092']
2025-02-12 03:05:29,999 - INFO - VN ctest-vn-13858716 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-12 03:05:30,000 - DEBUG - Verifying the vn in opserver
2025-02-12 03:05:30,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716 virtual network link through opserver 10.0.0.28
2025-02-12 03:05:30,000 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-02-12 03:05:30,012 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716?flat'}
2025-02-12 03:05:30,012 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64663725:ctest-vn-13858716 is found in opserver
2025-02-12 03:05:30,024 - DEBUG - Do not have enough data to verify VN in agent
2025-02-12 03:05:30,031 - DEBUG - VRF ids for VN ctest-vn-13858716: {}
2025-02-12 03:05:30,094 - DEBUG - Services list from nova: [