2025-06-04 12:02:38,465 - INFO - Domain Default found not creating
2025-06-04 12:02:38,721 - INFO - Project ctest-TestBasicPolicy-44758937 not found, creating it
2025-06-04 12:02:39,313 - INFO - Created Project:ctest-TestBasicPolicy-44758937, ID : 6af53196-34a3-4430-900f-002b76fe8ea0
2025-06-04 12:02:41,021 - INFO - ================================================================================
2025-06-04 12:02:41,022 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-04 12:02:41,022 - 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-06-04 12:02:41,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-04 12:02:41,283 - INFO - Initial checks done. Running the testcase now
2025-06-04 12:02:41,283 - INFO -
2025-06-04 12:02:41,897 - DEBUG - Response for create_network : {'network': {'id': '65ac46d8-bf37-405c-9338-7d4610466377', 'name': 'ctest-vn-12309794', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-12309794'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 12:02:42,122 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae264eec-d013-44d9-9050-50f6c878aebb', 'name': '', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'network_id': '65ac46d8-bf37-405c-9338-7d4610466377', 'ip_version': 4, 'cidr': '110.188.103.128/26', 'allocation_pools': [{'start': '110.188.103.130', 'end': '110.188.103.190'}], 'gateway_ip': '110.188.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.188.103.130', 'tags': [], 'project_id': '6af5319634a34430900f002b76fe8ea0'}}
2025-06-04 12:02:42,143 - INFO - Created VN ctest-vn-12309794
2025-06-04 12:02:42,197 - DEBUG - VN ctest-vn-12309794 UUID is 65ac46d8-bf37-405c-9338-7d4610466377
2025-06-04 12:02:42,515 - DEBUG - Response for create_network : {'network': {'id': '927005c6-bc2f-4448-8013-79cd4b6a120f', 'name': 'ctest-vn-48301989', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-48301989'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 12:02:42,762 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc126946-6449-4d40-8495-1ad0c7f60ef2', 'name': '', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'network_id': '927005c6-bc2f-4448-8013-79cd4b6a120f', 'ip_version': 4, 'cidr': '201.89.225.128/26', 'allocation_pools': [{'start': '201.89.225.130', 'end': '201.89.225.190'}], 'gateway_ip': '201.89.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.89.225.130', 'tags': [], 'project_id': '6af5319634a34430900f002b76fe8ea0'}}
2025-06-04 12:02:42,784 - INFO - Created VN ctest-vn-48301989
2025-06-04 12:02:42,837 - DEBUG - VN ctest-vn-48301989 UUID is 927005c6-bc2f-4448-8013-79cd4b6a120f
2025-06-04 12:02:42,964 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794, 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-44758937:ctest-vn-48301989, 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-06-04 12:02:43,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65ac46d8-bf37-405c-9338-7d4610466377', 'name': 'ctest-vn-12309794', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae264eec-d013-44d9-9050-50f6c878aebb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-12309794'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798']], 'subnet_ipam': [{'subnet_cidr': '110.188.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-04 12:02:43,533 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '927005c6-bc2f-4448-8013-79cd4b6a120f', 'name': 'ctest-vn-48301989', 'tenant_id': '6af5319634a34430900f002b76fe8ea0', 'project_id': '6af5319634a34430900f002b76fe8ea0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc126946-6449-4d40-8495-1ad0c7f60ef2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-vn-48301989'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798']], 'subnet_ipam': [{'subnet_cidr': '201.89.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-04 12:02:43,681 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-04 12:02:44,138 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-04 12:02:44,182 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e
2025-06-04 12:02:44,197 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0
2025-06-04 12:02:44,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377
2025-06-04 12:02:44,288 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377
2025-06-04 12:02:44,300 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f
2025-06-04 12:02:44,310 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f
2025-06-04 12:02:44,321 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cca596b1-af58-4775-a985-45b20429ff19
2025-06-04 12:02:44,329 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-04 12:02:44,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377
2025-06-04 12:02:44,347 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f
2025-06-04 12:02:44,363 - INFO - Verified VN network id 8 for VN 65ac46d8-bf37-405c-9338-7d4610466377
2025-06-04 12:02:44,364 - INFO - Verifications in API Server for VN ctest-vn-12309794 passed
2025-06-04 12:02:44,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377
2025-06-04 12:02:44,378 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f
2025-06-04 12:02:44,386 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a499d7f0-3cc5-4848-b709-25e2dcf6397f
2025-06-04 12:02:44,395 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cca596b1-af58-4775-a985-45b20429ff19
2025-06-04 12:02:44,409 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44758937', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7326308590559903836', 'uuid-lslong': '10608366662145434487'}, 'enable': 'true', 'created': '2025-06-04T12:02:41', 'last-modified': '2025-06-04T12:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.159904'}
2025-06-04 12:02:44,416 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-04 12:02:44,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12309794 passed
2025-06-04 12:02:44,416 - DEBUG - ====Verifying policy data for ctest-vn-12309794 in API_Server ======
2025-06-04 12:02:44,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-04 12:02:44,424 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e
2025-06-04 12:02:44,438 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0
2025-06-04 12:02:44,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65ac46d8-bf37-405c-9338-7d4610466377
2025-06-04 12:02:44,535 - DEBUG - ==>Verifying data for policy with id: acbaa851-6b07-4689-bf24-8fac60fff492, fqn: ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798']
2025-06-04 12:02:44,535 - INFO - VN ctest-vn-12309794 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-04 12:02:44,535 - DEBUG - Verifying the vn in opserver
2025-06-04 12:02:44,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794 virtual network link through opserver 10.0.0.254
2025-06-04 12:02:44,535 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-04 12:02:44,877 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-04 12:02:44,964 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794?flat'}
2025-06-04 12:02:44,964 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-12309794 is found in opserver
2025-06-04 12:02:44,982 - DEBUG - Do not have enough data to verify VN in agent
2025-06-04 12:02:44,989 - DEBUG - VRF ids for VN ctest-vn-12309794: {}
2025-06-04 12:02:44,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-04 12:02:44,995 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e
2025-06-04 12:02:45,009 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0
2025-06-04 12:02:45,082 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f
2025-06-04 12:02:45,096 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f
2025-06-04 12:02:45,107 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55
2025-06-04 12:02:45,115 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55
2025-06-04 12:02:45,124 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8e21aba5-5d74-48e2-8dd9-23c24a657d44
2025-06-04 12:02:45,132 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-04 12:02:45,133 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f
2025-06-04 12:02:45,147 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55
2025-06-04 12:02:45,167 - INFO - Verified VN network id 9 for VN 927005c6-bc2f-4448-8013-79cd4b6a120f
2025-06-04 12:02:45,167 - INFO - Verifications in API Server for VN ctest-vn-48301989 passed
2025-06-04 12:02:45,167 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f
2025-06-04 12:02:45,178 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55
2025-06-04 12:02:45,186 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ce0b6cdf-ae16-4aaf-89a0-b9c0eb83bd55
2025-06-04 12:02:45,195 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8e21aba5-5d74-48e2-8dd9-23c24a657d44
2025-06-04 12:02:45,211 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44758937', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10551940278047949896', 'uuid-lslong': '9228853984052777487'}, 'enable': 'true', 'created': '2025-06-04T12:02:42', 'last-modified': '2025-06-04T12:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.702388'}
2025-06-04 12:02:45,219 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-04 12:02:45,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48301989 passed
2025-06-04 12:02:45,219 - DEBUG - ====Verifying policy data for ctest-vn-48301989 in API_Server ======
2025-06-04 12:02:45,219 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-04 12:02:45,227 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7d455174-bdf2-436c-aaee-b32000072a6e
2025-06-04 12:02:45,240 - DEBUG - Requesting: http://10.0.0.254:8082/project/6af53196-34a3-4430-900f-002b76fe8ea0
2025-06-04 12:02:45,315 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/927005c6-bc2f-4448-8013-79cd4b6a120f
2025-06-04 12:02:45,326 - DEBUG - ==>Verifying data for policy with id: acbaa851-6b07-4689-bf24-8fac60fff492, fqn: ['default-domain', 'ctest-TestBasicPolicy-44758937', 'ctest-policy-allow-all-97016798']
2025-06-04 12:02:45,326 - INFO - VN ctest-vn-48301989 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-04 12:02:45,327 - DEBUG - Verifying the vn in opserver
2025-06-04 12:02:45,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989 virtual network link through opserver 10.0.0.254
2025-06-04 12:02:45,327 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-04 12:02:45,339 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989?flat'}
2025-06-04 12:02:45,339 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44758937:ctest-vn-48301989 is found in opserver
2025-06-04 12:02:45,351 - DEBUG - Do not have enough data to verify VN in agent
2025-06-04 12:02:45,356 - DEBUG - VRF ids for VN ctest-vn-48301989: {}
2025-06-04 12:02:45,419 - DEBUG - Services list from nova: [