2025-09-23 20:36:07,717 - INFO - Domain Default found not creating
2025-09-23 20:36:08,088 - INFO - Project ctest-TestBasicPolicy-12957395 not found, creating it
2025-09-23 20:36:08,854 - INFO - Created Project:ctest-TestBasicPolicy-12957395, ID : beb9da85-a6e7-43df-8a4f-eb15772e9b8c
2025-09-23 20:36:10,782 - INFO - ================================================================================
2025-09-23 20:36:10,782 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-23 20:36:10,782 - 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-23 20:36:11,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-09-23 20:36:11,112 - INFO - Initial checks done. Running the testcase now
2025-09-23 20:36:11,112 - INFO -
2025-09-23 20:36:11,943 - DEBUG - Response for create_network : {'network': {'id': '0f762b2e-24ee-4148-8722-26006cae1733', 'name': 'ctest-vn-66815813', 'tenant_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'project_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-vn-66815813'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 20:36:12,199 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c83f61c8-6c6e-4aa1-9784-09b8c9ffc4b4', 'name': '', 'tenant_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'network_id': '0f762b2e-24ee-4148-8722-26006cae1733', 'ip_version': 4, 'cidr': '177.166.199.128/26', 'allocation_pools': [{'start': '177.166.199.130', 'end': '177.166.199.190'}], 'gateway_ip': '177.166.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.166.199.130', 'tags': [], 'project_id': 'beb9da85a6e743df8a4feb15772e9b8c'}}
2025-09-23 20:36:12,223 - INFO - Created VN ctest-vn-66815813
2025-09-23 20:36:12,287 - DEBUG - VN ctest-vn-66815813 UUID is 0f762b2e-24ee-4148-8722-26006cae1733
2025-09-23 20:36:12,750 - DEBUG - Response for create_network : {'network': {'id': 'a25aa06a-1ff9-4843-8940-f0a81f0505e5', 'name': 'ctest-vn-49608092', 'tenant_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'project_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-vn-49608092'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 20:36:12,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '40939289-84ca-48eb-8d0d-25508fd4ec69', 'name': '', 'tenant_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'network_id': 'a25aa06a-1ff9-4843-8940-f0a81f0505e5', 'ip_version': 4, 'cidr': '104.213.167.64/26', 'allocation_pools': [{'start': '104.213.167.66', 'end': '104.213.167.126'}], 'gateway_ip': '104.213.167.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.213.167.66', 'tags': [], 'project_id': 'beb9da85a6e743df8a4feb15772e9b8c'}}
2025-09-23 20:36:13,007 - INFO - Created VN ctest-vn-49608092
2025-09-23 20:36:13,067 - DEBUG - VN ctest-vn-49608092 UUID is a25aa06a-1ff9-4843-8940-f0a81f0505e5
2025-09-23 20:36:13,238 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-66815813, 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-12957395:ctest-vn-49608092, 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-23 20:36:13,723 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f762b2e-24ee-4148-8722-26006cae1733', 'name': 'ctest-vn-66815813', 'tenant_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'project_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c83f61c8-6c6e-4aa1-9784-09b8c9ffc4b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-vn-66815813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-policy-allow-all-79681203']], 'subnet_ipam': [{'subnet_cidr': '177.166.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 20:36:14,076 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a25aa06a-1ff9-4843-8940-f0a81f0505e5', 'name': 'ctest-vn-49608092', 'tenant_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'project_id': 'beb9da85a6e743df8a4feb15772e9b8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40939289-84ca-48eb-8d0d-25508fd4ec69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-vn-49608092'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-policy-allow-all-79681203']], 'subnet_ipam': [{'subnet_cidr': '104.213.167.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 20:36:14,275 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 20:36:14,618 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 20:36:14,658 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0e306419-b187-46e7-a5cc-c5c009990e70
2025-09-23 20:36:14,683 - DEBUG - Requesting: http://10.0.0.48:8082/project/beb9da85-a6e7-43df-8a4f-eb15772e9b8c
2025-09-23 20:36:14,800 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0f762b2e-24ee-4148-8722-26006cae1733
2025-09-23 20:36:14,823 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0f762b2e-24ee-4148-8722-26006cae1733
2025-09-23 20:36:14,841 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c1bc608-783b-4a85-8007-ca680e470d5d
2025-09-23 20:36:14,861 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c1bc608-783b-4a85-8007-ca680e470d5d
2025-09-23 20:36:14,881 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/f58e3e97-5d17-41b1-8a8f-477382ca26f0
2025-09-23 20:36:14,899 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 20:36:14,900 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0f762b2e-24ee-4148-8722-26006cae1733
2025-09-23 20:36:14,915 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c1bc608-783b-4a85-8007-ca680e470d5d
2025-09-23 20:36:14,945 - INFO - Verified VN network id 11 for VN 0f762b2e-24ee-4148-8722-26006cae1733
2025-09-23 20:36:14,945 - INFO - Verifications in API Server for VN ctest-vn-66815813 passed
2025-09-23 20:36:14,946 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0f762b2e-24ee-4148-8722-26006cae1733
2025-09-23 20:36:14,973 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c1bc608-783b-4a85-8007-ca680e470d5d
2025-09-23 20:36:14,990 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c1bc608-783b-4a85-8007-ca680e470d5d
2025-09-23 20:36:15,009 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/f58e3e97-5d17-41b1-8a8f-477382ca26f0
2025-09-23 20:36:15,040 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-66815813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12957395', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1114125435008860488', 'uuid-lslong': '9737387127593637683'}, 'enable': 'true', 'created': '2025-09-23T20:36:11', 'last-modified': '2025-09-23T20:36:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.377096'}
2025-09-23 20:36:15,058 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 20:36:15,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66815813 passed
2025-09-23 20:36:15,059 - DEBUG - ====Verifying policy data for ctest-vn-66815813 in API_Server ======
2025-09-23 20:36:15,060 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 20:36:15,072 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0e306419-b187-46e7-a5cc-c5c009990e70
2025-09-23 20:36:15,101 - DEBUG - Requesting: http://10.0.0.48:8082/project/beb9da85-a6e7-43df-8a4f-eb15772e9b8c
2025-09-23 20:36:15,217 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0f762b2e-24ee-4148-8722-26006cae1733
2025-09-23 20:36:15,244 - DEBUG - ==>Verifying data for policy with id: eaa65369-3af0-4715-82e7-997f6e2ded36, fqn: ['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-policy-allow-all-79681203']
2025-09-23 20:36:15,244 - INFO - VN ctest-vn-66815813 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 20:36:15,244 - DEBUG - Verifying the vn in opserver
2025-09-23 20:36:15,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-66815813 virtual network link through opserver 10.0.0.48
2025-09-23 20:36:15,245 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-23 20:36:15,609 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-23 20:36:15,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-66815813', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-66815813?flat'}
2025-09-23 20:36:15,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-66815813 is found in opserver
2025-09-23 20:36:15,698 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 20:36:15,707 - DEBUG - VRF ids for VN ctest-vn-66815813: {}
2025-09-23 20:36:15,707 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 20:36:15,717 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0e306419-b187-46e7-a5cc-c5c009990e70
2025-09-23 20:36:15,743 - DEBUG - Requesting: http://10.0.0.48:8082/project/beb9da85-a6e7-43df-8a4f-eb15772e9b8c
2025-09-23 20:36:15,848 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a25aa06a-1ff9-4843-8940-f0a81f0505e5
2025-09-23 20:36:15,866 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a25aa06a-1ff9-4843-8940-f0a81f0505e5
2025-09-23 20:36:15,881 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2c31c364-9cc1-4052-ac93-8d6353edfd5d
2025-09-23 20:36:15,892 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2c31c364-9cc1-4052-ac93-8d6353edfd5d
2025-09-23 20:36:15,902 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/3c56de6e-1187-4f03-b4c7-1a76c617d322
2025-09-23 20:36:15,912 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 20:36:15,912 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a25aa06a-1ff9-4843-8940-f0a81f0505e5
2025-09-23 20:36:15,924 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2c31c364-9cc1-4052-ac93-8d6353edfd5d
2025-09-23 20:36:15,945 - INFO - Verified VN network id 12 for VN a25aa06a-1ff9-4843-8940-f0a81f0505e5
2025-09-23 20:36:15,946 - INFO - Verifications in API Server for VN ctest-vn-49608092 passed
2025-09-23 20:36:15,946 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a25aa06a-1ff9-4843-8940-f0a81f0505e5
2025-09-23 20:36:15,964 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2c31c364-9cc1-4052-ac93-8d6353edfd5d
2025-09-23 20:36:15,977 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2c31c364-9cc1-4052-ac93-8d6353edfd5d
2025-09-23 20:36:15,992 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/3c56de6e-1187-4f03-b4c7-1a76c617d322
2025-09-23 20:36:16,016 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-49608092', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12957395', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11698839359711692867', 'uuid-lslong': '9890169386571204069'}, 'enable': 'true', 'created': '2025-09-23T20:36:12', 'last-modified': '2025-09-23T20:36:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.999181'}
2025-09-23 20:36:16,029 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 20:36:16,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49608092 passed
2025-09-23 20:36:16,031 - DEBUG - ====Verifying policy data for ctest-vn-49608092 in API_Server ======
2025-09-23 20:36:16,031 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-23 20:36:16,040 - DEBUG - Requesting: http://10.0.0.48:8082/domain/0e306419-b187-46e7-a5cc-c5c009990e70
2025-09-23 20:36:16,065 - DEBUG - Requesting: http://10.0.0.48:8082/project/beb9da85-a6e7-43df-8a4f-eb15772e9b8c
2025-09-23 20:36:16,158 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/a25aa06a-1ff9-4843-8940-f0a81f0505e5
2025-09-23 20:36:16,178 - DEBUG - ==>Verifying data for policy with id: eaa65369-3af0-4715-82e7-997f6e2ded36, fqn: ['default-domain', 'ctest-TestBasicPolicy-12957395', 'ctest-policy-allow-all-79681203']
2025-09-23 20:36:16,178 - INFO - VN ctest-vn-49608092 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 20:36:16,178 - DEBUG - Verifying the vn in opserver
2025-09-23 20:36:16,179 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-49608092 virtual network link through opserver 10.0.0.48
2025-09-23 20:36:16,179 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-23 20:36:16,199 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-49608092', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-49608092?flat'}
2025-09-23 20:36:16,199 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12957395:ctest-vn-49608092 is found in opserver
2025-09-23 20:36:16,227 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 20:36:16,236 - DEBUG - VRF ids for VN ctest-vn-49608092: {}
2025-09-23 20:36:16,374 - DEBUG - Services list from nova: [