2025-08-15 09:30:48,043 - INFO - Domain Default found not creating
2025-08-15 09:30:48,189 - INFO - Project ctest-TestBasicPolicy-61908816 not found, creating it
2025-08-15 09:30:48,652 - INFO - Created Project:ctest-TestBasicPolicy-61908816, ID : 02b534b5-24b6-4312-abfa-bfcb415919aa
2025-08-15 09:30:49,966 - INFO - ================================================================================
2025-08-15 09:30:49,966 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 09:30:49,967 - 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-08-15 09:30:50,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-08-15 09:30:50,222 - INFO - Initial checks done. Running the testcase now
2025-08-15 09:30:50,222 - INFO -
2025-08-15 09:30:50,745 - DEBUG - Response for create_network : {'network': {'id': 'bdb948b2-36a5-4f5f-8985-6c792aa1be29', 'name': 'ctest-vn-26482135', 'tenant_id': '02b534b524b64312abfabfcb415919aa', 'project_id': '02b534b524b64312abfabfcb415919aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-vn-26482135'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:30:50,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0d56546-4498-4801-be05-67634d2c5482', 'name': '', 'tenant_id': '02b534b524b64312abfabfcb415919aa', 'network_id': 'bdb948b2-36a5-4f5f-8985-6c792aa1be29', 'ip_version': 4, 'cidr': '219.56.235.192/26', 'allocation_pools': [{'start': '219.56.235.194', 'end': '219.56.235.254'}], 'gateway_ip': '219.56.235.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.56.235.194', 'tags': [], 'project_id': '02b534b524b64312abfabfcb415919aa'}}
2025-08-15 09:30:50,908 - INFO - Created VN ctest-vn-26482135
2025-08-15 09:30:50,960 - DEBUG - VN ctest-vn-26482135 UUID is bdb948b2-36a5-4f5f-8985-6c792aa1be29
2025-08-15 09:30:51,260 - DEBUG - Response for create_network : {'network': {'id': '42266109-8773-4aaa-8b3b-124054c14af3', 'name': 'ctest-vn-73476606', 'tenant_id': '02b534b524b64312abfabfcb415919aa', 'project_id': '02b534b524b64312abfabfcb415919aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-vn-73476606'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:30:51,405 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3397e86-ab93-4432-80e2-88734dd82a3d', 'name': '', 'tenant_id': '02b534b524b64312abfabfcb415919aa', 'network_id': '42266109-8773-4aaa-8b3b-124054c14af3', 'ip_version': 4, 'cidr': '151.219.161.64/26', 'allocation_pools': [{'start': '151.219.161.66', 'end': '151.219.161.126'}], 'gateway_ip': '151.219.161.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.219.161.66', 'tags': [], 'project_id': '02b534b524b64312abfabfcb415919aa'}}
2025-08-15 09:30:51,419 - INFO - Created VN ctest-vn-73476606
2025-08-15 09:30:51,472 - DEBUG - VN ctest-vn-73476606 UUID is 42266109-8773-4aaa-8b3b-124054c14af3
2025-08-15 09:30:51,612 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-26482135, 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-61908816:ctest-vn-73476606, 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-08-15 09:30:51,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdb948b2-36a5-4f5f-8985-6c792aa1be29', 'name': 'ctest-vn-26482135', 'tenant_id': '02b534b524b64312abfabfcb415919aa', 'project_id': '02b534b524b64312abfabfcb415919aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0d56546-4498-4801-be05-67634d2c5482'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-vn-26482135'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-policy-allow-all-75276664']], 'subnet_ipam': [{'subnet_cidr': '219.56.235.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:30:52,121 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42266109-8773-4aaa-8b3b-124054c14af3', 'name': 'ctest-vn-73476606', 'tenant_id': '02b534b524b64312abfabfcb415919aa', 'project_id': '02b534b524b64312abfabfcb415919aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3397e86-ab93-4432-80e2-88734dd82a3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-vn-73476606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-policy-allow-all-75276664']], 'subnet_ipam': [{'subnet_cidr': '151.219.161.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 09:30:52,268 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 09:30:52,557 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 09:30:52,582 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f
2025-08-15 09:30:52,593 - DEBUG - Requesting: http://10.0.0.254:8082/project/02b534b5-24b6-4312-abfa-bfcb415919aa
2025-08-15 09:30:52,663 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bdb948b2-36a5-4f5f-8985-6c792aa1be29
2025-08-15 09:30:52,672 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bdb948b2-36a5-4f5f-8985-6c792aa1be29
2025-08-15 09:30:52,680 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e2d325d-77d4-4e9d-bc7b-1dc52c0d3704
2025-08-15 09:30:52,685 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e2d325d-77d4-4e9d-bc7b-1dc52c0d3704
2025-08-15 09:30:52,690 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8a15c139-030e-43a8-b32b-09d92e790514
2025-08-15 09:30:52,695 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 09:30:52,696 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bdb948b2-36a5-4f5f-8985-6c792aa1be29
2025-08-15 09:30:52,703 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e2d325d-77d4-4e9d-bc7b-1dc52c0d3704
2025-08-15 09:30:52,714 - INFO - Verified VN network id 12 for VN bdb948b2-36a5-4f5f-8985-6c792aa1be29
2025-08-15 09:30:52,714 - INFO - Verifications in API Server for VN ctest-vn-26482135 passed
2025-08-15 09:30:52,714 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bdb948b2-36a5-4f5f-8985-6c792aa1be29
2025-08-15 09:30:52,722 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e2d325d-77d4-4e9d-bc7b-1dc52c0d3704
2025-08-15 09:30:52,727 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3e2d325d-77d4-4e9d-bc7b-1dc52c0d3704
2025-08-15 09:30:52,733 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8a15c139-030e-43a8-b32b-09d92e790514
2025-08-15 09:30:52,742 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-26482135', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61908816', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13671038074118033247', 'uuid-lslong': '9909445822760730153'}, 'enable': 'true', 'created': '2025-08-15T09:30:50', 'last-modified': '2025-08-15T09:30:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.868254'}
2025-08-15 09:30:52,748 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 09:30:52,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26482135 passed
2025-08-15 09:30:52,748 - DEBUG - ====Verifying policy data for ctest-vn-26482135 in API_Server ======
2025-08-15 09:30:52,748 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 09:30:52,752 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f
2025-08-15 09:30:52,763 - DEBUG - Requesting: http://10.0.0.254:8082/project/02b534b5-24b6-4312-abfa-bfcb415919aa
2025-08-15 09:30:52,834 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bdb948b2-36a5-4f5f-8985-6c792aa1be29
2025-08-15 09:30:52,842 - DEBUG - ==>Verifying data for policy with id: 4f6fae8e-40fb-4dd5-849c-908d1320f6a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-policy-allow-all-75276664']
2025-08-15 09:30:52,842 - INFO - VN ctest-vn-26482135 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 09:30:52,842 - DEBUG - Verifying the vn in opserver
2025-08-15 09:30:52,842 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-26482135 virtual network link through opserver 10.0.0.254
2025-08-15 09:30:52,842 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 09:30:53,128 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 09:30:53,175 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-26482135', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-26482135?flat'}
2025-08-15 09:30:53,175 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-26482135 is found in opserver
2025-08-15 09:30:53,184 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 09:30:53,188 - DEBUG - VRF ids for VN ctest-vn-26482135: {}
2025-08-15 09:30:53,188 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 09:30:53,192 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f
2025-08-15 09:30:53,201 - DEBUG - Requesting: http://10.0.0.254:8082/project/02b534b5-24b6-4312-abfa-bfcb415919aa
2025-08-15 09:30:53,267 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42266109-8773-4aaa-8b3b-124054c14af3
2025-08-15 09:30:53,277 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42266109-8773-4aaa-8b3b-124054c14af3
2025-08-15 09:30:53,284 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b302873-db16-4346-8cdd-a354f7dbf3ae
2025-08-15 09:30:53,289 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b302873-db16-4346-8cdd-a354f7dbf3ae
2025-08-15 09:30:53,294 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f461bce6-e805-40d3-bd2e-13f6050db3db
2025-08-15 09:30:53,299 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 09:30:53,299 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42266109-8773-4aaa-8b3b-124054c14af3
2025-08-15 09:30:53,306 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b302873-db16-4346-8cdd-a354f7dbf3ae
2025-08-15 09:30:53,316 - INFO - Verified VN network id 13 for VN 42266109-8773-4aaa-8b3b-124054c14af3
2025-08-15 09:30:53,316 - INFO - Verifications in API Server for VN ctest-vn-73476606 passed
2025-08-15 09:30:53,316 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42266109-8773-4aaa-8b3b-124054c14af3
2025-08-15 09:30:53,324 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b302873-db16-4346-8cdd-a354f7dbf3ae
2025-08-15 09:30:53,329 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b302873-db16-4346-8cdd-a354f7dbf3ae
2025-08-15 09:30:53,334 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f461bce6-e805-40d3-bd2e-13f6050db3db
2025-08-15 09:30:53,343 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-73476606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61908816', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4766603949173328554', 'uuid-lslong': '10032632662407072499'}, 'enable': 'true', 'created': '2025-08-15T09:30:51', 'last-modified': '2025-08-15T09:30:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.243991'}
2025-08-15 09:30:53,348 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 09:30:53,348 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73476606 passed
2025-08-15 09:30:53,348 - DEBUG - ====Verifying policy data for ctest-vn-73476606 in API_Server ======
2025-08-15 09:30:53,348 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 09:30:53,352 - DEBUG - Requesting: http://10.0.0.254:8082/domain/424ce239-1777-469b-aa9a-ed16dbfc5d9f
2025-08-15 09:30:53,361 - DEBUG - Requesting: http://10.0.0.254:8082/project/02b534b5-24b6-4312-abfa-bfcb415919aa
2025-08-15 09:30:53,429 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42266109-8773-4aaa-8b3b-124054c14af3
2025-08-15 09:30:53,437 - DEBUG - ==>Verifying data for policy with id: 4f6fae8e-40fb-4dd5-849c-908d1320f6a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-61908816', 'ctest-policy-allow-all-75276664']
2025-08-15 09:30:53,437 - INFO - VN ctest-vn-73476606 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 09:30:53,437 - DEBUG - Verifying the vn in opserver
2025-08-15 09:30:53,437 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-73476606 virtual network link through opserver 10.0.0.254
2025-08-15 09:30:53,438 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 09:30:53,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-73476606', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-73476606?flat'}
2025-08-15 09:30:53,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61908816:ctest-vn-73476606 is found in opserver
2025-08-15 09:30:53,455 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 09:30:53,460 - DEBUG - VRF ids for VN ctest-vn-73476606: {}
2025-08-15 09:30:53,505 - DEBUG - Services list from nova: [