2024-08-30 22:41:43,245 - INFO - Domain Default found not creating
2024-08-30 22:41:43,652 - INFO - Project ctest-TestBasicPolicy-36366581 not found, creating it
2024-08-30 22:41:44,506 - INFO - Created Project:ctest-TestBasicPolicy-36366581, ID : c127e400-3bfd-4bd5-a402-6520197760dd
2024-08-30 22:41:46,677 - INFO - ================================================================================
2024-08-30 22:41:46,678 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-30 22:41:46,678 - 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-30 22:41:47,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.23': '0'}} with
2024-08-30 22:41:47,020 - INFO - Initial checks done. Running the testcase now
2024-08-30 22:41:47,020 - INFO -
2024-08-30 22:41:47,858 - DEBUG - Response for create_network : {'network': {'id': '98aaf73b-2278-4be4-a24c-afb6ade0e096', 'name': 'ctest-vn-78553854', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-78553854'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 22:41:48,041 - DEBUG - Response for create_subnet : {'subnet': {'id': '2431168f-5684-4e8b-999e-992bce2727f0', 'name': '', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'network_id': '98aaf73b-2278-4be4-a24c-afb6ade0e096', 'ip_version': 4, 'cidr': '86.34.53.64/26', 'allocation_pools': [{'start': '86.34.53.66', 'end': '86.34.53.126'}], 'gateway_ip': '86.34.53.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.34.53.66', 'tags': [], 'project_id': 'c127e4003bfd4bd5a4026520197760dd'}}
2024-08-30 22:41:48,063 - INFO - Created VN ctest-vn-78553854
2024-08-30 22:41:48,118 - DEBUG - VN ctest-vn-78553854 UUID is 98aaf73b-2278-4be4-a24c-afb6ade0e096
2024-08-30 22:41:48,675 - DEBUG - Response for create_network : {'network': {'id': '4f3ed8d6-3b89-4342-92a2-5258f1a90e67', 'name': 'ctest-vn-73094722', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-73094722'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 22:41:48,913 - DEBUG - Response for create_subnet : {'subnet': {'id': '12e1f93e-5043-40a2-b300-e56960972133', 'name': '', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'network_id': '4f3ed8d6-3b89-4342-92a2-5258f1a90e67', 'ip_version': 4, 'cidr': '179.137.150.128/26', 'allocation_pools': [{'start': '179.137.150.130', 'end': '179.137.150.190'}], 'gateway_ip': '179.137.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.137.150.130', 'tags': [], 'project_id': 'c127e4003bfd4bd5a4026520197760dd'}}
2024-08-30 22:41:48,936 - INFO - Created VN ctest-vn-73094722
2024-08-30 22:41:48,990 - DEBUG - VN ctest-vn-73094722 UUID is 4f3ed8d6-3b89-4342-92a2-5258f1a90e67
2024-08-30 22:41:49,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854, 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-36366581:ctest-vn-73094722, 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-30 22:41:49,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98aaf73b-2278-4be4-a24c-afb6ade0e096', 'name': 'ctest-vn-78553854', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2431168f-5684-4e8b-999e-992bce2727f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-78553854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892']], 'subnet_ipam': [{'subnet_cidr': '86.34.53.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 22:41:49,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f3ed8d6-3b89-4342-92a2-5258f1a90e67', 'name': 'ctest-vn-73094722', 'tenant_id': 'c127e4003bfd4bd5a4026520197760dd', 'project_id': 'c127e4003bfd4bd5a4026520197760dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12e1f93e-5043-40a2-b300-e56960972133'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-vn-73094722'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892']], 'subnet_ipam': [{'subnet_cidr': '179.137.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 22:41:50,073 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-08-30 22:41:50,442 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-08-30 22:41:50,481 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7
2024-08-30 22:41:50,499 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd
2024-08-30 22:41:50,596 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096
2024-08-30 22:41:50,612 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096
2024-08-30 22:41:50,623 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a
2024-08-30 22:41:50,634 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a
2024-08-30 22:41:50,641 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f0a41ebd-8879-4f46-83b7-81369ad52d22
2024-08-30 22:41:50,647 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 22:41:50,647 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096
2024-08-30 22:41:50,662 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a
2024-08-30 22:41:50,686 - INFO - Verified VN network id 7 for VN 98aaf73b-2278-4be4-a24c-afb6ade0e096
2024-08-30 22:41:50,686 - INFO - Verifications in API Server for VN ctest-vn-78553854 passed
2024-08-30 22:41:50,686 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096
2024-08-30 22:41:50,702 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a
2024-08-30 22:41:50,716 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6ae38194-8503-4e57-b578-3d05ec3ed01a
2024-08-30 22:41:50,730 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/f0a41ebd-8879-4f46-83b7-81369ad52d22
2024-08-30 22:41:50,758 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36366581', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11000876873159298020', 'uuid-lslong': '11694915531510440086'}, 'enable': 'true', 'created': '2024-08-30T22:41:47', 'last-modified': '2024-08-30T22:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.216889'}
2024-08-30 22:41:50,778 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 22:41:50,778 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78553854 passed
2024-08-30 22:41:50,779 - DEBUG - ====Verifying policy data for ctest-vn-78553854 in API_Server ======
2024-08-30 22:41:50,779 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-08-30 22:41:50,794 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7
2024-08-30 22:41:50,829 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd
2024-08-30 22:41:50,941 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/98aaf73b-2278-4be4-a24c-afb6ade0e096
2024-08-30 22:41:50,959 - DEBUG - ==>Verifying data for policy with id: bb21ea9c-9752-4263-aa35-944d3653d41c, fqn: ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892']
2024-08-30 22:41:50,959 - INFO - VN ctest-vn-78553854 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 22:41:50,959 - DEBUG - Verifying the vn in opserver
2024-08-30 22:41:50,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854 virtual network link through opserver 10.0.0.34
2024-08-30 22:41:50,960 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-08-30 22:41:51,288 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-08-30 22:41:51,418 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854?flat'}
2024-08-30 22:41:51,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-78553854 is found in opserver
2024-08-30 22:41:51,449 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 22:41:51,466 - DEBUG - VRF ids for VN ctest-vn-78553854: {}
2024-08-30 22:41:51,466 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-08-30 22:41:51,480 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7
2024-08-30 22:41:51,512 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd
2024-08-30 22:41:51,637 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67
2024-08-30 22:41:51,666 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67
2024-08-30 22:41:51,687 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333
2024-08-30 22:41:51,707 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333
2024-08-30 22:41:51,726 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/d6164391-f9a4-4130-9ae2-a2a0748dde1c
2024-08-30 22:41:51,742 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 22:41:51,742 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67
2024-08-30 22:41:51,763 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333
2024-08-30 22:41:51,796 - INFO - Verified VN network id 8 for VN 4f3ed8d6-3b89-4342-92a2-5258f1a90e67
2024-08-30 22:41:51,797 - INFO - Verifications in API Server for VN ctest-vn-73094722 passed
2024-08-30 22:41:51,797 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67
2024-08-30 22:41:51,827 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333
2024-08-30 22:41:51,850 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/a522d933-d1d4-49b2-9599-ec88900b8333
2024-08-30 22:41:51,876 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/d6164391-f9a4-4130-9ae2-a2a0748dde1c
2024-08-30 22:41:51,918 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36366581', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5710239792185819970', 'uuid-lslong': '10566098217729592935'}, 'enable': 'true', 'created': '2024-08-30T22:41:48', 'last-modified': '2024-08-30T22:41:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.056376'}
2024-08-30 22:41:51,940 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 22:41:51,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73094722 passed
2024-08-30 22:41:51,940 - DEBUG - ====Verifying policy data for ctest-vn-73094722 in API_Server ======
2024-08-30 22:41:51,941 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-08-30 22:41:51,959 - DEBUG - Requesting: http://10.0.0.34:8082/domain/604f29e2-a343-42a6-a1e5-5f38452423a7
2024-08-30 22:41:52,007 - DEBUG - Requesting: http://10.0.0.34:8082/project/c127e400-3bfd-4bd5-a402-6520197760dd
2024-08-30 22:41:52,079 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/4f3ed8d6-3b89-4342-92a2-5258f1a90e67
2024-08-30 22:41:52,098 - DEBUG - ==>Verifying data for policy with id: bb21ea9c-9752-4263-aa35-944d3653d41c, fqn: ['default-domain', 'ctest-TestBasicPolicy-36366581', 'ctest-policy-allow-all-78628892']
2024-08-30 22:41:52,098 - INFO - VN ctest-vn-73094722 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 22:41:52,098 - DEBUG - Verifying the vn in opserver
2024-08-30 22:41:52,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722 virtual network link through opserver 10.0.0.34
2024-08-30 22:41:52,098 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-08-30 22:41:52,122 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722?flat'}
2024-08-30 22:41:52,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36366581:ctest-vn-73094722 is found in opserver
2024-08-30 22:41:52,148 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 22:41:52,164 - DEBUG - VRF ids for VN ctest-vn-73094722: {}
2024-08-30 22:41:52,264 - DEBUG - Services list from nova: [