2024-10-19 18:25:38,721 - INFO - Domain Default found not creating
2024-10-19 18:25:38,903 - INFO - Project ctest-TestBasicPolicy-42835257 not found, creating it
2024-10-19 18:25:39,435 - INFO - Created Project:ctest-TestBasicPolicy-42835257, ID : 383eb63a-e155-47d8-af47-81c72c492956
2024-10-19 18:25:42,582 - INFO - ================================================================================
2024-10-19 18:25:42,582 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-19 18:25:42,582 - 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-19 18:25:42,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.8': '0'}} with
2024-10-19 18:25:42,855 - INFO - Initial checks done. Running the testcase now
2024-10-19 18:25:42,855 - INFO -
2024-10-19 18:25:44,701 - DEBUG - Response for create_network : {'network': {'id': 'f7e75c80-faac-4dd7-9106-b9bd93e0432b', 'name': 'ctest-vn-26223864', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-26223864'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 18:25:44,947 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f1b1b84-36e7-4605-92bb-d71f64c5291b', 'name': '', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'network_id': 'f7e75c80-faac-4dd7-9106-b9bd93e0432b', 'ip_version': 4, 'cidr': '101.60.41.0/26', 'allocation_pools': [{'start': '101.60.41.2', 'end': '101.60.41.62'}], 'gateway_ip': '101.60.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.60.41.2', 'tags': [], 'project_id': '383eb63ae15547d8af4781c72c492956'}}
2024-10-19 18:25:44,973 - INFO - Created VN ctest-vn-26223864
2024-10-19 18:25:45,034 - DEBUG - VN ctest-vn-26223864 UUID is f7e75c80-faac-4dd7-9106-b9bd93e0432b
2024-10-19 18:25:45,393 - DEBUG - Response for create_network : {'network': {'id': '6763408f-66cb-4f2f-97a3-232397eda8fe', 'name': 'ctest-vn-60345186', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-60345186'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 18:25:45,573 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a29258c4-5b75-45a4-8655-6128afe46d22', 'name': '', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'network_id': '6763408f-66cb-4f2f-97a3-232397eda8fe', 'ip_version': 4, 'cidr': '59.101.224.128/26', 'allocation_pools': [{'start': '59.101.224.130', 'end': '59.101.224.190'}], 'gateway_ip': '59.101.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.101.224.130', 'tags': [], 'project_id': '383eb63ae15547d8af4781c72c492956'}}
2024-10-19 18:25:45,605 - INFO - Created VN ctest-vn-60345186
2024-10-19 18:25:45,670 - DEBUG - VN ctest-vn-60345186 UUID is 6763408f-66cb-4f2f-97a3-232397eda8fe
2024-10-19 18:25:45,819 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864, 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-42835257:ctest-vn-60345186, 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-19 18:25:46,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7e75c80-faac-4dd7-9106-b9bd93e0432b', 'name': 'ctest-vn-26223864', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f1b1b84-36e7-4605-92bb-d71f64c5291b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-26223864'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759']], 'subnet_ipam': [{'subnet_cidr': '101.60.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 18:25:46,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6763408f-66cb-4f2f-97a3-232397eda8fe', 'name': 'ctest-vn-60345186', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a29258c4-5b75-45a4-8655-6128afe46d22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-60345186'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759']], 'subnet_ipam': [{'subnet_cidr': '59.101.224.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 18:25:46,646 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-19 18:25:47,185 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-19 18:25:47,247 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5
2024-10-19 18:25:47,267 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956
2024-10-19 18:25:47,389 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b
2024-10-19 18:25:47,409 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b
2024-10-19 18:25:47,429 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc
2024-10-19 18:25:47,442 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc
2024-10-19 18:25:47,454 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/80081aa3-1d17-4461-a07e-650a5227d1d4
2024-10-19 18:25:47,469 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 18:25:47,469 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b
2024-10-19 18:25:47,489 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc
2024-10-19 18:25:47,521 - INFO - Verified VN network id 7 for VN f7e75c80-faac-4dd7-9106-b9bd93e0432b
2024-10-19 18:25:47,521 - INFO - Verifications in API Server for VN ctest-vn-26223864 passed
2024-10-19 18:25:47,522 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b
2024-10-19 18:25:47,540 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc
2024-10-19 18:25:47,551 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc
2024-10-19 18:25:47,562 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/80081aa3-1d17-4461-a07e-650a5227d1d4
2024-10-19 18:25:47,579 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42835257', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17863348156019527127', 'uuid-lslong': '10450244209240720171'}, 'enable': 'true', 'created': '2024-10-19T18:25:44', 'last-modified': '2024-10-19T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443283'}
2024-10-19 18:25:47,588 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 18:25:47,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26223864 passed
2024-10-19 18:25:47,588 - DEBUG - ====Verifying policy data for ctest-vn-26223864 in API_Server ======
2024-10-19 18:25:47,588 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-19 18:25:47,601 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5
2024-10-19 18:25:47,627 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956
2024-10-19 18:25:47,719 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b
2024-10-19 18:25:47,738 - DEBUG - ==>Verifying data for policy with id: 032383c4-ba3e-45a9-af4b-354959bb97a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759']
2024-10-19 18:25:47,738 - INFO - VN ctest-vn-26223864 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 18:25:47,738 - DEBUG - Verifying the vn in opserver
2024-10-19 18:25:47,738 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864 virtual network link through opserver 10.0.0.37
2024-10-19 18:25:47,738 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-10-19 18:25:48,096 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-10-19 18:25:48,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864?flat'}
2024-10-19 18:25:48,187 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864 is found in opserver
2024-10-19 18:25:48,201 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 18:25:48,208 - DEBUG - VRF ids for VN ctest-vn-26223864: {}
2024-10-19 18:25:48,208 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-19 18:25:48,215 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5
2024-10-19 18:25:48,235 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956
2024-10-19 18:25:48,336 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe
2024-10-19 18:25:48,358 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe
2024-10-19 18:25:48,375 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005
2024-10-19 18:25:48,388 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005
2024-10-19 18:25:48,403 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/acd4ee3b-b609-40bc-a7ab-4ef36b0f08c2
2024-10-19 18:25:48,427 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 18:25:48,428 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe
2024-10-19 18:25:48,449 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005
2024-10-19 18:25:48,479 - INFO - Verified VN network id 8 for VN 6763408f-66cb-4f2f-97a3-232397eda8fe
2024-10-19 18:25:48,479 - INFO - Verifications in API Server for VN ctest-vn-60345186 passed
2024-10-19 18:25:48,479 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe
2024-10-19 18:25:48,496 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005
2024-10-19 18:25:48,510 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005
2024-10-19 18:25:48,532 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/acd4ee3b-b609-40bc-a7ab-4ef36b0f08c2
2024-10-19 18:25:48,552 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42835257', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7449869193250033455', 'uuid-lslong': '10926615756710717694'}, 'enable': 'true', 'created': '2024-10-19T18:25:45', 'last-modified': '2024-10-19T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.115518'}
2024-10-19 18:25:48,562 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 18:25:48,562 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60345186 passed
2024-10-19 18:25:48,563 - DEBUG - ====Verifying policy data for ctest-vn-60345186 in API_Server ======
2024-10-19 18:25:48,563 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-19 18:25:48,573 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5
2024-10-19 18:25:48,590 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956
2024-10-19 18:25:48,756 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe
2024-10-19 18:25:48,793 - DEBUG - ==>Verifying data for policy with id: 032383c4-ba3e-45a9-af4b-354959bb97a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759']
2024-10-19 18:25:48,794 - INFO - VN ctest-vn-60345186 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 18:25:48,794 - DEBUG - Verifying the vn in opserver
2024-10-19 18:25:48,794 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186 virtual network link through opserver 10.0.0.37
2024-10-19 18:25:48,794 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-10-19 18:25:48,810 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186?flat'}
2024-10-19 18:25:48,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186 is found in opserver
2024-10-19 18:25:48,827 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 18:25:48,835 - DEBUG - VRF ids for VN ctest-vn-60345186: {}
2024-10-19 18:25:48,911 - DEBUG - Services list from nova: [