2026-06-18 18:28:05,300 - INFO - Domain Default found not creating
2026-06-18 18:28:05,424 - INFO - Project ctest-TestBasicPolicy-70575732 not found, creating it
2026-06-18 18:28:05,869 - INFO - Created Project:ctest-TestBasicPolicy-70575732, ID : 43bcb8c3-a0b1-429b-bd95-34106c01b78c
2026-06-18 18:28:07,233 - INFO - ================================================================================
2026-06-18 18:28:07,233 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-18 18:28:07,233 - 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
2026-06-18 18:28:07,482 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-06-18 18:28:07,482 - INFO - Initial checks done. Running the testcase now
2026-06-18 18:28:07,482 - INFO -
2026-06-18 18:28:08,002 - DEBUG - Response for create_network : {'network': {'id': '04c2b849-1b67-496f-8743-7847cbe94fa4', 'name': 'ctest-vn-91110989', 'tenant_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'project_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-vn-91110989'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 18:28:08,164 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e09f3ca-3814-4bb5-8578-21ade1fbfad1', 'name': '', 'tenant_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'network_id': '04c2b849-1b67-496f-8743-7847cbe94fa4', 'ip_version': 4, 'cidr': '107.22.35.128/26', 'allocation_pools': [{'start': '107.22.35.130', 'end': '107.22.35.190'}], 'gateway_ip': '107.22.35.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.22.35.130', 'tags': [], 'project_id': '43bcb8c3a0b1429bbd9534106c01b78c'}}
2026-06-18 18:28:08,176 - INFO - Created VN ctest-vn-91110989
2026-06-18 18:28:08,230 - DEBUG - VN ctest-vn-91110989 UUID is 04c2b849-1b67-496f-8743-7847cbe94fa4
2026-06-18 18:28:08,532 - DEBUG - Response for create_network : {'network': {'id': '37d1b992-d599-4679-b806-0ee4d0f1ecd0', 'name': 'ctest-vn-13026813', 'tenant_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'project_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-vn-13026813'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 18:28:08,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e3c1973-b554-47bd-a360-d8aa5b5680ca', 'name': '', 'tenant_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'network_id': '37d1b992-d599-4679-b806-0ee4d0f1ecd0', 'ip_version': 4, 'cidr': '143.68.88.0/26', 'allocation_pools': [{'start': '143.68.88.2', 'end': '143.68.88.62'}], 'gateway_ip': '143.68.88.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.68.88.2', 'tags': [], 'project_id': '43bcb8c3a0b1429bbd9534106c01b78c'}}
2026-06-18 18:28:08,753 - INFO - Created VN ctest-vn-13026813
2026-06-18 18:28:08,802 - DEBUG - VN ctest-vn-13026813 UUID is 37d1b992-d599-4679-b806-0ee4d0f1ecd0
2026-06-18 18:28:08,942 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-91110989, 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-70575732:ctest-vn-13026813, 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]
2026-06-18 18:28:09,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04c2b849-1b67-496f-8743-7847cbe94fa4', 'name': 'ctest-vn-91110989', 'tenant_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'project_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e09f3ca-3814-4bb5-8578-21ade1fbfad1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-vn-91110989'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-policy-allow-all-51968939']], 'subnet_ipam': [{'subnet_cidr': '107.22.35.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 18:28:09,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37d1b992-d599-4679-b806-0ee4d0f1ecd0', 'name': 'ctest-vn-13026813', 'tenant_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'project_id': '43bcb8c3a0b1429bbd9534106c01b78c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e3c1973-b554-47bd-a360-d8aa5b5680ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-vn-13026813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-policy-allow-all-51968939']], 'subnet_ipam': [{'subnet_cidr': '143.68.88.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 18:28:09,590 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-18 18:28:09,904 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-18 18:28:09,925 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b
2026-06-18 18:28:09,936 - DEBUG - Requesting: http://10.0.0.38:8082/project/43bcb8c3-a0b1-429b-bd95-34106c01b78c
2026-06-18 18:28:10,002 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04c2b849-1b67-496f-8743-7847cbe94fa4
2026-06-18 18:28:10,011 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04c2b849-1b67-496f-8743-7847cbe94fa4
2026-06-18 18:28:10,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/34b594c0-3be7-434a-8772-cd3de6a77430
2026-06-18 18:28:10,024 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/34b594c0-3be7-434a-8772-cd3de6a77430
2026-06-18 18:28:10,030 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d1b8e3ad-bd34-4965-83e8-b6e86eea6c2c
2026-06-18 18:28:10,035 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 18:28:10,035 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04c2b849-1b67-496f-8743-7847cbe94fa4
2026-06-18 18:28:10,042 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/34b594c0-3be7-434a-8772-cd3de6a77430
2026-06-18 18:28:10,052 - INFO - Verified VN network id 11 for VN 04c2b849-1b67-496f-8743-7847cbe94fa4
2026-06-18 18:28:10,052 - INFO - Verifications in API Server for VN ctest-vn-91110989 passed
2026-06-18 18:28:10,052 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04c2b849-1b67-496f-8743-7847cbe94fa4
2026-06-18 18:28:10,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/34b594c0-3be7-434a-8772-cd3de6a77430
2026-06-18 18:28:10,064 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/34b594c0-3be7-434a-8772-cd3de6a77430
2026-06-18 18:28:10,070 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d1b8e3ad-bd34-4965-83e8-b6e86eea6c2c
2026-06-18 18:28:10,079 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-91110989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70575732', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '343039145765456239', 'uuid-lslong': '9746766268318961572'}, 'enable': 'true', 'created': '2026-06-18T18:28:07', 'last-modified': '2026-06-18T18:28:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.887073'}
2026-06-18 18:28:10,083 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 18:28:10,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91110989 passed
2026-06-18 18:28:10,084 - DEBUG - ====Verifying policy data for ctest-vn-91110989 in API_Server ======
2026-06-18 18:28:10,084 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-18 18:28:10,088 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b
2026-06-18 18:28:10,096 - DEBUG - Requesting: http://10.0.0.38:8082/project/43bcb8c3-a0b1-429b-bd95-34106c01b78c
2026-06-18 18:28:10,162 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/04c2b849-1b67-496f-8743-7847cbe94fa4
2026-06-18 18:28:10,170 - DEBUG - ==>Verifying data for policy with id: 32a433dc-443a-416e-9258-960ff95cfab3, fqn: ['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-policy-allow-all-51968939']
2026-06-18 18:28:10,170 - INFO - VN ctest-vn-91110989 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 18:28:10,171 - DEBUG - Verifying the vn in opserver
2026-06-18 18:28:10,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-91110989 virtual network link through opserver 10.0.0.38
2026-06-18 18:28:10,171 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-18 18:28:10,487 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-18 18:28:10,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-91110989', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-91110989?flat'}
2026-06-18 18:28:10,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-91110989 is found in opserver
2026-06-18 18:28:10,543 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 18:28:10,548 - DEBUG - VRF ids for VN ctest-vn-91110989: {}
2026-06-18 18:28:10,548 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-18 18:28:10,552 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b
2026-06-18 18:28:10,561 - DEBUG - Requesting: http://10.0.0.38:8082/project/43bcb8c3-a0b1-429b-bd95-34106c01b78c
2026-06-18 18:28:10,625 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37d1b992-d599-4679-b806-0ee4d0f1ecd0
2026-06-18 18:28:10,635 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37d1b992-d599-4679-b806-0ee4d0f1ecd0
2026-06-18 18:28:10,642 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/92afb6cb-9425-41e4-93ee-8f854db561d2
2026-06-18 18:28:10,648 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/92afb6cb-9425-41e4-93ee-8f854db561d2
2026-06-18 18:28:10,654 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2005b73b-92ce-4151-9ac8-12ee5165e994
2026-06-18 18:28:10,659 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 18:28:10,659 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37d1b992-d599-4679-b806-0ee4d0f1ecd0
2026-06-18 18:28:10,666 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/92afb6cb-9425-41e4-93ee-8f854db561d2
2026-06-18 18:28:10,676 - INFO - Verified VN network id 12 for VN 37d1b992-d599-4679-b806-0ee4d0f1ecd0
2026-06-18 18:28:10,676 - INFO - Verifications in API Server for VN ctest-vn-13026813 passed
2026-06-18 18:28:10,676 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37d1b992-d599-4679-b806-0ee4d0f1ecd0
2026-06-18 18:28:10,683 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/92afb6cb-9425-41e4-93ee-8f854db561d2
2026-06-18 18:28:10,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/92afb6cb-9425-41e4-93ee-8f854db561d2
2026-06-18 18:28:10,694 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2005b73b-92ce-4151-9ac8-12ee5165e994
2026-06-18 18:28:10,703 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-13026813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70575732', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4022199982518519417', 'uuid-lslong': '13260302528759852240'}, 'enable': 'true', 'created': '2026-06-18T18:28:08', 'last-modified': '2026-06-18T18:28:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.290234'}
2026-06-18 18:28:10,708 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 18:28:10,708 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13026813 passed
2026-06-18 18:28:10,708 - DEBUG - ====Verifying policy data for ctest-vn-13026813 in API_Server ======
2026-06-18 18:28:10,708 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-18 18:28:10,714 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b
2026-06-18 18:28:10,724 - DEBUG - Requesting: http://10.0.0.38:8082/project/43bcb8c3-a0b1-429b-bd95-34106c01b78c
2026-06-18 18:28:10,789 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37d1b992-d599-4679-b806-0ee4d0f1ecd0
2026-06-18 18:28:10,797 - DEBUG - ==>Verifying data for policy with id: 32a433dc-443a-416e-9258-960ff95cfab3, fqn: ['default-domain', 'ctest-TestBasicPolicy-70575732', 'ctest-policy-allow-all-51968939']
2026-06-18 18:28:10,797 - INFO - VN ctest-vn-13026813 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 18:28:10,797 - DEBUG - Verifying the vn in opserver
2026-06-18 18:28:10,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-13026813 virtual network link through opserver 10.0.0.38
2026-06-18 18:28:10,797 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-18 18:28:10,806 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-13026813', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-13026813?flat'}
2026-06-18 18:28:10,806 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70575732:ctest-vn-13026813 is found in opserver
2026-06-18 18:28:10,814 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 18:28:10,818 - DEBUG - VRF ids for VN ctest-vn-13026813: {}
2026-06-18 18:28:10,864 - DEBUG - Services list from nova: [