2025-10-30 02:02:39,472 - INFO - Reading existing Domain with UUID e05897ec-8f26-4de0-b53d-6381700aec6a
2025-10-30 02:02:39,486 - INFO - Using existing domain ['admin_domain'](e05897ec-8f26-4de0-b53d-6381700aec6a)
2025-10-30 02:02:39,718 - INFO - Project ctest-TestBasicPolicy-45801335 not found, creating it
2025-10-30 02:02:40,215 - INFO - Created Project:ctest-TestBasicPolicy-45801335, ID : cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef
2025-10-30 02:02:41,960 - INFO - ================================================================================
2025-10-30 02:02:41,961 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 02:02:41,961 - 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-10-30 02:02:42,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with
2025-10-30 02:02:42,365 - INFO - Initial checks done. Running the testcase now
2025-10-30 02:02:42,365 - INFO -
2025-10-30 02:02:43,139 - DEBUG - Response for create_network : {'network': {'id': 'e222579a-4f9a-4751-b8cf-1eea8a0621d6', 'name': 'ctest-vn-36761127', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-36761127'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-30 02:02:43,352 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e6bfcbb-2d74-4cdb-9f74-c907d22b1ea6', 'name': '', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'network_id': 'e222579a-4f9a-4751-b8cf-1eea8a0621d6', 'ip_version': 4, 'cidr': '116.151.48.64/26', 'allocation_pools': [{'start': '116.151.48.66', 'end': '116.151.48.126'}], 'gateway_ip': '116.151.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-30T02:02:43.249902', 'updated_at': '2025-10-30T02:02:43.249902', 'dns_server_address': '116.151.48.66', 'tags': [], 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef'}}
2025-10-30 02:02:43,417 - INFO - Created VN ctest-vn-36761127
2025-10-30 02:02:43,475 - DEBUG - VN ctest-vn-36761127 UUID is e222579a-4f9a-4751-b8cf-1eea8a0621d6
2025-10-30 02:02:44,007 - DEBUG - Response for create_network : {'network': {'id': '77a7e031-334f-4d3e-8a3b-f76e3abdfa8b', 'name': 'ctest-vn-28500744', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-28500744'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-30 02:02:44,285 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd97f23e2-bd4f-4450-9f47-091550161c4b', 'name': '', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'network_id': '77a7e031-334f-4d3e-8a3b-f76e3abdfa8b', 'ip_version': 4, 'cidr': '90.190.107.0/26', 'allocation_pools': [{'start': '90.190.107.2', 'end': '90.190.107.62'}], 'gateway_ip': '90.190.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-30T02:02:44.172705', 'updated_at': '2025-10-30T02:02:44.172705', 'dns_server_address': '90.190.107.2', 'tags': [], 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef'}}
2025-10-30 02:02:44,353 - INFO - Created VN ctest-vn-28500744
2025-10-30 02:02:44,415 - DEBUG - VN ctest-vn-28500744 UUID is 77a7e031-334f-4d3e-8a3b-f76e3abdfa8b
2025-10-30 02:02:44,631 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744, 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-10-30 02:02:45,038 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e222579a-4f9a-4751-b8cf-1eea8a0621d6', 'name': 'ctest-vn-36761127', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e6bfcbb-2d74-4cdb-9f74-c907d22b1ea6'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-36761127'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824']], 'subnet_ipam': [{'subnet_cidr': '116.151.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-30T02:02:43.065878', 'updated_at': '2025-10-30T02:02:43.262712'}}
2025-10-30 02:02:45,391 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77a7e031-334f-4d3e-8a3b-f76e3abdfa8b', 'name': 'ctest-vn-28500744', 'tenant_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'project_id': 'cb8f4f4f93cd4cfd8d0bce9c1d4d23ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d97f23e2-bd4f-4450-9f47-091550161c4b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-vn-28500744'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824']], 'subnet_ipam': [{'subnet_cidr': '90.190.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-30T02:02:43.931274', 'updated_at': '2025-10-30T02:02:44.186478'}}
2025-10-30 02:02:45,611 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-30 02:02:45,960 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-30 02:02:46,043 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a
2025-10-30 02:02:46,100 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef
2025-10-30 02:02:46,176 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6
2025-10-30 02:02:46,233 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6
2025-10-30 02:02:46,288 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33
2025-10-30 02:02:46,344 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33
2025-10-30 02:02:46,400 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/d8b26ae4-f967-4b34-906a-b19db2ba39d7
2025-10-30 02:02:46,455 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:02:46,455 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6
2025-10-30 02:02:46,508 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33
2025-10-30 02:02:46,573 - INFO - Verified VN network id 11 for VN e222579a-4f9a-4751-b8cf-1eea8a0621d6
2025-10-30 02:02:46,573 - INFO - Verifications in API Server for VN ctest-vn-36761127 passed
2025-10-30 02:02:46,573 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6
2025-10-30 02:02:46,629 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33
2025-10-30 02:02:46,684 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/2dd1982c-1d0e-42f4-8dd3-0fa936ae6e33
2025-10-30 02:02:46,740 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/d8b26ae4-f967-4b34-906a-b19db2ba39d7
2025-10-30 02:02:46,844 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45801335', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16294682722051966801', 'uuid-lslong': '13316896615844684246'}, 'enable': 'true', 'created': '2025-10-30T02:02:43', 'last-modified': '2025-10-30T02:02:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.826440'}
2025-10-30 02:02:46,898 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 02:02:46,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36761127 passed
2025-10-30 02:02:46,898 - DEBUG - ====Verifying policy data for ctest-vn-36761127 in API_Server ======
2025-10-30 02:02:46,898 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-30 02:02:46,955 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a
2025-10-30 02:02:47,012 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef
2025-10-30 02:02:47,088 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/e222579a-4f9a-4751-b8cf-1eea8a0621d6
2025-10-30 02:02:47,144 - DEBUG - ==>Verifying data for policy with id: 5fcc9b3a-62d4-4f27-95a2-e3fd730dbe92, fqn: ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824']
2025-10-30 02:02:47,144 - INFO - VN ctest-vn-36761127 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:02:47,144 - DEBUG - Verifying the vn in opserver
2025-10-30 02:02:47,144 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127 virtual network link through opserver 10.0.0.27
2025-10-30 02:02:47,145 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-30 02:02:47,486 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-30 02:02:47,600 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127?flat'}
2025-10-30 02:02:47,600 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-36761127 is found in opserver
2025-10-30 02:02:47,699 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:02:47,747 - DEBUG - VRF ids for VN ctest-vn-36761127: {}
2025-10-30 02:02:47,747 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-30 02:02:47,799 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a
2025-10-30 02:02:47,860 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef
2025-10-30 02:02:47,940 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b
2025-10-30 02:02:47,996 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b
2025-10-30 02:02:48,052 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33
2025-10-30 02:02:48,108 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33
2025-10-30 02:02:48,160 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/cfb945e1-9486-4443-8921-01b0784483c0
2025-10-30 02:02:48,212 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:02:48,212 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b
2025-10-30 02:02:48,269 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33
2025-10-30 02:02:48,332 - INFO - Verified VN network id 12 for VN 77a7e031-334f-4d3e-8a3b-f76e3abdfa8b
2025-10-30 02:02:48,332 - INFO - Verifications in API Server for VN ctest-vn-28500744 passed
2025-10-30 02:02:48,332 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b
2025-10-30 02:02:48,393 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33
2025-10-30 02:02:48,452 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e8a15787-12e3-4dd6-be4e-88e6612bce33
2025-10-30 02:02:48,503 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/cfb945e1-9486-4443-8921-01b0784483c0
2025-10-30 02:02:48,608 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45801335', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8622106513542958398', 'uuid-lslong': '9960827053663976075'}, 'enable': 'true', 'created': '2025-10-30T02:02:43', 'last-modified': '2025-10-30T02:02:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.246767'}
2025-10-30 02:02:48,661 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 02:02:48,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28500744 passed
2025-10-30 02:02:48,661 - DEBUG - ====Verifying policy data for ctest-vn-28500744 in API_Server ======
2025-10-30 02:02:48,661 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2025-10-30 02:02:48,715 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a
2025-10-30 02:02:48,776 - DEBUG - Requesting: https://10.0.0.27:8082/project/cb8f4f4f-93cd-4cfd-8d0b-ce9c1d4d23ef
2025-10-30 02:02:48,860 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/77a7e031-334f-4d3e-8a3b-f76e3abdfa8b
2025-10-30 02:02:48,917 - DEBUG - ==>Verifying data for policy with id: 5fcc9b3a-62d4-4f27-95a2-e3fd730dbe92, fqn: ['admin_domain', 'ctest-TestBasicPolicy-45801335', 'ctest-policy-allow-all-75934824']
2025-10-30 02:02:48,917 - INFO - VN ctest-vn-28500744 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 02:02:48,917 - DEBUG - Verifying the vn in opserver
2025-10-30 02:02:48,917 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744 virtual network link through opserver 10.0.0.27
2025-10-30 02:02:48,917 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-30 02:02:48,971 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744?flat'}
2025-10-30 02:02:48,971 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-45801335:ctest-vn-28500744 is found in opserver
2025-10-30 02:02:49,075 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 02:02:49,123 - DEBUG - VRF ids for VN ctest-vn-28500744: {}
2025-10-30 02:02:49,185 - DEBUG - Services list from nova: [