2024-09-20 19:50:16,717 - INFO - Domain Default found not creating
2024-09-20 19:50:16,880 - INFO - Project ctest-TestBasicPolicy-10014934 not found, creating it
2024-09-20 19:50:17,366 - INFO - Created Project:ctest-TestBasicPolicy-10014934, ID : 9d82abfc-ce9d-4d4d-8c5e-a61efe6b2d50
2024-09-20 19:50:18,879 - INFO - ================================================================================
2024-09-20 19:50:18,879 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-20 19:50:18,879 - 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-09-20 19:50:19,141 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.8': '0'}} with
2024-09-20 19:50:19,141 - INFO - Initial checks done. Running the testcase now
2024-09-20 19:50:19,141 - INFO -
2024-09-20 19:50:19,716 - DEBUG - Response for create_network : {'network': {'id': '4df919de-68b9-414d-93db-2ee082b0efc2', 'name': 'ctest-vn-74971241', 'tenant_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'project_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-vn-74971241'], 'port_security_enabled': True, 'description': ''}}
2024-09-20 19:50:19,941 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca53d5be-fc0e-43d7-a10f-ac515033d2af', 'name': '', 'tenant_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'network_id': '4df919de-68b9-414d-93db-2ee082b0efc2', 'ip_version': 4, 'cidr': '129.152.98.0/26', 'allocation_pools': [{'start': '129.152.98.2', 'end': '129.152.98.62'}], 'gateway_ip': '129.152.98.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.152.98.2', 'tags': [], 'project_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50'}}
2024-09-20 19:50:19,961 - INFO - Created VN ctest-vn-74971241
2024-09-20 19:50:20,019 - DEBUG - VN ctest-vn-74971241 UUID is 4df919de-68b9-414d-93db-2ee082b0efc2
2024-09-20 19:50:20,325 - DEBUG - Response for create_network : {'network': {'id': '5827669a-38e3-46cb-8281-7d6e10b3d71f', 'name': 'ctest-vn-23441699', 'tenant_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'project_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-vn-23441699'], 'port_security_enabled': True, 'description': ''}}
2024-09-20 19:50:20,495 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fa5f021-be1c-4c3c-9f7a-088f6c82a868', 'name': '', 'tenant_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'network_id': '5827669a-38e3-46cb-8281-7d6e10b3d71f', 'ip_version': 4, 'cidr': '210.210.167.128/26', 'allocation_pools': [{'start': '210.210.167.130', 'end': '210.210.167.190'}], 'gateway_ip': '210.210.167.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.210.167.130', 'tags': [], 'project_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50'}}
2024-09-20 19:50:20,513 - INFO - Created VN ctest-vn-23441699
2024-09-20 19:50:20,571 - DEBUG - VN ctest-vn-23441699 UUID is 5827669a-38e3-46cb-8281-7d6e10b3d71f
2024-09-20 19:50:20,689 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-74971241, 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-10014934:ctest-vn-23441699, 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-09-20 19:50:20,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4df919de-68b9-414d-93db-2ee082b0efc2', 'name': 'ctest-vn-74971241', 'tenant_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'project_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca53d5be-fc0e-43d7-a10f-ac515033d2af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-vn-74971241'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-policy-allow-all-63662720']], 'subnet_ipam': [{'subnet_cidr': '129.152.98.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-20 19:50:21,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5827669a-38e3-46cb-8281-7d6e10b3d71f', 'name': 'ctest-vn-23441699', 'tenant_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'project_id': '9d82abfcce9d4d4d8c5ea61efe6b2d50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fa5f021-be1c-4c3c-9f7a-088f6c82a868'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-vn-23441699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-policy-allow-all-63662720']], 'subnet_ipam': [{'subnet_cidr': '210.210.167.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-20 19:50:21,403 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-20 19:50:21,701 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-20 19:50:21,736 - DEBUG - Requesting: http://10.0.0.28:8082/domain/dc57561d-3615-4067-8635-a0d47f34dde7
2024-09-20 19:50:21,751 - DEBUG - Requesting: http://10.0.0.28:8082/project/9d82abfc-ce9d-4d4d-8c5e-a61efe6b2d50
2024-09-20 19:50:21,837 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4df919de-68b9-414d-93db-2ee082b0efc2
2024-09-20 19:50:21,853 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4df919de-68b9-414d-93db-2ee082b0efc2
2024-09-20 19:50:21,868 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/36cbbd44-3cb0-40ec-8f18-6b964db80d1b
2024-09-20 19:50:21,877 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/36cbbd44-3cb0-40ec-8f18-6b964db80d1b
2024-09-20 19:50:21,886 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/62d065ed-b03a-4d0b-9762-a31e062767a1
2024-09-20 19:50:21,893 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-20 19:50:21,893 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4df919de-68b9-414d-93db-2ee082b0efc2
2024-09-20 19:50:21,910 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/36cbbd44-3cb0-40ec-8f18-6b964db80d1b
2024-09-20 19:50:21,929 - INFO - Verified VN network id 8 for VN 4df919de-68b9-414d-93db-2ee082b0efc2
2024-09-20 19:50:21,929 - INFO - Verifications in API Server for VN ctest-vn-74971241 passed
2024-09-20 19:50:21,929 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4df919de-68b9-414d-93db-2ee082b0efc2
2024-09-20 19:50:21,944 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/36cbbd44-3cb0-40ec-8f18-6b964db80d1b
2024-09-20 19:50:21,953 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/36cbbd44-3cb0-40ec-8f18-6b964db80d1b
2024-09-20 19:50:21,963 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/62d065ed-b03a-4d0b-9762-a31e062767a1
2024-09-20 19:50:21,976 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-74971241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10014934', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5618550453151809869', 'uuid-lslong': '10654160885275226050'}, 'enable': 'true', 'created': '2024-09-20T19:50:19', 'last-modified': '2024-09-20T19:50:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.004206'}
2024-09-20 19:50:21,984 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-20 19:50:21,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74971241 passed
2024-09-20 19:50:21,985 - DEBUG - ====Verifying policy data for ctest-vn-74971241 in API_Server ======
2024-09-20 19:50:21,985 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-20 19:50:21,991 - DEBUG - Requesting: http://10.0.0.28:8082/domain/dc57561d-3615-4067-8635-a0d47f34dde7
2024-09-20 19:50:22,007 - DEBUG - Requesting: http://10.0.0.28:8082/project/9d82abfc-ce9d-4d4d-8c5e-a61efe6b2d50
2024-09-20 19:50:22,087 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/4df919de-68b9-414d-93db-2ee082b0efc2
2024-09-20 19:50:22,102 - DEBUG - ==>Verifying data for policy with id: 0c3e1c20-1f1b-479e-b2d3-789244bebffd, fqn: ['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-policy-allow-all-63662720']
2024-09-20 19:50:22,102 - INFO - VN ctest-vn-74971241 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-20 19:50:22,102 - DEBUG - Verifying the vn in opserver
2024-09-20 19:50:22,103 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-74971241 virtual network link through opserver 10.0.0.28
2024-09-20 19:50:22,103 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-20 19:50:22,413 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-20 19:50:22,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-74971241', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-74971241?flat'}
2024-09-20 19:50:22,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-74971241 is found in opserver
2024-09-20 19:50:22,492 - DEBUG - Do not have enough data to verify VN in agent
2024-09-20 19:50:22,497 - DEBUG - VRF ids for VN ctest-vn-74971241: {}
2024-09-20 19:50:22,497 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-20 19:50:22,503 - DEBUG - Requesting: http://10.0.0.28:8082/domain/dc57561d-3615-4067-8635-a0d47f34dde7
2024-09-20 19:50:22,516 - DEBUG - Requesting: http://10.0.0.28:8082/project/9d82abfc-ce9d-4d4d-8c5e-a61efe6b2d50
2024-09-20 19:50:22,599 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5827669a-38e3-46cb-8281-7d6e10b3d71f
2024-09-20 19:50:22,615 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5827669a-38e3-46cb-8281-7d6e10b3d71f
2024-09-20 19:50:22,628 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f1abaf35-0f23-4e40-b9c3-7f1bbd7f77c6
2024-09-20 19:50:22,637 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f1abaf35-0f23-4e40-b9c3-7f1bbd7f77c6
2024-09-20 19:50:22,645 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/f6f28382-eb75-46b7-9101-0c32b27847b2
2024-09-20 19:50:22,651 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-20 19:50:22,652 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5827669a-38e3-46cb-8281-7d6e10b3d71f
2024-09-20 19:50:22,664 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f1abaf35-0f23-4e40-b9c3-7f1bbd7f77c6
2024-09-20 19:50:22,684 - INFO - Verified VN network id 9 for VN 5827669a-38e3-46cb-8281-7d6e10b3d71f
2024-09-20 19:50:22,684 - INFO - Verifications in API Server for VN ctest-vn-23441699 passed
2024-09-20 19:50:22,684 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5827669a-38e3-46cb-8281-7d6e10b3d71f
2024-09-20 19:50:22,699 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f1abaf35-0f23-4e40-b9c3-7f1bbd7f77c6
2024-09-20 19:50:22,707 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f1abaf35-0f23-4e40-b9c3-7f1bbd7f77c6
2024-09-20 19:50:22,715 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/f6f28382-eb75-46b7-9101-0c32b27847b2
2024-09-20 19:50:22,729 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-23441699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10014934', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6352158611994789579', 'uuid-lslong': '9403935408606402335'}, 'enable': 'true', 'created': '2024-09-20T19:50:20', 'last-modified': '2024-09-20T19:50:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.524905'}
2024-09-20 19:50:22,738 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-20 19:50:22,738 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23441699 passed
2024-09-20 19:50:22,738 - DEBUG - ====Verifying policy data for ctest-vn-23441699 in API_Server ======
2024-09-20 19:50:22,738 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-20 19:50:22,744 - DEBUG - Requesting: http://10.0.0.28:8082/domain/dc57561d-3615-4067-8635-a0d47f34dde7
2024-09-20 19:50:22,757 - DEBUG - Requesting: http://10.0.0.28:8082/project/9d82abfc-ce9d-4d4d-8c5e-a61efe6b2d50
2024-09-20 19:50:22,841 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5827669a-38e3-46cb-8281-7d6e10b3d71f
2024-09-20 19:50:22,857 - DEBUG - ==>Verifying data for policy with id: 0c3e1c20-1f1b-479e-b2d3-789244bebffd, fqn: ['default-domain', 'ctest-TestBasicPolicy-10014934', 'ctest-policy-allow-all-63662720']
2024-09-20 19:50:22,857 - INFO - VN ctest-vn-23441699 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-20 19:50:22,857 - DEBUG - Verifying the vn in opserver
2024-09-20 19:50:22,857 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-23441699 virtual network link through opserver 10.0.0.28
2024-09-20 19:50:22,857 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-20 19:50:22,871 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-23441699', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-23441699?flat'}
2024-09-20 19:50:22,871 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10014934:ctest-vn-23441699 is found in opserver
2024-09-20 19:50:22,884 - DEBUG - Do not have enough data to verify VN in agent
2024-09-20 19:50:22,890 - DEBUG - VRF ids for VN ctest-vn-23441699: {}
2024-09-20 19:50:22,956 - DEBUG - Services list from nova: [