2024-11-13 08:46:22,800 - INFO - Domain Default found not creating
2024-11-13 08:46:22,976 - INFO - Project ctest-TestBasicPolicy-59716791 not found, creating it
2024-11-13 08:46:23,473 - INFO - Created Project:ctest-TestBasicPolicy-59716791, ID : 4ef06351-a5e9-4b03-a177-1049202b7561
2024-11-13 08:46:25,085 - INFO - ================================================================================
2024-11-13 08:46:25,086 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-13 08:46:25,086 - 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-13 08:46:25,355 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.8': '0'}} with
2024-11-13 08:46:25,355 - INFO - Initial checks done. Running the testcase now
2024-11-13 08:46:25,355 - INFO -
2024-11-13 08:46:25,938 - DEBUG - Response for create_network : {'network': {'id': '4d1e1582-1207-4dd0-8657-ebada8d152c3', 'name': 'ctest-vn-16310797', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-16310797'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:46:26,181 - DEBUG - Response for create_subnet : {'subnet': {'id': '56f2b3c7-cb42-4fd5-8de5-ded55a5c8503', 'name': '', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'network_id': '4d1e1582-1207-4dd0-8657-ebada8d152c3', 'ip_version': 4, 'cidr': '19.171.102.0/26', 'allocation_pools': [{'start': '19.171.102.2', 'end': '19.171.102.62'}], 'gateway_ip': '19.171.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.171.102.2', 'tags': [], 'project_id': '4ef06351a5e94b03a1771049202b7561'}}
2024-11-13 08:46:26,201 - INFO - Created VN ctest-vn-16310797
2024-11-13 08:46:26,258 - DEBUG - VN ctest-vn-16310797 UUID is 4d1e1582-1207-4dd0-8657-ebada8d152c3
2024-11-13 08:46:26,574 - DEBUG - Response for create_network : {'network': {'id': '63d9c7cc-047f-4690-b7e6-2d2b23eb7845', 'name': 'ctest-vn-63354150', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-63354150'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:46:26,803 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ce5a6b3-9a21-433f-9c7a-5b168f7c6672', 'name': '', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'network_id': '63d9c7cc-047f-4690-b7e6-2d2b23eb7845', 'ip_version': 4, 'cidr': '30.232.34.192/26', 'allocation_pools': [{'start': '30.232.34.194', 'end': '30.232.34.254'}], 'gateway_ip': '30.232.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.232.34.194', 'tags': [], 'project_id': '4ef06351a5e94b03a1771049202b7561'}}
2024-11-13 08:46:26,822 - INFO - Created VN ctest-vn-63354150
2024-11-13 08:46:26,878 - DEBUG - VN ctest-vn-63354150 UUID is 63d9c7cc-047f-4690-b7e6-2d2b23eb7845
2024-11-13 08:46:27,009 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797, 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-59716791:ctest-vn-63354150, 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-13 08:46:27,329 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d1e1582-1207-4dd0-8657-ebada8d152c3', 'name': 'ctest-vn-16310797', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56f2b3c7-cb42-4fd5-8de5-ded55a5c8503'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-16310797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148']], 'subnet_ipam': [{'subnet_cidr': '19.171.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:46:27,562 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63d9c7cc-047f-4690-b7e6-2d2b23eb7845', 'name': 'ctest-vn-63354150', 'tenant_id': '4ef06351a5e94b03a1771049202b7561', 'project_id': '4ef06351a5e94b03a1771049202b7561', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ce5a6b3-9a21-433f-9c7a-5b168f7c6672'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-vn-63354150'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148']], 'subnet_ipam': [{'subnet_cidr': '30.232.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:46:27,714 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-13 08:46:28,027 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-13 08:46:28,059 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2
2024-11-13 08:46:28,073 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561
2024-11-13 08:46:28,158 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3
2024-11-13 08:46:28,173 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3
2024-11-13 08:46:28,186 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28
2024-11-13 08:46:28,198 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28
2024-11-13 08:46:28,210 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/39fef879-0255-4468-985e-b898d11e0e3f
2024-11-13 08:46:28,218 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 08:46:28,218 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3
2024-11-13 08:46:28,231 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28
2024-11-13 08:46:28,251 - INFO - Verified VN network id 9 for VN 4d1e1582-1207-4dd0-8657-ebada8d152c3
2024-11-13 08:46:28,251 - INFO - Verifications in API Server for VN ctest-vn-16310797 passed
2024-11-13 08:46:28,251 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3
2024-11-13 08:46:28,268 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28
2024-11-13 08:46:28,277 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/c780144a-f790-4c4f-beb9-8576bcde0f28
2024-11-13 08:46:28,285 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/39fef879-0255-4468-985e-b898d11e0e3f
2024-11-13 08:46:28,298 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59716791', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5556902638614171088', 'uuid-lslong': '9680465055150330563'}, 'enable': 'true', 'created': '2024-11-13T08:46:25', 'last-modified': '2024-11-13T08:46:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996683'}
2024-11-13 08:46:28,307 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 08:46:28,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16310797 passed
2024-11-13 08:46:28,307 - DEBUG - ====Verifying policy data for ctest-vn-16310797 in API_Server ======
2024-11-13 08:46:28,308 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-13 08:46:28,313 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2
2024-11-13 08:46:28,325 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561
2024-11-13 08:46:28,402 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4d1e1582-1207-4dd0-8657-ebada8d152c3
2024-11-13 08:46:28,414 - DEBUG - ==>Verifying data for policy with id: f56dd2b2-51a1-4959-b9b4-fa24b05f0467, fqn: ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148']
2024-11-13 08:46:28,414 - INFO - VN ctest-vn-16310797 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 08:46:28,414 - DEBUG - Verifying the vn in opserver
2024-11-13 08:46:28,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797 virtual network link through opserver 10.0.0.34
2024-11-13 08:46:28,415 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-13 08:46:28,718 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-13 08:46:28,778 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797?flat'}
2024-11-13 08:46:28,778 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-16310797 is found in opserver
2024-11-13 08:46:28,789 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 08:46:28,795 - DEBUG - VRF ids for VN ctest-vn-16310797: {}
2024-11-13 08:46:28,795 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-13 08:46:28,805 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2
2024-11-13 08:46:28,819 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561
2024-11-13 08:46:28,901 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845
2024-11-13 08:46:28,917 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845
2024-11-13 08:46:28,930 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a
2024-11-13 08:46:28,939 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a
2024-11-13 08:46:28,948 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/95d88cd8-6e06-486d-abca-e4ad5770c5b6
2024-11-13 08:46:28,955 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 08:46:28,955 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845
2024-11-13 08:46:28,969 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a
2024-11-13 08:46:28,989 - INFO - Verified VN network id 10 for VN 63d9c7cc-047f-4690-b7e6-2d2b23eb7845
2024-11-13 08:46:28,990 - INFO - Verifications in API Server for VN ctest-vn-63354150 passed
2024-11-13 08:46:28,990 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845
2024-11-13 08:46:29,008 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a
2024-11-13 08:46:29,016 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/fce9e8f1-f0fb-4403-9a2e-79afcd13829a
2024-11-13 08:46:29,024 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/95d88cd8-6e06-486d-abca-e4ad5770c5b6
2024-11-13 08:46:29,036 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59716791', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7195001558763783824', 'uuid-lslong': '13251328616893741125'}, 'enable': 'true', 'created': '2024-11-13T08:46:26', 'last-modified': '2024-11-13T08:46:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.499754'}
2024-11-13 08:46:29,042 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 08:46:29,042 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63354150 passed
2024-11-13 08:46:29,042 - DEBUG - ====Verifying policy data for ctest-vn-63354150 in API_Server ======
2024-11-13 08:46:29,043 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-11-13 08:46:29,048 - DEBUG - Requesting: http://10.0.0.34:8082/domain/38ca7913-33ef-44e1-9db8-1383412b81b2
2024-11-13 08:46:29,065 - DEBUG - Requesting: http://10.0.0.34:8082/project/4ef06351-a5e9-4b03-a177-1049202b7561
2024-11-13 08:46:29,153 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/63d9c7cc-047f-4690-b7e6-2d2b23eb7845
2024-11-13 08:46:29,173 - DEBUG - ==>Verifying data for policy with id: f56dd2b2-51a1-4959-b9b4-fa24b05f0467, fqn: ['default-domain', 'ctest-TestBasicPolicy-59716791', 'ctest-policy-allow-all-47517148']
2024-11-13 08:46:29,173 - INFO - VN ctest-vn-63354150 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 08:46:29,173 - DEBUG - Verifying the vn in opserver
2024-11-13 08:46:29,173 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150 virtual network link through opserver 10.0.0.34
2024-11-13 08:46:29,173 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-11-13 08:46:29,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150?flat'}
2024-11-13 08:46:29,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59716791:ctest-vn-63354150 is found in opserver
2024-11-13 08:46:29,198 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 08:46:29,203 - DEBUG - VRF ids for VN ctest-vn-63354150: {}
2024-11-13 08:46:29,266 - DEBUG - Services list from nova: [