2024-11-10 15:31:16,266 - INFO - Domain Default found not creating
2024-11-10 15:31:16,585 - INFO - Project ctest-TestBasicPolicy-00577344 not found, creating it
2024-11-10 15:31:17,169 - INFO - Created Project:ctest-TestBasicPolicy-00577344, ID : e8fe526c-612a-43a6-9329-74f8d7c07265
2024-11-10 15:31:18,782 - INFO - ================================================================================
2024-11-10 15:31:18,782 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 15:31:18,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
2024-11-10 15:31:19,040 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.13': '0'}} with
2024-11-10 15:31:19,040 - INFO - Initial checks done. Running the testcase now
2024-11-10 15:31:19,040 - INFO -
2024-11-10 15:31:19,654 - DEBUG - Response for create_network : {'network': {'id': '4ae55051-a33a-4564-a298-3e97a38b2717', 'name': 'ctest-vn-66520018', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-66520018'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 15:31:19,875 - DEBUG - Response for create_subnet : {'subnet': {'id': '9369d582-474d-48c2-8936-38b6f4c2a2c2', 'name': '', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'network_id': '4ae55051-a33a-4564-a298-3e97a38b2717', 'ip_version': 4, 'cidr': '125.12.108.64/26', 'allocation_pools': [{'start': '125.12.108.66', 'end': '125.12.108.126'}], 'gateway_ip': '125.12.108.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.12.108.66', 'tags': [], 'project_id': 'e8fe526c612a43a6932974f8d7c07265'}}
2024-11-10 15:31:19,895 - INFO - Created VN ctest-vn-66520018
2024-11-10 15:31:19,957 - DEBUG - VN ctest-vn-66520018 UUID is 4ae55051-a33a-4564-a298-3e97a38b2717
2024-11-10 15:31:20,343 - DEBUG - Response for create_network : {'network': {'id': 'a953d094-ed4f-4709-9307-3a21ca33ccb7', 'name': 'ctest-vn-19744093', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-19744093'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 15:31:20,560 - DEBUG - Response for create_subnet : {'subnet': {'id': '1304ab67-60e1-490a-9506-08614a729ea1', 'name': '', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'network_id': 'a953d094-ed4f-4709-9307-3a21ca33ccb7', 'ip_version': 4, 'cidr': '153.2.210.0/26', 'allocation_pools': [{'start': '153.2.210.2', 'end': '153.2.210.62'}], 'gateway_ip': '153.2.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.2.210.2', 'tags': [], 'project_id': 'e8fe526c612a43a6932974f8d7c07265'}}
2024-11-10 15:31:20,587 - INFO - Created VN ctest-vn-19744093
2024-11-10 15:31:20,649 - DEBUG - VN ctest-vn-19744093 UUID is a953d094-ed4f-4709-9307-3a21ca33ccb7
2024-11-10 15:31:20,781 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018, 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-00577344:ctest-vn-19744093, 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]
2024-11-10 15:31:21,119 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ae55051-a33a-4564-a298-3e97a38b2717', 'name': 'ctest-vn-66520018', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9369d582-474d-48c2-8936-38b6f4c2a2c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-66520018'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836']], 'subnet_ipam': [{'subnet_cidr': '125.12.108.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 15:31:21,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a953d094-ed4f-4709-9307-3a21ca33ccb7', 'name': 'ctest-vn-19744093', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1304ab67-60e1-490a-9506-08614a729ea1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-19744093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836']], 'subnet_ipam': [{'subnet_cidr': '153.2.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 15:31:21,613 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 15:31:21,920 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 15:31:21,957 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a
2024-11-10 15:31:21,973 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265
2024-11-10 15:31:22,061 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717
2024-11-10 15:31:22,079 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717
2024-11-10 15:31:22,096 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd
2024-11-10 15:31:22,109 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd
2024-11-10 15:31:22,125 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/42168928-5fad-425a-b4bb-df0e662b03f1
2024-11-10 15:31:22,135 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 15:31:22,135 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717
2024-11-10 15:31:22,157 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd
2024-11-10 15:31:22,184 - INFO - Verified VN network id 7 for VN 4ae55051-a33a-4564-a298-3e97a38b2717
2024-11-10 15:31:22,184 - INFO - Verifications in API Server for VN ctest-vn-66520018 passed
2024-11-10 15:31:22,184 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717
2024-11-10 15:31:22,201 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd
2024-11-10 15:31:22,211 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd
2024-11-10 15:31:22,226 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/42168928-5fad-425a-b4bb-df0e662b03f1
2024-11-10 15:31:22,242 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00577344', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5396808040034485604', 'uuid-lslong': '11716183251609134871'}, 'enable': 'true', 'created': '2024-11-10T15:31:19', 'last-modified': '2024-11-10T15:31:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.153547'}
2024-11-10 15:31:22,250 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 15:31:22,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66520018 passed
2024-11-10 15:31:22,250 - DEBUG - ====Verifying policy data for ctest-vn-66520018 in API_Server ======
2024-11-10 15:31:22,250 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 15:31:22,260 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a
2024-11-10 15:31:22,275 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265
2024-11-10 15:31:22,361 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717
2024-11-10 15:31:22,380 - DEBUG - ==>Verifying data for policy with id: f505fcea-35fa-450e-978c-e84eee777a3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836']
2024-11-10 15:31:22,381 - INFO - VN ctest-vn-66520018 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 15:31:22,381 - DEBUG - Verifying the vn in opserver
2024-11-10 15:31:22,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018 virtual network link through opserver 10.0.0.44
2024-11-10 15:31:22,383 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-10 15:31:22,705 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-10 15:31:22,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018?flat'}
2024-11-10 15:31:22,781 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018 is found in opserver
2024-11-10 15:31:22,793 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 15:31:22,799 - DEBUG - VRF ids for VN ctest-vn-66520018: {}
2024-11-10 15:31:22,799 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 15:31:22,807 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a
2024-11-10 15:31:22,833 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265
2024-11-10 15:31:22,926 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7
2024-11-10 15:31:22,950 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7
2024-11-10 15:31:22,966 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e
2024-11-10 15:31:22,981 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e
2024-11-10 15:31:22,990 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/3f879b64-5852-4a6b-9f3e-017df8aa2884
2024-11-10 15:31:22,999 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 15:31:22,999 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7
2024-11-10 15:31:23,014 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e
2024-11-10 15:31:23,036 - INFO - Verified VN network id 8 for VN a953d094-ed4f-4709-9307-3a21ca33ccb7
2024-11-10 15:31:23,036 - INFO - Verifications in API Server for VN ctest-vn-19744093 passed
2024-11-10 15:31:23,036 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7
2024-11-10 15:31:23,054 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e
2024-11-10 15:31:23,066 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e
2024-11-10 15:31:23,076 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/3f879b64-5852-4a6b-9f3e-017df8aa2884
2024-11-10 15:31:23,091 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00577344', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12201325153531938569', 'uuid-lslong': '10594500565213105335'}, 'enable': 'true', 'created': '2024-11-10T15:31:20', 'last-modified': '2024-11-10T15:31:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.725282'}
2024-11-10 15:31:23,098 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 15:31:23,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19744093 passed
2024-11-10 15:31:23,098 - DEBUG - ====Verifying policy data for ctest-vn-19744093 in API_Server ======
2024-11-10 15:31:23,098 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-11-10 15:31:23,107 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a
2024-11-10 15:31:23,120 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265
2024-11-10 15:31:23,208 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7
2024-11-10 15:31:23,222 - DEBUG - ==>Verifying data for policy with id: f505fcea-35fa-450e-978c-e84eee777a3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836']
2024-11-10 15:31:23,222 - INFO - VN ctest-vn-19744093 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 15:31:23,222 - DEBUG - Verifying the vn in opserver
2024-11-10 15:31:23,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093 virtual network link through opserver 10.0.0.44
2024-11-10 15:31:23,222 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-11-10 15:31:23,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093?flat'}
2024-11-10 15:31:23,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093 is found in opserver
2024-11-10 15:31:23,247 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 15:31:23,256 - DEBUG - VRF ids for VN ctest-vn-19744093: {}
2024-11-10 15:31:23,330 - DEBUG - Services list from nova: [