2025-04-22 21:53:31,854 - INFO - Domain Default found not creating
2025-04-22 21:53:31,987 - INFO - Project ctest-TestBasicPolicy-37678661 not found, creating it
2025-04-22 21:53:32,431 - INFO - Created Project:ctest-TestBasicPolicy-37678661, ID : 20e863cb-3e19-4e85-9403-a707af1f72fe
2025-04-22 21:53:33,783 - INFO - ================================================================================
2025-04-22 21:53:33,783 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 21:53:33,783 - 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 21:53:34,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-04-22 21:53:34,043 - INFO - Initial checks done. Running the testcase now
2025-04-22 21:53:34,043 - INFO -
2025-04-22 21:53:34,579 - DEBUG - Response for create_network : {'network': {'id': '5b322114-2301-42ec-80c2-9e872b9990c8', 'name': 'ctest-vn-92368585', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-92368585'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 21:53:34,730 - DEBUG - Response for create_subnet : {'subnet': {'id': '625fe5e3-024e-4c8e-a85b-8ff6d7553e15', 'name': '', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'network_id': '5b322114-2301-42ec-80c2-9e872b9990c8', 'ip_version': 4, 'cidr': '111.224.20.192/26', 'allocation_pools': [{'start': '111.224.20.194', 'end': '111.224.20.254'}], 'gateway_ip': '111.224.20.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.224.20.194', 'tags': [], 'project_id': '20e863cb3e194e859403a707af1f72fe'}}
2025-04-22 21:53:34,748 - INFO - Created VN ctest-vn-92368585
2025-04-22 21:53:34,801 - DEBUG - VN ctest-vn-92368585 UUID is 5b322114-2301-42ec-80c2-9e872b9990c8
2025-04-22 21:53:35,213 - DEBUG - Response for create_network : {'network': {'id': 'ea7cf62b-c5f1-48d3-ba33-706bf769dd23', 'name': 'ctest-vn-16007703', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-16007703'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 21:53:35,639 - DEBUG - Response for create_subnet : {'subnet': {'id': '3588b234-62cc-40fd-95a9-3268e1a12cf4', 'name': '', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'network_id': 'ea7cf62b-c5f1-48d3-ba33-706bf769dd23', 'ip_version': 4, 'cidr': '53.195.82.64/26', 'allocation_pools': [{'start': '53.195.82.66', 'end': '53.195.82.126'}], 'gateway_ip': '53.195.82.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.195.82.66', 'tags': [], 'project_id': '20e863cb3e194e859403a707af1f72fe'}}
2025-04-22 21:53:35,673 - INFO - Created VN ctest-vn-16007703
2025-04-22 21:53:35,724 - DEBUG - VN ctest-vn-16007703 UUID is ea7cf62b-c5f1-48d3-ba33-706bf769dd23
2025-04-22 21:53:35,868 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585, 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-37678661:ctest-vn-16007703, 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 21:53:36,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b322114-2301-42ec-80c2-9e872b9990c8', 'name': 'ctest-vn-92368585', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['625fe5e3-024e-4c8e-a85b-8ff6d7553e15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-92368585'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322']], 'subnet_ipam': [{'subnet_cidr': '111.224.20.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 21:53:36,495 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea7cf62b-c5f1-48d3-ba33-706bf769dd23', 'name': 'ctest-vn-16007703', 'tenant_id': '20e863cb3e194e859403a707af1f72fe', 'project_id': '20e863cb3e194e859403a707af1f72fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3588b234-62cc-40fd-95a9-3268e1a12cf4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-vn-16007703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322']], 'subnet_ipam': [{'subnet_cidr': '53.195.82.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 21:53:36,640 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-22 21:53:36,946 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-22 21:53:36,971 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1
2025-04-22 21:53:36,983 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe
2025-04-22 21:53:37,057 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8
2025-04-22 21:53:37,067 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8
2025-04-22 21:53:37,076 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d
2025-04-22 21:53:37,082 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d
2025-04-22 21:53:37,088 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1300bc46-9e7f-4fbd-9b35-6aa23e01c3ed
2025-04-22 21:53:37,093 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 21:53:37,093 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8
2025-04-22 21:53:37,101 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d
2025-04-22 21:53:37,113 - INFO - Verified VN network id 9 for VN 5b322114-2301-42ec-80c2-9e872b9990c8
2025-04-22 21:53:37,114 - INFO - Verifications in API Server for VN ctest-vn-92368585 passed
2025-04-22 21:53:37,114 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8
2025-04-22 21:53:37,122 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d
2025-04-22 21:53:37,128 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f1e8b63b-bfda-4400-93bb-54d5eeac673d
2025-04-22 21:53:37,133 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1300bc46-9e7f-4fbd-9b35-6aa23e01c3ed
2025-04-22 21:53:37,144 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37678661', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6571351176657322732', 'uuid-lslong': '9278152485725901000'}, 'enable': 'true', 'created': '2025-04-22T21:53:34', 'last-modified': '2025-04-22T21:53:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.898322'}
2025-04-22 21:53:37,150 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 21:53:37,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92368585 passed
2025-04-22 21:53:37,150 - DEBUG - ====Verifying policy data for ctest-vn-92368585 in API_Server ======
2025-04-22 21:53:37,150 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-22 21:53:37,155 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1
2025-04-22 21:53:37,164 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe
2025-04-22 21:53:37,235 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5b322114-2301-42ec-80c2-9e872b9990c8
2025-04-22 21:53:37,245 - DEBUG - ==>Verifying data for policy with id: dedeae8c-2647-4818-99f3-a8e23ca66586, fqn: ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322']
2025-04-22 21:53:37,245 - INFO - VN ctest-vn-92368585 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 21:53:37,245 - DEBUG - Verifying the vn in opserver
2025-04-22 21:53:37,245 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585 virtual network link through opserver 10.0.0.65
2025-04-22 21:53:37,245 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-22 21:53:37,533 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-22 21:53:37,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585?flat'}
2025-04-22 21:53:37,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-92368585 is found in opserver
2025-04-22 21:53:37,592 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 21:53:37,597 - DEBUG - VRF ids for VN ctest-vn-92368585: {}
2025-04-22 21:53:37,597 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-22 21:53:37,601 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1
2025-04-22 21:53:37,611 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe
2025-04-22 21:53:37,683 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23
2025-04-22 21:53:37,694 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23
2025-04-22 21:53:37,703 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f
2025-04-22 21:53:37,709 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f
2025-04-22 21:53:37,715 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/28cfaf80-3e79-4b44-9309-6fb8d5987b8f
2025-04-22 21:53:37,721 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 21:53:37,721 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23
2025-04-22 21:53:37,729 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f
2025-04-22 21:53:37,742 - INFO - Verified VN network id 10 for VN ea7cf62b-c5f1-48d3-ba33-706bf769dd23
2025-04-22 21:53:37,742 - INFO - Verifications in API Server for VN ctest-vn-16007703 passed
2025-04-22 21:53:37,742 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23
2025-04-22 21:53:37,750 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f
2025-04-22 21:53:37,756 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cc3495a3-dcef-4536-846d-592da10eac5f
2025-04-22 21:53:37,762 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/28cfaf80-3e79-4b44-9309-6fb8d5987b8f
2025-04-22 21:53:37,774 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37678661', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16896650569852209363', 'uuid-lslong': '13417191323881561379'}, 'enable': 'true', 'created': '2025-04-22T21:53:35', 'last-modified': '2025-04-22T21:53:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.298419'}
2025-04-22 21:53:37,780 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 21:53:37,780 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16007703 passed
2025-04-22 21:53:37,780 - DEBUG - ====Verifying policy data for ctest-vn-16007703 in API_Server ======
2025-04-22 21:53:37,780 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-22 21:53:37,786 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2c9976f1-86b8-42c4-9b07-e3496d0081d1
2025-04-22 21:53:37,797 - DEBUG - Requesting: http://10.0.0.65:8082/project/20e863cb-3e19-4e85-9403-a707af1f72fe
2025-04-22 21:53:37,870 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ea7cf62b-c5f1-48d3-ba33-706bf769dd23
2025-04-22 21:53:37,879 - DEBUG - ==>Verifying data for policy with id: dedeae8c-2647-4818-99f3-a8e23ca66586, fqn: ['default-domain', 'ctest-TestBasicPolicy-37678661', 'ctest-policy-allow-all-22725322']
2025-04-22 21:53:37,879 - INFO - VN ctest-vn-16007703 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 21:53:37,879 - DEBUG - Verifying the vn in opserver
2025-04-22 21:53:37,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703 virtual network link through opserver 10.0.0.65
2025-04-22 21:53:37,879 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-22 21:53:37,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703?flat'}
2025-04-22 21:53:37,889 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37678661:ctest-vn-16007703 is found in opserver
2025-04-22 21:53:37,899 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 21:53:37,903 - DEBUG - VRF ids for VN ctest-vn-16007703: {}
2025-04-22 21:53:37,951 - DEBUG - Services list from nova: [