2025-04-17 11:48:51,702 - INFO - Domain Default found not creating
2025-04-17 11:48:51,988 - INFO - Project ctest-TestBasicPolicy-25434007 not found, creating it
2025-04-17 11:48:52,597 - INFO - Created Project:ctest-TestBasicPolicy-25434007, ID : 753a785f-630e-4c27-bcab-fe7adb40931a
2025-04-17 11:48:54,456 - INFO - ================================================================================
2025-04-17 11:48:54,456 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-17 11:48:54,457 - 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-17 11:48:54,752 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-17 11:48:54,753 - INFO - Initial checks done. Running the testcase now
2025-04-17 11:48:54,753 - INFO -
2025-04-17 11:48:55,588 - DEBUG - Response for create_network : {'network': {'id': '61ca12d9-19aa-403f-98d3-c6011c030e48', 'name': 'ctest-vn-07732872', 'tenant_id': '753a785f630e4c27bcabfe7adb40931a', 'project_id': '753a785f630e4c27bcabfe7adb40931a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-vn-07732872'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 11:48:55,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '74df4141-5ca8-4b25-b63d-edf89b293a57', 'name': '', 'tenant_id': '753a785f630e4c27bcabfe7adb40931a', 'network_id': '61ca12d9-19aa-403f-98d3-c6011c030e48', 'ip_version': 4, 'cidr': '61.174.207.128/26', 'allocation_pools': [{'start': '61.174.207.130', 'end': '61.174.207.190'}], 'gateway_ip': '61.174.207.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.174.207.130', 'tags': [], 'project_id': '753a785f630e4c27bcabfe7adb40931a'}}
2025-04-17 11:48:55,853 - INFO - Created VN ctest-vn-07732872
2025-04-17 11:48:55,913 - DEBUG - VN ctest-vn-07732872 UUID is 61ca12d9-19aa-403f-98d3-c6011c030e48
2025-04-17 11:48:56,335 - DEBUG - Response for create_network : {'network': {'id': '01b4fdf2-2f1d-4c17-a39c-69cef28efbb0', 'name': 'ctest-vn-68279823', 'tenant_id': '753a785f630e4c27bcabfe7adb40931a', 'project_id': '753a785f630e4c27bcabfe7adb40931a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-vn-68279823'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 11:48:56,524 - DEBUG - Response for create_subnet : {'subnet': {'id': '68f04668-4a1a-4207-ab7d-0b0b8ee80231', 'name': '', 'tenant_id': '753a785f630e4c27bcabfe7adb40931a', 'network_id': '01b4fdf2-2f1d-4c17-a39c-69cef28efbb0', 'ip_version': 4, 'cidr': '211.74.233.64/26', 'allocation_pools': [{'start': '211.74.233.66', 'end': '211.74.233.126'}], 'gateway_ip': '211.74.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.74.233.66', 'tags': [], 'project_id': '753a785f630e4c27bcabfe7adb40931a'}}
2025-04-17 11:48:56,544 - INFO - Created VN ctest-vn-68279823
2025-04-17 11:48:56,596 - DEBUG - VN ctest-vn-68279823 UUID is 01b4fdf2-2f1d-4c17-a39c-69cef28efbb0
2025-04-17 11:48:56,753 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-07732872, 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-25434007:ctest-vn-68279823, 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-17 11:48:57,145 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61ca12d9-19aa-403f-98d3-c6011c030e48', 'name': 'ctest-vn-07732872', 'tenant_id': '753a785f630e4c27bcabfe7adb40931a', 'project_id': '753a785f630e4c27bcabfe7adb40931a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74df4141-5ca8-4b25-b63d-edf89b293a57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-vn-07732872'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-policy-allow-all-91239691']], 'subnet_ipam': [{'subnet_cidr': '61.174.207.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 11:48:57,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01b4fdf2-2f1d-4c17-a39c-69cef28efbb0', 'name': 'ctest-vn-68279823', 'tenant_id': '753a785f630e4c27bcabfe7adb40931a', 'project_id': '753a785f630e4c27bcabfe7adb40931a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68f04668-4a1a-4207-ab7d-0b0b8ee80231'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-vn-68279823'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-policy-allow-all-91239691']], 'subnet_ipam': [{'subnet_cidr': '211.74.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 11:48:57,697 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-17 11:48:58,021 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-17 11:48:58,076 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e3cff35b-ca08-401a-b5e9-8d24c9fd45a2
2025-04-17 11:48:58,096 - DEBUG - Requesting: http://10.0.0.254:8082/project/753a785f-630e-4c27-bcab-fe7adb40931a
2025-04-17 11:48:58,184 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/61ca12d9-19aa-403f-98d3-c6011c030e48
2025-04-17 11:48:58,201 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/61ca12d9-19aa-403f-98d3-c6011c030e48
2025-04-17 11:48:58,213 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb867956-ad34-4db6-b779-c9ce8132461f
2025-04-17 11:48:58,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb867956-ad34-4db6-b779-c9ce8132461f
2025-04-17 11:48:58,233 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/780d6b91-c253-4e24-846f-40483f04c746
2025-04-17 11:48:58,244 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 11:48:58,244 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/61ca12d9-19aa-403f-98d3-c6011c030e48
2025-04-17 11:48:58,257 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb867956-ad34-4db6-b779-c9ce8132461f
2025-04-17 11:48:58,275 - INFO - Verified VN network id 8 for VN 61ca12d9-19aa-403f-98d3-c6011c030e48
2025-04-17 11:48:58,275 - INFO - Verifications in API Server for VN ctest-vn-07732872 passed
2025-04-17 11:48:58,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/61ca12d9-19aa-403f-98d3-c6011c030e48
2025-04-17 11:48:58,293 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb867956-ad34-4db6-b779-c9ce8132461f
2025-04-17 11:48:58,306 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb867956-ad34-4db6-b779-c9ce8132461f
2025-04-17 11:48:58,315 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/780d6b91-c253-4e24-846f-40483f04c746
2025-04-17 11:48:58,332 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-07732872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25434007', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7046465290622353471', 'uuid-lslong': '11012363221918223944'}, 'enable': 'true', 'created': '2025-04-17T11:48:55', 'last-modified': '2025-04-17T11:48:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.220788'}
2025-04-17 11:48:58,342 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 11:48:58,342 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07732872 passed
2025-04-17 11:48:58,343 - DEBUG - ====Verifying policy data for ctest-vn-07732872 in API_Server ======
2025-04-17 11:48:58,343 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-17 11:48:58,351 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e3cff35b-ca08-401a-b5e9-8d24c9fd45a2
2025-04-17 11:48:58,370 - DEBUG - Requesting: http://10.0.0.254:8082/project/753a785f-630e-4c27-bcab-fe7adb40931a
2025-04-17 11:48:58,456 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/61ca12d9-19aa-403f-98d3-c6011c030e48
2025-04-17 11:48:58,473 - DEBUG - ==>Verifying data for policy with id: d26c8b8f-4d38-45b6-a36e-0f7d07fd23b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-policy-allow-all-91239691']
2025-04-17 11:48:58,474 - INFO - VN ctest-vn-07732872 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 11:48:58,474 - DEBUG - Verifying the vn in opserver
2025-04-17 11:48:58,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-07732872 virtual network link through opserver 10.0.0.254
2025-04-17 11:48:58,474 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-17 11:48:58,865 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-17 11:48:58,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-07732872', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-07732872?flat'}
2025-04-17 11:48:58,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-07732872 is found in opserver
2025-04-17 11:48:58,976 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 11:48:58,986 - DEBUG - VRF ids for VN ctest-vn-07732872: {}
2025-04-17 11:48:58,986 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-17 11:48:59,002 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e3cff35b-ca08-401a-b5e9-8d24c9fd45a2
2025-04-17 11:48:59,075 - DEBUG - Requesting: http://10.0.0.254:8082/project/753a785f-630e-4c27-bcab-fe7adb40931a
2025-04-17 11:48:59,186 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/01b4fdf2-2f1d-4c17-a39c-69cef28efbb0
2025-04-17 11:48:59,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/01b4fdf2-2f1d-4c17-a39c-69cef28efbb0
2025-04-17 11:48:59,230 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/54c472e2-ad6b-4719-9d7a-edaad3bedee4
2025-04-17 11:48:59,241 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/54c472e2-ad6b-4719-9d7a-edaad3bedee4
2025-04-17 11:48:59,258 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/640e5433-76e0-467f-aacd-54c74fe95c27
2025-04-17 11:48:59,269 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 11:48:59,269 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/01b4fdf2-2f1d-4c17-a39c-69cef28efbb0
2025-04-17 11:48:59,286 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/54c472e2-ad6b-4719-9d7a-edaad3bedee4
2025-04-17 11:48:59,308 - INFO - Verified VN network id 9 for VN 01b4fdf2-2f1d-4c17-a39c-69cef28efbb0
2025-04-17 11:48:59,309 - INFO - Verifications in API Server for VN ctest-vn-68279823 passed
2025-04-17 11:48:59,309 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/01b4fdf2-2f1d-4c17-a39c-69cef28efbb0
2025-04-17 11:48:59,322 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/54c472e2-ad6b-4719-9d7a-edaad3bedee4
2025-04-17 11:48:59,335 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/54c472e2-ad6b-4719-9d7a-edaad3bedee4
2025-04-17 11:48:59,346 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/640e5433-76e0-467f-aacd-54c74fe95c27
2025-04-17 11:48:59,364 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-68279823', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25434007', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '123002306460208151', 'uuid-lslong': '11789414262102752176'}, 'enable': 'true', 'created': '2025-04-17T11:48:56', 'last-modified': '2025-04-17T11:48:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.924141'}
2025-04-17 11:48:59,373 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 11:48:59,374 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68279823 passed
2025-04-17 11:48:59,374 - DEBUG - ====Verifying policy data for ctest-vn-68279823 in API_Server ======
2025-04-17 11:48:59,374 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-17 11:48:59,381 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e3cff35b-ca08-401a-b5e9-8d24c9fd45a2
2025-04-17 11:48:59,401 - DEBUG - Requesting: http://10.0.0.254:8082/project/753a785f-630e-4c27-bcab-fe7adb40931a
2025-04-17 11:48:59,498 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/01b4fdf2-2f1d-4c17-a39c-69cef28efbb0
2025-04-17 11:48:59,519 - DEBUG - ==>Verifying data for policy with id: d26c8b8f-4d38-45b6-a36e-0f7d07fd23b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-25434007', 'ctest-policy-allow-all-91239691']
2025-04-17 11:48:59,519 - INFO - VN ctest-vn-68279823 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 11:48:59,520 - DEBUG - Verifying the vn in opserver
2025-04-17 11:48:59,520 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-68279823 virtual network link through opserver 10.0.0.254
2025-04-17 11:48:59,520 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-17 11:48:59,539 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-68279823', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-68279823?flat'}
2025-04-17 11:48:59,539 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25434007:ctest-vn-68279823 is found in opserver
2025-04-17 11:48:59,555 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 11:48:59,563 - DEBUG - VRF ids for VN ctest-vn-68279823: {}
2025-04-17 11:48:59,653 - DEBUG - Services list from nova: [