2025-03-27 13:16:23,841 - INFO - Domain Default found not creating
2025-03-27 13:16:23,988 - INFO - Project ctest-TestBasicPolicy-90148846 not found, creating it
2025-03-27 13:16:24,449 - INFO - Created Project:ctest-TestBasicPolicy-90148846, ID : f40ed970-d1b0-4b1e-b84a-31ba907796a0
2025-03-27 13:16:25,850 - INFO - ================================================================================
2025-03-27 13:16:25,850 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 13:16:25,850 - 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-03-27 13:16:26,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.8': '0'}} with
2025-03-27 13:16:26,103 - INFO - Initial checks done. Running the testcase now
2025-03-27 13:16:26,104 - INFO -
2025-03-27 13:16:26,654 - DEBUG - Response for create_network : {'network': {'id': '2125fa7a-216c-4155-a5d0-394e4501ecbf', 'name': 'ctest-vn-27884422', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-27884422'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:16:26,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '38ee76a2-4312-4b73-ab5f-aed7b0ffe506', 'name': '', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'network_id': '2125fa7a-216c-4155-a5d0-394e4501ecbf', 'ip_version': 4, 'cidr': '87.207.206.192/26', 'allocation_pools': [{'start': '87.207.206.194', 'end': '87.207.206.254'}], 'gateway_ip': '87.207.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.207.206.194', 'tags': [], 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0'}}
2025-03-27 13:16:26,839 - INFO - Created VN ctest-vn-27884422
2025-03-27 13:16:26,893 - DEBUG - VN ctest-vn-27884422 UUID is 2125fa7a-216c-4155-a5d0-394e4501ecbf
2025-03-27 13:16:27,207 - DEBUG - Response for create_network : {'network': {'id': 'e19f9b4b-8355-49b0-b8df-432472d20a45', 'name': 'ctest-vn-35556211', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-35556211'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:16:27,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '19034df7-6c1c-4235-bbd3-768b0a5b46ca', 'name': '', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'network_id': 'e19f9b4b-8355-49b0-b8df-432472d20a45', 'ip_version': 4, 'cidr': '199.180.116.128/26', 'allocation_pools': [{'start': '199.180.116.130', 'end': '199.180.116.190'}], 'gateway_ip': '199.180.116.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.180.116.130', 'tags': [], 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0'}}
2025-03-27 13:16:27,435 - INFO - Created VN ctest-vn-35556211
2025-03-27 13:16:27,489 - DEBUG - VN ctest-vn-35556211 UUID is e19f9b4b-8355-49b0-b8df-432472d20a45
2025-03-27 13:16:27,605 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422, 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-90148846:ctest-vn-35556211, 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-03-27 13:16:27,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2125fa7a-216c-4155-a5d0-394e4501ecbf', 'name': 'ctest-vn-27884422', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38ee76a2-4312-4b73-ab5f-aed7b0ffe506'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-27884422'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858']], 'subnet_ipam': [{'subnet_cidr': '87.207.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:16:28,142 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e19f9b4b-8355-49b0-b8df-432472d20a45', 'name': 'ctest-vn-35556211', 'tenant_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'project_id': 'f40ed970d1b04b1eb84a31ba907796a0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19034df7-6c1c-4235-bbd3-768b0a5b46ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-vn-35556211'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858']], 'subnet_ipam': [{'subnet_cidr': '199.180.116.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 13:16:28,301 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-03-27 13:16:28,595 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-03-27 13:16:28,623 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5
2025-03-27 13:16:28,638 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0
2025-03-27 13:16:28,720 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf
2025-03-27 13:16:28,733 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf
2025-03-27 13:16:28,743 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe
2025-03-27 13:16:28,751 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe
2025-03-27 13:16:28,758 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/fccd35f3-d8ab-4b94-a099-4b9b5d0d438a
2025-03-27 13:16:28,765 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 13:16:28,765 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf
2025-03-27 13:16:28,775 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe
2025-03-27 13:16:28,791 - INFO - Verified VN network id 8 for VN 2125fa7a-216c-4155-a5d0-394e4501ecbf
2025-03-27 13:16:28,791 - INFO - Verifications in API Server for VN ctest-vn-27884422 passed
2025-03-27 13:16:28,791 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf
2025-03-27 13:16:28,801 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe
2025-03-27 13:16:28,809 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/b997bc4d-865c-43b0-a6ac-ffb140111cfe
2025-03-27 13:16:28,815 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/fccd35f3-d8ab-4b94-a099-4b9b5d0d438a
2025-03-27 13:16:28,827 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90148846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2388590579843613013', 'uuid-lslong': '11948112819741912255'}, 'enable': 'true', 'created': '2025-03-27T13:16:26', 'last-modified': '2025-03-27T13:16:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943662'}
2025-03-27 13:16:28,834 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 13:16:28,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27884422 passed
2025-03-27 13:16:28,834 - DEBUG - ====Verifying policy data for ctest-vn-27884422 in API_Server ======
2025-03-27 13:16:28,834 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-03-27 13:16:28,840 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5
2025-03-27 13:16:28,852 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0
2025-03-27 13:16:28,925 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/2125fa7a-216c-4155-a5d0-394e4501ecbf
2025-03-27 13:16:28,935 - DEBUG - ==>Verifying data for policy with id: 262dfd9b-9f0c-459b-94ab-8917df02e711, fqn: ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858']
2025-03-27 13:16:28,935 - INFO - VN ctest-vn-27884422 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 13:16:28,935 - DEBUG - Verifying the vn in opserver
2025-03-27 13:16:28,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422 virtual network link through opserver 10.0.0.35
2025-03-27 13:16:28,935 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-03-27 13:16:29,227 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-03-27 13:16:29,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422?flat'}
2025-03-27 13:16:29,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-27884422 is found in opserver
2025-03-27 13:16:29,297 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 13:16:29,302 - DEBUG - VRF ids for VN ctest-vn-27884422: {}
2025-03-27 13:16:29,302 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-03-27 13:16:29,307 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5
2025-03-27 13:16:29,318 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0
2025-03-27 13:16:29,387 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45
2025-03-27 13:16:29,399 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45
2025-03-27 13:16:29,409 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43
2025-03-27 13:16:29,416 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43
2025-03-27 13:16:29,423 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/553bb556-11d0-43fb-8c9f-0ebb653d7420
2025-03-27 13:16:29,428 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 13:16:29,428 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45
2025-03-27 13:16:29,437 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43
2025-03-27 13:16:29,449 - INFO - Verified VN network id 9 for VN e19f9b4b-8355-49b0-b8df-432472d20a45
2025-03-27 13:16:29,449 - INFO - Verifications in API Server for VN ctest-vn-35556211 passed
2025-03-27 13:16:29,449 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45
2025-03-27 13:16:29,457 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43
2025-03-27 13:16:29,464 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/5b45b299-1d54-4159-aed1-f8ab2ed03c43
2025-03-27 13:16:29,469 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/553bb556-11d0-43fb-8c9f-0ebb653d7420
2025-03-27 13:16:29,480 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90148846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16257883928459037104', 'uuid-lslong': '13321440046609467973'}, 'enable': 'true', 'created': '2025-03-27T13:16:27', 'last-modified': '2025-03-27T13:16:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353369'}
2025-03-27 13:16:29,486 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 13:16:29,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35556211 passed
2025-03-27 13:16:29,486 - DEBUG - ====Verifying policy data for ctest-vn-35556211 in API_Server ======
2025-03-27 13:16:29,486 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-03-27 13:16:29,492 - DEBUG - Requesting: http://10.0.0.35:8082/domain/340bd53e-3c6c-4d4e-acc9-9c27013336a5
2025-03-27 13:16:29,503 - DEBUG - Requesting: http://10.0.0.35:8082/project/f40ed970-d1b0-4b1e-b84a-31ba907796a0
2025-03-27 13:16:29,576 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e19f9b4b-8355-49b0-b8df-432472d20a45
2025-03-27 13:16:29,585 - DEBUG - ==>Verifying data for policy with id: 262dfd9b-9f0c-459b-94ab-8917df02e711, fqn: ['default-domain', 'ctest-TestBasicPolicy-90148846', 'ctest-policy-allow-all-78521858']
2025-03-27 13:16:29,586 - INFO - VN ctest-vn-35556211 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 13:16:29,586 - DEBUG - Verifying the vn in opserver
2025-03-27 13:16:29,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211 virtual network link through opserver 10.0.0.35
2025-03-27 13:16:29,586 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-03-27 13:16:29,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211?flat'}
2025-03-27 13:16:29,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90148846:ctest-vn-35556211 is found in opserver
2025-03-27 13:16:29,607 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 13:16:29,612 - DEBUG - VRF ids for VN ctest-vn-35556211: {}
2025-03-27 13:16:29,675 - DEBUG - Services list from nova: [