2025-10-22 14:05:54,052 - INFO - Domain Default found not creating
2025-10-22 14:05:54,207 - INFO - Project ctest-TestBasicPolicy-57070829 not found, creating it
2025-10-22 14:05:54,669 - INFO - Created Project:ctest-TestBasicPolicy-57070829, ID : 41c955a7-289d-4e0e-9f98-13dcd481e150
2025-10-22 14:05:56,176 - INFO - ================================================================================
2025-10-22 14:05:56,176 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 14:05:56,176 - 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-22 14:05:56,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-10-22 14:05:56,438 - INFO - Initial checks done. Running the testcase now
2025-10-22 14:05:56,438 - INFO -
2025-10-22 14:05:57,025 - DEBUG - Response for create_network : {'network': {'id': '823ba1bb-0e6a-490f-ae12-3a4f848c0542', 'name': 'ctest-vn-98979763', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-98979763'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:05:57,214 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fc80d91-25c5-4c58-8ac2-c8d76a5e77af', 'name': '', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'network_id': '823ba1bb-0e6a-490f-ae12-3a4f848c0542', 'ip_version': 4, 'cidr': '206.220.23.128/26', 'allocation_pools': [{'start': '206.220.23.130', 'end': '206.220.23.190'}], 'gateway_ip': '206.220.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.220.23.130', 'tags': [], 'project_id': '41c955a7289d4e0e9f9813dcd481e150'}}
2025-10-22 14:05:57,232 - INFO - Created VN ctest-vn-98979763
2025-10-22 14:05:57,284 - DEBUG - VN ctest-vn-98979763 UUID is 823ba1bb-0e6a-490f-ae12-3a4f848c0542
2025-10-22 14:05:57,575 - DEBUG - Response for create_network : {'network': {'id': '6d9377d9-54e3-4fa3-b1a2-0348bc27703f', 'name': 'ctest-vn-63186486', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-63186486'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:05:57,785 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd422c1a6-6a90-46ca-8c91-6b51dacbc753', 'name': '', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'network_id': '6d9377d9-54e3-4fa3-b1a2-0348bc27703f', 'ip_version': 4, 'cidr': '51.148.220.128/26', 'allocation_pools': [{'start': '51.148.220.130', 'end': '51.148.220.190'}], 'gateway_ip': '51.148.220.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.148.220.130', 'tags': [], 'project_id': '41c955a7289d4e0e9f9813dcd481e150'}}
2025-10-22 14:05:57,807 - INFO - Created VN ctest-vn-63186486
2025-10-22 14:05:57,860 - DEBUG - VN ctest-vn-63186486 UUID is 6d9377d9-54e3-4fa3-b1a2-0348bc27703f
2025-10-22 14:05:57,984 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763, 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-57070829:ctest-vn-63186486, 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-22 14:05:58,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '823ba1bb-0e6a-490f-ae12-3a4f848c0542', 'name': 'ctest-vn-98979763', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fc80d91-25c5-4c58-8ac2-c8d76a5e77af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-98979763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481']], 'subnet_ipam': [{'subnet_cidr': '206.220.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:05:58,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d9377d9-54e3-4fa3-b1a2-0348bc27703f', 'name': 'ctest-vn-63186486', 'tenant_id': '41c955a7289d4e0e9f9813dcd481e150', 'project_id': '41c955a7289d4e0e9f9813dcd481e150', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d422c1a6-6a90-46ca-8c91-6b51dacbc753'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-vn-63186486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481']], 'subnet_ipam': [{'subnet_cidr': '51.148.220.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 14:05:58,684 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 14:05:58,975 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 14:05:59,006 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592
2025-10-22 14:05:59,018 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150
2025-10-22 14:05:59,095 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542
2025-10-22 14:05:59,105 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542
2025-10-22 14:05:59,114 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd
2025-10-22 14:05:59,120 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd
2025-10-22 14:05:59,127 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e047245-8f52-486f-a0bc-bce53f464279
2025-10-22 14:05:59,133 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:05:59,133 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542
2025-10-22 14:05:59,142 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd
2025-10-22 14:05:59,155 - INFO - Verified VN network id 11 for VN 823ba1bb-0e6a-490f-ae12-3a4f848c0542
2025-10-22 14:05:59,155 - INFO - Verifications in API Server for VN ctest-vn-98979763 passed
2025-10-22 14:05:59,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542
2025-10-22 14:05:59,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd
2025-10-22 14:05:59,171 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0fb9a68b-7014-4cbb-b008-beb953b8acdd
2025-10-22 14:05:59,178 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e047245-8f52-486f-a0bc-bce53f464279
2025-10-22 14:05:59,190 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57070829', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9384272073329363215', 'uuid-lslong': '12543152025380848962'}, 'enable': 'true', 'created': '2025-10-22T14:05:56', 'last-modified': '2025-10-22T14:05:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922821'}
2025-10-22 14:05:59,196 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 14:05:59,196 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98979763 passed
2025-10-22 14:05:59,197 - DEBUG - ====Verifying policy data for ctest-vn-98979763 in API_Server ======
2025-10-22 14:05:59,197 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 14:05:59,202 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592
2025-10-22 14:05:59,213 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150
2025-10-22 14:05:59,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/823ba1bb-0e6a-490f-ae12-3a4f848c0542
2025-10-22 14:05:59,291 - DEBUG - ==>Verifying data for policy with id: 49a34d9c-8180-458d-8a48-3f1bbc6a44ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481']
2025-10-22 14:05:59,291 - INFO - VN ctest-vn-98979763 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:05:59,291 - DEBUG - Verifying the vn in opserver
2025-10-22 14:05:59,291 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763 virtual network link through opserver 10.0.0.38
2025-10-22 14:05:59,291 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 14:05:59,589 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 14:05:59,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763?flat'}
2025-10-22 14:05:59,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-98979763 is found in opserver
2025-10-22 14:05:59,672 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:05:59,678 - DEBUG - VRF ids for VN ctest-vn-98979763: {}
2025-10-22 14:05:59,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 14:05:59,684 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592
2025-10-22 14:05:59,694 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150
2025-10-22 14:05:59,760 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f
2025-10-22 14:05:59,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f
2025-10-22 14:05:59,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37
2025-10-22 14:05:59,789 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37
2025-10-22 14:05:59,797 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b582966-5797-4ca0-9744-b3d34dd77a7b
2025-10-22 14:05:59,813 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:05:59,813 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f
2025-10-22 14:05:59,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37
2025-10-22 14:05:59,845 - INFO - Verified VN network id 12 for VN 6d9377d9-54e3-4fa3-b1a2-0348bc27703f
2025-10-22 14:05:59,845 - INFO - Verifications in API Server for VN ctest-vn-63186486 passed
2025-10-22 14:05:59,845 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f
2025-10-22 14:05:59,860 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37
2025-10-22 14:05:59,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9cafe347-f349-4875-a737-0f7e4c707d37
2025-10-22 14:05:59,878 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1b582966-5797-4ca0-9744-b3d34dd77a7b
2025-10-22 14:05:59,890 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57070829', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7895786347026403235', 'uuid-lslong': '12799796701869600831'}, 'enable': 'true', 'created': '2025-10-22T14:05:57', 'last-modified': '2025-10-22T14:05:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390179'}
2025-10-22 14:05:59,896 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 14:05:59,896 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63186486 passed
2025-10-22 14:05:59,896 - DEBUG - ====Verifying policy data for ctest-vn-63186486 in API_Server ======
2025-10-22 14:05:59,896 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 14:05:59,902 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592
2025-10-22 14:05:59,913 - DEBUG - Requesting: http://10.0.0.38:8082/project/41c955a7-289d-4e0e-9f98-13dcd481e150
2025-10-22 14:05:59,987 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6d9377d9-54e3-4fa3-b1a2-0348bc27703f
2025-10-22 14:05:59,996 - DEBUG - ==>Verifying data for policy with id: 49a34d9c-8180-458d-8a48-3f1bbc6a44ef, fqn: ['default-domain', 'ctest-TestBasicPolicy-57070829', 'ctest-policy-allow-all-69597481']
2025-10-22 14:05:59,996 - INFO - VN ctest-vn-63186486 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 14:05:59,996 - DEBUG - Verifying the vn in opserver
2025-10-22 14:05:59,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486 virtual network link through opserver 10.0.0.38
2025-10-22 14:05:59,997 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 14:06:00,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486?flat'}
2025-10-22 14:06:00,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57070829:ctest-vn-63186486 is found in opserver
2025-10-22 14:06:00,016 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 14:06:00,022 - DEBUG - VRF ids for VN ctest-vn-63186486: {}
2025-10-22 14:06:00,080 - DEBUG - Services list from nova: [