2025-01-13 17:24:25,559 - INFO - Domain Default found not creating
2025-01-13 17:24:25,722 - INFO - Project ctest-TestBasicPolicy-43345236 not found, creating it
2025-01-13 17:24:26,214 - INFO - Created Project:ctest-TestBasicPolicy-43345236, ID : c8722353-9a83-4573-b43b-09823725b22f
2025-01-13 17:24:27,789 - INFO - ================================================================================
2025-01-13 17:24:27,789 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 17:24:27,789 - 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
2025-01-13 17:24:28,048 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with
2025-01-13 17:24:28,048 - INFO - Initial checks done. Running the testcase now
2025-01-13 17:24:28,048 - INFO -
2025-01-13 17:24:28,635 - DEBUG - Response for create_network : {'network': {'id': '11f85e62-b0ab-4de5-bcae-f35e8fc1c318', 'name': 'ctest-vn-82264600', 'tenant_id': 'c87223539a834573b43b09823725b22f', 'project_id': 'c87223539a834573b43b09823725b22f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-vn-82264600'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 17:24:28,833 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2894c77-f955-41dd-9531-406e228a635b', 'name': '', 'tenant_id': 'c87223539a834573b43b09823725b22f', 'network_id': '11f85e62-b0ab-4de5-bcae-f35e8fc1c318', 'ip_version': 4, 'cidr': '22.87.153.64/26', 'allocation_pools': [{'start': '22.87.153.66', 'end': '22.87.153.126'}], 'gateway_ip': '22.87.153.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.87.153.66', 'tags': [], 'project_id': 'c87223539a834573b43b09823725b22f'}}
2025-01-13 17:24:28,856 - INFO - Created VN ctest-vn-82264600
2025-01-13 17:24:28,913 - DEBUG - VN ctest-vn-82264600 UUID is 11f85e62-b0ab-4de5-bcae-f35e8fc1c318
2025-01-13 17:24:29,268 - DEBUG - Response for create_network : {'network': {'id': '2c118826-9f68-4565-91ba-e5e12957139a', 'name': 'ctest-vn-84673878', 'tenant_id': 'c87223539a834573b43b09823725b22f', 'project_id': 'c87223539a834573b43b09823725b22f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-vn-84673878'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 17:24:29,437 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af4b9e30-b0a3-4d39-b55a-7149f14e484f', 'name': '', 'tenant_id': 'c87223539a834573b43b09823725b22f', 'network_id': '2c118826-9f68-4565-91ba-e5e12957139a', 'ip_version': 4, 'cidr': '82.113.201.0/26', 'allocation_pools': [{'start': '82.113.201.2', 'end': '82.113.201.62'}], 'gateway_ip': '82.113.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.113.201.2', 'tags': [], 'project_id': 'c87223539a834573b43b09823725b22f'}}
2025-01-13 17:24:29,458 - INFO - Created VN ctest-vn-84673878
2025-01-13 17:24:29,513 - DEBUG - VN ctest-vn-84673878 UUID is 2c118826-9f68-4565-91ba-e5e12957139a
2025-01-13 17:24:29,637 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-82264600, 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-43345236:ctest-vn-84673878, 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]
2025-01-13 17:24:29,956 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11f85e62-b0ab-4de5-bcae-f35e8fc1c318', 'name': 'ctest-vn-82264600', 'tenant_id': 'c87223539a834573b43b09823725b22f', 'project_id': 'c87223539a834573b43b09823725b22f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2894c77-f955-41dd-9531-406e228a635b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-vn-82264600'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-policy-allow-all-19742329']], 'subnet_ipam': [{'subnet_cidr': '22.87.153.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 17:24:30,260 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c118826-9f68-4565-91ba-e5e12957139a', 'name': 'ctest-vn-84673878', 'tenant_id': 'c87223539a834573b43b09823725b22f', 'project_id': 'c87223539a834573b43b09823725b22f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af4b9e30-b0a3-4d39-b55a-7149f14e484f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-vn-84673878'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-policy-allow-all-19742329']], 'subnet_ipam': [{'subnet_cidr': '82.113.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 17:24:30,417 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 17:24:30,727 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 17:24:30,764 - DEBUG - Requesting: http://10.0.0.12:8082/domain/21277869-e3db-4363-8032-eed1c36c4333
2025-01-13 17:24:30,782 - DEBUG - Requesting: http://10.0.0.12:8082/project/c8722353-9a83-4573-b43b-09823725b22f
2025-01-13 17:24:30,861 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/11f85e62-b0ab-4de5-bcae-f35e8fc1c318
2025-01-13 17:24:30,876 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/11f85e62-b0ab-4de5-bcae-f35e8fc1c318
2025-01-13 17:24:30,891 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0a8a661b-ed8f-4a9f-a0c5-0bd04a00a720
2025-01-13 17:24:30,902 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0a8a661b-ed8f-4a9f-a0c5-0bd04a00a720
2025-01-13 17:24:30,911 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a1d3384c-4ed5-421c-a55f-167699465300
2025-01-13 17:24:30,919 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 17:24:30,919 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/11f85e62-b0ab-4de5-bcae-f35e8fc1c318
2025-01-13 17:24:30,931 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0a8a661b-ed8f-4a9f-a0c5-0bd04a00a720
2025-01-13 17:24:30,947 - INFO - Verified VN network id 8 for VN 11f85e62-b0ab-4de5-bcae-f35e8fc1c318
2025-01-13 17:24:30,947 - INFO - Verifications in API Server for VN ctest-vn-82264600 passed
2025-01-13 17:24:30,947 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/11f85e62-b0ab-4de5-bcae-f35e8fc1c318
2025-01-13 17:24:30,960 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0a8a661b-ed8f-4a9f-a0c5-0bd04a00a720
2025-01-13 17:24:30,970 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0a8a661b-ed8f-4a9f-a0c5-0bd04a00a720
2025-01-13 17:24:30,980 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a1d3384c-4ed5-421c-a55f-167699465300
2025-01-13 17:24:30,995 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-82264600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43345236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1294888670832840165', 'uuid-lslong': '13596071912542421784'}, 'enable': 'true', 'created': '2025-01-13T17:24:28', 'last-modified': '2025-01-13T17:24:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.062723'}
2025-01-13 17:24:31,002 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 17:24:31,002 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82264600 passed
2025-01-13 17:24:31,002 - DEBUG - ====Verifying policy data for ctest-vn-82264600 in API_Server ======
2025-01-13 17:24:31,002 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 17:24:31,013 - DEBUG - Requesting: http://10.0.0.12:8082/domain/21277869-e3db-4363-8032-eed1c36c4333
2025-01-13 17:24:31,030 - DEBUG - Requesting: http://10.0.0.12:8082/project/c8722353-9a83-4573-b43b-09823725b22f
2025-01-13 17:24:31,111 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/11f85e62-b0ab-4de5-bcae-f35e8fc1c318
2025-01-13 17:24:31,122 - DEBUG - ==>Verifying data for policy with id: a58e0c8a-e89e-4967-bd2d-3a6379108df8, fqn: ['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-policy-allow-all-19742329']
2025-01-13 17:24:31,122 - INFO - VN ctest-vn-82264600 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 17:24:31,123 - DEBUG - Verifying the vn in opserver
2025-01-13 17:24:31,123 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-82264600 virtual network link through opserver 10.0.0.12
2025-01-13 17:24:31,123 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-13 17:24:31,424 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-13 17:24:31,495 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-82264600', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-82264600?flat'}
2025-01-13 17:24:31,495 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-82264600 is found in opserver
2025-01-13 17:24:31,507 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 17:24:31,514 - DEBUG - VRF ids for VN ctest-vn-82264600: {}
2025-01-13 17:24:31,515 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 17:24:31,523 - DEBUG - Requesting: http://10.0.0.12:8082/domain/21277869-e3db-4363-8032-eed1c36c4333
2025-01-13 17:24:31,536 - DEBUG - Requesting: http://10.0.0.12:8082/project/c8722353-9a83-4573-b43b-09823725b22f
2025-01-13 17:24:31,626 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2c118826-9f68-4565-91ba-e5e12957139a
2025-01-13 17:24:31,640 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2c118826-9f68-4565-91ba-e5e12957139a
2025-01-13 17:24:31,650 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/2f04edf9-7a2c-4674-ad2c-7500b0f1e447
2025-01-13 17:24:31,658 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/2f04edf9-7a2c-4674-ad2c-7500b0f1e447
2025-01-13 17:24:31,666 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/9b6d6d32-d32d-4ae1-9d45-4e511b858c18
2025-01-13 17:24:31,673 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 17:24:31,673 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2c118826-9f68-4565-91ba-e5e12957139a
2025-01-13 17:24:31,683 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/2f04edf9-7a2c-4674-ad2c-7500b0f1e447
2025-01-13 17:24:31,699 - INFO - Verified VN network id 9 for VN 2c118826-9f68-4565-91ba-e5e12957139a
2025-01-13 17:24:31,699 - INFO - Verifications in API Server for VN ctest-vn-84673878 passed
2025-01-13 17:24:31,699 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2c118826-9f68-4565-91ba-e5e12957139a
2025-01-13 17:24:31,711 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/2f04edf9-7a2c-4674-ad2c-7500b0f1e447
2025-01-13 17:24:31,719 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/2f04edf9-7a2c-4674-ad2c-7500b0f1e447
2025-01-13 17:24:31,727 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/9b6d6d32-d32d-4ae1-9d45-4e511b858c18
2025-01-13 17:24:31,741 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-84673878', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43345236', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3175468911737455973', 'uuid-lslong': '10500958236391707546'}, 'enable': 'true', 'created': '2025-01-13T17:24:29', 'last-modified': '2025-01-13T17:24:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.558464'}
2025-01-13 17:24:31,748 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 17:24:31,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84673878 passed
2025-01-13 17:24:31,748 - DEBUG - ====Verifying policy data for ctest-vn-84673878 in API_Server ======
2025-01-13 17:24:31,748 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-13 17:24:31,754 - DEBUG - Requesting: http://10.0.0.12:8082/domain/21277869-e3db-4363-8032-eed1c36c4333
2025-01-13 17:24:31,768 - DEBUG - Requesting: http://10.0.0.12:8082/project/c8722353-9a83-4573-b43b-09823725b22f
2025-01-13 17:24:31,842 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2c118826-9f68-4565-91ba-e5e12957139a
2025-01-13 17:24:31,853 - DEBUG - ==>Verifying data for policy with id: a58e0c8a-e89e-4967-bd2d-3a6379108df8, fqn: ['default-domain', 'ctest-TestBasicPolicy-43345236', 'ctest-policy-allow-all-19742329']
2025-01-13 17:24:31,853 - INFO - VN ctest-vn-84673878 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 17:24:31,853 - DEBUG - Verifying the vn in opserver
2025-01-13 17:24:31,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-84673878 virtual network link through opserver 10.0.0.12
2025-01-13 17:24:31,854 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-13 17:24:31,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-84673878', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-84673878?flat'}
2025-01-13 17:24:31,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43345236:ctest-vn-84673878 is found in opserver
2025-01-13 17:24:31,878 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 17:24:31,884 - DEBUG - VRF ids for VN ctest-vn-84673878: {}
2025-01-13 17:24:31,955 - DEBUG - Services list from nova: [