2024-08-26 13:06:33,448 - INFO - Domain Default found not creating
2024-08-26 13:06:33,658 - INFO - Project ctest-TestBasicPolicy-03470235 not found, creating it
2024-08-26 13:06:34,176 - INFO - Created Project:ctest-TestBasicPolicy-03470235, ID : 40ba9774-da25-40db-aad5-c2c86ed3b3ce
2024-08-26 13:06:35,823 - INFO - ================================================================================
2024-08-26 13:06:35,824 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 13:06:35,824 - 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-08-26 13:06:36,090 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.6': '0'}} with
2024-08-26 13:06:36,090 - INFO - Initial checks done. Running the testcase now
2024-08-26 13:06:36,090 - INFO -
2024-08-26 13:06:36,754 - DEBUG - Response for create_network : {'network': {'id': '39931958-78e4-4bce-a78d-7aca6ede72a7', 'name': 'ctest-vn-94753954', 'tenant_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'project_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-vn-94753954'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:06:36,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a581515-35c2-4cee-aad5-1d1103289d4b', 'name': '', 'tenant_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'network_id': '39931958-78e4-4bce-a78d-7aca6ede72a7', 'ip_version': 4, 'cidr': '56.42.253.64/26', 'allocation_pools': [{'start': '56.42.253.66', 'end': '56.42.253.126'}], 'gateway_ip': '56.42.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.42.253.66', 'tags': [], 'project_id': '40ba9774da2540dbaad5c2c86ed3b3ce'}}
2024-08-26 13:06:37,009 - INFO - Created VN ctest-vn-94753954
2024-08-26 13:06:37,065 - DEBUG - VN ctest-vn-94753954 UUID is 39931958-78e4-4bce-a78d-7aca6ede72a7
2024-08-26 13:06:37,399 - DEBUG - Response for create_network : {'network': {'id': '7aec8fde-b587-41ed-9c59-7a4d83612bd0', 'name': 'ctest-vn-54007620', 'tenant_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'project_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-vn-54007620'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:06:37,617 - DEBUG - Response for create_subnet : {'subnet': {'id': '888eb34a-f864-4f71-a732-2aab36f0067e', 'name': '', 'tenant_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'network_id': '7aec8fde-b587-41ed-9c59-7a4d83612bd0', 'ip_version': 4, 'cidr': '119.169.47.64/26', 'allocation_pools': [{'start': '119.169.47.66', 'end': '119.169.47.126'}], 'gateway_ip': '119.169.47.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.169.47.66', 'tags': [], 'project_id': '40ba9774da2540dbaad5c2c86ed3b3ce'}}
2024-08-26 13:06:37,638 - INFO - Created VN ctest-vn-54007620
2024-08-26 13:06:37,692 - DEBUG - VN ctest-vn-54007620 UUID is 7aec8fde-b587-41ed-9c59-7a4d83612bd0
2024-08-26 13:06:37,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-94753954, 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-03470235:ctest-vn-54007620, 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-08-26 13:06:38,151 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39931958-78e4-4bce-a78d-7aca6ede72a7', 'name': 'ctest-vn-94753954', 'tenant_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'project_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a581515-35c2-4cee-aad5-1d1103289d4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-vn-94753954'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-policy-allow-all-41351601']], 'subnet_ipam': [{'subnet_cidr': '56.42.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:06:38,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7aec8fde-b587-41ed-9c59-7a4d83612bd0', 'name': 'ctest-vn-54007620', 'tenant_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'project_id': '40ba9774da2540dbaad5c2c86ed3b3ce', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['888eb34a-f864-4f71-a732-2aab36f0067e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-vn-54007620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-policy-allow-all-41351601']], 'subnet_ipam': [{'subnet_cidr': '119.169.47.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:06:38,612 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-08-26 13:06:38,914 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-08-26 13:06:38,950 - DEBUG - Requesting: http://10.0.0.32:8082/domain/7ac0576b-bc7f-4e14-be29-9976d3ec1d12
2024-08-26 13:06:38,983 - DEBUG - Requesting: http://10.0.0.32:8082/project/40ba9774-da25-40db-aad5-c2c86ed3b3ce
2024-08-26 13:06:39,063 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/39931958-78e4-4bce-a78d-7aca6ede72a7
2024-08-26 13:06:39,074 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/39931958-78e4-4bce-a78d-7aca6ede72a7
2024-08-26 13:06:39,084 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/497731ab-5e4b-4fa8-a4d5-f737c46804e8
2024-08-26 13:06:39,092 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/497731ab-5e4b-4fa8-a4d5-f737c46804e8
2024-08-26 13:06:39,101 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/424a3c4f-5831-47fd-8524-6be67d05b894
2024-08-26 13:06:39,109 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 13:06:39,109 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/39931958-78e4-4bce-a78d-7aca6ede72a7
2024-08-26 13:06:39,118 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/497731ab-5e4b-4fa8-a4d5-f737c46804e8
2024-08-26 13:06:39,136 - INFO - Verified VN network id 8 for VN 39931958-78e4-4bce-a78d-7aca6ede72a7
2024-08-26 13:06:39,136 - INFO - Verifications in API Server for VN ctest-vn-94753954 passed
2024-08-26 13:06:39,136 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/39931958-78e4-4bce-a78d-7aca6ede72a7
2024-08-26 13:06:39,149 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/497731ab-5e4b-4fa8-a4d5-f737c46804e8
2024-08-26 13:06:39,157 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/497731ab-5e4b-4fa8-a4d5-f737c46804e8
2024-08-26 13:06:39,165 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/424a3c4f-5831-47fd-8524-6be67d05b894
2024-08-26 13:06:39,183 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-94753954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03470235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4148687549514402766', 'uuid-lslong': '12073441185912222375'}, 'enable': 'true', 'created': '2024-08-26T13:06:36', 'last-modified': '2024-08-26T13:06:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.060410'}
2024-08-26 13:06:39,191 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 13:06:39,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94753954 passed
2024-08-26 13:06:39,192 - DEBUG - ====Verifying policy data for ctest-vn-94753954 in API_Server ======
2024-08-26 13:06:39,192 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-08-26 13:06:39,200 - DEBUG - Requesting: http://10.0.0.32:8082/domain/7ac0576b-bc7f-4e14-be29-9976d3ec1d12
2024-08-26 13:06:39,218 - DEBUG - Requesting: http://10.0.0.32:8082/project/40ba9774-da25-40db-aad5-c2c86ed3b3ce
2024-08-26 13:06:39,293 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/39931958-78e4-4bce-a78d-7aca6ede72a7
2024-08-26 13:06:39,303 - DEBUG - ==>Verifying data for policy with id: a168778e-94e8-47b3-95f1-96b990b728a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-policy-allow-all-41351601']
2024-08-26 13:06:39,303 - INFO - VN ctest-vn-94753954 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 13:06:39,303 - DEBUG - Verifying the vn in opserver
2024-08-26 13:06:39,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-94753954 virtual network link through opserver 10.0.0.32
2024-08-26 13:06:39,303 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-08-26 13:06:39,606 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-08-26 13:06:39,683 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-94753954', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-94753954?flat'}
2024-08-26 13:06:39,683 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-94753954 is found in opserver
2024-08-26 13:06:39,697 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 13:06:39,703 - DEBUG - VRF ids for VN ctest-vn-94753954: {}
2024-08-26 13:06:39,703 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-08-26 13:06:39,710 - DEBUG - Requesting: http://10.0.0.32:8082/domain/7ac0576b-bc7f-4e14-be29-9976d3ec1d12
2024-08-26 13:06:39,726 - DEBUG - Requesting: http://10.0.0.32:8082/project/40ba9774-da25-40db-aad5-c2c86ed3b3ce
2024-08-26 13:06:39,801 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7aec8fde-b587-41ed-9c59-7a4d83612bd0
2024-08-26 13:06:39,815 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7aec8fde-b587-41ed-9c59-7a4d83612bd0
2024-08-26 13:06:39,827 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4df03e52-e5c2-4b1a-9feb-9bee81da55f0
2024-08-26 13:06:39,837 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4df03e52-e5c2-4b1a-9feb-9bee81da55f0
2024-08-26 13:06:39,845 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/6a429a7a-6a0e-4099-87e8-661fdb6d2cda
2024-08-26 13:06:39,853 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 13:06:39,853 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7aec8fde-b587-41ed-9c59-7a4d83612bd0
2024-08-26 13:06:39,863 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4df03e52-e5c2-4b1a-9feb-9bee81da55f0
2024-08-26 13:06:39,878 - INFO - Verified VN network id 9 for VN 7aec8fde-b587-41ed-9c59-7a4d83612bd0
2024-08-26 13:06:39,878 - INFO - Verifications in API Server for VN ctest-vn-54007620 passed
2024-08-26 13:06:39,878 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7aec8fde-b587-41ed-9c59-7a4d83612bd0
2024-08-26 13:06:39,889 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4df03e52-e5c2-4b1a-9feb-9bee81da55f0
2024-08-26 13:06:39,898 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4df03e52-e5c2-4b1a-9feb-9bee81da55f0
2024-08-26 13:06:39,906 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/6a429a7a-6a0e-4099-87e8-661fdb6d2cda
2024-08-26 13:06:39,923 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-54007620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03470235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8857612753821975021', 'uuid-lslong': '11266170416179260368'}, 'enable': 'true', 'created': '2024-08-26T13:06:37', 'last-modified': '2024-08-26T13:06:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.535026'}
2024-08-26 13:06:39,932 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 13:06:39,932 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54007620 passed
2024-08-26 13:06:39,933 - DEBUG - ====Verifying policy data for ctest-vn-54007620 in API_Server ======
2024-08-26 13:06:39,933 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-08-26 13:06:39,940 - DEBUG - Requesting: http://10.0.0.32:8082/domain/7ac0576b-bc7f-4e14-be29-9976d3ec1d12
2024-08-26 13:06:39,955 - DEBUG - Requesting: http://10.0.0.32:8082/project/40ba9774-da25-40db-aad5-c2c86ed3b3ce
2024-08-26 13:06:40,032 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/7aec8fde-b587-41ed-9c59-7a4d83612bd0
2024-08-26 13:06:40,044 - DEBUG - ==>Verifying data for policy with id: a168778e-94e8-47b3-95f1-96b990b728a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-03470235', 'ctest-policy-allow-all-41351601']
2024-08-26 13:06:40,044 - INFO - VN ctest-vn-54007620 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 13:06:40,044 - DEBUG - Verifying the vn in opserver
2024-08-26 13:06:40,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-54007620 virtual network link through opserver 10.0.0.32
2024-08-26 13:06:40,044 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-08-26 13:06:40,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-54007620', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-54007620?flat'}
2024-08-26 13:06:40,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03470235:ctest-vn-54007620 is found in opserver
2024-08-26 13:06:40,074 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 13:06:40,081 - DEBUG - VRF ids for VN ctest-vn-54007620: {}
2024-08-26 13:06:40,158 - DEBUG - Services list from nova: [