2025-09-11 11:01:07,545 - INFO - Domain Default found not creating
2025-09-11 11:01:07,675 - INFO - Project ctest-TestBasicPolicy-89982004 not found, creating it
2025-09-11 11:01:08,103 - INFO - Created Project:ctest-TestBasicPolicy-89982004, ID : 4cb0ba95-03c1-4035-8167-78f5d1814443
2025-09-11 11:01:09,431 - INFO - ================================================================================
2025-09-11 11:01:09,431 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 11:01:09,431 - 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-11 11:01:09,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-11 11:01:09,682 - INFO - Initial checks done. Running the testcase now
2025-09-11 11:01:09,682 - INFO -
2025-09-11 11:01:10,189 - DEBUG - Response for create_network : {'network': {'id': 'd528d369-00ce-46a9-bcdf-23b3dba85a99', 'name': 'ctest-vn-06798611', 'tenant_id': '4cb0ba9503c14035816778f5d1814443', 'project_id': '4cb0ba9503c14035816778f5d1814443', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-vn-06798611'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:01:10,332 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a7176b2-75c5-4a52-b43d-07aedbea56c7', 'name': '', 'tenant_id': '4cb0ba9503c14035816778f5d1814443', 'network_id': 'd528d369-00ce-46a9-bcdf-23b3dba85a99', 'ip_version': 4, 'cidr': '62.40.207.0/26', 'allocation_pools': [{'start': '62.40.207.2', 'end': '62.40.207.62'}], 'gateway_ip': '62.40.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.40.207.2', 'tags': [], 'project_id': '4cb0ba9503c14035816778f5d1814443'}}
2025-09-11 11:01:10,347 - INFO - Created VN ctest-vn-06798611
2025-09-11 11:01:10,397 - DEBUG - VN ctest-vn-06798611 UUID is d528d369-00ce-46a9-bcdf-23b3dba85a99
2025-09-11 11:01:10,695 - DEBUG - Response for create_network : {'network': {'id': '36d9b8e5-3b3e-4171-9d4a-29476679c1c0', 'name': 'ctest-vn-28753371', 'tenant_id': '4cb0ba9503c14035816778f5d1814443', 'project_id': '4cb0ba9503c14035816778f5d1814443', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-vn-28753371'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:01:10,876 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5fc45f7-f405-4f37-b223-e2c4ef17b9ba', 'name': '', 'tenant_id': '4cb0ba9503c14035816778f5d1814443', 'network_id': '36d9b8e5-3b3e-4171-9d4a-29476679c1c0', 'ip_version': 4, 'cidr': '134.88.141.192/26', 'allocation_pools': [{'start': '134.88.141.194', 'end': '134.88.141.254'}], 'gateway_ip': '134.88.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.88.141.194', 'tags': [], 'project_id': '4cb0ba9503c14035816778f5d1814443'}}
2025-09-11 11:01:10,891 - INFO - Created VN ctest-vn-28753371
2025-09-11 11:01:10,941 - DEBUG - VN ctest-vn-28753371 UUID is 36d9b8e5-3b3e-4171-9d4a-29476679c1c0
2025-09-11 11:01:11,081 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-06798611, 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-89982004:ctest-vn-28753371, 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-11 11:01:11,374 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd528d369-00ce-46a9-bcdf-23b3dba85a99', 'name': 'ctest-vn-06798611', 'tenant_id': '4cb0ba9503c14035816778f5d1814443', 'project_id': '4cb0ba9503c14035816778f5d1814443', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a7176b2-75c5-4a52-b43d-07aedbea56c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-vn-06798611'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-policy-allow-all-29555724']], 'subnet_ipam': [{'subnet_cidr': '62.40.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:01:11,601 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36d9b8e5-3b3e-4171-9d4a-29476679c1c0', 'name': 'ctest-vn-28753371', 'tenant_id': '4cb0ba9503c14035816778f5d1814443', 'project_id': '4cb0ba9503c14035816778f5d1814443', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5fc45f7-f405-4f37-b223-e2c4ef17b9ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-vn-28753371'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-policy-allow-all-29555724']], 'subnet_ipam': [{'subnet_cidr': '134.88.141.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:01:11,761 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 11:01:12,055 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 11:01:12,082 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5
2025-09-11 11:01:12,094 - DEBUG - Requesting: http://10.0.0.22:8082/project/4cb0ba95-03c1-4035-8167-78f5d1814443
2025-09-11 11:01:12,162 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d528d369-00ce-46a9-bcdf-23b3dba85a99
2025-09-11 11:01:12,171 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d528d369-00ce-46a9-bcdf-23b3dba85a99
2025-09-11 11:01:12,178 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/52d1f256-128b-4c3a-aed8-429c9e0a3c18
2025-09-11 11:01:12,184 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/52d1f256-128b-4c3a-aed8-429c9e0a3c18
2025-09-11 11:01:12,190 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1c0e662e-ae0c-45f0-9fd7-3eb79c734bb8
2025-09-11 11:01:12,194 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 11:01:12,194 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d528d369-00ce-46a9-bcdf-23b3dba85a99
2025-09-11 11:01:12,201 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/52d1f256-128b-4c3a-aed8-429c9e0a3c18
2025-09-11 11:01:12,212 - INFO - Verified VN network id 10 for VN d528d369-00ce-46a9-bcdf-23b3dba85a99
2025-09-11 11:01:12,212 - INFO - Verifications in API Server for VN ctest-vn-06798611 passed
2025-09-11 11:01:12,212 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d528d369-00ce-46a9-bcdf-23b3dba85a99
2025-09-11 11:01:12,219 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/52d1f256-128b-4c3a-aed8-429c9e0a3c18
2025-09-11 11:01:12,224 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/52d1f256-128b-4c3a-aed8-429c9e0a3c18
2025-09-11 11:01:12,229 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1c0e662e-ae0c-45f0-9fd7-3eb79c734bb8
2025-09-11 11:01:12,238 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-06798611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89982004', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15359758977085621929', 'uuid-lslong': '13609635854328289945'}, 'enable': 'true', 'created': '2025-09-11T11:01:10', 'last-modified': '2025-09-11T11:01:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884757'}
2025-09-11 11:01:12,243 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 11:01:12,243 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06798611 passed
2025-09-11 11:01:12,243 - DEBUG - ====Verifying policy data for ctest-vn-06798611 in API_Server ======
2025-09-11 11:01:12,243 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 11:01:12,247 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5
2025-09-11 11:01:12,254 - DEBUG - Requesting: http://10.0.0.22:8082/project/4cb0ba95-03c1-4035-8167-78f5d1814443
2025-09-11 11:01:12,323 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d528d369-00ce-46a9-bcdf-23b3dba85a99
2025-09-11 11:01:12,331 - DEBUG - ==>Verifying data for policy with id: 3df1c8ed-0cba-4d46-99d2-4c6cb5e5d936, fqn: ['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-policy-allow-all-29555724']
2025-09-11 11:01:12,331 - INFO - VN ctest-vn-06798611 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 11:01:12,331 - DEBUG - Verifying the vn in opserver
2025-09-11 11:01:12,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-06798611 virtual network link through opserver 10.0.0.22
2025-09-11 11:01:12,331 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 11:01:12,625 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 11:01:12,673 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-06798611', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-06798611?flat'}
2025-09-11 11:01:12,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-06798611 is found in opserver
2025-09-11 11:01:12,682 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 11:01:12,685 - DEBUG - VRF ids for VN ctest-vn-06798611: {}
2025-09-11 11:01:12,686 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 11:01:12,690 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5
2025-09-11 11:01:12,700 - DEBUG - Requesting: http://10.0.0.22:8082/project/4cb0ba95-03c1-4035-8167-78f5d1814443
2025-09-11 11:01:12,766 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36d9b8e5-3b3e-4171-9d4a-29476679c1c0
2025-09-11 11:01:12,776 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36d9b8e5-3b3e-4171-9d4a-29476679c1c0
2025-09-11 11:01:12,785 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ccc525cf-4480-4920-addb-4f831a4b8f1e
2025-09-11 11:01:12,791 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ccc525cf-4480-4920-addb-4f831a4b8f1e
2025-09-11 11:01:12,797 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8f26754c-cdaa-4bad-b32a-d05405525ba2
2025-09-11 11:01:12,803 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 11:01:12,803 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36d9b8e5-3b3e-4171-9d4a-29476679c1c0
2025-09-11 11:01:12,810 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ccc525cf-4480-4920-addb-4f831a4b8f1e
2025-09-11 11:01:12,821 - INFO - Verified VN network id 11 for VN 36d9b8e5-3b3e-4171-9d4a-29476679c1c0
2025-09-11 11:01:12,821 - INFO - Verifications in API Server for VN ctest-vn-28753371 passed
2025-09-11 11:01:12,821 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36d9b8e5-3b3e-4171-9d4a-29476679c1c0
2025-09-11 11:01:12,829 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ccc525cf-4480-4920-addb-4f831a4b8f1e
2025-09-11 11:01:12,836 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ccc525cf-4480-4920-addb-4f831a4b8f1e
2025-09-11 11:01:12,841 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8f26754c-cdaa-4bad-b32a-d05405525ba2
2025-09-11 11:01:12,850 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-28753371', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89982004', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3952393442675278193', 'uuid-lslong': '11333916798869946816'}, 'enable': 'true', 'created': '2025-09-11T11:01:10', 'last-modified': '2025-09-11T11:01:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.271699'}
2025-09-11 11:01:12,855 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 11:01:12,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28753371 passed
2025-09-11 11:01:12,855 - DEBUG - ====Verifying policy data for ctest-vn-28753371 in API_Server ======
2025-09-11 11:01:12,855 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 11:01:12,860 - DEBUG - Requesting: http://10.0.0.22:8082/domain/09fb6021-991a-4f39-a931-08d840e9d2e5
2025-09-11 11:01:12,870 - DEBUG - Requesting: http://10.0.0.22:8082/project/4cb0ba95-03c1-4035-8167-78f5d1814443
2025-09-11 11:01:12,934 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36d9b8e5-3b3e-4171-9d4a-29476679c1c0
2025-09-11 11:01:12,942 - DEBUG - ==>Verifying data for policy with id: 3df1c8ed-0cba-4d46-99d2-4c6cb5e5d936, fqn: ['default-domain', 'ctest-TestBasicPolicy-89982004', 'ctest-policy-allow-all-29555724']
2025-09-11 11:01:12,942 - INFO - VN ctest-vn-28753371 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 11:01:12,942 - DEBUG - Verifying the vn in opserver
2025-09-11 11:01:12,942 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-28753371 virtual network link through opserver 10.0.0.22
2025-09-11 11:01:12,942 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 11:01:12,950 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-28753371', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-28753371?flat'}
2025-09-11 11:01:12,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89982004:ctest-vn-28753371 is found in opserver
2025-09-11 11:01:12,958 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 11:01:12,962 - DEBUG - VRF ids for VN ctest-vn-28753371: {}
2025-09-11 11:01:13,010 - DEBUG - Services list from nova: [