2024-08-29 20:50:38,393 - INFO - Domain Default found not creating
2024-08-29 20:50:38,540 - INFO - Project ctest-TestBasicPolicy-12074024 not found, creating it
2024-08-29 20:50:39,046 - INFO - Created Project:ctest-TestBasicPolicy-12074024, ID : 70ddc347-cdbc-4bad-abfe-27933b7fb18d
2024-08-29 20:50:40,498 - INFO - ================================================================================
2024-08-29 20:50:40,498 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 20:50:40,498 - 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-29 20:50:40,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.19': '0'}} with
2024-08-29 20:50:40,758 - INFO - Initial checks done. Running the testcase now
2024-08-29 20:50:40,758 - INFO -
2024-08-29 20:50:41,306 - DEBUG - Response for create_network : {'network': {'id': '3370e9a6-950e-42e0-9f97-54cfe6434b60', 'name': 'ctest-vn-45412540', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-45412540'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 20:50:41,488 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db7b4f2b-8ddb-45c0-8d2e-87285cf918b9', 'name': '', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'network_id': '3370e9a6-950e-42e0-9f97-54cfe6434b60', 'ip_version': 4, 'cidr': '88.141.31.0/26', 'allocation_pools': [{'start': '88.141.31.2', 'end': '88.141.31.62'}], 'gateway_ip': '88.141.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.141.31.2', 'tags': [], 'project_id': '70ddc347cdbc4badabfe27933b7fb18d'}}
2024-08-29 20:50:41,509 - INFO - Created VN ctest-vn-45412540
2024-08-29 20:50:41,561 - DEBUG - VN ctest-vn-45412540 UUID is 3370e9a6-950e-42e0-9f97-54cfe6434b60
2024-08-29 20:50:41,841 - DEBUG - Response for create_network : {'network': {'id': '20b8f293-2370-47e6-846f-096a7ea551fa', 'name': 'ctest-vn-57906525', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-57906525'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 20:50:41,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ca3c0ca-bf3b-4125-9a52-00b741950016', 'name': '', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'network_id': '20b8f293-2370-47e6-846f-096a7ea551fa', 'ip_version': 4, 'cidr': '218.247.61.0/26', 'allocation_pools': [{'start': '218.247.61.2', 'end': '218.247.61.62'}], 'gateway_ip': '218.247.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.247.61.2', 'tags': [], 'project_id': '70ddc347cdbc4badabfe27933b7fb18d'}}
2024-08-29 20:50:42,017 - INFO - Created VN ctest-vn-57906525
2024-08-29 20:50:42,069 - DEBUG - VN ctest-vn-57906525 UUID is 20b8f293-2370-47e6-846f-096a7ea551fa
2024-08-29 20:50:42,177 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540, 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-12074024:ctest-vn-57906525, 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-29 20:50:42,466 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3370e9a6-950e-42e0-9f97-54cfe6434b60', 'name': 'ctest-vn-45412540', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db7b4f2b-8ddb-45c0-8d2e-87285cf918b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-45412540'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151']], 'subnet_ipam': [{'subnet_cidr': '88.141.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 20:50:42,710 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20b8f293-2370-47e6-846f-096a7ea551fa', 'name': 'ctest-vn-57906525', 'tenant_id': '70ddc347cdbc4badabfe27933b7fb18d', 'project_id': '70ddc347cdbc4badabfe27933b7fb18d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ca3c0ca-bf3b-4125-9a52-00b741950016'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-vn-57906525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151']], 'subnet_ipam': [{'subnet_cidr': '218.247.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 20:50:42,829 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-29 20:50:43,123 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-29 20:50:43,155 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91
2024-08-29 20:50:43,168 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d
2024-08-29 20:50:43,237 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60
2024-08-29 20:50:43,247 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60
2024-08-29 20:50:43,254 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696
2024-08-29 20:50:43,260 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696
2024-08-29 20:50:43,266 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/02ecc524-5fda-4d28-986a-fc336bba44af
2024-08-29 20:50:43,272 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 20:50:43,272 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60
2024-08-29 20:50:43,279 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696
2024-08-29 20:50:43,290 - INFO - Verified VN network id 7 for VN 3370e9a6-950e-42e0-9f97-54cfe6434b60
2024-08-29 20:50:43,290 - INFO - Verifications in API Server for VN ctest-vn-45412540 passed
2024-08-29 20:50:43,290 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60
2024-08-29 20:50:43,297 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696
2024-08-29 20:50:43,302 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/615c284c-d1de-40b0-afce-821a6a9a3696
2024-08-29 20:50:43,308 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/02ecc524-5fda-4d28-986a-fc336bba44af
2024-08-29 20:50:43,319 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12074024', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3706719395000500960', 'uuid-lslong': '11499753425411984224'}, 'enable': 'true', 'created': '2024-08-29T20:50:41', 'last-modified': '2024-08-29T20:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875239'}
2024-08-29 20:50:43,326 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 20:50:43,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45412540 passed
2024-08-29 20:50:43,326 - DEBUG - ====Verifying policy data for ctest-vn-45412540 in API_Server ======
2024-08-29 20:50:43,326 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-29 20:50:43,331 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91
2024-08-29 20:50:43,342 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d
2024-08-29 20:50:43,410 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/3370e9a6-950e-42e0-9f97-54cfe6434b60
2024-08-29 20:50:43,417 - DEBUG - ==>Verifying data for policy with id: 0ef9b941-9f8c-494a-a20f-416e80440bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151']
2024-08-29 20:50:43,418 - INFO - VN ctest-vn-45412540 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 20:50:43,418 - DEBUG - Verifying the vn in opserver
2024-08-29 20:50:43,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540 virtual network link through opserver 10.0.0.44
2024-08-29 20:50:43,418 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-29 20:50:43,711 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-29 20:50:43,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540?flat'}
2024-08-29 20:50:43,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-45412540 is found in opserver
2024-08-29 20:50:43,783 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 20:50:43,788 - DEBUG - VRF ids for VN ctest-vn-45412540: {}
2024-08-29 20:50:43,788 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-29 20:50:43,794 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91
2024-08-29 20:50:43,805 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d
2024-08-29 20:50:43,871 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa
2024-08-29 20:50:43,881 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa
2024-08-29 20:50:43,894 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86
2024-08-29 20:50:43,906 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86
2024-08-29 20:50:43,915 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c68308d8-740e-4f5c-8c2a-a9f054c7544d
2024-08-29 20:50:43,926 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 20:50:43,926 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa
2024-08-29 20:50:43,935 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86
2024-08-29 20:50:43,946 - INFO - Verified VN network id 8 for VN 20b8f293-2370-47e6-846f-096a7ea551fa
2024-08-29 20:50:43,946 - INFO - Verifications in API Server for VN ctest-vn-57906525 passed
2024-08-29 20:50:43,946 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa
2024-08-29 20:50:43,955 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86
2024-08-29 20:50:43,960 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/93805ef0-96ca-4b3d-8592-b7b7a92f1d86
2024-08-29 20:50:43,967 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/c68308d8-740e-4f5c-8c2a-a9f054c7544d
2024-08-29 20:50:43,982 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12074024', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2357901118697129958', 'uuid-lslong': '9542856488417317370'}, 'enable': 'true', 'created': '2024-08-29T20:50:41', 'last-modified': '2024-08-29T20:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.296961'}
2024-08-29 20:50:43,988 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 20:50:43,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57906525 passed
2024-08-29 20:50:43,988 - DEBUG - ====Verifying policy data for ctest-vn-57906525 in API_Server ======
2024-08-29 20:50:43,988 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-29 20:50:43,993 - DEBUG - Requesting: http://10.0.0.44:8082/domain/edf20fba-2d31-44c9-9c4d-cbe82eab3e91
2024-08-29 20:50:44,006 - DEBUG - Requesting: http://10.0.0.44:8082/project/70ddc347-cdbc-4bad-abfe-27933b7fb18d
2024-08-29 20:50:44,078 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/20b8f293-2370-47e6-846f-096a7ea551fa
2024-08-29 20:50:44,087 - DEBUG - ==>Verifying data for policy with id: 0ef9b941-9f8c-494a-a20f-416e80440bc8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12074024', 'ctest-policy-allow-all-83858151']
2024-08-29 20:50:44,087 - INFO - VN ctest-vn-57906525 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 20:50:44,087 - DEBUG - Verifying the vn in opserver
2024-08-29 20:50:44,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525 virtual network link through opserver 10.0.0.44
2024-08-29 20:50:44,087 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-29 20:50:44,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525?flat'}
2024-08-29 20:50:44,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12074024:ctest-vn-57906525 is found in opserver
2024-08-29 20:50:44,114 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 20:50:44,120 - DEBUG - VRF ids for VN ctest-vn-57906525: {}
2024-08-29 20:50:44,171 - DEBUG - Services list from nova: [