2024-10-24 02:45:14,302 - INFO - Domain Default found not creating
2024-10-24 02:45:14,489 - INFO - Project ctest-TestBasicPolicy-40188042 not found, creating it
2024-10-24 02:45:15,031 - INFO - Created Project:ctest-TestBasicPolicy-40188042, ID : 47a6c3e4-d3fb-43b4-bb26-32a7e3846119
2024-10-24 02:45:16,863 - INFO - ================================================================================
2024-10-24 02:45:16,864 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 02:45:16,864 - 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-10-24 02:45:17,130 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.12': '0'}} with
2024-10-24 02:45:17,130 - INFO - Initial checks done. Running the testcase now
2024-10-24 02:45:17,131 - INFO -
2024-10-24 02:45:17,792 - DEBUG - Response for create_network : {'network': {'id': 'de52d0cf-8e37-4fc1-a670-39d123ce5c37', 'name': 'ctest-vn-66703689', 'tenant_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'project_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-vn-66703689'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:45:18,016 - DEBUG - Response for create_subnet : {'subnet': {'id': '39ee8ef7-2701-42fe-8c1b-6f0d3ccc445f', 'name': '', 'tenant_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'network_id': 'de52d0cf-8e37-4fc1-a670-39d123ce5c37', 'ip_version': 4, 'cidr': '198.39.59.0/26', 'allocation_pools': [{'start': '198.39.59.2', 'end': '198.39.59.62'}], 'gateway_ip': '198.39.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.39.59.2', 'tags': [], 'project_id': '47a6c3e4d3fb43b4bb2632a7e3846119'}}
2024-10-24 02:45:18,038 - INFO - Created VN ctest-vn-66703689
2024-10-24 02:45:18,099 - DEBUG - VN ctest-vn-66703689 UUID is de52d0cf-8e37-4fc1-a670-39d123ce5c37
2024-10-24 02:45:18,452 - DEBUG - Response for create_network : {'network': {'id': '820cf33d-7402-4556-839f-559b7be24053', 'name': 'ctest-vn-39332373', 'tenant_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'project_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-vn-39332373'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:45:18,630 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8447b38-1558-4680-918a-f211f1220184', 'name': '', 'tenant_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'network_id': '820cf33d-7402-4556-839f-559b7be24053', 'ip_version': 4, 'cidr': '147.89.139.0/26', 'allocation_pools': [{'start': '147.89.139.2', 'end': '147.89.139.62'}], 'gateway_ip': '147.89.139.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.89.139.2', 'tags': [], 'project_id': '47a6c3e4d3fb43b4bb2632a7e3846119'}}
2024-10-24 02:45:18,653 - INFO - Created VN ctest-vn-39332373
2024-10-24 02:45:18,711 - DEBUG - VN ctest-vn-39332373 UUID is 820cf33d-7402-4556-839f-559b7be24053
2024-10-24 02:45:18,844 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-66703689, 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-40188042:ctest-vn-39332373, 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-10-24 02:45:19,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de52d0cf-8e37-4fc1-a670-39d123ce5c37', 'name': 'ctest-vn-66703689', 'tenant_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'project_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39ee8ef7-2701-42fe-8c1b-6f0d3ccc445f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-vn-66703689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-policy-allow-all-98524809']], 'subnet_ipam': [{'subnet_cidr': '198.39.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:45:19,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '820cf33d-7402-4556-839f-559b7be24053', 'name': 'ctest-vn-39332373', 'tenant_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'project_id': '47a6c3e4d3fb43b4bb2632a7e3846119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8447b38-1558-4680-918a-f211f1220184'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-vn-39332373'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-policy-allow-all-98524809']], 'subnet_ipam': [{'subnet_cidr': '147.89.139.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 02:45:19,655 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-24 02:45:19,993 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-24 02:45:20,031 - DEBUG - Requesting: http://10.0.0.34:8082/domain/b56ff9a7-4f1b-487d-b912-1e6969d39a08
2024-10-24 02:45:20,049 - DEBUG - Requesting: http://10.0.0.34:8082/project/47a6c3e4-d3fb-43b4-bb26-32a7e3846119
2024-10-24 02:45:20,138 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/de52d0cf-8e37-4fc1-a670-39d123ce5c37
2024-10-24 02:45:20,157 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/de52d0cf-8e37-4fc1-a670-39d123ce5c37
2024-10-24 02:45:20,174 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/83e054af-8fb8-4320-857c-74c53457d378
2024-10-24 02:45:20,185 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/83e054af-8fb8-4320-857c-74c53457d378
2024-10-24 02:45:20,196 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/616a3c8f-3ed3-483b-807f-a4287550b704
2024-10-24 02:45:20,205 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 02:45:20,205 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/de52d0cf-8e37-4fc1-a670-39d123ce5c37
2024-10-24 02:45:20,221 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/83e054af-8fb8-4320-857c-74c53457d378
2024-10-24 02:45:20,243 - INFO - Verified VN network id 8 for VN de52d0cf-8e37-4fc1-a670-39d123ce5c37
2024-10-24 02:45:20,244 - INFO - Verifications in API Server for VN ctest-vn-66703689 passed
2024-10-24 02:45:20,244 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/de52d0cf-8e37-4fc1-a670-39d123ce5c37
2024-10-24 02:45:20,260 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/83e054af-8fb8-4320-857c-74c53457d378
2024-10-24 02:45:20,269 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/83e054af-8fb8-4320-857c-74c53457d378
2024-10-24 02:45:20,279 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/616a3c8f-3ed3-483b-807f-a4287550b704
2024-10-24 02:45:20,295 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-66703689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40188042', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16020096414373072833', 'uuid-lslong': '11993149378099305527'}, 'enable': 'true', 'created': '2024-10-24T02:45:17', 'last-modified': '2024-10-24T02:45:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.137487'}
2024-10-24 02:45:20,304 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 02:45:20,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66703689 passed
2024-10-24 02:45:20,305 - DEBUG - ====Verifying policy data for ctest-vn-66703689 in API_Server ======
2024-10-24 02:45:20,305 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-24 02:45:20,312 - DEBUG - Requesting: http://10.0.0.34:8082/domain/b56ff9a7-4f1b-487d-b912-1e6969d39a08
2024-10-24 02:45:20,332 - DEBUG - Requesting: http://10.0.0.34:8082/project/47a6c3e4-d3fb-43b4-bb26-32a7e3846119
2024-10-24 02:45:20,424 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/de52d0cf-8e37-4fc1-a670-39d123ce5c37
2024-10-24 02:45:20,440 - DEBUG - ==>Verifying data for policy with id: 2e42f446-0ea8-4a0c-854d-a141caa0ba54, fqn: ['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-policy-allow-all-98524809']
2024-10-24 02:45:20,440 - INFO - VN ctest-vn-66703689 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 02:45:20,440 - DEBUG - Verifying the vn in opserver
2024-10-24 02:45:20,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-66703689 virtual network link through opserver 10.0.0.34
2024-10-24 02:45:20,440 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-24 02:45:20,776 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-24 02:45:20,849 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-66703689', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-66703689?flat'}
2024-10-24 02:45:20,849 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-66703689 is found in opserver
2024-10-24 02:45:20,862 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 02:45:20,868 - DEBUG - VRF ids for VN ctest-vn-66703689: {}
2024-10-24 02:45:20,869 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-24 02:45:20,876 - DEBUG - Requesting: http://10.0.0.34:8082/domain/b56ff9a7-4f1b-487d-b912-1e6969d39a08
2024-10-24 02:45:20,891 - DEBUG - Requesting: http://10.0.0.34:8082/project/47a6c3e4-d3fb-43b4-bb26-32a7e3846119
2024-10-24 02:45:20,978 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/820cf33d-7402-4556-839f-559b7be24053
2024-10-24 02:45:20,997 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/820cf33d-7402-4556-839f-559b7be24053
2024-10-24 02:45:21,013 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d8dbca9a-84c7-46d7-adbc-be0063a8e099
2024-10-24 02:45:21,024 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d8dbca9a-84c7-46d7-adbc-be0063a8e099
2024-10-24 02:45:21,034 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b6a054b3-e09a-4a63-aefa-20fc5f21a654
2024-10-24 02:45:21,042 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 02:45:21,042 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/820cf33d-7402-4556-839f-559b7be24053
2024-10-24 02:45:21,058 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d8dbca9a-84c7-46d7-adbc-be0063a8e099
2024-10-24 02:45:21,082 - INFO - Verified VN network id 9 for VN 820cf33d-7402-4556-839f-559b7be24053
2024-10-24 02:45:21,082 - INFO - Verifications in API Server for VN ctest-vn-39332373 passed
2024-10-24 02:45:21,083 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/820cf33d-7402-4556-839f-559b7be24053
2024-10-24 02:45:21,100 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d8dbca9a-84c7-46d7-adbc-be0063a8e099
2024-10-24 02:45:21,112 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d8dbca9a-84c7-46d7-adbc-be0063a8e099
2024-10-24 02:45:21,123 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b6a054b3-e09a-4a63-aefa-20fc5f21a654
2024-10-24 02:45:21,140 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-39332373', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40188042', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9371132369916020054', 'uuid-lslong': '9484393466552270931'}, 'enable': 'true', 'created': '2024-10-24T02:45:18', 'last-modified': '2024-10-24T02:45:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.692168'}
2024-10-24 02:45:21,148 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 02:45:21,148 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39332373 passed
2024-10-24 02:45:21,148 - DEBUG - ====Verifying policy data for ctest-vn-39332373 in API_Server ======
2024-10-24 02:45:21,148 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-24 02:45:21,155 - DEBUG - Requesting: http://10.0.0.34:8082/domain/b56ff9a7-4f1b-487d-b912-1e6969d39a08
2024-10-24 02:45:21,170 - DEBUG - Requesting: http://10.0.0.34:8082/project/47a6c3e4-d3fb-43b4-bb26-32a7e3846119
2024-10-24 02:45:21,259 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/820cf33d-7402-4556-839f-559b7be24053
2024-10-24 02:45:21,278 - DEBUG - ==>Verifying data for policy with id: 2e42f446-0ea8-4a0c-854d-a141caa0ba54, fqn: ['default-domain', 'ctest-TestBasicPolicy-40188042', 'ctest-policy-allow-all-98524809']
2024-10-24 02:45:21,278 - INFO - VN ctest-vn-39332373 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 02:45:21,278 - DEBUG - Verifying the vn in opserver
2024-10-24 02:45:21,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-39332373 virtual network link through opserver 10.0.0.34
2024-10-24 02:45:21,279 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-24 02:45:21,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-39332373', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-39332373?flat'}
2024-10-24 02:45:21,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40188042:ctest-vn-39332373 is found in opserver
2024-10-24 02:45:21,306 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 02:45:21,312 - DEBUG - VRF ids for VN ctest-vn-39332373: {}
2024-10-24 02:45:21,373 - DEBUG - Services list from nova: [