2024-12-23 02:11:50,158 - INFO - Domain Default found not creating
2024-12-23 02:11:50,285 - INFO - Project ctest-TestBasicPolicy-77533830 not found, creating it
2024-12-23 02:11:50,706 - INFO - Created Project:ctest-TestBasicPolicy-77533830, ID : a2307de9-5674-4880-9171-86dedb1a5874
2024-12-23 02:11:52,184 - INFO - ================================================================================
2024-12-23 02:11:52,184 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-23 02:11:52,184 - 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-12-23 02:11:52,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.17': '0'}} with
2024-12-23 02:11:52,442 - INFO - Initial checks done. Running the testcase now
2024-12-23 02:11:52,442 - INFO -
2024-12-23 02:11:52,985 - DEBUG - Response for create_network : {'network': {'id': '5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9', 'name': 'ctest-vn-42815413', 'tenant_id': 'a2307de956744880917186dedb1a5874', 'project_id': 'a2307de956744880917186dedb1a5874', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-vn-42815413'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:11:53,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '350d4594-eb79-467b-873f-9bdcb5b63f06', 'name': '', 'tenant_id': 'a2307de956744880917186dedb1a5874', 'network_id': '5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9', 'ip_version': 4, 'cidr': '79.110.27.192/26', 'allocation_pools': [{'start': '79.110.27.194', 'end': '79.110.27.254'}], 'gateway_ip': '79.110.27.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.110.27.194', 'tags': [], 'project_id': 'a2307de956744880917186dedb1a5874'}}
2024-12-23 02:11:53,395 - INFO - Created VN ctest-vn-42815413
2024-12-23 02:11:53,452 - DEBUG - VN ctest-vn-42815413 UUID is 5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9
2024-12-23 02:11:53,829 - DEBUG - Response for create_network : {'network': {'id': '5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54', 'name': 'ctest-vn-55270435', 'tenant_id': 'a2307de956744880917186dedb1a5874', 'project_id': 'a2307de956744880917186dedb1a5874', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-vn-55270435'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:11:54,000 - DEBUG - Response for create_subnet : {'subnet': {'id': '42a6311c-928e-4663-af25-a7121a22de60', 'name': '', 'tenant_id': 'a2307de956744880917186dedb1a5874', 'network_id': '5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54', 'ip_version': 4, 'cidr': '92.235.94.0/26', 'allocation_pools': [{'start': '92.235.94.2', 'end': '92.235.94.62'}], 'gateway_ip': '92.235.94.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.235.94.2', 'tags': [], 'project_id': 'a2307de956744880917186dedb1a5874'}}
2024-12-23 02:11:54,016 - INFO - Created VN ctest-vn-55270435
2024-12-23 02:11:54,064 - DEBUG - VN ctest-vn-55270435 UUID is 5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54
2024-12-23 02:11:54,212 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-42815413, 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-77533830:ctest-vn-55270435, 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-12-23 02:11:54,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9', 'name': 'ctest-vn-42815413', 'tenant_id': 'a2307de956744880917186dedb1a5874', 'project_id': 'a2307de956744880917186dedb1a5874', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['350d4594-eb79-467b-873f-9bdcb5b63f06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-vn-42815413'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-policy-allow-all-63993738']], 'subnet_ipam': [{'subnet_cidr': '79.110.27.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:11:54,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54', 'name': 'ctest-vn-55270435', 'tenant_id': 'a2307de956744880917186dedb1a5874', 'project_id': 'a2307de956744880917186dedb1a5874', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42a6311c-928e-4663-af25-a7121a22de60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-vn-55270435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-policy-allow-all-63993738']], 'subnet_ipam': [{'subnet_cidr': '92.235.94.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:11:54,860 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-23 02:11:55,156 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-23 02:11:55,181 - DEBUG - Requesting: http://10.0.0.17:8082/domain/22042cce-cd37-4bbf-baf4-caf2e2364a6d
2024-12-23 02:11:55,194 - DEBUG - Requesting: http://10.0.0.17:8082/project/a2307de9-5674-4880-9171-86dedb1a5874
2024-12-23 02:11:55,270 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9
2024-12-23 02:11:55,279 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9
2024-12-23 02:11:55,286 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/45570f02-0937-45ee-a406-1795b293988e
2024-12-23 02:11:55,294 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/45570f02-0937-45ee-a406-1795b293988e
2024-12-23 02:11:55,301 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d74fce9c-6208-439d-844f-f1b1d9980e8b
2024-12-23 02:11:55,306 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 02:11:55,306 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9
2024-12-23 02:11:55,313 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/45570f02-0937-45ee-a406-1795b293988e
2024-12-23 02:11:55,323 - INFO - Verified VN network id 9 for VN 5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9
2024-12-23 02:11:55,323 - INFO - Verifications in API Server for VN ctest-vn-42815413 passed
2024-12-23 02:11:55,323 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9
2024-12-23 02:11:55,330 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/45570f02-0937-45ee-a406-1795b293988e
2024-12-23 02:11:55,336 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/45570f02-0937-45ee-a406-1795b293988e
2024-12-23 02:11:55,342 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d74fce9c-6208-439d-844f-f1b1d9980e8b
2024-12-23 02:11:55,354 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-42815413', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77533830', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6804845915547454256', 'uuid-lslong': '10131134995408156905'}, 'enable': 'true', 'created': '2024-12-23T02:11:52', 'last-modified': '2024-12-23T02:11:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869006'}
2024-12-23 02:11:55,361 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 02:11:55,361 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42815413 passed
2024-12-23 02:11:55,361 - DEBUG - ====Verifying policy data for ctest-vn-42815413 in API_Server ======
2024-12-23 02:11:55,361 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-23 02:11:55,367 - DEBUG - Requesting: http://10.0.0.17:8082/domain/22042cce-cd37-4bbf-baf4-caf2e2364a6d
2024-12-23 02:11:55,377 - DEBUG - Requesting: http://10.0.0.17:8082/project/a2307de9-5674-4880-9171-86dedb1a5874
2024-12-23 02:11:55,446 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5e6fab4e-7b79-4b30-8c99-0599ecd4f8e9
2024-12-23 02:11:55,456 - DEBUG - ==>Verifying data for policy with id: 756c99d5-fa32-4df8-bbc4-f110e170c26f, fqn: ['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-policy-allow-all-63993738']
2024-12-23 02:11:55,456 - INFO - VN ctest-vn-42815413 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 02:11:55,456 - DEBUG - Verifying the vn in opserver
2024-12-23 02:11:55,456 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-42815413 virtual network link through opserver 10.0.0.17
2024-12-23 02:11:55,456 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-12-23 02:11:55,753 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-12-23 02:11:55,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-42815413', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-42815413?flat'}
2024-12-23 02:11:55,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-42815413 is found in opserver
2024-12-23 02:11:55,822 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 02:11:55,827 - DEBUG - VRF ids for VN ctest-vn-42815413: {}
2024-12-23 02:11:55,827 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-23 02:11:55,833 - DEBUG - Requesting: http://10.0.0.17:8082/domain/22042cce-cd37-4bbf-baf4-caf2e2364a6d
2024-12-23 02:11:55,843 - DEBUG - Requesting: http://10.0.0.17:8082/project/a2307de9-5674-4880-9171-86dedb1a5874
2024-12-23 02:11:55,911 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54
2024-12-23 02:11:55,920 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54
2024-12-23 02:11:55,927 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/dcca9db0-bd05-43e4-a9c0-aa595b516291
2024-12-23 02:11:55,933 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/dcca9db0-bd05-43e4-a9c0-aa595b516291
2024-12-23 02:11:55,938 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1a9f77cc-4190-437c-ab0f-12522484f20b
2024-12-23 02:11:55,944 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 02:11:55,944 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54
2024-12-23 02:11:55,951 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/dcca9db0-bd05-43e4-a9c0-aa595b516291
2024-12-23 02:11:55,962 - INFO - Verified VN network id 10 for VN 5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54
2024-12-23 02:11:55,963 - INFO - Verifications in API Server for VN ctest-vn-55270435 passed
2024-12-23 02:11:55,963 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54
2024-12-23 02:11:55,970 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/dcca9db0-bd05-43e4-a9c0-aa595b516291
2024-12-23 02:11:55,976 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/dcca9db0-bd05-43e4-a9c0-aa595b516291
2024-12-23 02:11:55,981 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1a9f77cc-4190-437c-ab0f-12522484f20b
2024-12-23 02:11:55,992 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-55270435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77533830', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6497898293157187554', 'uuid-lslong': '12857281444500774228'}, 'enable': 'true', 'created': '2024-12-23T02:11:53', 'last-modified': '2024-12-23T02:11:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318030'}
2024-12-23 02:11:55,999 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 02:11:55,999 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55270435 passed
2024-12-23 02:11:55,999 - DEBUG - ====Verifying policy data for ctest-vn-55270435 in API_Server ======
2024-12-23 02:11:55,999 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-12-23 02:11:56,007 - DEBUG - Requesting: http://10.0.0.17:8082/domain/22042cce-cd37-4bbf-baf4-caf2e2364a6d
2024-12-23 02:11:56,019 - DEBUG - Requesting: http://10.0.0.17:8082/project/a2307de9-5674-4880-9171-86dedb1a5874
2024-12-23 02:11:56,090 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/5a2d2c11-fe40-4fe2-b26e-3d5a5cb09d54
2024-12-23 02:11:56,098 - DEBUG - ==>Verifying data for policy with id: 756c99d5-fa32-4df8-bbc4-f110e170c26f, fqn: ['default-domain', 'ctest-TestBasicPolicy-77533830', 'ctest-policy-allow-all-63993738']
2024-12-23 02:11:56,098 - INFO - VN ctest-vn-55270435 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 02:11:56,098 - DEBUG - Verifying the vn in opserver
2024-12-23 02:11:56,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-55270435 virtual network link through opserver 10.0.0.17
2024-12-23 02:11:56,098 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-12-23 02:11:56,108 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-55270435', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-55270435?flat'}
2024-12-23 02:11:56,108 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77533830:ctest-vn-55270435 is found in opserver
2024-12-23 02:11:56,118 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 02:11:56,124 - DEBUG - VRF ids for VN ctest-vn-55270435: {}
2024-12-23 02:11:56,179 - DEBUG - Services list from nova: [