2025-01-06 17:00:58,465 - INFO - Domain Default found not creating
2025-01-06 17:00:58,640 - INFO - Project ctest-TestBasicPolicy-53760620 not found, creating it
2025-01-06 17:00:59,135 - INFO - Created Project:ctest-TestBasicPolicy-53760620, ID : 87f86b35-374e-4ad3-a2b8-7d2abc413d03
2025-01-06 17:01:00,729 - INFO - ================================================================================
2025-01-06 17:01:00,730 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-06 17:01:00,730 - 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-06 17:01:00,993 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.13': '0'}} with
2025-01-06 17:01:00,993 - INFO - Initial checks done. Running the testcase now
2025-01-06 17:01:00,993 - INFO -
2025-01-06 17:01:01,586 - DEBUG - Response for create_network : {'network': {'id': 'fa25f272-b323-4028-8726-2e15f2ab28be', 'name': 'ctest-vn-41408629', 'tenant_id': '87f86b35374e4ad3a2b87d2abc413d03', 'project_id': '87f86b35374e4ad3a2b87d2abc413d03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-vn-41408629'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 17:01:01,807 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b83e8f2-0fa0-43ba-beeb-bd00a2a91cfd', 'name': '', 'tenant_id': '87f86b35374e4ad3a2b87d2abc413d03', 'network_id': 'fa25f272-b323-4028-8726-2e15f2ab28be', 'ip_version': 4, 'cidr': '116.99.186.64/26', 'allocation_pools': [{'start': '116.99.186.66', 'end': '116.99.186.126'}], 'gateway_ip': '116.99.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.99.186.66', 'tags': [], 'project_id': '87f86b35374e4ad3a2b87d2abc413d03'}}
2025-01-06 17:01:01,826 - INFO - Created VN ctest-vn-41408629
2025-01-06 17:01:01,879 - DEBUG - VN ctest-vn-41408629 UUID is fa25f272-b323-4028-8726-2e15f2ab28be
2025-01-06 17:01:02,209 - DEBUG - Response for create_network : {'network': {'id': '92a088ba-4cb2-49f7-9080-d904aeec4bb9', 'name': 'ctest-vn-76242495', 'tenant_id': '87f86b35374e4ad3a2b87d2abc413d03', 'project_id': '87f86b35374e4ad3a2b87d2abc413d03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-vn-76242495'], 'port_security_enabled': True, 'description': ''}}
2025-01-06 17:01:02,378 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e75ad3d3-c31b-4de5-a604-7ad67e8b8723', 'name': '', 'tenant_id': '87f86b35374e4ad3a2b87d2abc413d03', 'network_id': '92a088ba-4cb2-49f7-9080-d904aeec4bb9', 'ip_version': 4, 'cidr': '106.25.102.128/26', 'allocation_pools': [{'start': '106.25.102.130', 'end': '106.25.102.190'}], 'gateway_ip': '106.25.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.25.102.130', 'tags': [], 'project_id': '87f86b35374e4ad3a2b87d2abc413d03'}}
2025-01-06 17:01:02,400 - INFO - Created VN ctest-vn-76242495
2025-01-06 17:01:02,454 - DEBUG - VN ctest-vn-76242495 UUID is 92a088ba-4cb2-49f7-9080-d904aeec4bb9
2025-01-06 17:01:02,576 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-41408629, 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-53760620:ctest-vn-76242495, 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-06 17:01:02,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa25f272-b323-4028-8726-2e15f2ab28be', 'name': 'ctest-vn-41408629', 'tenant_id': '87f86b35374e4ad3a2b87d2abc413d03', 'project_id': '87f86b35374e4ad3a2b87d2abc413d03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b83e8f2-0fa0-43ba-beeb-bd00a2a91cfd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-vn-41408629'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-policy-allow-all-94079558']], 'subnet_ipam': [{'subnet_cidr': '116.99.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 17:01:03,105 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92a088ba-4cb2-49f7-9080-d904aeec4bb9', 'name': 'ctest-vn-76242495', 'tenant_id': '87f86b35374e4ad3a2b87d2abc413d03', 'project_id': '87f86b35374e4ad3a2b87d2abc413d03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e75ad3d3-c31b-4de5-a604-7ad67e8b8723'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-vn-76242495'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-policy-allow-all-94079558']], 'subnet_ipam': [{'subnet_cidr': '106.25.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-06 17:01:03,262 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-06 17:01:03,569 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-06 17:01:03,606 - DEBUG - Requesting: http://10.0.0.17:8082/domain/29e77d7e-efeb-460b-874b-d38b1f00b22a
2025-01-06 17:01:03,623 - DEBUG - Requesting: http://10.0.0.17:8082/project/87f86b35-374e-4ad3-a2b8-7d2abc413d03
2025-01-06 17:01:03,705 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fa25f272-b323-4028-8726-2e15f2ab28be
2025-01-06 17:01:03,718 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fa25f272-b323-4028-8726-2e15f2ab28be
2025-01-06 17:01:03,729 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/937f0f96-99b7-4033-8ab4-f3dd412dd3ce
2025-01-06 17:01:03,738 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/937f0f96-99b7-4033-8ab4-f3dd412dd3ce
2025-01-06 17:01:03,747 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a9c1d9d8-7c14-4ec9-8740-249aa3745a88
2025-01-06 17:01:03,754 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-06 17:01:03,755 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fa25f272-b323-4028-8726-2e15f2ab28be
2025-01-06 17:01:03,765 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/937f0f96-99b7-4033-8ab4-f3dd412dd3ce
2025-01-06 17:01:03,786 - INFO - Verified VN network id 8 for VN fa25f272-b323-4028-8726-2e15f2ab28be
2025-01-06 17:01:03,786 - INFO - Verifications in API Server for VN ctest-vn-41408629 passed
2025-01-06 17:01:03,787 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fa25f272-b323-4028-8726-2e15f2ab28be
2025-01-06 17:01:03,801 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/937f0f96-99b7-4033-8ab4-f3dd412dd3ce
2025-01-06 17:01:03,811 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/937f0f96-99b7-4033-8ab4-f3dd412dd3ce
2025-01-06 17:01:03,819 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a9c1d9d8-7c14-4ec9-8740-249aa3745a88
2025-01-06 17:01:03,834 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-41408629', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53760620', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18025079658065903656', 'uuid-lslong': '9738521916035770558'}, 'enable': 'true', 'created': '2025-01-06T17:01:01', 'last-modified': '2025-01-06T17:01:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974937'}
2025-01-06 17:01:03,842 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-06 17:01:03,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41408629 passed
2025-01-06 17:01:03,842 - DEBUG - ====Verifying policy data for ctest-vn-41408629 in API_Server ======
2025-01-06 17:01:03,842 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-06 17:01:03,849 - DEBUG - Requesting: http://10.0.0.17:8082/domain/29e77d7e-efeb-460b-874b-d38b1f00b22a
2025-01-06 17:01:03,863 - DEBUG - Requesting: http://10.0.0.17:8082/project/87f86b35-374e-4ad3-a2b8-7d2abc413d03
2025-01-06 17:01:03,939 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/fa25f272-b323-4028-8726-2e15f2ab28be
2025-01-06 17:01:03,949 - DEBUG - ==>Verifying data for policy with id: 4c92302c-c5fd-4329-927d-bb4c6d2b8fec, fqn: ['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-policy-allow-all-94079558']
2025-01-06 17:01:03,949 - INFO - VN ctest-vn-41408629 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 17:01:03,949 - DEBUG - Verifying the vn in opserver
2025-01-06 17:01:03,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-41408629 virtual network link through opserver 10.0.0.17
2025-01-06 17:01:03,950 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-06 17:01:04,247 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-06 17:01:04,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-41408629', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-41408629?flat'}
2025-01-06 17:01:04,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-41408629 is found in opserver
2025-01-06 17:01:04,325 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 17:01:04,332 - DEBUG - VRF ids for VN ctest-vn-41408629: {}
2025-01-06 17:01:04,332 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-06 17:01:04,338 - DEBUG - Requesting: http://10.0.0.17:8082/domain/29e77d7e-efeb-460b-874b-d38b1f00b22a
2025-01-06 17:01:04,351 - DEBUG - Requesting: http://10.0.0.17:8082/project/87f86b35-374e-4ad3-a2b8-7d2abc413d03
2025-01-06 17:01:04,433 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/92a088ba-4cb2-49f7-9080-d904aeec4bb9
2025-01-06 17:01:04,448 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/92a088ba-4cb2-49f7-9080-d904aeec4bb9
2025-01-06 17:01:04,461 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4b1adbbf-a0a7-4a18-8a68-e51b6a21eff6
2025-01-06 17:01:04,472 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4b1adbbf-a0a7-4a18-8a68-e51b6a21eff6
2025-01-06 17:01:04,481 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a130836f-94d0-4c27-b713-baa5ba6f57a9
2025-01-06 17:01:04,490 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 17:01:04,490 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/92a088ba-4cb2-49f7-9080-d904aeec4bb9
2025-01-06 17:01:04,501 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4b1adbbf-a0a7-4a18-8a68-e51b6a21eff6
2025-01-06 17:01:04,517 - INFO - Verified VN network id 9 for VN 92a088ba-4cb2-49f7-9080-d904aeec4bb9
2025-01-06 17:01:04,518 - INFO - Verifications in API Server for VN ctest-vn-76242495 passed
2025-01-06 17:01:04,518 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/92a088ba-4cb2-49f7-9080-d904aeec4bb9
2025-01-06 17:01:04,530 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4b1adbbf-a0a7-4a18-8a68-e51b6a21eff6
2025-01-06 17:01:04,540 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4b1adbbf-a0a7-4a18-8a68-e51b6a21eff6
2025-01-06 17:01:04,550 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a130836f-94d0-4c27-b713-baa5ba6f57a9
2025-01-06 17:01:04,568 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-76242495', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53760620', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10565595059543230967', 'uuid-lslong': '10412560952618404793'}, 'enable': 'true', 'created': '2025-01-06T17:01:02', 'last-modified': '2025-01-06T17:01:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.489525'}
2025-01-06 17:01:04,575 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-06 17:01:04,575 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76242495 passed
2025-01-06 17:01:04,575 - DEBUG - ====Verifying policy data for ctest-vn-76242495 in API_Server ======
2025-01-06 17:01:04,575 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-06 17:01:04,583 - DEBUG - Requesting: http://10.0.0.17:8082/domain/29e77d7e-efeb-460b-874b-d38b1f00b22a
2025-01-06 17:01:04,598 - DEBUG - Requesting: http://10.0.0.17:8082/project/87f86b35-374e-4ad3-a2b8-7d2abc413d03
2025-01-06 17:01:04,674 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/92a088ba-4cb2-49f7-9080-d904aeec4bb9
2025-01-06 17:01:04,687 - DEBUG - ==>Verifying data for policy with id: 4c92302c-c5fd-4329-927d-bb4c6d2b8fec, fqn: ['default-domain', 'ctest-TestBasicPolicy-53760620', 'ctest-policy-allow-all-94079558']
2025-01-06 17:01:04,688 - INFO - VN ctest-vn-76242495 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-06 17:01:04,688 - DEBUG - Verifying the vn in opserver
2025-01-06 17:01:04,688 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-76242495 virtual network link through opserver 10.0.0.17
2025-01-06 17:01:04,688 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-06 17:01:04,701 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-76242495', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-76242495?flat'}
2025-01-06 17:01:04,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53760620:ctest-vn-76242495 is found in opserver
2025-01-06 17:01:04,717 - DEBUG - Do not have enough data to verify VN in agent
2025-01-06 17:01:04,724 - DEBUG - VRF ids for VN ctest-vn-76242495: {}
2025-01-06 17:01:04,813 - DEBUG - Services list from nova: [