2025-05-13 09:54:34,103 - INFO - Domain Default found not creating
2025-05-13 09:54:34,230 - INFO - Project ctest-TestBasicPolicy-74517447 not found, creating it
2025-05-13 09:54:34,680 - INFO - Created Project:ctest-TestBasicPolicy-74517447, ID : 71968131-8778-4531-a7f8-c72e09dfe513
2025-05-13 09:54:36,109 - INFO - ================================================================================
2025-05-13 09:54:36,109 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-13 09:54:36,109 - 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-05-13 09:54:36,363 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-05-13 09:54:36,363 - INFO - Initial checks done. Running the testcase now
2025-05-13 09:54:36,363 - INFO -
2025-05-13 09:54:36,897 - DEBUG - Response for create_network : {'network': {'id': '5cba7f18-acc2-4681-934f-ffc4793afb76', 'name': 'ctest-vn-21159636', 'tenant_id': '7196813187784531a7f8c72e09dfe513', 'project_id': '7196813187784531a7f8c72e09dfe513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-vn-21159636'], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:54:37,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ae16a86-af13-4116-a6a9-f845d88c5393', 'name': '', 'tenant_id': '7196813187784531a7f8c72e09dfe513', 'network_id': '5cba7f18-acc2-4681-934f-ffc4793afb76', 'ip_version': 4, 'cidr': '129.189.122.64/26', 'allocation_pools': [{'start': '129.189.122.66', 'end': '129.189.122.126'}], 'gateway_ip': '129.189.122.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.189.122.66', 'tags': [], 'project_id': '7196813187784531a7f8c72e09dfe513'}}
2025-05-13 09:54:37,125 - INFO - Created VN ctest-vn-21159636
2025-05-13 09:54:37,177 - DEBUG - VN ctest-vn-21159636 UUID is 5cba7f18-acc2-4681-934f-ffc4793afb76
2025-05-13 09:54:37,507 - DEBUG - Response for create_network : {'network': {'id': '5c38ada9-009e-4de4-8fb1-371b686d2458', 'name': 'ctest-vn-50426529', 'tenant_id': '7196813187784531a7f8c72e09dfe513', 'project_id': '7196813187784531a7f8c72e09dfe513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-vn-50426529'], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:54:37,705 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fa45b52-f4b8-42d3-aee4-e1e496492e82', 'name': '', 'tenant_id': '7196813187784531a7f8c72e09dfe513', 'network_id': '5c38ada9-009e-4de4-8fb1-371b686d2458', 'ip_version': 4, 'cidr': '46.193.62.0/26', 'allocation_pools': [{'start': '46.193.62.2', 'end': '46.193.62.62'}], 'gateway_ip': '46.193.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.193.62.2', 'tags': [], 'project_id': '7196813187784531a7f8c72e09dfe513'}}
2025-05-13 09:54:37,724 - INFO - Created VN ctest-vn-50426529
2025-05-13 09:54:37,777 - DEBUG - VN ctest-vn-50426529 UUID is 5c38ada9-009e-4de4-8fb1-371b686d2458
2025-05-13 09:54:37,889 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-21159636, 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-74517447:ctest-vn-50426529, 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-05-13 09:54:38,188 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5cba7f18-acc2-4681-934f-ffc4793afb76', 'name': 'ctest-vn-21159636', 'tenant_id': '7196813187784531a7f8c72e09dfe513', 'project_id': '7196813187784531a7f8c72e09dfe513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ae16a86-af13-4116-a6a9-f845d88c5393'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-vn-21159636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-policy-allow-all-08205370']], 'subnet_ipam': [{'subnet_cidr': '129.189.122.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:54:38,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c38ada9-009e-4de4-8fb1-371b686d2458', 'name': 'ctest-vn-50426529', 'tenant_id': '7196813187784531a7f8c72e09dfe513', 'project_id': '7196813187784531a7f8c72e09dfe513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fa45b52-f4b8-42d3-aee4-e1e496492e82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-vn-50426529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-policy-allow-all-08205370']], 'subnet_ipam': [{'subnet_cidr': '46.193.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:54:38,601 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-05-13 09:54:38,900 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-05-13 09:54:38,929 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b1e101a2-d00d-411f-870c-d36eb27e81ad
2025-05-13 09:54:38,945 - DEBUG - Requesting: http://10.0.0.249:8082/project/71968131-8778-4531-a7f8-c72e09dfe513
2025-05-13 09:54:39,016 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5cba7f18-acc2-4681-934f-ffc4793afb76
2025-05-13 09:54:39,030 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5cba7f18-acc2-4681-934f-ffc4793afb76
2025-05-13 09:54:39,047 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00274c7a-f6fb-4f18-8ec7-91de85655f20
2025-05-13 09:54:39,055 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00274c7a-f6fb-4f18-8ec7-91de85655f20
2025-05-13 09:54:39,063 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/55eddf11-fb5c-47e8-bce8-8c67ee84efd4
2025-05-13 09:54:39,069 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-13 09:54:39,070 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5cba7f18-acc2-4681-934f-ffc4793afb76
2025-05-13 09:54:39,079 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00274c7a-f6fb-4f18-8ec7-91de85655f20
2025-05-13 09:54:39,092 - INFO - Verified VN network id 8 for VN 5cba7f18-acc2-4681-934f-ffc4793afb76
2025-05-13 09:54:39,093 - INFO - Verifications in API Server for VN ctest-vn-21159636 passed
2025-05-13 09:54:39,093 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5cba7f18-acc2-4681-934f-ffc4793afb76
2025-05-13 09:54:39,101 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00274c7a-f6fb-4f18-8ec7-91de85655f20
2025-05-13 09:54:39,108 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/00274c7a-f6fb-4f18-8ec7-91de85655f20
2025-05-13 09:54:39,115 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/55eddf11-fb5c-47e8-bce8-8c67ee84efd4
2025-05-13 09:54:39,127 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-21159636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74517447', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6681792741111907969', 'uuid-lslong': '10614984066048129910'}, 'enable': 'true', 'created': '2025-05-13T09:54:36', 'last-modified': '2025-05-13T09:54:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968785'}
2025-05-13 09:54:39,133 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-13 09:54:39,134 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21159636 passed
2025-05-13 09:54:39,134 - DEBUG - ====Verifying policy data for ctest-vn-21159636 in API_Server ======
2025-05-13 09:54:39,134 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-05-13 09:54:39,139 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b1e101a2-d00d-411f-870c-d36eb27e81ad
2025-05-13 09:54:39,150 - DEBUG - Requesting: http://10.0.0.249:8082/project/71968131-8778-4531-a7f8-c72e09dfe513
2025-05-13 09:54:39,223 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5cba7f18-acc2-4681-934f-ffc4793afb76
2025-05-13 09:54:39,233 - DEBUG - ==>Verifying data for policy with id: 544ba55d-2982-4081-990b-ba8fc7ad057e, fqn: ['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-policy-allow-all-08205370']
2025-05-13 09:54:39,233 - INFO - VN ctest-vn-21159636 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-13 09:54:39,233 - DEBUG - Verifying the vn in opserver
2025-05-13 09:54:39,233 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-21159636 virtual network link through opserver 10.0.0.249
2025-05-13 09:54:39,233 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-05-13 09:54:39,522 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-05-13 09:54:39,574 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-21159636', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-21159636?flat'}
2025-05-13 09:54:39,574 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-21159636 is found in opserver
2025-05-13 09:54:39,584 - DEBUG - Do not have enough data to verify VN in agent
2025-05-13 09:54:39,590 - DEBUG - VRF ids for VN ctest-vn-21159636: {}
2025-05-13 09:54:39,590 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-05-13 09:54:39,596 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b1e101a2-d00d-411f-870c-d36eb27e81ad
2025-05-13 09:54:39,608 - DEBUG - Requesting: http://10.0.0.249:8082/project/71968131-8778-4531-a7f8-c72e09dfe513
2025-05-13 09:54:39,682 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5c38ada9-009e-4de4-8fb1-371b686d2458
2025-05-13 09:54:39,694 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5c38ada9-009e-4de4-8fb1-371b686d2458
2025-05-13 09:54:39,705 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/450504d4-fe74-4a6f-bd81-5bd213460d3c
2025-05-13 09:54:39,714 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/450504d4-fe74-4a6f-bd81-5bd213460d3c
2025-05-13 09:54:39,722 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/78f568a4-12f1-46b2-a439-718cfd091fdd
2025-05-13 09:54:39,730 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-13 09:54:39,730 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5c38ada9-009e-4de4-8fb1-371b686d2458
2025-05-13 09:54:39,742 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/450504d4-fe74-4a6f-bd81-5bd213460d3c
2025-05-13 09:54:39,756 - INFO - Verified VN network id 9 for VN 5c38ada9-009e-4de4-8fb1-371b686d2458
2025-05-13 09:54:39,756 - INFO - Verifications in API Server for VN ctest-vn-50426529 passed
2025-05-13 09:54:39,757 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5c38ada9-009e-4de4-8fb1-371b686d2458
2025-05-13 09:54:39,766 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/450504d4-fe74-4a6f-bd81-5bd213460d3c
2025-05-13 09:54:39,773 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/450504d4-fe74-4a6f-bd81-5bd213460d3c
2025-05-13 09:54:39,780 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/78f568a4-12f1-46b2-a439-718cfd091fdd
2025-05-13 09:54:39,792 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-50426529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74517447', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6645252191556619748', 'uuid-lslong': '10354117609157108824'}, 'enable': 'true', 'created': '2025-05-13T09:54:37', 'last-modified': '2025-05-13T09:54:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.404804'}
2025-05-13 09:54:39,798 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-13 09:54:39,798 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50426529 passed
2025-05-13 09:54:39,798 - DEBUG - ====Verifying policy data for ctest-vn-50426529 in API_Server ======
2025-05-13 09:54:39,798 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-05-13 09:54:39,804 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b1e101a2-d00d-411f-870c-d36eb27e81ad
2025-05-13 09:54:39,815 - DEBUG - Requesting: http://10.0.0.249:8082/project/71968131-8778-4531-a7f8-c72e09dfe513
2025-05-13 09:54:39,882 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5c38ada9-009e-4de4-8fb1-371b686d2458
2025-05-13 09:54:39,892 - DEBUG - ==>Verifying data for policy with id: 544ba55d-2982-4081-990b-ba8fc7ad057e, fqn: ['default-domain', 'ctest-TestBasicPolicy-74517447', 'ctest-policy-allow-all-08205370']
2025-05-13 09:54:39,892 - INFO - VN ctest-vn-50426529 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-13 09:54:39,892 - DEBUG - Verifying the vn in opserver
2025-05-13 09:54:39,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-50426529 virtual network link through opserver 10.0.0.249
2025-05-13 09:54:39,892 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-05-13 09:54:39,901 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-50426529', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-50426529?flat'}
2025-05-13 09:54:39,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74517447:ctest-vn-50426529 is found in opserver
2025-05-13 09:54:39,911 - DEBUG - Do not have enough data to verify VN in agent
2025-05-13 09:54:39,916 - DEBUG - VRF ids for VN ctest-vn-50426529: {}
2025-05-13 09:54:39,967 - DEBUG - Services list from nova: [