2025-06-30 17:28:10,223 - INFO - Domain Default found not creating
2025-06-30 17:28:10,586 - INFO - Project ctest-TestBasicPolicy-79313848 not found, creating it
2025-06-30 17:28:11,428 - INFO - Created Project:ctest-TestBasicPolicy-79313848, ID : 4438d2b5-d98f-4103-b03b-a63ed106ac63
2025-06-30 17:28:13,962 - INFO - ================================================================================
2025-06-30 17:28:13,962 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 17:28:13,962 - 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-06-30 17:28:14,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-30 17:28:14,290 - INFO - Initial checks done. Running the testcase now
2025-06-30 17:28:14,290 - INFO -
2025-06-30 17:28:15,063 - DEBUG - Response for create_network : {'network': {'id': '2a3c11ec-3781-4a3d-8742-d3c67a46838a', 'name': 'ctest-vn-89942333', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-89942333'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 17:28:15,320 - DEBUG - Response for create_subnet : {'subnet': {'id': '45ddf501-bf12-4d8a-afe4-208e74bab778', 'name': '', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'network_id': '2a3c11ec-3781-4a3d-8742-d3c67a46838a', 'ip_version': 4, 'cidr': '171.194.219.128/26', 'allocation_pools': [{'start': '171.194.219.130', 'end': '171.194.219.190'}], 'gateway_ip': '171.194.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.194.219.130', 'tags': [], 'project_id': '4438d2b5d98f4103b03ba63ed106ac63'}}
2025-06-30 17:28:15,351 - INFO - Created VN ctest-vn-89942333
2025-06-30 17:28:15,418 - DEBUG - VN ctest-vn-89942333 UUID is 2a3c11ec-3781-4a3d-8742-d3c67a46838a
2025-06-30 17:28:15,865 - DEBUG - Response for create_network : {'network': {'id': '833f47db-a4a1-4aab-8fea-0fdb378a572c', 'name': 'ctest-vn-19896906', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-19896906'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 17:28:16,097 - DEBUG - Response for create_subnet : {'subnet': {'id': '9eeb85ea-2599-445d-8c46-ca96842da354', 'name': '', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'network_id': '833f47db-a4a1-4aab-8fea-0fdb378a572c', 'ip_version': 4, 'cidr': '21.196.70.128/26', 'allocation_pools': [{'start': '21.196.70.130', 'end': '21.196.70.190'}], 'gateway_ip': '21.196.70.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.196.70.130', 'tags': [], 'project_id': '4438d2b5d98f4103b03ba63ed106ac63'}}
2025-06-30 17:28:16,116 - INFO - Created VN ctest-vn-19896906
2025-06-30 17:28:16,174 - DEBUG - VN ctest-vn-19896906 UUID is 833f47db-a4a1-4aab-8fea-0fdb378a572c
2025-06-30 17:28:16,336 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333, 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-79313848:ctest-vn-19896906, 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-06-30 17:28:17,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a3c11ec-3781-4a3d-8742-d3c67a46838a', 'name': 'ctest-vn-89942333', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45ddf501-bf12-4d8a-afe4-208e74bab778'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-89942333'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589']], 'subnet_ipam': [{'subnet_cidr': '171.194.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 17:28:17,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '833f47db-a4a1-4aab-8fea-0fdb378a572c', 'name': 'ctest-vn-19896906', 'tenant_id': '4438d2b5d98f4103b03ba63ed106ac63', 'project_id': '4438d2b5d98f4103b03ba63ed106ac63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9eeb85ea-2599-445d-8c46-ca96842da354'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-vn-19896906'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589']], 'subnet_ipam': [{'subnet_cidr': '21.196.70.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 17:28:17,498 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-30 17:28:17,815 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-30 17:28:17,857 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a
2025-06-30 17:28:17,874 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63
2025-06-30 17:28:17,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a
2025-06-30 17:28:17,972 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a
2025-06-30 17:28:17,985 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f
2025-06-30 17:28:17,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f
2025-06-30 17:28:18,003 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/220d2552-f142-4026-b451-865e67db03a9
2025-06-30 17:28:18,010 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 17:28:18,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a
2025-06-30 17:28:18,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f
2025-06-30 17:28:18,041 - INFO - Verified VN network id 9 for VN 2a3c11ec-3781-4a3d-8742-d3c67a46838a
2025-06-30 17:28:18,041 - INFO - Verifications in API Server for VN ctest-vn-89942333 passed
2025-06-30 17:28:18,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a
2025-06-30 17:28:18,052 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f
2025-06-30 17:28:18,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ac2fbc74-d500-4eb7-b170-f5de3e0de63f
2025-06-30 17:28:18,067 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/220d2552-f142-4026-b451-865e67db03a9
2025-06-30 17:28:18,082 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79313848', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3043327154436786749', 'uuid-lslong': '9746585392991601546'}, 'enable': 'true', 'created': '2025-06-30T17:28:15', 'last-modified': '2025-06-30T17:28:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.140152'}
2025-06-30 17:28:18,090 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 17:28:18,090 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89942333 passed
2025-06-30 17:28:18,090 - DEBUG - ====Verifying policy data for ctest-vn-89942333 in API_Server ======
2025-06-30 17:28:18,090 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-30 17:28:18,097 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a
2025-06-30 17:28:18,112 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63
2025-06-30 17:28:18,200 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a3c11ec-3781-4a3d-8742-d3c67a46838a
2025-06-30 17:28:18,214 - DEBUG - ==>Verifying data for policy with id: a445d7c7-c077-460f-a936-6564925b537c, fqn: ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589']
2025-06-30 17:28:18,215 - INFO - VN ctest-vn-89942333 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 17:28:18,215 - DEBUG - Verifying the vn in opserver
2025-06-30 17:28:18,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333 virtual network link through opserver 10.0.0.38
2025-06-30 17:28:18,215 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-30 17:28:18,510 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-30 17:28:18,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333?flat'}
2025-06-30 17:28:18,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-89942333 is found in opserver
2025-06-30 17:28:18,625 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 17:28:18,637 - DEBUG - VRF ids for VN ctest-vn-89942333: {}
2025-06-30 17:28:18,637 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-30 17:28:18,649 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a
2025-06-30 17:28:18,680 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63
2025-06-30 17:28:18,814 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c
2025-06-30 17:28:18,855 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c
2025-06-30 17:28:18,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5
2025-06-30 17:28:18,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5
2025-06-30 17:28:18,937 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03ced8d1-66d2-4e6c-b74e-1e431cb25adf
2025-06-30 17:28:18,961 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 17:28:18,961 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c
2025-06-30 17:28:18,996 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5
2025-06-30 17:28:19,038 - INFO - Verified VN network id 10 for VN 833f47db-a4a1-4aab-8fea-0fdb378a572c
2025-06-30 17:28:19,038 - INFO - Verifications in API Server for VN ctest-vn-19896906 passed
2025-06-30 17:28:19,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c
2025-06-30 17:28:19,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5
2025-06-30 17:28:19,082 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/96b49412-a8b0-468c-a544-a46dc4fa8cf5
2025-06-30 17:28:19,098 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/03ced8d1-66d2-4e6c-b74e-1e431cb25adf
2025-06-30 17:28:19,124 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79313848', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9457356751186774699', 'uuid-lslong': '10370118526178055980'}, 'enable': 'true', 'created': '2025-06-30T17:28:15', 'last-modified': '2025-06-30T17:28:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.810693'}
2025-06-30 17:28:19,140 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 17:28:19,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19896906 passed
2025-06-30 17:28:19,140 - DEBUG - ====Verifying policy data for ctest-vn-19896906 in API_Server ======
2025-06-30 17:28:19,141 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-30 17:28:19,152 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a7a39382-e899-4ded-9dc7-9a6ee9d43d3a
2025-06-30 17:28:19,175 - DEBUG - Requesting: http://10.0.0.38:8082/project/4438d2b5-d98f-4103-b03b-a63ed106ac63
2025-06-30 17:28:19,291 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/833f47db-a4a1-4aab-8fea-0fdb378a572c
2025-06-30 17:28:19,319 - DEBUG - ==>Verifying data for policy with id: a445d7c7-c077-460f-a936-6564925b537c, fqn: ['default-domain', 'ctest-TestBasicPolicy-79313848', 'ctest-policy-allow-all-64563589']
2025-06-30 17:28:19,320 - INFO - VN ctest-vn-19896906 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 17:28:19,320 - DEBUG - Verifying the vn in opserver
2025-06-30 17:28:19,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906 virtual network link through opserver 10.0.0.38
2025-06-30 17:28:19,320 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-30 17:28:19,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906?flat'}
2025-06-30 17:28:19,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79313848:ctest-vn-19896906 is found in opserver
2025-06-30 17:28:19,377 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 17:28:19,394 - DEBUG - VRF ids for VN ctest-vn-19896906: {}
2025-06-30 17:28:19,536 - DEBUG - Services list from nova: [