2025-10-24 07:10:34,988 - INFO - Domain Default found not creating
2025-10-24 07:10:35,167 - INFO - Project ctest-TestBasicPolicy-63402920 not found, creating it
2025-10-24 07:10:35,618 - INFO - Created Project:ctest-TestBasicPolicy-63402920, ID : 4dbadf57-d592-49a0-89f7-4549410b78bd
2025-10-24 07:10:37,022 - INFO - ================================================================================
2025-10-24 07:10:37,022 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-24 07:10:37,022 - 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-24 07:10:37,279 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-24 07:10:37,279 - INFO - Initial checks done. Running the testcase now
2025-10-24 07:10:37,279 - INFO -
2025-10-24 07:10:37,817 - DEBUG - Response for create_network : {'network': {'id': 'cb60256d-7c4f-493a-8b10-898cde871eb0', 'name': 'ctest-vn-19144941', 'tenant_id': '4dbadf57d59249a089f74549410b78bd', 'project_id': '4dbadf57d59249a089f74549410b78bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-vn-19144941'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 07:10:37,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e7d9856-2a78-447b-a3c1-7fbb545cea7d', 'name': '', 'tenant_id': '4dbadf57d59249a089f74549410b78bd', 'network_id': 'cb60256d-7c4f-493a-8b10-898cde871eb0', 'ip_version': 4, 'cidr': '207.102.189.192/26', 'allocation_pools': [{'start': '207.102.189.194', 'end': '207.102.189.254'}], 'gateway_ip': '207.102.189.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.102.189.194', 'tags': [], 'project_id': '4dbadf57d59249a089f74549410b78bd'}}
2025-10-24 07:10:38,013 - INFO - Created VN ctest-vn-19144941
2025-10-24 07:10:38,069 - DEBUG - VN ctest-vn-19144941 UUID is cb60256d-7c4f-493a-8b10-898cde871eb0
2025-10-24 07:10:38,356 - DEBUG - Response for create_network : {'network': {'id': '4c8fcacb-9ee6-4281-bf32-f750dafbd7e5', 'name': 'ctest-vn-65638795', 'tenant_id': '4dbadf57d59249a089f74549410b78bd', 'project_id': '4dbadf57d59249a089f74549410b78bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-vn-65638795'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 07:10:38,545 - DEBUG - Response for create_subnet : {'subnet': {'id': '24c03ac9-f5a5-4cde-ad76-a2648218d9fa', 'name': '', 'tenant_id': '4dbadf57d59249a089f74549410b78bd', 'network_id': '4c8fcacb-9ee6-4281-bf32-f750dafbd7e5', 'ip_version': 4, 'cidr': '119.104.90.128/26', 'allocation_pools': [{'start': '119.104.90.130', 'end': '119.104.90.190'}], 'gateway_ip': '119.104.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.104.90.130', 'tags': [], 'project_id': '4dbadf57d59249a089f74549410b78bd'}}
2025-10-24 07:10:38,563 - INFO - Created VN ctest-vn-65638795
2025-10-24 07:10:38,613 - DEBUG - VN ctest-vn-65638795 UUID is 4c8fcacb-9ee6-4281-bf32-f750dafbd7e5
2025-10-24 07:10:38,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-19144941, 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-63402920:ctest-vn-65638795, 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-24 07:10:39,021 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb60256d-7c4f-493a-8b10-898cde871eb0', 'name': 'ctest-vn-19144941', 'tenant_id': '4dbadf57d59249a089f74549410b78bd', 'project_id': '4dbadf57d59249a089f74549410b78bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e7d9856-2a78-447b-a3c1-7fbb545cea7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-vn-19144941'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-policy-allow-all-69130630']], 'subnet_ipam': [{'subnet_cidr': '207.102.189.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 07:10:39,281 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c8fcacb-9ee6-4281-bf32-f750dafbd7e5', 'name': 'ctest-vn-65638795', 'tenant_id': '4dbadf57d59249a089f74549410b78bd', 'project_id': '4dbadf57d59249a089f74549410b78bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['24c03ac9-f5a5-4cde-ad76-a2648218d9fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-vn-65638795'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-policy-allow-all-69130630']], 'subnet_ipam': [{'subnet_cidr': '119.104.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 07:10:39,421 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 07:10:39,713 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 07:10:39,739 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b14f5014-812f-48b7-97b0-60be1c99177c
2025-10-24 07:10:39,750 - DEBUG - Requesting: http://10.0.0.254:8082/project/4dbadf57-d592-49a0-89f7-4549410b78bd
2025-10-24 07:10:39,819 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb60256d-7c4f-493a-8b10-898cde871eb0
2025-10-24 07:10:39,829 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb60256d-7c4f-493a-8b10-898cde871eb0
2025-10-24 07:10:39,837 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21d24421-3af7-4cab-bb2d-5e3aeea47606
2025-10-24 07:10:39,843 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21d24421-3af7-4cab-bb2d-5e3aeea47606
2025-10-24 07:10:39,849 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c0df0e94-a788-4439-b571-114a818cdae9
2025-10-24 07:10:39,854 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 07:10:39,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb60256d-7c4f-493a-8b10-898cde871eb0
2025-10-24 07:10:39,861 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21d24421-3af7-4cab-bb2d-5e3aeea47606
2025-10-24 07:10:39,872 - INFO - Verified VN network id 11 for VN cb60256d-7c4f-493a-8b10-898cde871eb0
2025-10-24 07:10:39,872 - INFO - Verifications in API Server for VN ctest-vn-19144941 passed
2025-10-24 07:10:39,872 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb60256d-7c4f-493a-8b10-898cde871eb0
2025-10-24 07:10:39,880 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21d24421-3af7-4cab-bb2d-5e3aeea47606
2025-10-24 07:10:39,886 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/21d24421-3af7-4cab-bb2d-5e3aeea47606
2025-10-24 07:10:39,891 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c0df0e94-a788-4439-b571-114a818cdae9
2025-10-24 07:10:39,902 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-19144941', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63402920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14654754339630827834', 'uuid-lslong': '10020660409021177520'}, 'enable': 'true', 'created': '2025-10-24T07:10:37', 'last-modified': '2025-10-24T07:10:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903440'}
2025-10-24 07:10:39,907 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 07:10:39,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19144941 passed
2025-10-24 07:10:39,907 - DEBUG - ====Verifying policy data for ctest-vn-19144941 in API_Server ======
2025-10-24 07:10:39,907 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 07:10:39,912 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b14f5014-812f-48b7-97b0-60be1c99177c
2025-10-24 07:10:39,922 - DEBUG - Requesting: http://10.0.0.254:8082/project/4dbadf57-d592-49a0-89f7-4549410b78bd
2025-10-24 07:10:39,993 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cb60256d-7c4f-493a-8b10-898cde871eb0
2025-10-24 07:10:40,001 - DEBUG - ==>Verifying data for policy with id: b6fdde80-fe8a-4fcf-9c06-019505473be7, fqn: ['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-policy-allow-all-69130630']
2025-10-24 07:10:40,001 - INFO - VN ctest-vn-19144941 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 07:10:40,002 - DEBUG - Verifying the vn in opserver
2025-10-24 07:10:40,002 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-19144941 virtual network link through opserver 10.0.0.254
2025-10-24 07:10:40,002 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 07:10:40,292 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 07:10:40,390 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-19144941', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-19144941?flat'}
2025-10-24 07:10:40,390 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-19144941 is found in opserver
2025-10-24 07:10:40,399 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 07:10:40,403 - DEBUG - VRF ids for VN ctest-vn-19144941: {}
2025-10-24 07:10:40,403 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 07:10:40,408 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b14f5014-812f-48b7-97b0-60be1c99177c
2025-10-24 07:10:40,420 - DEBUG - Requesting: http://10.0.0.254:8082/project/4dbadf57-d592-49a0-89f7-4549410b78bd
2025-10-24 07:10:40,496 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c8fcacb-9ee6-4281-bf32-f750dafbd7e5
2025-10-24 07:10:40,507 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c8fcacb-9ee6-4281-bf32-f750dafbd7e5
2025-10-24 07:10:40,517 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b6f7ef33-3cac-49cc-9187-30ecc2ee0bde
2025-10-24 07:10:40,525 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b6f7ef33-3cac-49cc-9187-30ecc2ee0bde
2025-10-24 07:10:40,531 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/734ba782-6d99-49d3-aa4f-6d2766886f5a
2025-10-24 07:10:40,537 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 07:10:40,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c8fcacb-9ee6-4281-bf32-f750dafbd7e5
2025-10-24 07:10:40,546 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b6f7ef33-3cac-49cc-9187-30ecc2ee0bde
2025-10-24 07:10:40,558 - INFO - Verified VN network id 12 for VN 4c8fcacb-9ee6-4281-bf32-f750dafbd7e5
2025-10-24 07:10:40,558 - INFO - Verifications in API Server for VN ctest-vn-65638795 passed
2025-10-24 07:10:40,558 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c8fcacb-9ee6-4281-bf32-f750dafbd7e5
2025-10-24 07:10:40,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b6f7ef33-3cac-49cc-9187-30ecc2ee0bde
2025-10-24 07:10:40,573 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b6f7ef33-3cac-49cc-9187-30ecc2ee0bde
2025-10-24 07:10:40,579 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/734ba782-6d99-49d3-aa4f-6d2766886f5a
2025-10-24 07:10:40,589 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-65638795', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63402920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5516851044445209217', 'uuid-lslong': '13777346136723150821'}, 'enable': 'true', 'created': '2025-10-24T07:10:38', 'last-modified': '2025-10-24T07:10:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373388'}
2025-10-24 07:10:40,594 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 07:10:40,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65638795 passed
2025-10-24 07:10:40,594 - DEBUG - ====Verifying policy data for ctest-vn-65638795 in API_Server ======
2025-10-24 07:10:40,594 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 07:10:40,600 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b14f5014-812f-48b7-97b0-60be1c99177c
2025-10-24 07:10:40,611 - DEBUG - Requesting: http://10.0.0.254:8082/project/4dbadf57-d592-49a0-89f7-4549410b78bd
2025-10-24 07:10:40,684 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4c8fcacb-9ee6-4281-bf32-f750dafbd7e5
2025-10-24 07:10:40,692 - DEBUG - ==>Verifying data for policy with id: b6fdde80-fe8a-4fcf-9c06-019505473be7, fqn: ['default-domain', 'ctest-TestBasicPolicy-63402920', 'ctest-policy-allow-all-69130630']
2025-10-24 07:10:40,692 - INFO - VN ctest-vn-65638795 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 07:10:40,692 - DEBUG - Verifying the vn in opserver
2025-10-24 07:10:40,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-65638795 virtual network link through opserver 10.0.0.254
2025-10-24 07:10:40,693 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 07:10:40,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-65638795', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-65638795?flat'}
2025-10-24 07:10:40,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63402920:ctest-vn-65638795 is found in opserver
2025-10-24 07:10:40,713 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 07:10:40,717 - DEBUG - VRF ids for VN ctest-vn-65638795: {}
2025-10-24 07:10:40,772 - DEBUG - Services list from nova: [