2025-08-12 01:43:55,780 - INFO - Domain Default found not creating
2025-08-12 01:43:55,914 - INFO - Project ctest-TestBasicPolicy-42978538 not found, creating it
2025-08-12 01:43:56,366 - INFO - Created Project:ctest-TestBasicPolicy-42978538, ID : 6c710e6e-38d0-4baf-9722-6231c1fe6046
2025-08-12 01:43:57,758 - INFO - ================================================================================
2025-08-12 01:43:57,758 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-12 01:43:57,758 - 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-08-12 01:43:58,020 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with
2025-08-12 01:43:58,020 - INFO - Initial checks done. Running the testcase now
2025-08-12 01:43:58,020 - INFO -
2025-08-12 01:43:58,511 - DEBUG - Response for create_network : {'network': {'id': '4a9a499f-f779-46f0-b41f-51aeaa3d4cd0', 'name': 'ctest-vn-86503008', 'tenant_id': '6c710e6e38d04baf97226231c1fe6046', 'project_id': '6c710e6e38d04baf97226231c1fe6046', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-vn-86503008'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:43:58,678 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9707195-8c70-4d7f-acde-0f9091593f5b', 'name': '', 'tenant_id': '6c710e6e38d04baf97226231c1fe6046', 'network_id': '4a9a499f-f779-46f0-b41f-51aeaa3d4cd0', 'ip_version': 4, 'cidr': '2.13.235.192/26', 'allocation_pools': [{'start': '2.13.235.194', 'end': '2.13.235.254'}], 'gateway_ip': '2.13.235.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.13.235.194', 'tags': [], 'project_id': '6c710e6e38d04baf97226231c1fe6046'}}
2025-08-12 01:43:58,696 - INFO - Created VN ctest-vn-86503008
2025-08-12 01:43:58,749 - DEBUG - VN ctest-vn-86503008 UUID is 4a9a499f-f779-46f0-b41f-51aeaa3d4cd0
2025-08-12 01:43:59,039 - DEBUG - Response for create_network : {'network': {'id': 'd97b022d-d31b-43ff-b6d0-73303307a07f', 'name': 'ctest-vn-45445136', 'tenant_id': '6c710e6e38d04baf97226231c1fe6046', 'project_id': '6c710e6e38d04baf97226231c1fe6046', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-vn-45445136'], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:43:59,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '524532cd-16b0-456a-9ce3-eab8df6847c2', 'name': '', 'tenant_id': '6c710e6e38d04baf97226231c1fe6046', 'network_id': 'd97b022d-d31b-43ff-b6d0-73303307a07f', 'ip_version': 4, 'cidr': '124.156.187.128/26', 'allocation_pools': [{'start': '124.156.187.130', 'end': '124.156.187.190'}], 'gateway_ip': '124.156.187.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.156.187.130', 'tags': [], 'project_id': '6c710e6e38d04baf97226231c1fe6046'}}
2025-08-12 01:43:59,235 - INFO - Created VN ctest-vn-45445136
2025-08-12 01:43:59,285 - DEBUG - VN ctest-vn-45445136 UUID is d97b022d-d31b-43ff-b6d0-73303307a07f
2025-08-12 01:43:59,437 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-86503008, 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-42978538:ctest-vn-45445136, 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-08-12 01:43:59,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a9a499f-f779-46f0-b41f-51aeaa3d4cd0', 'name': 'ctest-vn-86503008', 'tenant_id': '6c710e6e38d04baf97226231c1fe6046', 'project_id': '6c710e6e38d04baf97226231c1fe6046', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9707195-8c70-4d7f-acde-0f9091593f5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-vn-86503008'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-policy-allow-all-53434082']], 'subnet_ipam': [{'subnet_cidr': '2.13.235.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:44:00,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd97b022d-d31b-43ff-b6d0-73303307a07f', 'name': 'ctest-vn-45445136', 'tenant_id': '6c710e6e38d04baf97226231c1fe6046', 'project_id': '6c710e6e38d04baf97226231c1fe6046', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['524532cd-16b0-456a-9ce3-eab8df6847c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-vn-45445136'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-policy-allow-all-53434082']], 'subnet_ipam': [{'subnet_cidr': '124.156.187.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-12 01:44:00,161 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-08-12 01:44:00,427 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-08-12 01:44:00,460 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107
2025-08-12 01:44:00,475 - DEBUG - Requesting: http://10.0.0.241:8082/project/6c710e6e-38d0-4baf-9722-6231c1fe6046
2025-08-12 01:44:00,555 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a499f-f779-46f0-b41f-51aeaa3d4cd0
2025-08-12 01:44:00,569 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a499f-f779-46f0-b41f-51aeaa3d4cd0
2025-08-12 01:44:00,581 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/6fd2210d-8a99-4802-bf4e-e2efe6428e35
2025-08-12 01:44:00,592 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/6fd2210d-8a99-4802-bf4e-e2efe6428e35
2025-08-12 01:44:00,600 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9fbd5481-c6b4-4720-8a5b-9d618b33b989
2025-08-12 01:44:00,608 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 01:44:00,608 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a499f-f779-46f0-b41f-51aeaa3d4cd0
2025-08-12 01:44:00,617 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/6fd2210d-8a99-4802-bf4e-e2efe6428e35
2025-08-12 01:44:00,631 - INFO - Verified VN network id 12 for VN 4a9a499f-f779-46f0-b41f-51aeaa3d4cd0
2025-08-12 01:44:00,632 - INFO - Verifications in API Server for VN ctest-vn-86503008 passed
2025-08-12 01:44:00,632 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a499f-f779-46f0-b41f-51aeaa3d4cd0
2025-08-12 01:44:00,641 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/6fd2210d-8a99-4802-bf4e-e2efe6428e35
2025-08-12 01:44:00,648 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/6fd2210d-8a99-4802-bf4e-e2efe6428e35
2025-08-12 01:44:00,656 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9fbd5481-c6b4-4720-8a5b-9d618b33b989
2025-08-12 01:44:00,672 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-86503008', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42978538', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5375690056620656368', 'uuid-lslong': '12979182461727362256'}, 'enable': 'true', 'created': '2025-08-12T01:43:58', 'last-modified': '2025-08-12T01:43:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966395'}
2025-08-12 01:44:00,678 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-12 01:44:00,678 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86503008 passed
2025-08-12 01:44:00,679 - DEBUG - ====Verifying policy data for ctest-vn-86503008 in API_Server ======
2025-08-12 01:44:00,679 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-08-12 01:44:00,687 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107
2025-08-12 01:44:00,704 - DEBUG - Requesting: http://10.0.0.241:8082/project/6c710e6e-38d0-4baf-9722-6231c1fe6046
2025-08-12 01:44:00,780 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4a9a499f-f779-46f0-b41f-51aeaa3d4cd0
2025-08-12 01:44:00,790 - DEBUG - ==>Verifying data for policy with id: fd344dde-be0e-457e-b80e-5600f5130e6f, fqn: ['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-policy-allow-all-53434082']
2025-08-12 01:44:00,790 - INFO - VN ctest-vn-86503008 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 01:44:00,790 - DEBUG - Verifying the vn in opserver
2025-08-12 01:44:00,790 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-86503008 virtual network link through opserver 10.0.0.241
2025-08-12 01:44:00,790 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-08-12 01:44:01,075 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-08-12 01:44:01,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-86503008', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-86503008?flat'}
2025-08-12 01:44:01,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-86503008 is found in opserver
2025-08-12 01:44:01,165 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 01:44:01,170 - DEBUG - VRF ids for VN ctest-vn-86503008: {}
2025-08-12 01:44:01,170 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-08-12 01:44:01,178 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107
2025-08-12 01:44:01,194 - DEBUG - Requesting: http://10.0.0.241:8082/project/6c710e6e-38d0-4baf-9722-6231c1fe6046
2025-08-12 01:44:01,271 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d97b022d-d31b-43ff-b6d0-73303307a07f
2025-08-12 01:44:01,286 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d97b022d-d31b-43ff-b6d0-73303307a07f
2025-08-12 01:44:01,297 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/43c26317-013c-49f1-ad70-c7a3958bc9dd
2025-08-12 01:44:01,306 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/43c26317-013c-49f1-ad70-c7a3958bc9dd
2025-08-12 01:44:01,315 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/7696d969-da5a-4d8d-ad42-c1e191366652
2025-08-12 01:44:01,323 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 01:44:01,323 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d97b022d-d31b-43ff-b6d0-73303307a07f
2025-08-12 01:44:01,335 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/43c26317-013c-49f1-ad70-c7a3958bc9dd
2025-08-12 01:44:01,350 - INFO - Verified VN network id 13 for VN d97b022d-d31b-43ff-b6d0-73303307a07f
2025-08-12 01:44:01,350 - INFO - Verifications in API Server for VN ctest-vn-45445136 passed
2025-08-12 01:44:01,350 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d97b022d-d31b-43ff-b6d0-73303307a07f
2025-08-12 01:44:01,360 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/43c26317-013c-49f1-ad70-c7a3958bc9dd
2025-08-12 01:44:01,369 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/43c26317-013c-49f1-ad70-c7a3958bc9dd
2025-08-12 01:44:01,378 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/7696d969-da5a-4d8d-ad42-c1e191366652
2025-08-12 01:44:01,393 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-45445136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42978538', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15671121724204336127', 'uuid-lslong': '13173155560910463103'}, 'enable': 'true', 'created': '2025-08-12T01:43:59', 'last-modified': '2025-08-12T01:43:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.455792'}
2025-08-12 01:44:01,400 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-12 01:44:01,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45445136 passed
2025-08-12 01:44:01,400 - DEBUG - ====Verifying policy data for ctest-vn-45445136 in API_Server ======
2025-08-12 01:44:01,400 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-08-12 01:44:01,408 - DEBUG - Requesting: http://10.0.0.241:8082/domain/e722a47c-c3f6-467c-ad31-33f2a019a107
2025-08-12 01:44:01,422 - DEBUG - Requesting: http://10.0.0.241:8082/project/6c710e6e-38d0-4baf-9722-6231c1fe6046
2025-08-12 01:44:01,497 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/d97b022d-d31b-43ff-b6d0-73303307a07f
2025-08-12 01:44:01,506 - DEBUG - ==>Verifying data for policy with id: fd344dde-be0e-457e-b80e-5600f5130e6f, fqn: ['default-domain', 'ctest-TestBasicPolicy-42978538', 'ctest-policy-allow-all-53434082']
2025-08-12 01:44:01,506 - INFO - VN ctest-vn-45445136 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-12 01:44:01,507 - DEBUG - Verifying the vn in opserver
2025-08-12 01:44:01,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-45445136 virtual network link through opserver 10.0.0.241
2025-08-12 01:44:01,507 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-08-12 01:44:01,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-45445136', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-45445136?flat'}
2025-08-12 01:44:01,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42978538:ctest-vn-45445136 is found in opserver
2025-08-12 01:44:01,530 - DEBUG - Do not have enough data to verify VN in agent
2025-08-12 01:44:01,536 - DEBUG - VRF ids for VN ctest-vn-45445136: {}
2025-08-12 01:44:01,601 - DEBUG - Services list from nova: [