2024-11-10 20:50:16,192 - INFO - Domain Default found not creating
2024-11-10 20:50:16,387 - INFO - Project ctest-TestBasicPolicy-37155368 not found, creating it
2024-11-10 20:50:16,909 - INFO - Created Project:ctest-TestBasicPolicy-37155368, ID : 46d9543c-b45b-42cb-aedf-2134ca9d21ad
2024-11-10 20:50:18,610 - INFO - ================================================================================
2024-11-10 20:50:18,610 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 20:50:18,611 - 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 20:50:18,883 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.10': '0'}} with
2024-11-10 20:50:18,883 - INFO - Initial checks done. Running the testcase now
2024-11-10 20:50:18,883 - INFO -
2024-11-10 20:50:19,546 - DEBUG - Response for create_network : {'network': {'id': '54b5efa2-64a2-4653-b1e5-d24e94ef8b50', 'name': 'ctest-vn-01325653', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-01325653'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:50:19,759 - DEBUG - Response for create_subnet : {'subnet': {'id': '89286294-1357-4edb-813a-51eb84a7b977', 'name': '', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'network_id': '54b5efa2-64a2-4653-b1e5-d24e94ef8b50', 'ip_version': 4, 'cidr': '92.128.212.128/26', 'allocation_pools': [{'start': '92.128.212.130', 'end': '92.128.212.190'}], 'gateway_ip': '92.128.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.128.212.130', 'tags': [], 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad'}}
2024-11-10 20:50:19,788 - INFO - Created VN ctest-vn-01325653
2024-11-10 20:50:19,853 - DEBUG - VN ctest-vn-01325653 UUID is 54b5efa2-64a2-4653-b1e5-d24e94ef8b50
2024-11-10 20:50:20,224 - DEBUG - Response for create_network : {'network': {'id': '3d720138-a4bf-425f-9661-242fe0f60259', 'name': 'ctest-vn-10573430', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-10573430'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:50:20,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '06000661-1576-4263-ba18-4cbac39a6896', 'name': '', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'network_id': '3d720138-a4bf-425f-9661-242fe0f60259', 'ip_version': 4, 'cidr': '53.253.10.128/26', 'allocation_pools': [{'start': '53.253.10.130', 'end': '53.253.10.190'}], 'gateway_ip': '53.253.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.253.10.130', 'tags': [], 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad'}}
2024-11-10 20:50:20,478 - INFO - Created VN ctest-vn-10573430
2024-11-10 20:50:20,540 - DEBUG - VN ctest-vn-10573430 UUID is 3d720138-a4bf-425f-9661-242fe0f60259
2024-11-10 20:50:20,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653, 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-37155368:ctest-vn-10573430, 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 20:50:21,053 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54b5efa2-64a2-4653-b1e5-d24e94ef8b50', 'name': 'ctest-vn-01325653', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89286294-1357-4edb-813a-51eb84a7b977'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-01325653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790']], 'subnet_ipam': [{'subnet_cidr': '92.128.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:50:21,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d720138-a4bf-425f-9661-242fe0f60259', 'name': 'ctest-vn-10573430', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06000661-1576-4263-ba18-4cbac39a6896'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-10573430'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790']], 'subnet_ipam': [{'subnet_cidr': '53.253.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 20:50:21,476 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 20:50:21,795 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 20:50:21,833 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5
2024-11-10 20:50:21,853 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad
2024-11-10 20:50:21,953 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50
2024-11-10 20:50:21,976 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50
2024-11-10 20:50:22,000 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9
2024-11-10 20:50:22,017 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9
2024-11-10 20:50:22,035 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/eef4845f-3354-4f5a-9fc3-0f38fb354518
2024-11-10 20:50:22,048 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 20:50:22,048 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50
2024-11-10 20:50:22,070 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9
2024-11-10 20:50:22,097 - INFO - Verified VN network id 8 for VN 54b5efa2-64a2-4653-b1e5-d24e94ef8b50
2024-11-10 20:50:22,097 - INFO - Verifications in API Server for VN ctest-vn-01325653 passed
2024-11-10 20:50:22,097 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50
2024-11-10 20:50:22,116 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9
2024-11-10 20:50:22,129 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9
2024-11-10 20:50:22,142 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/eef4845f-3354-4f5a-9fc3-0f38fb354518
2024-11-10 20:50:22,159 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37155368', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6104048350722672211', 'uuid-lslong': '12818883149327993680'}, 'enable': 'true', 'created': '2024-11-10T20:50:19', 'last-modified': '2024-11-10T20:50:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.150799'}
2024-11-10 20:50:22,167 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 20:50:22,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01325653 passed
2024-11-10 20:50:22,168 - DEBUG - ====Verifying policy data for ctest-vn-01325653 in API_Server ======
2024-11-10 20:50:22,168 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 20:50:22,176 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5
2024-11-10 20:50:22,193 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad
2024-11-10 20:50:22,282 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50
2024-11-10 20:50:22,301 - DEBUG - ==>Verifying data for policy with id: b7c55a19-18b0-49a2-b99c-bf82480937f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790']
2024-11-10 20:50:22,301 - INFO - VN ctest-vn-01325653 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 20:50:22,301 - DEBUG - Verifying the vn in opserver
2024-11-10 20:50:22,301 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653 virtual network link through opserver 10.0.0.29
2024-11-10 20:50:22,301 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-10 20:50:22,605 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-10 20:50:22,684 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653?flat'}
2024-11-10 20:50:22,684 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653 is found in opserver
2024-11-10 20:50:22,698 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 20:50:22,706 - DEBUG - VRF ids for VN ctest-vn-01325653: {}
2024-11-10 20:50:22,706 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 20:50:22,714 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5
2024-11-10 20:50:22,732 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad
2024-11-10 20:50:22,829 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259
2024-11-10 20:50:22,857 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259
2024-11-10 20:50:22,880 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246
2024-11-10 20:50:22,896 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246
2024-11-10 20:50:22,908 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/0e5b2d73-4d4d-4a33-875a-0c9c711ad6ee
2024-11-10 20:50:22,923 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 20:50:22,924 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259
2024-11-10 20:50:22,940 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246
2024-11-10 20:50:22,973 - INFO - Verified VN network id 9 for VN 3d720138-a4bf-425f-9661-242fe0f60259
2024-11-10 20:50:22,973 - INFO - Verifications in API Server for VN ctest-vn-10573430 passed
2024-11-10 20:50:22,973 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259
2024-11-10 20:50:22,994 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246
2024-11-10 20:50:23,008 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246
2024-11-10 20:50:23,021 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/0e5b2d73-4d4d-4a33-875a-0c9c711ad6ee
2024-11-10 20:50:23,043 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37155368', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4427602726452413023', 'uuid-lslong': '10835981966486405721'}, 'enable': 'true', 'created': '2024-11-10T20:50:20', 'last-modified': '2024-11-10T20:50:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.775626'}
2024-11-10 20:50:23,052 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 20:50:23,052 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10573430 passed
2024-11-10 20:50:23,053 - DEBUG - ====Verifying policy data for ctest-vn-10573430 in API_Server ======
2024-11-10 20:50:23,053 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 20:50:23,062 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5
2024-11-10 20:50:23,082 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad
2024-11-10 20:50:23,180 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259
2024-11-10 20:50:23,196 - DEBUG - ==>Verifying data for policy with id: b7c55a19-18b0-49a2-b99c-bf82480937f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790']
2024-11-10 20:50:23,196 - INFO - VN ctest-vn-10573430 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 20:50:23,196 - DEBUG - Verifying the vn in opserver
2024-11-10 20:50:23,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430 virtual network link through opserver 10.0.0.29
2024-11-10 20:50:23,198 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-10 20:50:23,212 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430?flat'}
2024-11-10 20:50:23,212 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430 is found in opserver
2024-11-10 20:50:23,226 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 20:50:23,233 - DEBUG - VRF ids for VN ctest-vn-10573430: {}
2024-11-10 20:50:23,298 - DEBUG - Services list from nova: [