2026-10-23 11:21:45,648 - INFO - Domain Default found not creating
2026-10-23 11:21:45,998 - INFO - Project ctest-TestBasicPolicy-92121358 not found, creating it
2026-10-23 11:21:46,728 - INFO - Created Project:ctest-TestBasicPolicy-92121358, ID : c5387805-d178-495a-addb-5e5e59d5b2dd
2026-10-23 11:21:49,402 - INFO - ================================================================================
2026-10-23 11:21:49,402 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-23 11:21:49,402 - 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-10-23 11:21:49,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.29': '0'}} with
2026-10-23 11:21:49,696 - INFO - Initial checks done. Running the testcase now
2026-10-23 11:21:49,697 - INFO -
2026-10-23 11:21:50,606 - DEBUG - Response for create_network : {'network': {'id': '9c8f0967-2c06-4cea-b2cb-f207c4319a24', 'name': 'ctest-vn-12202520', 'tenant_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'project_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-vn-12202520'], 'port_security_enabled': True, 'description': ''}}
2026-10-23 11:21:50,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '4436e45d-f381-4c16-91b3-40fa117f7ba6', 'name': '', 'tenant_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'network_id': '9c8f0967-2c06-4cea-b2cb-f207c4319a24', 'ip_version': 4, 'cidr': '200.90.220.0/26', 'allocation_pools': [{'start': '200.90.220.2', 'end': '200.90.220.62'}], 'gateway_ip': '200.90.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.90.220.2', 'tags': [], 'project_id': 'c5387805d178495aaddb5e5e59d5b2dd'}}
2026-10-23 11:21:50,896 - INFO - Created VN ctest-vn-12202520
2026-10-23 11:21:50,958 - DEBUG - VN ctest-vn-12202520 UUID is 9c8f0967-2c06-4cea-b2cb-f207c4319a24
2026-10-23 11:21:51,435 - DEBUG - Response for create_network : {'network': {'id': '8a8acbaa-c03d-4aa7-8892-f82540dad86a', 'name': 'ctest-vn-84494637', 'tenant_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'project_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-vn-84494637'], 'port_security_enabled': True, 'description': ''}}
2026-10-23 11:21:51,700 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcff7d50-2dc5-4c27-b7a8-310b43fa7800', 'name': '', 'tenant_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'network_id': '8a8acbaa-c03d-4aa7-8892-f82540dad86a', 'ip_version': 4, 'cidr': '30.119.69.192/26', 'allocation_pools': [{'start': '30.119.69.194', 'end': '30.119.69.254'}], 'gateway_ip': '30.119.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.119.69.194', 'tags': [], 'project_id': 'c5387805d178495aaddb5e5e59d5b2dd'}}
2026-10-23 11:21:51,731 - INFO - Created VN ctest-vn-84494637
2026-10-23 11:21:51,794 - DEBUG - VN ctest-vn-84494637 UUID is 8a8acbaa-c03d-4aa7-8892-f82540dad86a
2026-10-23 11:21:51,948 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-12202520, 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-92121358:ctest-vn-84494637, 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-10-23 11:21:52,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9c8f0967-2c06-4cea-b2cb-f207c4319a24', 'name': 'ctest-vn-12202520', 'tenant_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'project_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4436e45d-f381-4c16-91b3-40fa117f7ba6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-vn-12202520'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-policy-allow-all-70888558']], 'subnet_ipam': [{'subnet_cidr': '200.90.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-23 11:21:52,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a8acbaa-c03d-4aa7-8892-f82540dad86a', 'name': 'ctest-vn-84494637', 'tenant_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'project_id': 'c5387805d178495aaddb5e5e59d5b2dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['dcff7d50-2dc5-4c27-b7a8-310b43fa7800'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-vn-84494637'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-policy-allow-all-70888558']], 'subnet_ipam': [{'subnet_cidr': '30.119.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-23 11:21:52,850 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-10-23 11:21:53,280 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-10-23 11:21:53,326 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc0fbfc7-3a2e-4984-802f-e3b5fa3d36de
2026-10-23 11:21:53,348 - DEBUG - Requesting: http://10.0.0.162:8082/project/c5387805-d178-495a-addb-5e5e59d5b2dd
2026-10-23 11:21:53,453 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/9c8f0967-2c06-4cea-b2cb-f207c4319a24
2026-10-23 11:21:53,476 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/9c8f0967-2c06-4cea-b2cb-f207c4319a24
2026-10-23 11:21:53,492 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/fa634d82-dbc9-4aa3-a0e2-9945dae775df
2026-10-23 11:21:53,505 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/fa634d82-dbc9-4aa3-a0e2-9945dae775df
2026-10-23 11:21:53,519 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/ed03a459-9289-48e5-bb04-9ecb2b359398
2026-10-23 11:21:53,530 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-23 11:21:53,530 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/9c8f0967-2c06-4cea-b2cb-f207c4319a24
2026-10-23 11:21:53,547 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/fa634d82-dbc9-4aa3-a0e2-9945dae775df
2026-10-23 11:21:53,573 - INFO - Verified VN network id 11 for VN 9c8f0967-2c06-4cea-b2cb-f207c4319a24
2026-10-23 11:21:53,573 - INFO - Verifications in API Server for VN ctest-vn-12202520 passed
2026-10-23 11:21:53,574 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/9c8f0967-2c06-4cea-b2cb-f207c4319a24
2026-10-23 11:21:53,592 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/fa634d82-dbc9-4aa3-a0e2-9945dae775df
2026-10-23 11:21:53,604 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/fa634d82-dbc9-4aa3-a0e2-9945dae775df
2026-10-23 11:21:53,617 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/ed03a459-9289-48e5-bb04-9ecb2b359398
2026-10-23 11:21:53,640 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-12202520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92121358', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11281245930311273706', 'uuid-lslong': '12883657274193713700'}, 'enable': 'true', 'created': '2026-10-23T11:21:50', 'last-modified': '2026-10-23T11:21:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.329393'}
2026-10-23 11:21:53,652 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-23 11:21:53,652 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12202520 passed
2026-10-23 11:21:53,652 - DEBUG - ====Verifying policy data for ctest-vn-12202520 in API_Server ======
2026-10-23 11:21:53,652 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-10-23 11:21:53,661 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc0fbfc7-3a2e-4984-802f-e3b5fa3d36de
2026-10-23 11:21:53,679 - DEBUG - Requesting: http://10.0.0.162:8082/project/c5387805-d178-495a-addb-5e5e59d5b2dd
2026-10-23 11:21:53,780 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/9c8f0967-2c06-4cea-b2cb-f207c4319a24
2026-10-23 11:21:53,799 - DEBUG - ==>Verifying data for policy with id: 5d6c8ede-d240-47f2-bac7-ec7bf4b63fe2, fqn: ['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-policy-allow-all-70888558']
2026-10-23 11:21:53,799 - INFO - VN ctest-vn-12202520 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-23 11:21:53,799 - DEBUG - Verifying the vn in opserver
2026-10-23 11:21:53,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-12202520 virtual network link through opserver 10.0.0.162
2026-10-23 11:21:53,799 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-10-23 11:21:54,219 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-10-23 11:21:54,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-12202520', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-12202520?flat'}
2026-10-23 11:21:54,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-12202520 is found in opserver
2026-10-23 11:21:54,338 - DEBUG - Do not have enough data to verify VN in agent
2026-10-23 11:21:54,347 - DEBUG - VRF ids for VN ctest-vn-12202520: {}
2026-10-23 11:21:54,347 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-10-23 11:21:54,358 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc0fbfc7-3a2e-4984-802f-e3b5fa3d36de
2026-10-23 11:21:54,377 - DEBUG - Requesting: http://10.0.0.162:8082/project/c5387805-d178-495a-addb-5e5e59d5b2dd
2026-10-23 11:21:54,480 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8a8acbaa-c03d-4aa7-8892-f82540dad86a
2026-10-23 11:21:54,504 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8a8acbaa-c03d-4aa7-8892-f82540dad86a
2026-10-23 11:21:54,523 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/4ef89570-7d2c-474f-86c3-9efe4428ccc6
2026-10-23 11:21:54,536 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/4ef89570-7d2c-474f-86c3-9efe4428ccc6
2026-10-23 11:21:54,551 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/2ba1c401-e2d4-4f8b-8c80-30f935e5080e
2026-10-23 11:21:54,566 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-23 11:21:54,566 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8a8acbaa-c03d-4aa7-8892-f82540dad86a
2026-10-23 11:21:54,584 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/4ef89570-7d2c-474f-86c3-9efe4428ccc6
2026-10-23 11:21:54,613 - INFO - Verified VN network id 12 for VN 8a8acbaa-c03d-4aa7-8892-f82540dad86a
2026-10-23 11:21:54,613 - INFO - Verifications in API Server for VN ctest-vn-84494637 passed
2026-10-23 11:21:54,613 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8a8acbaa-c03d-4aa7-8892-f82540dad86a
2026-10-23 11:21:54,632 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/4ef89570-7d2c-474f-86c3-9efe4428ccc6
2026-10-23 11:21:54,644 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/4ef89570-7d2c-474f-86c3-9efe4428ccc6
2026-10-23 11:21:54,656 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/2ba1c401-e2d4-4f8b-8c80-30f935e5080e
2026-10-23 11:21:54,680 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-84494637', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92121358', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9983015458250246823', 'uuid-lslong': '9841200974643517546'}, 'enable': 'true', 'created': '2026-10-23T11:21:51', 'last-modified': '2026-10-23T11:21:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.055216'}
2026-10-23 11:21:54,691 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-23 11:21:54,692 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84494637 passed
2026-10-23 11:21:54,692 - DEBUG - ====Verifying policy data for ctest-vn-84494637 in API_Server ======
2026-10-23 11:21:54,692 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-10-23 11:21:54,704 - DEBUG - Requesting: http://10.0.0.162:8082/domain/cc0fbfc7-3a2e-4984-802f-e3b5fa3d36de
2026-10-23 11:21:54,725 - DEBUG - Requesting: http://10.0.0.162:8082/project/c5387805-d178-495a-addb-5e5e59d5b2dd
2026-10-23 11:21:54,823 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8a8acbaa-c03d-4aa7-8892-f82540dad86a
2026-10-23 11:21:54,843 - DEBUG - ==>Verifying data for policy with id: 5d6c8ede-d240-47f2-bac7-ec7bf4b63fe2, fqn: ['default-domain', 'ctest-TestBasicPolicy-92121358', 'ctest-policy-allow-all-70888558']
2026-10-23 11:21:54,844 - INFO - VN ctest-vn-84494637 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-23 11:21:54,844 - DEBUG - Verifying the vn in opserver
2026-10-23 11:21:54,844 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-84494637 virtual network link through opserver 10.0.0.162
2026-10-23 11:21:54,844 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-10-23 11:21:54,863 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-84494637', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-84494637?flat'}
2026-10-23 11:21:54,863 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92121358:ctest-vn-84494637 is found in opserver
2026-10-23 11:21:54,884 - DEBUG - Do not have enough data to verify VN in agent
2026-10-23 11:21:54,896 - DEBUG - VRF ids for VN ctest-vn-84494637: {}
2026-10-23 11:21:55,008 - DEBUG - Services list from nova: [