2025-04-24 13:30:44,379 - INFO - Domain Default found not creating
2025-04-24 13:30:44,501 - INFO - Project ctest-TestBasicPolicy-10338487 not found, creating it
2025-04-24 13:30:44,964 - INFO - Created Project:ctest-TestBasicPolicy-10338487, ID : 4f1d8415-8c37-4292-ad2b-283a997a8426
2025-04-24 13:30:46,341 - INFO - ================================================================================
2025-04-24 13:30:46,341 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 13:30:46,341 - 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-04-24 13:30:46,596 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-04-24 13:30:46,596 - INFO - Initial checks done. Running the testcase now
2025-04-24 13:30:46,596 - INFO -
2025-04-24 13:30:47,125 - DEBUG - Response for create_network : {'network': {'id': 'aeb958b8-faa9-49e3-91fa-ff61cd8a9b32', 'name': 'ctest-vn-45754782', 'tenant_id': '4f1d84158c374292ad2b283a997a8426', 'project_id': '4f1d84158c374292ad2b283a997a8426', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-vn-45754782'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:30:47,357 - DEBUG - Response for create_subnet : {'subnet': {'id': '35d09022-65ea-4e26-8ccc-3143f389cc4d', 'name': '', 'tenant_id': '4f1d84158c374292ad2b283a997a8426', 'network_id': 'aeb958b8-faa9-49e3-91fa-ff61cd8a9b32', 'ip_version': 4, 'cidr': '133.16.242.0/26', 'allocation_pools': [{'start': '133.16.242.2', 'end': '133.16.242.62'}], 'gateway_ip': '133.16.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.16.242.2', 'tags': [], 'project_id': '4f1d84158c374292ad2b283a997a8426'}}
2025-04-24 13:30:47,373 - INFO - Created VN ctest-vn-45754782
2025-04-24 13:30:47,426 - DEBUG - VN ctest-vn-45754782 UUID is aeb958b8-faa9-49e3-91fa-ff61cd8a9b32
2025-04-24 13:30:47,851 - DEBUG - Response for create_network : {'network': {'id': 'afb623ac-9d2f-4759-83d8-178c0ad623b4', 'name': 'ctest-vn-10939597', 'tenant_id': '4f1d84158c374292ad2b283a997a8426', 'project_id': '4f1d84158c374292ad2b283a997a8426', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-vn-10939597'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:30:48,048 - DEBUG - Response for create_subnet : {'subnet': {'id': '89cbd568-e50f-427c-91bb-38c6eb29bb06', 'name': '', 'tenant_id': '4f1d84158c374292ad2b283a997a8426', 'network_id': 'afb623ac-9d2f-4759-83d8-178c0ad623b4', 'ip_version': 4, 'cidr': '57.185.10.0/26', 'allocation_pools': [{'start': '57.185.10.2', 'end': '57.185.10.62'}], 'gateway_ip': '57.185.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.185.10.2', 'tags': [], 'project_id': '4f1d84158c374292ad2b283a997a8426'}}
2025-04-24 13:30:48,063 - INFO - Created VN ctest-vn-10939597
2025-04-24 13:30:48,114 - DEBUG - VN ctest-vn-10939597 UUID is afb623ac-9d2f-4759-83d8-178c0ad623b4
2025-04-24 13:30:48,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-45754782, 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-10338487:ctest-vn-10939597, 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-04-24 13:30:48,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aeb958b8-faa9-49e3-91fa-ff61cd8a9b32', 'name': 'ctest-vn-45754782', 'tenant_id': '4f1d84158c374292ad2b283a997a8426', 'project_id': '4f1d84158c374292ad2b283a997a8426', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35d09022-65ea-4e26-8ccc-3143f389cc4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-vn-45754782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-policy-allow-all-24894391']], 'subnet_ipam': [{'subnet_cidr': '133.16.242.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:30:48,810 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afb623ac-9d2f-4759-83d8-178c0ad623b4', 'name': 'ctest-vn-10939597', 'tenant_id': '4f1d84158c374292ad2b283a997a8426', 'project_id': '4f1d84158c374292ad2b283a997a8426', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89cbd568-e50f-427c-91bb-38c6eb29bb06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-vn-10939597'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-policy-allow-all-24894391']], 'subnet_ipam': [{'subnet_cidr': '57.185.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:30:48,954 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-24 13:30:49,247 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-24 13:30:49,271 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf947ba0-44ee-4ab1-afc2-8a7862bbcab5
2025-04-24 13:30:49,283 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f1d8415-8c37-4292-ad2b-283a997a8426
2025-04-24 13:30:49,351 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aeb958b8-faa9-49e3-91fa-ff61cd8a9b32
2025-04-24 13:30:49,361 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aeb958b8-faa9-49e3-91fa-ff61cd8a9b32
2025-04-24 13:30:49,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b2ff994-6bb5-47b1-a4df-2b940d7b83c3
2025-04-24 13:30:49,376 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b2ff994-6bb5-47b1-a4df-2b940d7b83c3
2025-04-24 13:30:49,382 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e10b7366-1fa9-4578-808b-7b8830834a93
2025-04-24 13:30:49,388 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 13:30:49,388 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aeb958b8-faa9-49e3-91fa-ff61cd8a9b32
2025-04-24 13:30:49,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b2ff994-6bb5-47b1-a4df-2b940d7b83c3
2025-04-24 13:30:49,408 - INFO - Verified VN network id 8 for VN aeb958b8-faa9-49e3-91fa-ff61cd8a9b32
2025-04-24 13:30:49,408 - INFO - Verifications in API Server for VN ctest-vn-45754782 passed
2025-04-24 13:30:49,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aeb958b8-faa9-49e3-91fa-ff61cd8a9b32
2025-04-24 13:30:49,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b2ff994-6bb5-47b1-a4df-2b940d7b83c3
2025-04-24 13:30:49,423 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b2ff994-6bb5-47b1-a4df-2b940d7b83c3
2025-04-24 13:30:49,429 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e10b7366-1fa9-4578-808b-7b8830834a93
2025-04-24 13:30:49,440 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-45754782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10338487', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12590191784793557475', 'uuid-lslong': '10519000675202538290'}, 'enable': 'true', 'created': '2025-04-24T13:30:47', 'last-modified': '2025-04-24T13:30:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920734'}
2025-04-24 13:30:49,446 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 13:30:49,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45754782 passed
2025-04-24 13:30:49,446 - DEBUG - ====Verifying policy data for ctest-vn-45754782 in API_Server ======
2025-04-24 13:30:49,446 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-24 13:30:49,452 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf947ba0-44ee-4ab1-afc2-8a7862bbcab5
2025-04-24 13:30:49,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f1d8415-8c37-4292-ad2b-283a997a8426
2025-04-24 13:30:49,532 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aeb958b8-faa9-49e3-91fa-ff61cd8a9b32
2025-04-24 13:30:49,541 - DEBUG - ==>Verifying data for policy with id: 50a7d82c-8db0-47e2-9ce1-fdcca3c1858d, fqn: ['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-policy-allow-all-24894391']
2025-04-24 13:30:49,542 - INFO - VN ctest-vn-45754782 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 13:30:49,542 - DEBUG - Verifying the vn in opserver
2025-04-24 13:30:49,542 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-45754782 virtual network link through opserver 10.0.0.38
2025-04-24 13:30:49,542 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-24 13:30:49,839 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-24 13:30:49,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-45754782', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-45754782?flat'}
2025-04-24 13:30:49,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-45754782 is found in opserver
2025-04-24 13:30:49,904 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 13:30:49,909 - DEBUG - VRF ids for VN ctest-vn-45754782: {}
2025-04-24 13:30:49,909 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-24 13:30:49,916 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf947ba0-44ee-4ab1-afc2-8a7862bbcab5
2025-04-24 13:30:49,926 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f1d8415-8c37-4292-ad2b-283a997a8426
2025-04-24 13:30:50,007 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/afb623ac-9d2f-4759-83d8-178c0ad623b4
2025-04-24 13:30:50,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/afb623ac-9d2f-4759-83d8-178c0ad623b4
2025-04-24 13:30:50,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/afce6e59-baa8-4302-8c9b-2fce750212af
2025-04-24 13:30:50,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/afce6e59-baa8-4302-8c9b-2fce750212af
2025-04-24 13:30:50,045 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f73d2d7-0e7a-4520-88c1-4fffb76020fe
2025-04-24 13:30:50,050 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 13:30:50,050 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/afb623ac-9d2f-4759-83d8-178c0ad623b4
2025-04-24 13:30:50,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/afce6e59-baa8-4302-8c9b-2fce750212af
2025-04-24 13:30:50,071 - INFO - Verified VN network id 9 for VN afb623ac-9d2f-4759-83d8-178c0ad623b4
2025-04-24 13:30:50,071 - INFO - Verifications in API Server for VN ctest-vn-10939597 passed
2025-04-24 13:30:50,071 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/afb623ac-9d2f-4759-83d8-178c0ad623b4
2025-04-24 13:30:50,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/afce6e59-baa8-4302-8c9b-2fce750212af
2025-04-24 13:30:50,085 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/afce6e59-baa8-4302-8c9b-2fce750212af
2025-04-24 13:30:50,091 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f73d2d7-0e7a-4520-88c1-4fffb76020fe
2025-04-24 13:30:50,102 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-10939597', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10338487', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12661346626677196633', 'uuid-lslong': '9500369304182727604'}, 'enable': 'true', 'created': '2025-04-24T13:30:47', 'last-modified': '2025-04-24T13:30:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358832'}
2025-04-24 13:30:50,107 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 13:30:50,107 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10939597 passed
2025-04-24 13:30:50,108 - DEBUG - ====Verifying policy data for ctest-vn-10939597 in API_Server ======
2025-04-24 13:30:50,108 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-24 13:30:50,112 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bf947ba0-44ee-4ab1-afc2-8a7862bbcab5
2025-04-24 13:30:50,122 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f1d8415-8c37-4292-ad2b-283a997a8426
2025-04-24 13:30:50,188 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/afb623ac-9d2f-4759-83d8-178c0ad623b4
2025-04-24 13:30:50,198 - DEBUG - ==>Verifying data for policy with id: 50a7d82c-8db0-47e2-9ce1-fdcca3c1858d, fqn: ['default-domain', 'ctest-TestBasicPolicy-10338487', 'ctest-policy-allow-all-24894391']
2025-04-24 13:30:50,198 - INFO - VN ctest-vn-10939597 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 13:30:50,198 - DEBUG - Verifying the vn in opserver
2025-04-24 13:30:50,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-10939597 virtual network link through opserver 10.0.0.38
2025-04-24 13:30:50,198 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-24 13:30:50,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-10939597', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-10939597?flat'}
2025-04-24 13:30:50,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10338487:ctest-vn-10939597 is found in opserver
2025-04-24 13:30:50,217 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 13:30:50,221 - DEBUG - VRF ids for VN ctest-vn-10939597: {}
2025-04-24 13:30:50,270 - DEBUG - Services list from nova: [