2025-11-04 07:23:59,805 - INFO - Domain Default found not creating
2025-11-04 07:23:59,921 - INFO - Project ctest-TestBasicPolicy-19415881 not found, creating it
2025-11-04 07:24:00,378 - INFO - Created Project:ctest-TestBasicPolicy-19415881, ID : 2c0b4b83-4196-4147-a8b9-081446e8125c
2025-11-04 07:24:01,813 - INFO - ================================================================================
2025-11-04 07:24:01,814 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 07:24:01,814 - 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-11-04 07:24:02,076 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-04 07:24:02,076 - INFO - Initial checks done. Running the testcase now
2025-11-04 07:24:02,076 - INFO -
2025-11-04 07:24:02,619 - DEBUG - Response for create_network : {'network': {'id': '83e28f68-1464-4480-b451-b96f4c8a3682', 'name': 'ctest-vn-28972871', 'tenant_id': '2c0b4b8341964147a8b9081446e8125c', 'project_id': '2c0b4b8341964147a8b9081446e8125c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-vn-28972871'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 07:24:02,803 - DEBUG - Response for create_subnet : {'subnet': {'id': '9acb2535-9fc1-4968-b707-39bf3f6c3ec1', 'name': '', 'tenant_id': '2c0b4b8341964147a8b9081446e8125c', 'network_id': '83e28f68-1464-4480-b451-b96f4c8a3682', 'ip_version': 4, 'cidr': '33.159.17.64/26', 'allocation_pools': [{'start': '33.159.17.66', 'end': '33.159.17.126'}], 'gateway_ip': '33.159.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.159.17.66', 'tags': [], 'project_id': '2c0b4b8341964147a8b9081446e8125c'}}
2025-11-04 07:24:02,818 - INFO - Created VN ctest-vn-28972871
2025-11-04 07:24:02,871 - DEBUG - VN ctest-vn-28972871 UUID is 83e28f68-1464-4480-b451-b96f4c8a3682
2025-11-04 07:24:03,164 - DEBUG - Response for create_network : {'network': {'id': '44944d24-b990-4782-aad5-07c57e645943', 'name': 'ctest-vn-96342883', 'tenant_id': '2c0b4b8341964147a8b9081446e8125c', 'project_id': '2c0b4b8341964147a8b9081446e8125c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-vn-96342883'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 07:24:03,320 - DEBUG - Response for create_subnet : {'subnet': {'id': 'beba77c3-b39e-4cbc-80bb-d5659d3caa31', 'name': '', 'tenant_id': '2c0b4b8341964147a8b9081446e8125c', 'network_id': '44944d24-b990-4782-aad5-07c57e645943', 'ip_version': 4, 'cidr': '147.129.20.128/26', 'allocation_pools': [{'start': '147.129.20.130', 'end': '147.129.20.190'}], 'gateway_ip': '147.129.20.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.129.20.130', 'tags': [], 'project_id': '2c0b4b8341964147a8b9081446e8125c'}}
2025-11-04 07:24:03,333 - INFO - Created VN ctest-vn-96342883
2025-11-04 07:24:03,383 - DEBUG - VN ctest-vn-96342883 UUID is 44944d24-b990-4782-aad5-07c57e645943
2025-11-04 07:24:03,519 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-28972871, 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-19415881:ctest-vn-96342883, 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-11-04 07:24:03,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83e28f68-1464-4480-b451-b96f4c8a3682', 'name': 'ctest-vn-28972871', 'tenant_id': '2c0b4b8341964147a8b9081446e8125c', 'project_id': '2c0b4b8341964147a8b9081446e8125c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9acb2535-9fc1-4968-b707-39bf3f6c3ec1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-vn-28972871'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-policy-allow-all-05380320']], 'subnet_ipam': [{'subnet_cidr': '33.159.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 07:24:04,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44944d24-b990-4782-aad5-07c57e645943', 'name': 'ctest-vn-96342883', 'tenant_id': '2c0b4b8341964147a8b9081446e8125c', 'project_id': '2c0b4b8341964147a8b9081446e8125c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['beba77c3-b39e-4cbc-80bb-d5659d3caa31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-vn-96342883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-policy-allow-all-05380320']], 'subnet_ipam': [{'subnet_cidr': '147.129.20.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 07:24:04,183 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 07:24:04,502 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 07:24:04,521 - DEBUG - Requesting: http://10.0.0.50:8082/domain/252812c3-bbf3-48b8-8f11-d640e38f27f8
2025-11-04 07:24:04,531 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c0b4b83-4196-4147-a8b9-081446e8125c
2025-11-04 07:24:04,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83e28f68-1464-4480-b451-b96f4c8a3682
2025-11-04 07:24:04,607 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83e28f68-1464-4480-b451-b96f4c8a3682
2025-11-04 07:24:04,615 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/372e8777-f298-4ce6-9be7-542a90581efb
2025-11-04 07:24:04,620 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/372e8777-f298-4ce6-9be7-542a90581efb
2025-11-04 07:24:04,625 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b80a7945-6657-4d3c-8e07-6138c32fc4e2
2025-11-04 07:24:04,630 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 07:24:04,630 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83e28f68-1464-4480-b451-b96f4c8a3682
2025-11-04 07:24:04,636 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/372e8777-f298-4ce6-9be7-542a90581efb
2025-11-04 07:24:04,650 - INFO - Verified VN network id 11 for VN 83e28f68-1464-4480-b451-b96f4c8a3682
2025-11-04 07:24:04,650 - INFO - Verifications in API Server for VN ctest-vn-28972871 passed
2025-11-04 07:24:04,650 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83e28f68-1464-4480-b451-b96f4c8a3682
2025-11-04 07:24:04,659 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/372e8777-f298-4ce6-9be7-542a90581efb
2025-11-04 07:24:04,665 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/372e8777-f298-4ce6-9be7-542a90581efb
2025-11-04 07:24:04,670 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b80a7945-6657-4d3c-8e07-6138c32fc4e2
2025-11-04 07:24:04,680 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-28972871', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19415881', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9503315840886654080', 'uuid-lslong': '12993370287617226370'}, 'enable': 'true', 'created': '2025-11-04T07:24:02', 'last-modified': '2025-11-04T07:24:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894957'}
2025-11-04 07:24:04,686 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 07:24:04,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28972871 passed
2025-11-04 07:24:04,686 - DEBUG - ====Verifying policy data for ctest-vn-28972871 in API_Server ======
2025-11-04 07:24:04,686 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 07:24:04,691 - DEBUG - Requesting: http://10.0.0.50:8082/domain/252812c3-bbf3-48b8-8f11-d640e38f27f8
2025-11-04 07:24:04,700 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c0b4b83-4196-4147-a8b9-081446e8125c
2025-11-04 07:24:04,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/83e28f68-1464-4480-b451-b96f4c8a3682
2025-11-04 07:24:04,780 - DEBUG - ==>Verifying data for policy with id: 8a622f5f-f1dc-4131-8877-0f3999ff857f, fqn: ['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-policy-allow-all-05380320']
2025-11-04 07:24:04,780 - INFO - VN ctest-vn-28972871 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 07:24:04,780 - DEBUG - Verifying the vn in opserver
2025-11-04 07:24:04,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-28972871 virtual network link through opserver 10.0.0.50
2025-11-04 07:24:04,780 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 07:24:05,093 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 07:24:05,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-28972871', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-28972871?flat'}
2025-11-04 07:24:05,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-28972871 is found in opserver
2025-11-04 07:24:05,146 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 07:24:05,150 - DEBUG - VRF ids for VN ctest-vn-28972871: {}
2025-11-04 07:24:05,150 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 07:24:05,154 - DEBUG - Requesting: http://10.0.0.50:8082/domain/252812c3-bbf3-48b8-8f11-d640e38f27f8
2025-11-04 07:24:05,164 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c0b4b83-4196-4147-a8b9-081446e8125c
2025-11-04 07:24:05,234 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44944d24-b990-4782-aad5-07c57e645943
2025-11-04 07:24:05,244 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44944d24-b990-4782-aad5-07c57e645943
2025-11-04 07:24:05,252 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2332a341-978d-4de6-b6e3-6340fc4a7f54
2025-11-04 07:24:05,258 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2332a341-978d-4de6-b6e3-6340fc4a7f54
2025-11-04 07:24:05,263 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ad5c90ae-fe61-43c0-8f04-04352154dfda
2025-11-04 07:24:05,270 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 07:24:05,270 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44944d24-b990-4782-aad5-07c57e645943
2025-11-04 07:24:05,277 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2332a341-978d-4de6-b6e3-6340fc4a7f54
2025-11-04 07:24:05,288 - INFO - Verified VN network id 12 for VN 44944d24-b990-4782-aad5-07c57e645943
2025-11-04 07:24:05,289 - INFO - Verifications in API Server for VN ctest-vn-96342883 passed
2025-11-04 07:24:05,289 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44944d24-b990-4782-aad5-07c57e645943
2025-11-04 07:24:05,296 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2332a341-978d-4de6-b6e3-6340fc4a7f54
2025-11-04 07:24:05,302 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2332a341-978d-4de6-b6e3-6340fc4a7f54
2025-11-04 07:24:05,307 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ad5c90ae-fe61-43c0-8f04-04352154dfda
2025-11-04 07:24:05,318 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-96342883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19415881', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4941659511259678594', 'uuid-lslong': '12309753701297576259'}, 'enable': 'true', 'created': '2025-11-04T07:24:03', 'last-modified': '2025-11-04T07:24:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312381'}
2025-11-04 07:24:05,322 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 07:24:05,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96342883 passed
2025-11-04 07:24:05,322 - DEBUG - ====Verifying policy data for ctest-vn-96342883 in API_Server ======
2025-11-04 07:24:05,323 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-04 07:24:05,327 - DEBUG - Requesting: http://10.0.0.50:8082/domain/252812c3-bbf3-48b8-8f11-d640e38f27f8
2025-11-04 07:24:05,335 - DEBUG - Requesting: http://10.0.0.50:8082/project/2c0b4b83-4196-4147-a8b9-081446e8125c
2025-11-04 07:24:05,404 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/44944d24-b990-4782-aad5-07c57e645943
2025-11-04 07:24:05,412 - DEBUG - ==>Verifying data for policy with id: 8a622f5f-f1dc-4131-8877-0f3999ff857f, fqn: ['default-domain', 'ctest-TestBasicPolicy-19415881', 'ctest-policy-allow-all-05380320']
2025-11-04 07:24:05,412 - INFO - VN ctest-vn-96342883 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 07:24:05,412 - DEBUG - Verifying the vn in opserver
2025-11-04 07:24:05,412 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-96342883 virtual network link through opserver 10.0.0.50
2025-11-04 07:24:05,412 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-04 07:24:05,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-96342883', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-96342883?flat'}
2025-11-04 07:24:05,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19415881:ctest-vn-96342883 is found in opserver
2025-11-04 07:24:05,430 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 07:24:05,433 - DEBUG - VRF ids for VN ctest-vn-96342883: {}
2025-11-04 07:24:05,491 - DEBUG - Services list from nova: [