2025-04-14 14:01:40,668 - INFO - Domain Default found not creating
2025-04-14 14:01:40,815 - INFO - Project ctest-TestBasicPolicy-03304031 not found, creating it
2025-04-14 14:01:41,295 - INFO - Created Project:ctest-TestBasicPolicy-03304031, ID : aa8a5ce9-cac3-4859-8258-190776c3909d
2025-04-14 14:01:42,932 - INFO - ================================================================================
2025-04-14 14:01:42,932 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 14:01:42,932 - 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-14 14:01:43,191 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-04-14 14:01:43,191 - INFO - Initial checks done. Running the testcase now
2025-04-14 14:01:43,191 - INFO -
2025-04-14 14:01:44,220 - DEBUG - Response for create_network : {'network': {'id': '328ced9a-9adb-46e2-add9-b493286a57a1', 'name': 'ctest-vn-40491523', 'tenant_id': 'aa8a5ce9cac348598258190776c3909d', 'project_id': 'aa8a5ce9cac348598258190776c3909d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-vn-40491523'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 14:01:44,639 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ddaaa26a-53ea-4761-8fd7-c4293a0a3532', 'name': '', 'tenant_id': 'aa8a5ce9cac348598258190776c3909d', 'network_id': '328ced9a-9adb-46e2-add9-b493286a57a1', 'ip_version': 4, 'cidr': '121.62.249.64/26', 'allocation_pools': [{'start': '121.62.249.66', 'end': '121.62.249.126'}], 'gateway_ip': '121.62.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.62.249.66', 'tags': [], 'project_id': 'aa8a5ce9cac348598258190776c3909d'}}
2025-04-14 14:01:44,672 - INFO - Created VN ctest-vn-40491523
2025-04-14 14:01:44,733 - DEBUG - VN ctest-vn-40491523 UUID is 328ced9a-9adb-46e2-add9-b493286a57a1
2025-04-14 14:01:45,069 - DEBUG - Response for create_network : {'network': {'id': '0284c231-0472-4879-8432-a0a40a939159', 'name': 'ctest-vn-77336467', 'tenant_id': 'aa8a5ce9cac348598258190776c3909d', 'project_id': 'aa8a5ce9cac348598258190776c3909d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-vn-77336467'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 14:01:45,268 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a84dd4d9-047c-452f-84c6-f75511014690', 'name': '', 'tenant_id': 'aa8a5ce9cac348598258190776c3909d', 'network_id': '0284c231-0472-4879-8432-a0a40a939159', 'ip_version': 4, 'cidr': '201.146.87.128/26', 'allocation_pools': [{'start': '201.146.87.130', 'end': '201.146.87.190'}], 'gateway_ip': '201.146.87.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.146.87.130', 'tags': [], 'project_id': 'aa8a5ce9cac348598258190776c3909d'}}
2025-04-14 14:01:45,288 - INFO - Created VN ctest-vn-77336467
2025-04-14 14:01:45,345 - DEBUG - VN ctest-vn-77336467 UUID is 0284c231-0472-4879-8432-a0a40a939159
2025-04-14 14:01:45,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-40491523, 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-03304031:ctest-vn-77336467, 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-14 14:01:45,772 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '328ced9a-9adb-46e2-add9-b493286a57a1', 'name': 'ctest-vn-40491523', 'tenant_id': 'aa8a5ce9cac348598258190776c3909d', 'project_id': 'aa8a5ce9cac348598258190776c3909d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ddaaa26a-53ea-4761-8fd7-c4293a0a3532'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-vn-40491523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-policy-allow-all-41701065']], 'subnet_ipam': [{'subnet_cidr': '121.62.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 14:01:46,027 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0284c231-0472-4879-8432-a0a40a939159', 'name': 'ctest-vn-77336467', 'tenant_id': 'aa8a5ce9cac348598258190776c3909d', 'project_id': 'aa8a5ce9cac348598258190776c3909d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a84dd4d9-047c-452f-84c6-f75511014690'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-vn-77336467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-policy-allow-all-41701065']], 'subnet_ipam': [{'subnet_cidr': '201.146.87.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 14:01:46,181 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-14 14:01:46,520 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-14 14:01:46,551 - DEBUG - Requesting: http://10.0.0.249:8082/domain/613b1dd0-fa69-47af-aeff-ffdb1e2be2af
2025-04-14 14:01:46,566 - DEBUG - Requesting: http://10.0.0.249:8082/project/aa8a5ce9-cac3-4859-8258-190776c3909d
2025-04-14 14:01:46,646 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/328ced9a-9adb-46e2-add9-b493286a57a1
2025-04-14 14:01:46,659 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/328ced9a-9adb-46e2-add9-b493286a57a1
2025-04-14 14:01:46,671 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b19b0d7-c827-42d1-919f-4f728d753fc8
2025-04-14 14:01:46,680 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b19b0d7-c827-42d1-919f-4f728d753fc8
2025-04-14 14:01:46,689 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7e14f5f4-4465-46da-969f-48fd2db68b67
2025-04-14 14:01:46,696 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 14:01:46,697 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/328ced9a-9adb-46e2-add9-b493286a57a1
2025-04-14 14:01:46,708 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b19b0d7-c827-42d1-919f-4f728d753fc8
2025-04-14 14:01:46,725 - INFO - Verified VN network id 9 for VN 328ced9a-9adb-46e2-add9-b493286a57a1
2025-04-14 14:01:46,726 - INFO - Verifications in API Server for VN ctest-vn-40491523 passed
2025-04-14 14:01:46,726 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/328ced9a-9adb-46e2-add9-b493286a57a1
2025-04-14 14:01:46,737 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b19b0d7-c827-42d1-919f-4f728d753fc8
2025-04-14 14:01:46,748 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/5b19b0d7-c827-42d1-919f-4f728d753fc8
2025-04-14 14:01:46,756 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7e14f5f4-4465-46da-969f-48fd2db68b67
2025-04-14 14:01:46,770 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-40491523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03304031', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3642547446914696930', 'uuid-lslong': '12527242382638995361'}, 'enable': 'true', 'created': '2025-04-14T14:01:44', 'last-modified': '2025-04-14T14:01:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018975'}
2025-04-14 14:01:46,777 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 14:01:46,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40491523 passed
2025-04-14 14:01:46,778 - DEBUG - ====Verifying policy data for ctest-vn-40491523 in API_Server ======
2025-04-14 14:01:46,778 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-14 14:01:46,784 - DEBUG - Requesting: http://10.0.0.249:8082/domain/613b1dd0-fa69-47af-aeff-ffdb1e2be2af
2025-04-14 14:01:46,797 - DEBUG - Requesting: http://10.0.0.249:8082/project/aa8a5ce9-cac3-4859-8258-190776c3909d
2025-04-14 14:01:46,871 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/328ced9a-9adb-46e2-add9-b493286a57a1
2025-04-14 14:01:46,883 - DEBUG - ==>Verifying data for policy with id: e42d6359-cbfb-44c9-9a09-d62d3c02afad, fqn: ['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-policy-allow-all-41701065']
2025-04-14 14:01:46,883 - INFO - VN ctest-vn-40491523 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 14:01:46,883 - DEBUG - Verifying the vn in opserver
2025-04-14 14:01:46,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-40491523 virtual network link through opserver 10.0.0.249
2025-04-14 14:01:46,883 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-14 14:01:47,215 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-14 14:01:47,276 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-40491523', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-40491523?flat'}
2025-04-14 14:01:47,276 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-40491523 is found in opserver
2025-04-14 14:01:47,289 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 14:01:47,295 - DEBUG - VRF ids for VN ctest-vn-40491523: {}
2025-04-14 14:01:47,295 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-14 14:01:47,302 - DEBUG - Requesting: http://10.0.0.249:8082/domain/613b1dd0-fa69-47af-aeff-ffdb1e2be2af
2025-04-14 14:01:47,315 - DEBUG - Requesting: http://10.0.0.249:8082/project/aa8a5ce9-cac3-4859-8258-190776c3909d
2025-04-14 14:01:47,398 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0284c231-0472-4879-8432-a0a40a939159
2025-04-14 14:01:47,413 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0284c231-0472-4879-8432-a0a40a939159
2025-04-14 14:01:47,425 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a613cd9d-400e-4d65-b999-146c8b6ac5fc
2025-04-14 14:01:47,436 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a613cd9d-400e-4d65-b999-146c8b6ac5fc
2025-04-14 14:01:47,447 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/95093a8b-2d05-4888-b66d-b9a077e13c6d
2025-04-14 14:01:47,457 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 14:01:47,457 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0284c231-0472-4879-8432-a0a40a939159
2025-04-14 14:01:47,469 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a613cd9d-400e-4d65-b999-146c8b6ac5fc
2025-04-14 14:01:47,485 - INFO - Verified VN network id 10 for VN 0284c231-0472-4879-8432-a0a40a939159
2025-04-14 14:01:47,485 - INFO - Verifications in API Server for VN ctest-vn-77336467 passed
2025-04-14 14:01:47,485 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0284c231-0472-4879-8432-a0a40a939159
2025-04-14 14:01:47,498 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a613cd9d-400e-4d65-b999-146c8b6ac5fc
2025-04-14 14:01:47,508 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a613cd9d-400e-4d65-b999-146c8b6ac5fc
2025-04-14 14:01:47,519 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/95093a8b-2d05-4888-b66d-b9a077e13c6d
2025-04-14 14:01:47,536 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-77336467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03304031', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '181483400785447033', 'uuid-lslong': '9525852788254544217'}, 'enable': 'true', 'created': '2025-04-14T14:01:45', 'last-modified': '2025-04-14T14:01:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.538971'}
2025-04-14 14:01:47,545 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 14:01:47,545 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77336467 passed
2025-04-14 14:01:47,545 - DEBUG - ====Verifying policy data for ctest-vn-77336467 in API_Server ======
2025-04-14 14:01:47,545 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-04-14 14:01:47,553 - DEBUG - Requesting: http://10.0.0.249:8082/domain/613b1dd0-fa69-47af-aeff-ffdb1e2be2af
2025-04-14 14:01:47,566 - DEBUG - Requesting: http://10.0.0.249:8082/project/aa8a5ce9-cac3-4859-8258-190776c3909d
2025-04-14 14:01:47,644 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0284c231-0472-4879-8432-a0a40a939159
2025-04-14 14:01:47,657 - DEBUG - ==>Verifying data for policy with id: e42d6359-cbfb-44c9-9a09-d62d3c02afad, fqn: ['default-domain', 'ctest-TestBasicPolicy-03304031', 'ctest-policy-allow-all-41701065']
2025-04-14 14:01:47,657 - INFO - VN ctest-vn-77336467 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 14:01:47,657 - DEBUG - Verifying the vn in opserver
2025-04-14 14:01:47,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-77336467 virtual network link through opserver 10.0.0.249
2025-04-14 14:01:47,657 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-04-14 14:01:47,670 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-77336467', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-77336467?flat'}
2025-04-14 14:01:47,670 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03304031:ctest-vn-77336467 is found in opserver
2025-04-14 14:01:47,683 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 14:01:47,688 - DEBUG - VRF ids for VN ctest-vn-77336467: {}
2025-04-14 14:01:47,754 - DEBUG - Services list from nova: [