2025-05-26 18:18:26,255 - INFO - Domain Default found not creating
2025-05-26 18:18:26,423 - INFO - Project ctest-TestBasicPolicy-13357485 not found, creating it
2025-05-26 18:18:26,966 - INFO - Created Project:ctest-TestBasicPolicy-13357485, ID : 1b9dbb45-eee9-44ed-8710-a15b15b2f168
2025-05-26 18:18:29,030 - INFO - ================================================================================
2025-05-26 18:18:29,030 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-26 18:18:29,030 - 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-05-26 18:18:29,358 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-05-26 18:18:29,360 - INFO - Initial checks done. Running the testcase now
2025-05-26 18:18:29,360 - INFO -
2025-05-26 18:18:30,164 - DEBUG - Response for create_network : {'network': {'id': '5869f2a6-ad89-4f82-9a54-f5f6d58d94ed', 'name': 'ctest-vn-94196068', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-94196068'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 18:18:30,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '0538ad6f-9fae-41af-aa28-6cb2146e54ba', 'name': '', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'network_id': '5869f2a6-ad89-4f82-9a54-f5f6d58d94ed', 'ip_version': 4, 'cidr': '222.196.37.192/26', 'allocation_pools': [{'start': '222.196.37.194', 'end': '222.196.37.254'}], 'gateway_ip': '222.196.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.196.37.194', 'tags': [], 'project_id': '1b9dbb45eee944ed8710a15b15b2f168'}}
2025-05-26 18:18:30,450 - INFO - Created VN ctest-vn-94196068
2025-05-26 18:18:30,504 - DEBUG - VN ctest-vn-94196068 UUID is 5869f2a6-ad89-4f82-9a54-f5f6d58d94ed
2025-05-26 18:18:30,989 - DEBUG - Response for create_network : {'network': {'id': 'a77de82e-9dbf-4e59-85e0-b550e47d3f56', 'name': 'ctest-vn-08887578', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-08887578'], 'port_security_enabled': True, 'description': ''}}
2025-05-26 18:18:31,185 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b262acac-11a3-4d60-a565-8f6980bcbf1d', 'name': '', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'network_id': 'a77de82e-9dbf-4e59-85e0-b550e47d3f56', 'ip_version': 4, 'cidr': '57.40.140.64/26', 'allocation_pools': [{'start': '57.40.140.66', 'end': '57.40.140.126'}], 'gateway_ip': '57.40.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.40.140.66', 'tags': [], 'project_id': '1b9dbb45eee944ed8710a15b15b2f168'}}
2025-05-26 18:18:31,212 - INFO - Created VN ctest-vn-08887578
2025-05-26 18:18:31,272 - DEBUG - VN ctest-vn-08887578 UUID is a77de82e-9dbf-4e59-85e0-b550e47d3f56
2025-05-26 18:18:31,456 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068, 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-13357485:ctest-vn-08887578, 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-05-26 18:18:31,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5869f2a6-ad89-4f82-9a54-f5f6d58d94ed', 'name': 'ctest-vn-94196068', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0538ad6f-9fae-41af-aa28-6cb2146e54ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-94196068'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823']], 'subnet_ipam': [{'subnet_cidr': '222.196.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 18:18:32,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a77de82e-9dbf-4e59-85e0-b550e47d3f56', 'name': 'ctest-vn-08887578', 'tenant_id': '1b9dbb45eee944ed8710a15b15b2f168', 'project_id': '1b9dbb45eee944ed8710a15b15b2f168', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b262acac-11a3-4d60-a565-8f6980bcbf1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-vn-08887578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823']], 'subnet_ipam': [{'subnet_cidr': '57.40.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-26 18:18:32,400 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 18:18:32,715 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 18:18:32,774 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13
2025-05-26 18:18:32,801 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168
2025-05-26 18:18:32,915 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed
2025-05-26 18:18:32,943 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed
2025-05-26 18:18:32,972 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781
2025-05-26 18:18:32,993 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781
2025-05-26 18:18:33,009 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0f90f417-1864-4347-a3cb-5a9cb688e1e7
2025-05-26 18:18:33,023 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 18:18:33,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed
2025-05-26 18:18:33,042 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781
2025-05-26 18:18:33,065 - INFO - Verified VN network id 8 for VN 5869f2a6-ad89-4f82-9a54-f5f6d58d94ed
2025-05-26 18:18:33,065 - INFO - Verifications in API Server for VN ctest-vn-94196068 passed
2025-05-26 18:18:33,065 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed
2025-05-26 18:18:33,080 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781
2025-05-26 18:18:33,090 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87e8e747-50ea-4758-b778-fb6ce9c8a781
2025-05-26 18:18:33,103 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0f90f417-1864-4347-a3cb-5a9cb688e1e7
2025-05-26 18:18:33,122 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13357485', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6370889945582227330', 'uuid-lslong': '11120783820378182893'}, 'enable': 'true', 'created': '2025-05-26T18:18:30', 'last-modified': '2025-05-26T18:18:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.261187'}
2025-05-26 18:18:33,131 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-26 18:18:33,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94196068 passed
2025-05-26 18:18:33,131 - DEBUG - ====Verifying policy data for ctest-vn-94196068 in API_Server ======
2025-05-26 18:18:33,131 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 18:18:33,140 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13
2025-05-26 18:18:33,161 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168
2025-05-26 18:18:33,262 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5869f2a6-ad89-4f82-9a54-f5f6d58d94ed
2025-05-26 18:18:33,287 - DEBUG - ==>Verifying data for policy with id: d5c77cbb-23b5-486b-9aa8-f8bd35ff4a8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823']
2025-05-26 18:18:33,288 - INFO - VN ctest-vn-94196068 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 18:18:33,288 - DEBUG - Verifying the vn in opserver
2025-05-26 18:18:33,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068 virtual network link through opserver 10.0.0.254
2025-05-26 18:18:33,288 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-26 18:18:33,600 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-26 18:18:33,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068?flat'}
2025-05-26 18:18:33,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-94196068 is found in opserver
2025-05-26 18:18:33,720 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 18:18:33,741 - DEBUG - VRF ids for VN ctest-vn-94196068: {}
2025-05-26 18:18:33,741 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 18:18:33,756 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13
2025-05-26 18:18:33,796 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168
2025-05-26 18:18:33,904 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56
2025-05-26 18:18:33,933 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56
2025-05-26 18:18:33,961 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6
2025-05-26 18:18:33,982 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6
2025-05-26 18:18:34,001 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a30f848-ef4c-491c-a876-15a2a1c00eaa
2025-05-26 18:18:34,021 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 18:18:34,021 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56
2025-05-26 18:18:34,051 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6
2025-05-26 18:18:34,101 - INFO - Verified VN network id 9 for VN a77de82e-9dbf-4e59-85e0-b550e47d3f56
2025-05-26 18:18:34,102 - INFO - Verifications in API Server for VN ctest-vn-08887578 passed
2025-05-26 18:18:34,102 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56
2025-05-26 18:18:34,137 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6
2025-05-26 18:18:34,156 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99bc7db4-2938-4b50-8f5e-ba1e2847e3c6
2025-05-26 18:18:34,177 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1a30f848-ef4c-491c-a876-15a2a1c00eaa
2025-05-26 18:18:34,216 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13357485', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12069057863335497305', 'uuid-lslong': '9646909760863027030'}, 'enable': 'true', 'created': '2025-05-26T18:18:30', 'last-modified': '2025-05-26T18:18:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.057416'}
2025-05-26 18:18:34,235 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-26 18:18:34,235 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08887578 passed
2025-05-26 18:18:34,236 - DEBUG - ====Verifying policy data for ctest-vn-08887578 in API_Server ======
2025-05-26 18:18:34,236 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-26 18:18:34,249 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dbcd54bb-3f07-4f63-8045-38b4ff870d13
2025-05-26 18:18:34,287 - DEBUG - Requesting: http://10.0.0.254:8082/project/1b9dbb45-eee9-44ed-8710-a15b15b2f168
2025-05-26 18:18:34,408 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a77de82e-9dbf-4e59-85e0-b550e47d3f56
2025-05-26 18:18:34,437 - DEBUG - ==>Verifying data for policy with id: d5c77cbb-23b5-486b-9aa8-f8bd35ff4a8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-13357485', 'ctest-policy-allow-all-42645823']
2025-05-26 18:18:34,437 - INFO - VN ctest-vn-08887578 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-26 18:18:34,437 - DEBUG - Verifying the vn in opserver
2025-05-26 18:18:34,437 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578 virtual network link through opserver 10.0.0.254
2025-05-26 18:18:34,437 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-26 18:18:34,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578?flat'}
2025-05-26 18:18:34,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13357485:ctest-vn-08887578 is found in opserver
2025-05-26 18:18:34,474 - DEBUG - Do not have enough data to verify VN in agent
2025-05-26 18:18:34,482 - DEBUG - VRF ids for VN ctest-vn-08887578: {}
2025-05-26 18:18:34,561 - DEBUG - Services list from nova: [