2025-07-22 11:48:20,408 - INFO - Domain Default found not creating
2025-07-22 11:48:20,546 - INFO - Project ctest-TestBasicPolicy-82129689 not found, creating it
2025-07-22 11:48:21,007 - INFO - Created Project:ctest-TestBasicPolicy-82129689, ID : 4eb4415b-c493-4d04-b6f5-74d520d1179e
2025-07-22 11:48:22,429 - INFO - ================================================================================
2025-07-22 11:48:22,430 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 11:48:22,430 - 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-07-22 11:48:22,680 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0'}} with
2025-07-22 11:48:22,680 - INFO - Initial checks done. Running the testcase now
2025-07-22 11:48:22,680 - INFO -
2025-07-22 11:48:23,218 - DEBUG - Response for create_network : {'network': {'id': '65416471-c718-4019-b8d4-c10d5ac3fbe7', 'name': 'ctest-vn-25489678', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-25489678'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:48:23,414 - DEBUG - Response for create_subnet : {'subnet': {'id': '8894741f-3e3f-4fda-8b55-435eff592dbc', 'name': '', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'network_id': '65416471-c718-4019-b8d4-c10d5ac3fbe7', 'ip_version': 4, 'cidr': '158.187.254.192/26', 'allocation_pools': [{'start': '158.187.254.194', 'end': '158.187.254.254'}], 'gateway_ip': '158.187.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.187.254.194', 'tags': [], 'project_id': '4eb4415bc4934d04b6f574d520d1179e'}}
2025-07-22 11:48:23,431 - INFO - Created VN ctest-vn-25489678
2025-07-22 11:48:23,486 - DEBUG - VN ctest-vn-25489678 UUID is 65416471-c718-4019-b8d4-c10d5ac3fbe7
2025-07-22 11:48:23,810 - DEBUG - Response for create_network : {'network': {'id': 'd207df2b-f0ab-4323-8ce8-c01e89013802', 'name': 'ctest-vn-11704102', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-11704102'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:48:24,031 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cab164b3-a414-4d87-aa37-280cf09ffeba', 'name': '', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'network_id': 'd207df2b-f0ab-4323-8ce8-c01e89013802', 'ip_version': 4, 'cidr': '199.35.254.192/26', 'allocation_pools': [{'start': '199.35.254.194', 'end': '199.35.254.254'}], 'gateway_ip': '199.35.254.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.35.254.194', 'tags': [], 'project_id': '4eb4415bc4934d04b6f574d520d1179e'}}
2025-07-22 11:48:24,169 - INFO - Created VN ctest-vn-11704102
2025-07-22 11:48:24,222 - DEBUG - VN ctest-vn-11704102 UUID is d207df2b-f0ab-4323-8ce8-c01e89013802
2025-07-22 11:48:24,370 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678, 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-82129689:ctest-vn-11704102, 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-07-22 11:48:24,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65416471-c718-4019-b8d4-c10d5ac3fbe7', 'name': 'ctest-vn-25489678', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8894741f-3e3f-4fda-8b55-435eff592dbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-25489678'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469']], 'subnet_ipam': [{'subnet_cidr': '158.187.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:48:24,951 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd207df2b-f0ab-4323-8ce8-c01e89013802', 'name': 'ctest-vn-11704102', 'tenant_id': '4eb4415bc4934d04b6f574d520d1179e', 'project_id': '4eb4415bc4934d04b6f574d520d1179e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cab164b3-a414-4d87-aa37-280cf09ffeba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-vn-11704102'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469']], 'subnet_ipam': [{'subnet_cidr': '199.35.254.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 11:48:25,106 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-22 11:48:25,407 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-22 11:48:25,436 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22
2025-07-22 11:48:25,449 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e
2025-07-22 11:48:25,521 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7
2025-07-22 11:48:25,533 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7
2025-07-22 11:48:25,543 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b
2025-07-22 11:48:25,551 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b
2025-07-22 11:48:25,558 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1d0376af-a8c2-4bde-ad25-24eef653fe8e
2025-07-22 11:48:25,565 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 11:48:25,565 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7
2025-07-22 11:48:25,574 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b
2025-07-22 11:48:25,589 - INFO - Verified VN network id 8 for VN 65416471-c718-4019-b8d4-c10d5ac3fbe7
2025-07-22 11:48:25,589 - INFO - Verifications in API Server for VN ctest-vn-25489678 passed
2025-07-22 11:48:25,590 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7
2025-07-22 11:48:25,600 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b
2025-07-22 11:48:25,607 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/31f9a0ed-8cbf-4ec9-903f-3377b881052b
2025-07-22 11:48:25,615 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/1d0376af-a8c2-4bde-ad25-24eef653fe8e
2025-07-22 11:48:25,628 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82129689', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7296223311151251481', 'uuid-lslong': '13318482261142928359'}, 'enable': 'true', 'created': '2025-07-22T11:48:23', 'last-modified': '2025-07-22T11:48:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984768'}
2025-07-22 11:48:25,635 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 11:48:25,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25489678 passed
2025-07-22 11:48:25,635 - DEBUG - ====Verifying policy data for ctest-vn-25489678 in API_Server ======
2025-07-22 11:48:25,635 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-22 11:48:25,641 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22
2025-07-22 11:48:25,654 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e
2025-07-22 11:48:25,728 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/65416471-c718-4019-b8d4-c10d5ac3fbe7
2025-07-22 11:48:25,737 - DEBUG - ==>Verifying data for policy with id: dbc29525-31ed-42e3-a960-bb7ac2e80303, fqn: ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469']
2025-07-22 11:48:25,737 - INFO - VN ctest-vn-25489678 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 11:48:25,737 - DEBUG - Verifying the vn in opserver
2025-07-22 11:48:25,738 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678 virtual network link through opserver 10.0.0.19
2025-07-22 11:48:25,738 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-22 11:48:26,027 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-22 11:48:26,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678?flat'}
2025-07-22 11:48:26,082 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-25489678 is found in opserver
2025-07-22 11:48:26,092 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 11:48:26,098 - DEBUG - VRF ids for VN ctest-vn-25489678: {}
2025-07-22 11:48:26,098 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-22 11:48:26,104 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22
2025-07-22 11:48:26,116 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e
2025-07-22 11:48:26,188 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802
2025-07-22 11:48:26,200 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802
2025-07-22 11:48:26,211 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936
2025-07-22 11:48:26,218 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936
2025-07-22 11:48:26,225 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5baa6319-311c-4799-936f-84e85cc0a44d
2025-07-22 11:48:26,231 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 11:48:26,231 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802
2025-07-22 11:48:26,240 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936
2025-07-22 11:48:26,257 - INFO - Verified VN network id 9 for VN d207df2b-f0ab-4323-8ce8-c01e89013802
2025-07-22 11:48:26,257 - INFO - Verifications in API Server for VN ctest-vn-11704102 passed
2025-07-22 11:48:26,258 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802
2025-07-22 11:48:26,268 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936
2025-07-22 11:48:26,276 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5c448e00-47ea-4b63-9286-ac3ce1c9a936
2025-07-22 11:48:26,284 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5baa6319-311c-4799-936f-84e85cc0a44d
2025-07-22 11:48:26,297 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82129689', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15134310452616184611', 'uuid-lslong': '10153576597286893570'}, 'enable': 'true', 'created': '2025-07-22T11:48:23', 'last-modified': '2025-07-22T11:48:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.417373'}
2025-07-22 11:48:26,304 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 11:48:26,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11704102 passed
2025-07-22 11:48:26,304 - DEBUG - ====Verifying policy data for ctest-vn-11704102 in API_Server ======
2025-07-22 11:48:26,304 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-22 11:48:26,311 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fa15a9fa-9ad2-412b-bd19-28e44cc8bb22
2025-07-22 11:48:26,323 - DEBUG - Requesting: http://10.0.0.19:8082/project/4eb4415b-c493-4d04-b6f5-74d520d1179e
2025-07-22 11:48:26,395 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d207df2b-f0ab-4323-8ce8-c01e89013802
2025-07-22 11:48:26,406 - DEBUG - ==>Verifying data for policy with id: dbc29525-31ed-42e3-a960-bb7ac2e80303, fqn: ['default-domain', 'ctest-TestBasicPolicy-82129689', 'ctest-policy-allow-all-09590469']
2025-07-22 11:48:26,406 - INFO - VN ctest-vn-11704102 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 11:48:26,406 - DEBUG - Verifying the vn in opserver
2025-07-22 11:48:26,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102 virtual network link through opserver 10.0.0.19
2025-07-22 11:48:26,406 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-22 11:48:26,418 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102?flat'}
2025-07-22 11:48:26,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82129689:ctest-vn-11704102 is found in opserver
2025-07-22 11:48:26,429 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 11:48:26,434 - DEBUG - VRF ids for VN ctest-vn-11704102: {}
2025-07-22 11:48:26,490 - DEBUG - Services list from nova: [