2024-10-18 21:44:48,709 - INFO - Domain Default found not creating
2024-10-18 21:44:48,887 - INFO - Project ctest-TestBasicPolicy-48513884 not found, creating it
2024-10-18 21:44:49,382 - INFO - Created Project:ctest-TestBasicPolicy-48513884, ID : a995a1bf-fd66-4678-ab15-1b31deaae420
2024-10-18 21:44:51,215 - INFO - ================================================================================
2024-10-18 21:44:51,215 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-18 21:44:51,215 - 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-18 21:44:51,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.18': '0'}} with
2024-10-18 21:44:51,469 - INFO - Initial checks done. Running the testcase now
2024-10-18 21:44:51,469 - INFO -
2024-10-18 21:44:52,112 - DEBUG - Response for create_network : {'network': {'id': 'f7b24fc5-971b-487b-9bfa-29b69195afd5', 'name': 'ctest-vn-83857381', 'tenant_id': 'a995a1bffd664678ab151b31deaae420', 'project_id': 'a995a1bffd664678ab151b31deaae420', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-vn-83857381'], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:44:52,275 - DEBUG - Response for create_subnet : {'subnet': {'id': '43125dfb-cc02-4752-8c54-2a7b3ce2a6e2', 'name': '', 'tenant_id': 'a995a1bffd664678ab151b31deaae420', 'network_id': 'f7b24fc5-971b-487b-9bfa-29b69195afd5', 'ip_version': 4, 'cidr': '111.9.31.64/26', 'allocation_pools': [{'start': '111.9.31.66', 'end': '111.9.31.126'}], 'gateway_ip': '111.9.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.9.31.66', 'tags': [], 'project_id': 'a995a1bffd664678ab151b31deaae420'}}
2024-10-18 21:44:52,298 - INFO - Created VN ctest-vn-83857381
2024-10-18 21:44:52,359 - DEBUG - VN ctest-vn-83857381 UUID is f7b24fc5-971b-487b-9bfa-29b69195afd5
2024-10-18 21:44:52,702 - DEBUG - Response for create_network : {'network': {'id': '0a226ceb-8232-4b54-a3af-c2fb579a3d06', 'name': 'ctest-vn-46061418', 'tenant_id': 'a995a1bffd664678ab151b31deaae420', 'project_id': 'a995a1bffd664678ab151b31deaae420', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-vn-46061418'], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:44:53,148 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4d8ab1b-3cbf-40ce-9c69-6140339aaa5c', 'name': '', 'tenant_id': 'a995a1bffd664678ab151b31deaae420', 'network_id': '0a226ceb-8232-4b54-a3af-c2fb579a3d06', 'ip_version': 4, 'cidr': '13.6.125.0/26', 'allocation_pools': [{'start': '13.6.125.2', 'end': '13.6.125.62'}], 'gateway_ip': '13.6.125.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.6.125.2', 'tags': [], 'project_id': 'a995a1bffd664678ab151b31deaae420'}}
2024-10-18 21:44:53,172 - INFO - Created VN ctest-vn-46061418
2024-10-18 21:44:53,230 - DEBUG - VN ctest-vn-46061418 UUID is 0a226ceb-8232-4b54-a3af-c2fb579a3d06
2024-10-18 21:44:53,365 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-83857381, 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-48513884:ctest-vn-46061418, 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-18 21:44:53,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7b24fc5-971b-487b-9bfa-29b69195afd5', 'name': 'ctest-vn-83857381', 'tenant_id': 'a995a1bffd664678ab151b31deaae420', 'project_id': 'a995a1bffd664678ab151b31deaae420', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43125dfb-cc02-4752-8c54-2a7b3ce2a6e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-vn-83857381'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-policy-allow-all-95042318']], 'subnet_ipam': [{'subnet_cidr': '111.9.31.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:44:53,999 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a226ceb-8232-4b54-a3af-c2fb579a3d06', 'name': 'ctest-vn-46061418', 'tenant_id': 'a995a1bffd664678ab151b31deaae420', 'project_id': 'a995a1bffd664678ab151b31deaae420', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4d8ab1b-3cbf-40ce-9c69-6140339aaa5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-vn-46061418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-policy-allow-all-95042318']], 'subnet_ipam': [{'subnet_cidr': '13.6.125.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-18 21:44:54,175 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-18 21:44:54,517 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-18 21:44:54,557 - DEBUG - Requesting: http://10.0.0.32:8082/domain/6ea3b24a-afc8-4889-9241-9742b61e5bd0
2024-10-18 21:44:54,574 - DEBUG - Requesting: http://10.0.0.32:8082/project/a995a1bf-fd66-4678-ab15-1b31deaae420
2024-10-18 21:44:54,658 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f7b24fc5-971b-487b-9bfa-29b69195afd5
2024-10-18 21:44:54,676 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f7b24fc5-971b-487b-9bfa-29b69195afd5
2024-10-18 21:44:54,694 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c25fe04c-0286-46a4-ada4-83f7adf3ab99
2024-10-18 21:44:54,704 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c25fe04c-0286-46a4-ada4-83f7adf3ab99
2024-10-18 21:44:54,713 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/8845e37a-f322-4793-a6c9-6966aa7af41f
2024-10-18 21:44:54,722 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-18 21:44:54,722 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f7b24fc5-971b-487b-9bfa-29b69195afd5
2024-10-18 21:44:54,736 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c25fe04c-0286-46a4-ada4-83f7adf3ab99
2024-10-18 21:44:54,758 - INFO - Verified VN network id 9 for VN f7b24fc5-971b-487b-9bfa-29b69195afd5
2024-10-18 21:44:54,758 - INFO - Verifications in API Server for VN ctest-vn-83857381 passed
2024-10-18 21:44:54,758 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f7b24fc5-971b-487b-9bfa-29b69195afd5
2024-10-18 21:44:54,774 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c25fe04c-0286-46a4-ada4-83f7adf3ab99
2024-10-18 21:44:54,784 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c25fe04c-0286-46a4-ada4-83f7adf3ab99
2024-10-18 21:44:54,793 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/8845e37a-f322-4793-a6c9-6966aa7af41f
2024-10-18 21:44:54,809 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-83857381', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48513884', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17848415983284996219', 'uuid-lslong': '11239341684159786965'}, 'enable': 'true', 'created': '2024-10-18T21:44:52', 'last-modified': '2024-10-18T21:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.143402'}
2024-10-18 21:44:54,816 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-18 21:44:54,816 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83857381 passed
2024-10-18 21:44:54,817 - DEBUG - ====Verifying policy data for ctest-vn-83857381 in API_Server ======
2024-10-18 21:44:54,817 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-18 21:44:54,823 - DEBUG - Requesting: http://10.0.0.32:8082/domain/6ea3b24a-afc8-4889-9241-9742b61e5bd0
2024-10-18 21:44:54,837 - DEBUG - Requesting: http://10.0.0.32:8082/project/a995a1bf-fd66-4678-ab15-1b31deaae420
2024-10-18 21:44:54,924 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f7b24fc5-971b-487b-9bfa-29b69195afd5
2024-10-18 21:44:54,940 - DEBUG - ==>Verifying data for policy with id: ebf2bb96-5168-44a1-aca0-2ff3cf2aedc9, fqn: ['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-policy-allow-all-95042318']
2024-10-18 21:44:54,940 - INFO - VN ctest-vn-83857381 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-18 21:44:54,940 - DEBUG - Verifying the vn in opserver
2024-10-18 21:44:54,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-83857381 virtual network link through opserver 10.0.0.32
2024-10-18 21:44:54,940 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-18 21:44:55,280 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-18 21:44:55,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-83857381', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-83857381?flat'}
2024-10-18 21:44:55,679 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-83857381 is found in opserver
2024-10-18 21:44:55,693 - DEBUG - Do not have enough data to verify VN in agent
2024-10-18 21:44:55,700 - DEBUG - VRF ids for VN ctest-vn-83857381: {}
2024-10-18 21:44:55,700 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-18 21:44:55,706 - DEBUG - Requesting: http://10.0.0.32:8082/domain/6ea3b24a-afc8-4889-9241-9742b61e5bd0
2024-10-18 21:44:55,722 - DEBUG - Requesting: http://10.0.0.32:8082/project/a995a1bf-fd66-4678-ab15-1b31deaae420
2024-10-18 21:44:55,816 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0a226ceb-8232-4b54-a3af-c2fb579a3d06
2024-10-18 21:44:55,835 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0a226ceb-8232-4b54-a3af-c2fb579a3d06
2024-10-18 21:44:55,851 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d824d704-f756-49a5-8e2e-0dbcc51692a1
2024-10-18 21:44:55,861 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d824d704-f756-49a5-8e2e-0dbcc51692a1
2024-10-18 21:44:55,872 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/6f40b831-6a78-41c1-b6f4-be4a4b3037ad
2024-10-18 21:44:55,882 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-18 21:44:55,882 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0a226ceb-8232-4b54-a3af-c2fb579a3d06
2024-10-18 21:44:55,899 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d824d704-f756-49a5-8e2e-0dbcc51692a1
2024-10-18 21:44:55,921 - INFO - Verified VN network id 10 for VN 0a226ceb-8232-4b54-a3af-c2fb579a3d06
2024-10-18 21:44:55,921 - INFO - Verifications in API Server for VN ctest-vn-46061418 passed
2024-10-18 21:44:55,922 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0a226ceb-8232-4b54-a3af-c2fb579a3d06
2024-10-18 21:44:55,938 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d824d704-f756-49a5-8e2e-0dbcc51692a1
2024-10-18 21:44:55,948 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/d824d704-f756-49a5-8e2e-0dbcc51692a1
2024-10-18 21:44:55,957 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/6f40b831-6a78-41c1-b6f4-be4a4b3037ad
2024-10-18 21:44:55,971 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-46061418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48513884', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '730265848344890196', 'uuid-lslong': '11794860333868924166'}, 'enable': 'true', 'created': '2024-10-18T21:44:52', 'last-modified': '2024-10-18T21:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.045167'}
2024-10-18 21:44:55,979 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-18 21:44:55,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46061418 passed
2024-10-18 21:44:55,979 - DEBUG - ====Verifying policy data for ctest-vn-46061418 in API_Server ======
2024-10-18 21:44:55,979 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-18 21:44:55,986 - DEBUG - Requesting: http://10.0.0.32:8082/domain/6ea3b24a-afc8-4889-9241-9742b61e5bd0
2024-10-18 21:44:56,001 - DEBUG - Requesting: http://10.0.0.32:8082/project/a995a1bf-fd66-4678-ab15-1b31deaae420
2024-10-18 21:44:56,094 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0a226ceb-8232-4b54-a3af-c2fb579a3d06
2024-10-18 21:44:56,112 - DEBUG - ==>Verifying data for policy with id: ebf2bb96-5168-44a1-aca0-2ff3cf2aedc9, fqn: ['default-domain', 'ctest-TestBasicPolicy-48513884', 'ctest-policy-allow-all-95042318']
2024-10-18 21:44:56,112 - INFO - VN ctest-vn-46061418 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-18 21:44:56,112 - DEBUG - Verifying the vn in opserver
2024-10-18 21:44:56,112 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-46061418 virtual network link through opserver 10.0.0.32
2024-10-18 21:44:56,112 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-18 21:44:56,127 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-46061418', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-46061418?flat'}
2024-10-18 21:44:56,127 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48513884:ctest-vn-46061418 is found in opserver
2024-10-18 21:44:56,141 - DEBUG - Do not have enough data to verify VN in agent
2024-10-18 21:44:56,147 - DEBUG - VRF ids for VN ctest-vn-46061418: {}
2024-10-18 21:44:56,217 - DEBUG - Services list from nova: [