2024-12-26 02:14:06,203 - INFO - Domain Default found not creating
2024-12-26 02:14:06,358 - INFO - Project ctest-TestBasicPolicy-60286922 not found, creating it
2024-12-26 02:14:06,832 - INFO - Created Project:ctest-TestBasicPolicy-60286922, ID : 39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc
2024-12-26 02:14:08,330 - INFO - ================================================================================
2024-12-26 02:14:08,330 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-26 02:14:08,330 - 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-26 02:14:08,592 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.5': '0'}} with
2024-12-26 02:14:08,592 - INFO - Initial checks done. Running the testcase now
2024-12-26 02:14:08,592 - INFO -
2024-12-26 02:14:09,148 - DEBUG - Response for create_network : {'network': {'id': 'c3f350e9-7fbf-4667-83f2-7e6d4ac6886b', 'name': 'ctest-vn-61395334', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-61395334'], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:14:09,296 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8c91c57-4154-4693-89ec-ffe615bd60e8', 'name': '', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'network_id': 'c3f350e9-7fbf-4667-83f2-7e6d4ac6886b', 'ip_version': 4, 'cidr': '185.232.116.64/26', 'allocation_pools': [{'start': '185.232.116.66', 'end': '185.232.116.126'}], 'gateway_ip': '185.232.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.232.116.66', 'tags': [], 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc'}}
2024-12-26 02:14:09,314 - INFO - Created VN ctest-vn-61395334
2024-12-26 02:14:09,365 - DEBUG - VN ctest-vn-61395334 UUID is c3f350e9-7fbf-4667-83f2-7e6d4ac6886b
2024-12-26 02:14:09,672 - DEBUG - Response for create_network : {'network': {'id': '768d9c71-e5e6-41fd-bb33-59addd361b85', 'name': 'ctest-vn-60581205', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-60581205'], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:14:09,863 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c8bb865-2876-4556-8e33-00242e959b9b', 'name': '', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'network_id': '768d9c71-e5e6-41fd-bb33-59addd361b85', 'ip_version': 4, 'cidr': '32.63.226.128/26', 'allocation_pools': [{'start': '32.63.226.130', 'end': '32.63.226.190'}], 'gateway_ip': '32.63.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.63.226.130', 'tags': [], 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc'}}
2024-12-26 02:14:09,884 - INFO - Created VN ctest-vn-60581205
2024-12-26 02:14:09,933 - DEBUG - VN ctest-vn-60581205 UUID is 768d9c71-e5e6-41fd-bb33-59addd361b85
2024-12-26 02:14:10,052 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334, 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-60286922:ctest-vn-60581205, 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-26 02:14:10,360 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3f350e9-7fbf-4667-83f2-7e6d4ac6886b', 'name': 'ctest-vn-61395334', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8c91c57-4154-4693-89ec-ffe615bd60e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-61395334'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065']], 'subnet_ipam': [{'subnet_cidr': '185.232.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:14:10,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '768d9c71-e5e6-41fd-bb33-59addd361b85', 'name': 'ctest-vn-60581205', 'tenant_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'project_id': '39e4fc6d74da4bcca3dd35f3ea4d33dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c8bb865-2876-4556-8e33-00242e959b9b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-vn-60581205'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065']], 'subnet_ipam': [{'subnet_cidr': '32.63.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:14:10,757 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-12-26 02:14:11,061 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-12-26 02:14:11,096 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c
2024-12-26 02:14:11,110 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc
2024-12-26 02:14:11,185 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b
2024-12-26 02:14:11,194 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b
2024-12-26 02:14:11,202 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663
2024-12-26 02:14:11,211 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663
2024-12-26 02:14:11,219 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0df2cd68-2ff6-47c0-b755-dc879fadb14a
2024-12-26 02:14:11,226 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-26 02:14:11,226 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b
2024-12-26 02:14:11,235 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663
2024-12-26 02:14:11,247 - INFO - Verified VN network id 8 for VN c3f350e9-7fbf-4667-83f2-7e6d4ac6886b
2024-12-26 02:14:11,247 - INFO - Verifications in API Server for VN ctest-vn-61395334 passed
2024-12-26 02:14:11,247 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b
2024-12-26 02:14:11,258 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663
2024-12-26 02:14:11,266 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/365aca46-c822-4e78-ba56-884f2e858663
2024-12-26 02:14:11,274 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0df2cd68-2ff6-47c0-b755-dc879fadb14a
2024-12-26 02:14:11,286 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286922', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14119718220537480807', 'uuid-lslong': '9507800771203598443'}, 'enable': 'true', 'created': '2024-12-26T02:14:09', 'last-modified': '2024-12-26T02:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951256'}
2024-12-26 02:14:11,293 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-26 02:14:11,293 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61395334 passed
2024-12-26 02:14:11,293 - DEBUG - ====Verifying policy data for ctest-vn-61395334 in API_Server ======
2024-12-26 02:14:11,293 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-12-26 02:14:11,300 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c
2024-12-26 02:14:11,312 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc
2024-12-26 02:14:11,381 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c3f350e9-7fbf-4667-83f2-7e6d4ac6886b
2024-12-26 02:14:11,390 - DEBUG - ==>Verifying data for policy with id: d4dcecf5-9342-4def-a5ce-9443634e7699, fqn: ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065']
2024-12-26 02:14:11,390 - INFO - VN ctest-vn-61395334 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-26 02:14:11,390 - DEBUG - Verifying the vn in opserver
2024-12-26 02:14:11,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334 virtual network link through opserver 10.0.0.32
2024-12-26 02:14:11,390 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-12-26 02:14:11,686 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-12-26 02:14:11,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334?flat'}
2024-12-26 02:14:11,751 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-61395334 is found in opserver
2024-12-26 02:14:11,762 - DEBUG - Do not have enough data to verify VN in agent
2024-12-26 02:14:11,767 - DEBUG - VRF ids for VN ctest-vn-61395334: {}
2024-12-26 02:14:11,767 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-12-26 02:14:11,774 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c
2024-12-26 02:14:11,786 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc
2024-12-26 02:14:11,857 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85
2024-12-26 02:14:11,867 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85
2024-12-26 02:14:11,876 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558
2024-12-26 02:14:11,883 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558
2024-12-26 02:14:11,891 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ef4e5df0-9531-454d-8473-4baadcdaa1a7
2024-12-26 02:14:11,898 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-26 02:14:11,898 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85
2024-12-26 02:14:11,906 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558
2024-12-26 02:14:11,919 - INFO - Verified VN network id 9 for VN 768d9c71-e5e6-41fd-bb33-59addd361b85
2024-12-26 02:14:11,919 - INFO - Verifications in API Server for VN ctest-vn-60581205 passed
2024-12-26 02:14:11,919 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85
2024-12-26 02:14:11,929 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558
2024-12-26 02:14:11,937 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9ad2c760-e50b-4049-b0cf-9c9c6ce8a558
2024-12-26 02:14:11,946 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ef4e5df0-9531-454d-8473-4baadcdaa1a7
2024-12-26 02:14:11,960 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60286922', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8542656081194009085', 'uuid-lslong': '13489223912180292485'}, 'enable': 'true', 'created': '2024-12-26T02:14:09', 'last-modified': '2024-12-26T02:14:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.391718'}
2024-12-26 02:14:11,967 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-26 02:14:11,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60581205 passed
2024-12-26 02:14:11,968 - DEBUG - ====Verifying policy data for ctest-vn-60581205 in API_Server ======
2024-12-26 02:14:11,968 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-12-26 02:14:11,974 - DEBUG - Requesting: http://10.0.0.32:8082/domain/623962f1-258d-4b2a-ae1e-14ab588c1e3c
2024-12-26 02:14:11,986 - DEBUG - Requesting: http://10.0.0.32:8082/project/39e4fc6d-74da-4bcc-a3dd-35f3ea4d33dc
2024-12-26 02:14:12,060 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/768d9c71-e5e6-41fd-bb33-59addd361b85
2024-12-26 02:14:12,075 - DEBUG - ==>Verifying data for policy with id: d4dcecf5-9342-4def-a5ce-9443634e7699, fqn: ['default-domain', 'ctest-TestBasicPolicy-60286922', 'ctest-policy-allow-all-42821065']
2024-12-26 02:14:12,075 - INFO - VN ctest-vn-60581205 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-26 02:14:12,076 - DEBUG - Verifying the vn in opserver
2024-12-26 02:14:12,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205 virtual network link through opserver 10.0.0.32
2024-12-26 02:14:12,076 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-12-26 02:14:12,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205?flat'}
2024-12-26 02:14:12,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60286922:ctest-vn-60581205 is found in opserver
2024-12-26 02:14:12,102 - DEBUG - Do not have enough data to verify VN in agent
2024-12-26 02:14:12,108 - DEBUG - VRF ids for VN ctest-vn-60581205: {}
2024-12-26 02:14:12,171 - DEBUG - Services list from nova: [