2024-11-08 18:51:03,109 - INFO - Domain Default found not creating
2024-11-08 18:51:03,315 - INFO - Project ctest-TestBasicPolicy-18196375 not found, creating it
2024-11-08 18:51:03,851 - INFO - Created Project:ctest-TestBasicPolicy-18196375, ID : 62712bfd-9533-4335-8171-880b472385bb
2024-11-08 18:51:05,549 - INFO - ================================================================================
2024-11-08 18:51:05,550 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 18:51:05,550 - 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-08 18:51:05,821 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.24': '0'}} with
2024-11-08 18:51:05,821 - INFO - Initial checks done. Running the testcase now
2024-11-08 18:51:05,822 - INFO -
2024-11-08 18:51:06,503 - DEBUG - Response for create_network : {'network': {'id': 'fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682', 'name': 'ctest-vn-84536446', 'tenant_id': '62712bfd953343358171880b472385bb', 'project_id': '62712bfd953343358171880b472385bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-vn-84536446'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:51:06,692 - DEBUG - Response for create_subnet : {'subnet': {'id': '68473722-480e-4ab6-8d1c-63c05314eeba', 'name': '', 'tenant_id': '62712bfd953343358171880b472385bb', 'network_id': 'fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682', 'ip_version': 4, 'cidr': '2.209.245.64/26', 'allocation_pools': [{'start': '2.209.245.66', 'end': '2.209.245.126'}], 'gateway_ip': '2.209.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.209.245.66', 'tags': [], 'project_id': '62712bfd953343358171880b472385bb'}}
2024-11-08 18:51:06,716 - INFO - Created VN ctest-vn-84536446
2024-11-08 18:51:06,775 - DEBUG - VN ctest-vn-84536446 UUID is fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682
2024-11-08 18:51:07,168 - DEBUG - Response for create_network : {'network': {'id': '99a5be96-88a3-425e-9a2b-9720a518619a', 'name': 'ctest-vn-38159972', 'tenant_id': '62712bfd953343358171880b472385bb', 'project_id': '62712bfd953343358171880b472385bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-vn-38159972'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:51:07,421 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b7e418c-cbf7-4bd4-b721-aec51daab7b5', 'name': '', 'tenant_id': '62712bfd953343358171880b472385bb', 'network_id': '99a5be96-88a3-425e-9a2b-9720a518619a', 'ip_version': 4, 'cidr': '164.222.175.128/26', 'allocation_pools': [{'start': '164.222.175.130', 'end': '164.222.175.190'}], 'gateway_ip': '164.222.175.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.222.175.130', 'tags': [], 'project_id': '62712bfd953343358171880b472385bb'}}
2024-11-08 18:51:07,451 - INFO - Created VN ctest-vn-38159972
2024-11-08 18:51:07,519 - DEBUG - VN ctest-vn-38159972 UUID is 99a5be96-88a3-425e-9a2b-9720a518619a
2024-11-08 18:51:07,664 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-84536446, 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-18196375:ctest-vn-38159972, 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-08 18:51:08,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682', 'name': 'ctest-vn-84536446', 'tenant_id': '62712bfd953343358171880b472385bb', 'project_id': '62712bfd953343358171880b472385bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68473722-480e-4ab6-8d1c-63c05314eeba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-vn-84536446'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-policy-allow-all-31096461']], 'subnet_ipam': [{'subnet_cidr': '2.209.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:51:08,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99a5be96-88a3-425e-9a2b-9720a518619a', 'name': 'ctest-vn-38159972', 'tenant_id': '62712bfd953343358171880b472385bb', 'project_id': '62712bfd953343358171880b472385bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b7e418c-cbf7-4bd4-b721-aec51daab7b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-vn-38159972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-policy-allow-all-31096461']], 'subnet_ipam': [{'subnet_cidr': '164.222.175.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:51:08,504 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 18:51:08,816 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 18:51:08,866 - DEBUG - Requesting: http://10.0.0.12:8082/domain/deac93db-e4c7-46f0-b024-7d6f99ebbe98
2024-11-08 18:51:08,887 - DEBUG - Requesting: http://10.0.0.12:8082/project/62712bfd-9533-4335-8171-880b472385bb
2024-11-08 18:51:08,997 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682
2024-11-08 18:51:09,022 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682
2024-11-08 18:51:09,044 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcd6a4c7-8a04-4833-be7e-491ce3923502
2024-11-08 18:51:09,060 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcd6a4c7-8a04-4833-be7e-491ce3923502
2024-11-08 18:51:09,080 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/f0448d91-8368-4482-b4f8-3584ceed2682
2024-11-08 18:51:09,092 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 18:51:09,092 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682
2024-11-08 18:51:09,112 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcd6a4c7-8a04-4833-be7e-491ce3923502
2024-11-08 18:51:09,146 - INFO - Verified VN network id 8 for VN fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682
2024-11-08 18:51:09,146 - INFO - Verifications in API Server for VN ctest-vn-84536446 passed
2024-11-08 18:51:09,146 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682
2024-11-08 18:51:09,168 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcd6a4c7-8a04-4833-be7e-491ce3923502
2024-11-08 18:51:09,180 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/dcd6a4c7-8a04-4833-be7e-491ce3923502
2024-11-08 18:51:09,192 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/f0448d91-8368-4482-b4f8-3584ceed2682
2024-11-08 18:51:09,211 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-84536446', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18196375', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18214459257643027768', 'uuid-lslong': '12961865716725032578'}, 'enable': 'true', 'created': '2024-11-08T18:51:06', 'last-modified': '2024-11-08T18:51:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.211735'}
2024-11-08 18:51:09,220 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 18:51:09,220 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84536446 passed
2024-11-08 18:51:09,220 - DEBUG - ====Verifying policy data for ctest-vn-84536446 in API_Server ======
2024-11-08 18:51:09,220 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 18:51:09,229 - DEBUG - Requesting: http://10.0.0.12:8082/domain/deac93db-e4c7-46f0-b024-7d6f99ebbe98
2024-11-08 18:51:09,248 - DEBUG - Requesting: http://10.0.0.12:8082/project/62712bfd-9533-4335-8171-880b472385bb
2024-11-08 18:51:09,346 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/fcc6c230-c3a3-4d38-b3e1-cc31c7b5a682
2024-11-08 18:51:09,366 - DEBUG - ==>Verifying data for policy with id: 44302712-422b-4378-9eea-645021243b0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-policy-allow-all-31096461']
2024-11-08 18:51:09,366 - INFO - VN ctest-vn-84536446 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 18:51:09,367 - DEBUG - Verifying the vn in opserver
2024-11-08 18:51:09,367 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-84536446 virtual network link through opserver 10.0.0.12
2024-11-08 18:51:09,367 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-08 18:51:09,687 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-08 18:51:09,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-84536446', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-84536446?flat'}
2024-11-08 18:51:09,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-84536446 is found in opserver
2024-11-08 18:51:09,796 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 18:51:09,803 - DEBUG - VRF ids for VN ctest-vn-84536446: {}
2024-11-08 18:51:09,803 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 18:51:09,811 - DEBUG - Requesting: http://10.0.0.12:8082/domain/deac93db-e4c7-46f0-b024-7d6f99ebbe98
2024-11-08 18:51:09,828 - DEBUG - Requesting: http://10.0.0.12:8082/project/62712bfd-9533-4335-8171-880b472385bb
2024-11-08 18:51:09,919 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99a5be96-88a3-425e-9a2b-9720a518619a
2024-11-08 18:51:09,948 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99a5be96-88a3-425e-9a2b-9720a518619a
2024-11-08 18:51:09,970 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/73cff73b-43ac-4e5b-877d-0031c47e4b75
2024-11-08 18:51:09,982 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/73cff73b-43ac-4e5b-877d-0031c47e4b75
2024-11-08 18:51:09,994 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2d9e8426-bf96-4aad-8d0a-0d01e0806054
2024-11-08 18:51:10,003 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 18:51:10,003 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99a5be96-88a3-425e-9a2b-9720a518619a
2024-11-08 18:51:10,021 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/73cff73b-43ac-4e5b-877d-0031c47e4b75
2024-11-08 18:51:10,045 - INFO - Verified VN network id 9 for VN 99a5be96-88a3-425e-9a2b-9720a518619a
2024-11-08 18:51:10,045 - INFO - Verifications in API Server for VN ctest-vn-38159972 passed
2024-11-08 18:51:10,045 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99a5be96-88a3-425e-9a2b-9720a518619a
2024-11-08 18:51:10,062 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/73cff73b-43ac-4e5b-877d-0031c47e4b75
2024-11-08 18:51:10,073 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/73cff73b-43ac-4e5b-877d-0031c47e4b75
2024-11-08 18:51:10,085 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2d9e8426-bf96-4aad-8d0a-0d01e0806054
2024-11-08 18:51:10,101 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-38159972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18196375', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11071464812707005022', 'uuid-lslong': '11109139072304046490'}, 'enable': 'true', 'created': '2024-11-08T18:51:07', 'last-modified': '2024-11-08T18:51:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.820542'}
2024-11-08 18:51:10,115 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 18:51:10,115 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38159972 passed
2024-11-08 18:51:10,116 - DEBUG - ====Verifying policy data for ctest-vn-38159972 in API_Server ======
2024-11-08 18:51:10,116 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-08 18:51:10,125 - DEBUG - Requesting: http://10.0.0.12:8082/domain/deac93db-e4c7-46f0-b024-7d6f99ebbe98
2024-11-08 18:51:10,141 - DEBUG - Requesting: http://10.0.0.12:8082/project/62712bfd-9533-4335-8171-880b472385bb
2024-11-08 18:51:10,236 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99a5be96-88a3-425e-9a2b-9720a518619a
2024-11-08 18:51:10,253 - DEBUG - ==>Verifying data for policy with id: 44302712-422b-4378-9eea-645021243b0a, fqn: ['default-domain', 'ctest-TestBasicPolicy-18196375', 'ctest-policy-allow-all-31096461']
2024-11-08 18:51:10,253 - INFO - VN ctest-vn-38159972 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 18:51:10,253 - DEBUG - Verifying the vn in opserver
2024-11-08 18:51:10,253 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-38159972 virtual network link through opserver 10.0.0.12
2024-11-08 18:51:10,253 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-08 18:51:10,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-38159972', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-38159972?flat'}
2024-11-08 18:51:10,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18196375:ctest-vn-38159972 is found in opserver
2024-11-08 18:51:10,283 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 18:51:10,289 - DEBUG - VRF ids for VN ctest-vn-38159972: {}
2024-11-08 18:51:10,355 - DEBUG - Services list from nova: [