2025-04-08 20:48:41,236 - INFO - Domain Default found not creating
2025-04-08 20:48:41,388 - INFO - Project ctest-TestBasicPolicy-25598349 not found, creating it
2025-04-08 20:48:41,852 - INFO - Created Project:ctest-TestBasicPolicy-25598349, ID : ef96e5d9-2ab7-4289-bdc8-a71312e82d6a
2025-04-08 20:48:43,340 - INFO - ================================================================================
2025-04-08 20:48:43,340 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 20:48:43,340 - 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-08 20:48:43,601 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.18': '0'}} with
2025-04-08 20:48:43,601 - INFO - Initial checks done. Running the testcase now
2025-04-08 20:48:43,601 - INFO -
2025-04-08 20:48:44,165 - DEBUG - Response for create_network : {'network': {'id': 'f4081d52-a2d7-4d88-b497-e84db41778c4', 'name': 'ctest-vn-46717721', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-46717721'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 20:48:44,345 - DEBUG - Response for create_subnet : {'subnet': {'id': '94875a3f-af3a-4138-a985-aa54da41a066', 'name': '', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'network_id': 'f4081d52-a2d7-4d88-b497-e84db41778c4', 'ip_version': 4, 'cidr': '98.232.152.0/26', 'allocation_pools': [{'start': '98.232.152.2', 'end': '98.232.152.62'}], 'gateway_ip': '98.232.152.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.232.152.2', 'tags': [], 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a'}}
2025-04-08 20:48:44,362 - INFO - Created VN ctest-vn-46717721
2025-04-08 20:48:44,414 - DEBUG - VN ctest-vn-46717721 UUID is f4081d52-a2d7-4d88-b497-e84db41778c4
2025-04-08 20:48:44,725 - DEBUG - Response for create_network : {'network': {'id': '15057457-2fea-413a-9ea6-606b9e238a1a', 'name': 'ctest-vn-68310575', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-68310575'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 20:48:44,916 - DEBUG - Response for create_subnet : {'subnet': {'id': '9295c344-b846-4532-9e8a-5fd1cc485613', 'name': '', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'network_id': '15057457-2fea-413a-9ea6-606b9e238a1a', 'ip_version': 4, 'cidr': '220.172.236.192/26', 'allocation_pools': [{'start': '220.172.236.194', 'end': '220.172.236.254'}], 'gateway_ip': '220.172.236.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.172.236.194', 'tags': [], 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a'}}
2025-04-08 20:48:44,935 - INFO - Created VN ctest-vn-68310575
2025-04-08 20:48:44,986 - DEBUG - VN ctest-vn-68310575 UUID is 15057457-2fea-413a-9ea6-606b9e238a1a
2025-04-08 20:48:45,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721, 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-25598349:ctest-vn-68310575, 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-08 20:48:45,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4081d52-a2d7-4d88-b497-e84db41778c4', 'name': 'ctest-vn-46717721', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94875a3f-af3a-4138-a985-aa54da41a066'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-46717721'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151']], 'subnet_ipam': [{'subnet_cidr': '98.232.152.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 20:48:45,650 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15057457-2fea-413a-9ea6-606b9e238a1a', 'name': 'ctest-vn-68310575', 'tenant_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'project_id': 'ef96e5d92ab74289bdc8a71312e82d6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9295c344-b846-4532-9e8a-5fd1cc485613'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-vn-68310575'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151']], 'subnet_ipam': [{'subnet_cidr': '220.172.236.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 20:48:45,822 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-04-08 20:48:46,133 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-04-08 20:48:46,163 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd
2025-04-08 20:48:46,176 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a
2025-04-08 20:48:46,256 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4
2025-04-08 20:48:46,269 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4
2025-04-08 20:48:46,280 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c
2025-04-08 20:48:46,289 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c
2025-04-08 20:48:46,300 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/b09dd46a-d7d0-4c67-be61-8c3d5bb1b90c
2025-04-08 20:48:46,309 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 20:48:46,309 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4
2025-04-08 20:48:46,322 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c
2025-04-08 20:48:46,338 - INFO - Verified VN network id 8 for VN f4081d52-a2d7-4d88-b497-e84db41778c4
2025-04-08 20:48:46,338 - INFO - Verifications in API Server for VN ctest-vn-46717721 passed
2025-04-08 20:48:46,338 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4
2025-04-08 20:48:46,349 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c
2025-04-08 20:48:46,359 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/7f38216d-97f3-4720-9fd0-0b79f4e9849c
2025-04-08 20:48:46,367 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/b09dd46a-d7d0-4c67-be61-8c3d5bb1b90c
2025-04-08 20:48:46,382 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25598349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17584336985824644488', 'uuid-lslong': '13013125068741900484'}, 'enable': 'true', 'created': '2025-04-08T20:48:44', 'last-modified': '2025-04-08T20:48:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999381'}
2025-04-08 20:48:46,389 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 20:48:46,389 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46717721 passed
2025-04-08 20:48:46,389 - DEBUG - ====Verifying policy data for ctest-vn-46717721 in API_Server ======
2025-04-08 20:48:46,389 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-04-08 20:48:46,395 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd
2025-04-08 20:48:46,407 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a
2025-04-08 20:48:46,485 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/f4081d52-a2d7-4d88-b497-e84db41778c4
2025-04-08 20:48:46,496 - DEBUG - ==>Verifying data for policy with id: 9f35346c-5d29-4723-9825-3d93fbf3498e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151']
2025-04-08 20:48:46,496 - INFO - VN ctest-vn-46717721 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 20:48:46,497 - DEBUG - Verifying the vn in opserver
2025-04-08 20:48:46,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721 virtual network link through opserver 10.0.0.36
2025-04-08 20:48:46,497 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-04-08 20:48:46,795 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-04-08 20:48:46,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721?flat'}
2025-04-08 20:48:46,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-46717721 is found in opserver
2025-04-08 20:48:46,867 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 20:48:46,872 - DEBUG - VRF ids for VN ctest-vn-46717721: {}
2025-04-08 20:48:46,872 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-04-08 20:48:46,878 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd
2025-04-08 20:48:46,890 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a
2025-04-08 20:48:46,959 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a
2025-04-08 20:48:46,971 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a
2025-04-08 20:48:46,981 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c
2025-04-08 20:48:46,989 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c
2025-04-08 20:48:46,996 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/fe81ab71-1db8-4f7a-93c8-92c63b4147c4
2025-04-08 20:48:47,004 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-08 20:48:47,004 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a
2025-04-08 20:48:47,017 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c
2025-04-08 20:48:47,033 - INFO - Verified VN network id 9 for VN 15057457-2fea-413a-9ea6-606b9e238a1a
2025-04-08 20:48:47,034 - INFO - Verifications in API Server for VN ctest-vn-68310575 passed
2025-04-08 20:48:47,034 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a
2025-04-08 20:48:47,047 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c
2025-04-08 20:48:47,056 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c662a71c-a246-41ea-9da0-080fc9d6265c
2025-04-08 20:48:47,065 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/fe81ab71-1db8-4f7a-93c8-92c63b4147c4
2025-04-08 20:48:47,081 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25598349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1514744767494897978', 'uuid-lslong': '11431930719457479194'}, 'enable': 'true', 'created': '2025-04-08T20:48:44', 'last-modified': '2025-04-08T20:48:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458222'}
2025-04-08 20:48:47,088 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-08 20:48:47,088 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68310575 passed
2025-04-08 20:48:47,089 - DEBUG - ====Verifying policy data for ctest-vn-68310575 in API_Server ======
2025-04-08 20:48:47,089 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-04-08 20:48:47,094 - DEBUG - Requesting: http://10.0.0.36:8082/domain/8b02daee-8a1c-4cc6-b712-d51f4277f3cd
2025-04-08 20:48:47,107 - DEBUG - Requesting: http://10.0.0.36:8082/project/ef96e5d9-2ab7-4289-bdc8-a71312e82d6a
2025-04-08 20:48:47,177 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/15057457-2fea-413a-9ea6-606b9e238a1a
2025-04-08 20:48:47,187 - DEBUG - ==>Verifying data for policy with id: 9f35346c-5d29-4723-9825-3d93fbf3498e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25598349', 'ctest-policy-allow-all-14390151']
2025-04-08 20:48:47,187 - INFO - VN ctest-vn-68310575 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 20:48:47,187 - DEBUG - Verifying the vn in opserver
2025-04-08 20:48:47,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575 virtual network link through opserver 10.0.0.36
2025-04-08 20:48:47,187 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-04-08 20:48:47,197 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575?flat'}
2025-04-08 20:48:47,197 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25598349:ctest-vn-68310575 is found in opserver
2025-04-08 20:48:47,208 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 20:48:47,213 - DEBUG - VRF ids for VN ctest-vn-68310575: {}
2025-04-08 20:48:47,275 - DEBUG - Services list from nova: [