2025-09-21 15:06:24,753 - INFO - Domain Default found not creating
2025-09-21 15:06:24,922 - INFO - Project ctest-TestBasicPolicy-20882062 not found, creating it
2025-09-21 15:06:25,384 - INFO - Created Project:ctest-TestBasicPolicy-20882062, ID : 1b846ddf-f9d3-4153-a17c-27d5f39c7b23
2025-09-21 15:06:26,789 - INFO - ================================================================================
2025-09-21 15:06:26,789 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-21 15:06:26,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-09-21 15:06:27,046 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-09-21 15:06:27,046 - INFO - Initial checks done. Running the testcase now
2025-09-21 15:06:27,046 - INFO -
2025-09-21 15:06:27,568 - DEBUG - Response for create_network : {'network': {'id': '2638da64-d891-406f-a57b-efe6d4f7864e', 'name': 'ctest-vn-45087490', 'tenant_id': '1b846ddff9d34153a17c27d5f39c7b23', 'project_id': '1b846ddff9d34153a17c27d5f39c7b23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-vn-45087490'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 15:06:27,726 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb3d79ef-e44e-4fb2-8c28-f9970fcaf694', 'name': '', 'tenant_id': '1b846ddff9d34153a17c27d5f39c7b23', 'network_id': '2638da64-d891-406f-a57b-efe6d4f7864e', 'ip_version': 4, 'cidr': '163.255.51.128/26', 'allocation_pools': [{'start': '163.255.51.130', 'end': '163.255.51.190'}], 'gateway_ip': '163.255.51.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.255.51.130', 'tags': [], 'project_id': '1b846ddff9d34153a17c27d5f39c7b23'}}
2025-09-21 15:06:27,744 - INFO - Created VN ctest-vn-45087490
2025-09-21 15:06:27,797 - DEBUG - VN ctest-vn-45087490 UUID is 2638da64-d891-406f-a57b-efe6d4f7864e
2025-09-21 15:06:28,078 - DEBUG - Response for create_network : {'network': {'id': '5db5f649-f557-4563-a9b0-92f11f422133', 'name': 'ctest-vn-21696383', 'tenant_id': '1b846ddff9d34153a17c27d5f39c7b23', 'project_id': '1b846ddff9d34153a17c27d5f39c7b23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-vn-21696383'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 15:06:28,234 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac8b16ce-9074-4ad0-bf4b-00d14fd39690', 'name': '', 'tenant_id': '1b846ddff9d34153a17c27d5f39c7b23', 'network_id': '5db5f649-f557-4563-a9b0-92f11f422133', 'ip_version': 4, 'cidr': '175.26.78.192/26', 'allocation_pools': [{'start': '175.26.78.194', 'end': '175.26.78.254'}], 'gateway_ip': '175.26.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.26.78.194', 'tags': [], 'project_id': '1b846ddff9d34153a17c27d5f39c7b23'}}
2025-09-21 15:06:28,253 - INFO - Created VN ctest-vn-21696383
2025-09-21 15:06:28,305 - DEBUG - VN ctest-vn-21696383 UUID is 5db5f649-f557-4563-a9b0-92f11f422133
2025-09-21 15:06:28,483 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-45087490, 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-20882062:ctest-vn-21696383, 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-09-21 15:06:28,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2638da64-d891-406f-a57b-efe6d4f7864e', 'name': 'ctest-vn-45087490', 'tenant_id': '1b846ddff9d34153a17c27d5f39c7b23', 'project_id': '1b846ddff9d34153a17c27d5f39c7b23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb3d79ef-e44e-4fb2-8c28-f9970fcaf694'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-vn-45087490'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-policy-allow-all-74660568']], 'subnet_ipam': [{'subnet_cidr': '163.255.51.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-21 15:06:29,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5db5f649-f557-4563-a9b0-92f11f422133', 'name': 'ctest-vn-21696383', 'tenant_id': '1b846ddff9d34153a17c27d5f39c7b23', 'project_id': '1b846ddff9d34153a17c27d5f39c7b23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac8b16ce-9074-4ad0-bf4b-00d14fd39690'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-vn-21696383'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-policy-allow-all-74660568']], 'subnet_ipam': [{'subnet_cidr': '175.26.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-21 15:06:29,165 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-21 15:06:29,457 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-21 15:06:29,484 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc
2025-09-21 15:06:29,495 - DEBUG - Requesting: http://10.0.0.48:8082/project/1b846ddf-f9d3-4153-a17c-27d5f39c7b23
2025-09-21 15:06:29,562 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2638da64-d891-406f-a57b-efe6d4f7864e
2025-09-21 15:06:29,571 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2638da64-d891-406f-a57b-efe6d4f7864e
2025-09-21 15:06:29,579 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f9694959-3107-44c3-ac1d-9f5c1cc04aa6
2025-09-21 15:06:29,585 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f9694959-3107-44c3-ac1d-9f5c1cc04aa6
2025-09-21 15:06:29,591 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/03c8ce46-7a13-41e7-8832-e2d9e516b1be
2025-09-21 15:06:29,597 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-21 15:06:29,597 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2638da64-d891-406f-a57b-efe6d4f7864e
2025-09-21 15:06:29,605 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f9694959-3107-44c3-ac1d-9f5c1cc04aa6
2025-09-21 15:06:29,618 - INFO - Verified VN network id 9 for VN 2638da64-d891-406f-a57b-efe6d4f7864e
2025-09-21 15:06:29,618 - INFO - Verifications in API Server for VN ctest-vn-45087490 passed
2025-09-21 15:06:29,618 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2638da64-d891-406f-a57b-efe6d4f7864e
2025-09-21 15:06:29,626 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f9694959-3107-44c3-ac1d-9f5c1cc04aa6
2025-09-21 15:06:29,632 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f9694959-3107-44c3-ac1d-9f5c1cc04aa6
2025-09-21 15:06:29,637 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/03c8ce46-7a13-41e7-8832-e2d9e516b1be
2025-09-21 15:06:29,647 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-45087490', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20882062', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2754191298802040943', 'uuid-lslong': '11924388213088028238'}, 'enable': 'true', 'created': '2025-09-21T15:06:27', 'last-modified': '2025-09-21T15:06:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889527'}
2025-09-21 15:06:29,653 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-21 15:06:29,653 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45087490 passed
2025-09-21 15:06:29,654 - DEBUG - ====Verifying policy data for ctest-vn-45087490 in API_Server ======
2025-09-21 15:06:29,654 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-21 15:06:29,658 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc
2025-09-21 15:06:29,667 - DEBUG - Requesting: http://10.0.0.48:8082/project/1b846ddf-f9d3-4153-a17c-27d5f39c7b23
2025-09-21 15:06:29,735 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2638da64-d891-406f-a57b-efe6d4f7864e
2025-09-21 15:06:29,744 - DEBUG - ==>Verifying data for policy with id: 6b4bb960-0561-4349-97fd-325fcd515b8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-policy-allow-all-74660568']
2025-09-21 15:06:29,744 - INFO - VN ctest-vn-45087490 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-21 15:06:29,744 - DEBUG - Verifying the vn in opserver
2025-09-21 15:06:29,744 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-45087490 virtual network link through opserver 10.0.0.48
2025-09-21 15:06:29,745 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-21 15:06:30,050 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-21 15:06:30,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-45087490', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-45087490?flat'}
2025-09-21 15:06:30,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-45087490 is found in opserver
2025-09-21 15:06:30,156 - DEBUG - Do not have enough data to verify VN in agent
2025-09-21 15:06:30,161 - DEBUG - VRF ids for VN ctest-vn-45087490: {}
2025-09-21 15:06:30,161 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-21 15:06:30,174 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc
2025-09-21 15:06:30,237 - DEBUG - Requesting: http://10.0.0.48:8082/project/1b846ddf-f9d3-4153-a17c-27d5f39c7b23
2025-09-21 15:06:30,326 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5db5f649-f557-4563-a9b0-92f11f422133
2025-09-21 15:06:30,346 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5db5f649-f557-4563-a9b0-92f11f422133
2025-09-21 15:06:30,363 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/34a9f3e3-c7bc-4d18-844b-4f93772b3075
2025-09-21 15:06:30,371 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/34a9f3e3-c7bc-4d18-844b-4f93772b3075
2025-09-21 15:06:30,387 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/042fb485-ba7e-41e3-948f-1ed6fef1d5d9
2025-09-21 15:06:30,397 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-21 15:06:30,397 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5db5f649-f557-4563-a9b0-92f11f422133
2025-09-21 15:06:30,406 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/34a9f3e3-c7bc-4d18-844b-4f93772b3075
2025-09-21 15:06:30,438 - INFO - Verified VN network id 10 for VN 5db5f649-f557-4563-a9b0-92f11f422133
2025-09-21 15:06:30,438 - INFO - Verifications in API Server for VN ctest-vn-21696383 passed
2025-09-21 15:06:30,438 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5db5f649-f557-4563-a9b0-92f11f422133
2025-09-21 15:06:30,451 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/34a9f3e3-c7bc-4d18-844b-4f93772b3075
2025-09-21 15:06:30,458 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/34a9f3e3-c7bc-4d18-844b-4f93772b3075
2025-09-21 15:06:30,469 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/042fb485-ba7e-41e3-948f-1ed6fef1d5d9
2025-09-21 15:06:30,491 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-21696383', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20882062', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6752574013821109603', 'uuid-lslong': '12227434552620097843'}, 'enable': 'true', 'created': '2025-09-21T15:06:28', 'last-modified': '2025-09-21T15:06:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.508485'}
2025-09-21 15:06:30,497 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-21 15:06:30,498 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21696383 passed
2025-09-21 15:06:30,498 - DEBUG - ====Verifying policy data for ctest-vn-21696383 in API_Server ======
2025-09-21 15:06:30,498 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-21 15:06:30,508 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc
2025-09-21 15:06:30,550 - DEBUG - Requesting: http://10.0.0.48:8082/project/1b846ddf-f9d3-4153-a17c-27d5f39c7b23
2025-09-21 15:06:30,657 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5db5f649-f557-4563-a9b0-92f11f422133
2025-09-21 15:06:30,675 - DEBUG - ==>Verifying data for policy with id: 6b4bb960-0561-4349-97fd-325fcd515b8a, fqn: ['default-domain', 'ctest-TestBasicPolicy-20882062', 'ctest-policy-allow-all-74660568']
2025-09-21 15:06:30,676 - INFO - VN ctest-vn-21696383 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-21 15:06:30,676 - DEBUG - Verifying the vn in opserver
2025-09-21 15:06:30,676 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-21696383 virtual network link through opserver 10.0.0.48
2025-09-21 15:06:30,676 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-21 15:06:30,689 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-21696383', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-21696383?flat'}
2025-09-21 15:06:30,689 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20882062:ctest-vn-21696383 is found in opserver
2025-09-21 15:06:30,706 - DEBUG - Do not have enough data to verify VN in agent
2025-09-21 15:06:30,710 - DEBUG - VRF ids for VN ctest-vn-21696383: {}
2025-09-21 15:06:30,780 - DEBUG - Services list from nova: [