2025-10-24 01:51:45,317 - INFO - Domain Default found not creating
2025-10-24 01:51:45,450 - INFO - Project ctest-TestBasicPolicy-80318307 not found, creating it
2025-10-24 01:51:45,943 - INFO - Created Project:ctest-TestBasicPolicy-80318307, ID : c8b5dcbb-8a52-4e26-9d6e-256958ee67d2
2025-10-24 01:51:47,260 - INFO - ================================================================================
2025-10-24 01:51:47,260 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-24 01:51:47,260 - 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 01:51:47,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-24 01:51:47,507 - INFO - Initial checks done. Running the testcase now
2025-10-24 01:51:47,507 - INFO -
2025-10-24 01:51:48,047 - DEBUG - Response for create_network : {'network': {'id': '669a3282-f970-4ef4-9779-9babb0852458', 'name': 'ctest-vn-74166509', 'tenant_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'project_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-vn-74166509'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 01:51:48,224 - DEBUG - Response for create_subnet : {'subnet': {'id': '75b99812-550c-43e3-8645-d0a00def6cc2', 'name': '', 'tenant_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'network_id': '669a3282-f970-4ef4-9779-9babb0852458', 'ip_version': 4, 'cidr': '195.92.42.128/26', 'allocation_pools': [{'start': '195.92.42.130', 'end': '195.92.42.190'}], 'gateway_ip': '195.92.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.92.42.130', 'tags': [], 'project_id': 'c8b5dcbb8a524e269d6e256958ee67d2'}}
2025-10-24 01:51:48,240 - INFO - Created VN ctest-vn-74166509
2025-10-24 01:51:48,295 - DEBUG - VN ctest-vn-74166509 UUID is 669a3282-f970-4ef4-9779-9babb0852458
2025-10-24 01:51:48,598 - DEBUG - Response for create_network : {'network': {'id': '104c83d5-7229-4dff-8f23-324c8116223d', 'name': 'ctest-vn-77732775', 'tenant_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'project_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-vn-77732775'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 01:51:48,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '50134f78-b5b7-4cc4-a9f1-87701fed3cc2', 'name': '', 'tenant_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'network_id': '104c83d5-7229-4dff-8f23-324c8116223d', 'ip_version': 4, 'cidr': '6.62.75.128/26', 'allocation_pools': [{'start': '6.62.75.130', 'end': '6.62.75.190'}], 'gateway_ip': '6.62.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.62.75.130', 'tags': [], 'project_id': 'c8b5dcbb8a524e269d6e256958ee67d2'}}
2025-10-24 01:51:48,844 - INFO - Created VN ctest-vn-77732775
2025-10-24 01:51:48,895 - DEBUG - VN ctest-vn-77732775 UUID is 104c83d5-7229-4dff-8f23-324c8116223d
2025-10-24 01:51:49,047 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-74166509, 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-80318307:ctest-vn-77732775, 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 01:51:49,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '669a3282-f970-4ef4-9779-9babb0852458', 'name': 'ctest-vn-74166509', 'tenant_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'project_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75b99812-550c-43e3-8645-d0a00def6cc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-vn-74166509'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-policy-allow-all-07408028']], 'subnet_ipam': [{'subnet_cidr': '195.92.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 01:51:49,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '104c83d5-7229-4dff-8f23-324c8116223d', 'name': 'ctest-vn-77732775', 'tenant_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'project_id': 'c8b5dcbb8a524e269d6e256958ee67d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50134f78-b5b7-4cc4-a9f1-87701fed3cc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-vn-77732775'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-policy-allow-all-07408028']], 'subnet_ipam': [{'subnet_cidr': '6.62.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 01:51:49,739 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 01:51:50,037 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 01:51:50,062 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7
2025-10-24 01:51:50,074 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8b5dcbb-8a52-4e26-9d6e-256958ee67d2
2025-10-24 01:51:50,147 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/669a3282-f970-4ef4-9779-9babb0852458
2025-10-24 01:51:50,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/669a3282-f970-4ef4-9779-9babb0852458
2025-10-24 01:51:50,164 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8caaaceb-a61a-4112-835d-5a9bdc027d9c
2025-10-24 01:51:50,170 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8caaaceb-a61a-4112-835d-5a9bdc027d9c
2025-10-24 01:51:50,176 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d89f5a82-c176-4c47-9c18-0f7cb8403d13
2025-10-24 01:51:50,181 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 01:51:50,181 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/669a3282-f970-4ef4-9779-9babb0852458
2025-10-24 01:51:50,189 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8caaaceb-a61a-4112-835d-5a9bdc027d9c
2025-10-24 01:51:50,201 - INFO - Verified VN network id 12 for VN 669a3282-f970-4ef4-9779-9babb0852458
2025-10-24 01:51:50,202 - INFO - Verifications in API Server for VN ctest-vn-74166509 passed
2025-10-24 01:51:50,202 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/669a3282-f970-4ef4-9779-9babb0852458
2025-10-24 01:51:50,210 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8caaaceb-a61a-4112-835d-5a9bdc027d9c
2025-10-24 01:51:50,216 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8caaaceb-a61a-4112-835d-5a9bdc027d9c
2025-10-24 01:51:50,221 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d89f5a82-c176-4c47-9c18-0f7cb8403d13
2025-10-24 01:51:50,231 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-74166509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80318307', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7393277276394114804', 'uuid-lslong': '10914926333612336216'}, 'enable': 'true', 'created': '2025-10-24T01:51:48', 'last-modified': '2025-10-24T01:51:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923878'}
2025-10-24 01:51:50,236 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 01:51:50,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74166509 passed
2025-10-24 01:51:50,236 - DEBUG - ====Verifying policy data for ctest-vn-74166509 in API_Server ======
2025-10-24 01:51:50,236 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 01:51:50,241 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7
2025-10-24 01:51:50,251 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8b5dcbb-8a52-4e26-9d6e-256958ee67d2
2025-10-24 01:51:50,321 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/669a3282-f970-4ef4-9779-9babb0852458
2025-10-24 01:51:50,330 - DEBUG - ==>Verifying data for policy with id: 0c8dd00d-071e-4aaa-a025-551264eece41, fqn: ['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-policy-allow-all-07408028']
2025-10-24 01:51:50,330 - INFO - VN ctest-vn-74166509 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 01:51:50,331 - DEBUG - Verifying the vn in opserver
2025-10-24 01:51:50,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-74166509 virtual network link through opserver 10.0.0.254
2025-10-24 01:51:50,331 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 01:51:50,618 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 01:51:50,666 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-74166509', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-74166509?flat'}
2025-10-24 01:51:50,666 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-74166509 is found in opserver
2025-10-24 01:51:50,674 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 01:51:50,679 - DEBUG - VRF ids for VN ctest-vn-74166509: {}
2025-10-24 01:51:50,679 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 01:51:50,685 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7
2025-10-24 01:51:50,695 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8b5dcbb-8a52-4e26-9d6e-256958ee67d2
2025-10-24 01:51:50,764 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/104c83d5-7229-4dff-8f23-324c8116223d
2025-10-24 01:51:50,774 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/104c83d5-7229-4dff-8f23-324c8116223d
2025-10-24 01:51:50,782 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/522a491c-26df-4b47-bf9e-6db5a1f65067
2025-10-24 01:51:50,788 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/522a491c-26df-4b47-bf9e-6db5a1f65067
2025-10-24 01:51:50,794 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6ec7b448-330b-48a3-9292-376453811a81
2025-10-24 01:51:50,800 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 01:51:50,800 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/104c83d5-7229-4dff-8f23-324c8116223d
2025-10-24 01:51:50,807 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/522a491c-26df-4b47-bf9e-6db5a1f65067
2025-10-24 01:51:50,819 - INFO - Verified VN network id 13 for VN 104c83d5-7229-4dff-8f23-324c8116223d
2025-10-24 01:51:50,819 - INFO - Verifications in API Server for VN ctest-vn-77732775 passed
2025-10-24 01:51:50,819 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/104c83d5-7229-4dff-8f23-324c8116223d
2025-10-24 01:51:50,826 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/522a491c-26df-4b47-bf9e-6db5a1f65067
2025-10-24 01:51:50,832 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/522a491c-26df-4b47-bf9e-6db5a1f65067
2025-10-24 01:51:50,838 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6ec7b448-330b-48a3-9292-376453811a81
2025-10-24 01:51:50,847 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-77732775', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80318307', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1174458555603439103', 'uuid-lslong': '10314142875773182525'}, 'enable': 'true', 'created': '2025-10-24T01:51:48', 'last-modified': '2025-10-24T01:51:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.322705'}
2025-10-24 01:51:50,852 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 01:51:50,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77732775 passed
2025-10-24 01:51:50,852 - DEBUG - ====Verifying policy data for ctest-vn-77732775 in API_Server ======
2025-10-24 01:51:50,852 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-24 01:51:50,857 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7
2025-10-24 01:51:50,866 - DEBUG - Requesting: http://10.0.0.254:8082/project/c8b5dcbb-8a52-4e26-9d6e-256958ee67d2
2025-10-24 01:51:50,932 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/104c83d5-7229-4dff-8f23-324c8116223d
2025-10-24 01:51:50,940 - DEBUG - ==>Verifying data for policy with id: 0c8dd00d-071e-4aaa-a025-551264eece41, fqn: ['default-domain', 'ctest-TestBasicPolicy-80318307', 'ctest-policy-allow-all-07408028']
2025-10-24 01:51:50,940 - INFO - VN ctest-vn-77732775 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 01:51:50,940 - DEBUG - Verifying the vn in opserver
2025-10-24 01:51:50,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-77732775 virtual network link through opserver 10.0.0.254
2025-10-24 01:51:50,940 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-24 01:51:50,949 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-77732775', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-77732775?flat'}
2025-10-24 01:51:50,949 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80318307:ctest-vn-77732775 is found in opserver
2025-10-24 01:51:50,956 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 01:51:50,960 - DEBUG - VRF ids for VN ctest-vn-77732775: {}
2025-10-24 01:51:51,018 - DEBUG - Services list from nova: [