2024-10-26 09:52:13,544 - INFO - Domain Default found not creating
2024-10-26 09:52:13,711 - INFO - Project ctest-TestBasicPolicy-16994805 not found, creating it
2024-10-26 09:52:14,195 - INFO - Created Project:ctest-TestBasicPolicy-16994805, ID : 058e1c31-5cf8-4d6b-8462-f87a89071c27
2024-10-26 09:52:15,800 - INFO - ================================================================================
2024-10-26 09:52:15,800 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-26 09:52:15,800 - 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-10-26 09:52:16,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.24': '0'}} with
2024-10-26 09:52:16,061 - INFO - Initial checks done. Running the testcase now
2024-10-26 09:52:16,061 - INFO -
2024-10-26 09:52:16,663 - DEBUG - Response for create_network : {'network': {'id': '2a5276e3-9403-4cbd-af66-03b7a6a7c32a', 'name': 'ctest-vn-44376579', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-44376579'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:52:16,870 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de4c0841-0b1a-44cb-a263-477e7cbc4eb7', 'name': '', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'network_id': '2a5276e3-9403-4cbd-af66-03b7a6a7c32a', 'ip_version': 4, 'cidr': '94.142.203.0/26', 'allocation_pools': [{'start': '94.142.203.2', 'end': '94.142.203.62'}], 'gateway_ip': '94.142.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.142.203.2', 'tags': [], 'project_id': '058e1c315cf84d6b8462f87a89071c27'}}
2024-10-26 09:52:16,891 - INFO - Created VN ctest-vn-44376579
2024-10-26 09:52:16,950 - DEBUG - VN ctest-vn-44376579 UUID is 2a5276e3-9403-4cbd-af66-03b7a6a7c32a
2024-10-26 09:52:17,291 - DEBUG - Response for create_network : {'network': {'id': 'bd5589e8-884d-4f6d-bfae-4f47b9d947af', 'name': 'ctest-vn-29286085', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-29286085'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:52:17,461 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e46fa7d0-433e-4f8f-afc3-8ecea86a30d0', 'name': '', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'network_id': 'bd5589e8-884d-4f6d-bfae-4f47b9d947af', 'ip_version': 4, 'cidr': '140.215.33.128/26', 'allocation_pools': [{'start': '140.215.33.130', 'end': '140.215.33.190'}], 'gateway_ip': '140.215.33.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.215.33.130', 'tags': [], 'project_id': '058e1c315cf84d6b8462f87a89071c27'}}
2024-10-26 09:52:17,480 - INFO - Created VN ctest-vn-29286085
2024-10-26 09:52:17,538 - DEBUG - VN ctest-vn-29286085 UUID is bd5589e8-884d-4f6d-bfae-4f47b9d947af
2024-10-26 09:52:17,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579, 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-16994805:ctest-vn-29286085, 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-10-26 09:52:17,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a5276e3-9403-4cbd-af66-03b7a6a7c32a', 'name': 'ctest-vn-44376579', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de4c0841-0b1a-44cb-a263-477e7cbc4eb7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-44376579'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592']], 'subnet_ipam': [{'subnet_cidr': '94.142.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:52:18,249 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd5589e8-884d-4f6d-bfae-4f47b9d947af', 'name': 'ctest-vn-29286085', 'tenant_id': '058e1c315cf84d6b8462f87a89071c27', 'project_id': '058e1c315cf84d6b8462f87a89071c27', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e46fa7d0-433e-4f8f-afc3-8ecea86a30d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-vn-29286085'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592']], 'subnet_ipam': [{'subnet_cidr': '140.215.33.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 09:52:18,418 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-26 09:52:18,721 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-26 09:52:18,754 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772
2024-10-26 09:52:18,770 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27
2024-10-26 09:52:18,850 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a
2024-10-26 09:52:18,869 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a
2024-10-26 09:52:18,884 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f
2024-10-26 09:52:18,894 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f
2024-10-26 09:52:18,903 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/33b6899c-daf7-4e54-adfb-b20d1d31b139
2024-10-26 09:52:18,912 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 09:52:18,912 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a
2024-10-26 09:52:18,926 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f
2024-10-26 09:52:18,946 - INFO - Verified VN network id 9 for VN 2a5276e3-9403-4cbd-af66-03b7a6a7c32a
2024-10-26 09:52:18,946 - INFO - Verifications in API Server for VN ctest-vn-44376579 passed
2024-10-26 09:52:18,946 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a
2024-10-26 09:52:18,962 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f
2024-10-26 09:52:18,970 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cf9bb1e2-2a06-4014-a458-e52f04d81f0f
2024-10-26 09:52:18,979 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/33b6899c-daf7-4e54-adfb-b20d1d31b139
2024-10-26 09:52:18,992 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16994805', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3049630617496145085', 'uuid-lslong': '12638793491571786538'}, 'enable': 'true', 'created': '2024-10-26T09:52:16', 'last-modified': '2024-10-26T09:52:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032122'}
2024-10-26 09:52:18,999 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 09:52:19,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44376579 passed
2024-10-26 09:52:19,000 - DEBUG - ====Verifying policy data for ctest-vn-44376579 in API_Server ======
2024-10-26 09:52:19,000 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-26 09:52:19,008 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772
2024-10-26 09:52:19,022 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27
2024-10-26 09:52:19,110 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/2a5276e3-9403-4cbd-af66-03b7a6a7c32a
2024-10-26 09:52:19,125 - DEBUG - ==>Verifying data for policy with id: 696f4bc2-d396-42a6-be7a-e9a287dd0a55, fqn: ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592']
2024-10-26 09:52:19,125 - INFO - VN ctest-vn-44376579 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 09:52:19,125 - DEBUG - Verifying the vn in opserver
2024-10-26 09:52:19,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579 virtual network link through opserver 10.0.0.34
2024-10-26 09:52:19,126 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-26 09:52:19,426 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-26 09:52:19,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579?flat'}
2024-10-26 09:52:19,494 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-44376579 is found in opserver
2024-10-26 09:52:19,507 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 09:52:19,513 - DEBUG - VRF ids for VN ctest-vn-44376579: {}
2024-10-26 09:52:19,513 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-26 09:52:19,520 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772
2024-10-26 09:52:19,536 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27
2024-10-26 09:52:19,616 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af
2024-10-26 09:52:19,634 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af
2024-10-26 09:52:19,648 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9
2024-10-26 09:52:19,657 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9
2024-10-26 09:52:19,669 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5e2a4f75-9ef6-4634-ae73-70c2fb6444b0
2024-10-26 09:52:19,678 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 09:52:19,679 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af
2024-10-26 09:52:19,694 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9
2024-10-26 09:52:19,719 - INFO - Verified VN network id 10 for VN bd5589e8-884d-4f6d-bfae-4f47b9d947af
2024-10-26 09:52:19,719 - INFO - Verifications in API Server for VN ctest-vn-29286085 passed
2024-10-26 09:52:19,719 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af
2024-10-26 09:52:19,733 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9
2024-10-26 09:52:19,742 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/58bcfb05-f738-452a-a229-5d25cc67eff9
2024-10-26 09:52:19,751 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/5e2a4f75-9ef6-4634-ae73-70c2fb6444b0
2024-10-26 09:52:19,765 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16994805', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13642962278000971629', 'uuid-lslong': '13812064276671186863'}, 'enable': 'true', 'created': '2024-10-26T09:52:17', 'last-modified': '2024-10-26T09:52:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.546944'}
2024-10-26 09:52:19,774 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 09:52:19,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29286085 passed
2024-10-26 09:52:19,774 - DEBUG - ====Verifying policy data for ctest-vn-29286085 in API_Server ======
2024-10-26 09:52:19,775 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-26 09:52:19,782 - DEBUG - Requesting: http://10.0.0.34:8082/domain/f4ef1cda-1e03-4455-a85b-b28c3d42c772
2024-10-26 09:52:19,796 - DEBUG - Requesting: http://10.0.0.34:8082/project/058e1c31-5cf8-4d6b-8462-f87a89071c27
2024-10-26 09:52:19,879 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/bd5589e8-884d-4f6d-bfae-4f47b9d947af
2024-10-26 09:52:19,896 - DEBUG - ==>Verifying data for policy with id: 696f4bc2-d396-42a6-be7a-e9a287dd0a55, fqn: ['default-domain', 'ctest-TestBasicPolicy-16994805', 'ctest-policy-allow-all-89771592']
2024-10-26 09:52:19,896 - INFO - VN ctest-vn-29286085 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 09:52:19,896 - DEBUG - Verifying the vn in opserver
2024-10-26 09:52:19,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085 virtual network link through opserver 10.0.0.34
2024-10-26 09:52:19,896 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-26 09:52:19,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085?flat'}
2024-10-26 09:52:19,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16994805:ctest-vn-29286085 is found in opserver
2024-10-26 09:52:19,925 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 09:52:19,932 - DEBUG - VRF ids for VN ctest-vn-29286085: {}
2024-10-26 09:52:20,007 - DEBUG - Services list from nova: [