2026-08-24 02:28:05,635 - INFO - Domain Default found not creating
2026-08-24 02:28:05,805 - INFO - Project ctest-TestBasicPolicy-49429271 not found, creating it
2026-08-24 02:28:06,309 - INFO - Created Project:ctest-TestBasicPolicy-49429271, ID : 6fb2cce0-55e6-4d69-8edf-e643872c989d
2026-08-24 02:28:07,920 - INFO - ================================================================================
2026-08-24 02:28:07,920 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-24 02:28:07,921 - 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-08-24 02:28:08,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-08-24 02:28:08,190 - INFO - Initial checks done. Running the testcase now
2026-08-24 02:28:08,190 - INFO -
2026-08-24 02:28:08,774 - DEBUG - Response for create_network : {'network': {'id': '9d7f633b-b689-4f8e-a93a-fde1fecd2d94', 'name': 'ctest-vn-28468139', 'tenant_id': '6fb2cce055e64d698edfe643872c989d', 'project_id': '6fb2cce055e64d698edfe643872c989d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-vn-28468139'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-08-24 02:28:08,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a74ba190-0b29-4df0-b81b-e4c8d02e25dd', 'name': '', 'tenant_id': '6fb2cce055e64d698edfe643872c989d', 'network_id': '9d7f633b-b689-4f8e-a93a-fde1fecd2d94', 'ip_version': 4, 'cidr': '204.66.143.128/26', 'allocation_pools': [{'start': '204.66.143.130', 'end': '204.66.143.190'}], 'gateway_ip': '204.66.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-24T02:28:08.891744', 'updated_at': '2026-08-24T02:28:08.891744', 'dns_server_address': '204.66.143.130', 'tags': [], 'project_id': '6fb2cce055e64d698edfe643872c989d'}}
2026-08-24 02:28:08,961 - INFO - Created VN ctest-vn-28468139
2026-08-24 02:28:09,014 - DEBUG - VN ctest-vn-28468139 UUID is 9d7f633b-b689-4f8e-a93a-fde1fecd2d94
2026-08-24 02:28:09,310 - DEBUG - Response for create_network : {'network': {'id': '5de0bbd0-1d59-4ae8-9cdc-2e34427580c1', 'name': 'ctest-vn-40507357', 'tenant_id': '6fb2cce055e64d698edfe643872c989d', 'project_id': '6fb2cce055e64d698edfe643872c989d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-vn-40507357'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-08-24 02:28:09,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a341caa-c197-4343-b042-0aa6cfd71679', 'name': '', 'tenant_id': '6fb2cce055e64d698edfe643872c989d', 'network_id': '5de0bbd0-1d59-4ae8-9cdc-2e34427580c1', 'ip_version': 4, 'cidr': '187.64.17.192/26', 'allocation_pools': [{'start': '187.64.17.194', 'end': '187.64.17.254'}], 'gateway_ip': '187.64.17.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-24T02:28:09.434458', 'updated_at': '2026-08-24T02:28:09.434458', 'dns_server_address': '187.64.17.194', 'tags': [], 'project_id': '6fb2cce055e64d698edfe643872c989d'}}
2026-08-24 02:28:09,519 - INFO - Created VN ctest-vn-40507357
2026-08-24 02:28:09,569 - DEBUG - VN ctest-vn-40507357 UUID is 5de0bbd0-1d59-4ae8-9cdc-2e34427580c1
2026-08-24 02:28:09,717 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-28468139, 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-49429271:ctest-vn-40507357, 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-08-24 02:28:10,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d7f633b-b689-4f8e-a93a-fde1fecd2d94', 'name': 'ctest-vn-28468139', 'tenant_id': '6fb2cce055e64d698edfe643872c989d', 'project_id': '6fb2cce055e64d698edfe643872c989d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a74ba190-0b29-4df0-b81b-e4c8d02e25dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-vn-28468139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-policy-allow-all-44907373']], 'subnet_ipam': [{'subnet_cidr': '204.66.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-08-24T02:28:08.743315', 'updated_at': '2026-08-24T02:28:08.902612'}}
2026-08-24 02:28:10,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5de0bbd0-1d59-4ae8-9cdc-2e34427580c1', 'name': 'ctest-vn-40507357', 'tenant_id': '6fb2cce055e64d698edfe643872c989d', 'project_id': '6fb2cce055e64d698edfe643872c989d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a341caa-c197-4343-b042-0aa6cfd71679'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-vn-40507357'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-policy-allow-all-44907373']], 'subnet_ipam': [{'subnet_cidr': '187.64.17.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-08-24T02:28:09.275419', 'updated_at': '2026-08-24T02:28:09.447513'}}
2026-08-24 02:28:10,401 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-24 02:28:10,723 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-24 02:28:10,750 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a
2026-08-24 02:28:10,764 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fb2cce0-55e6-4d69-8edf-e643872c989d
2026-08-24 02:28:10,845 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d7f633b-b689-4f8e-a93a-fde1fecd2d94
2026-08-24 02:28:10,861 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d7f633b-b689-4f8e-a93a-fde1fecd2d94
2026-08-24 02:28:10,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e205555-89b8-4ca9-ad9e-7b6626b4170e
2026-08-24 02:28:10,878 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e205555-89b8-4ca9-ad9e-7b6626b4170e
2026-08-24 02:28:10,885 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5dc8ab3-f547-479b-865d-8f35e364f309
2026-08-24 02:28:10,892 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-24 02:28:10,892 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d7f633b-b689-4f8e-a93a-fde1fecd2d94
2026-08-24 02:28:10,901 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e205555-89b8-4ca9-ad9e-7b6626b4170e
2026-08-24 02:28:10,914 - INFO - Verified VN network id 11 for VN 9d7f633b-b689-4f8e-a93a-fde1fecd2d94
2026-08-24 02:28:10,914 - INFO - Verifications in API Server for VN ctest-vn-28468139 passed
2026-08-24 02:28:10,914 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d7f633b-b689-4f8e-a93a-fde1fecd2d94
2026-08-24 02:28:10,927 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e205555-89b8-4ca9-ad9e-7b6626b4170e
2026-08-24 02:28:10,935 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e205555-89b8-4ca9-ad9e-7b6626b4170e
2026-08-24 02:28:10,941 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e5dc8ab3-f547-479b-865d-8f35e364f309
2026-08-24 02:28:10,956 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-28468139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49429271', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11348898694113611662', 'uuid-lslong': '12194338088143367572'}, 'enable': 'true', 'created': '2026-08-24T02:28:08', 'last-modified': '2026-08-24T02:28:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957217'}
2026-08-24 02:28:10,964 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-24 02:28:10,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28468139 passed
2026-08-24 02:28:10,964 - DEBUG - ====Verifying policy data for ctest-vn-28468139 in API_Server ======
2026-08-24 02:28:10,964 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-24 02:28:10,971 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a
2026-08-24 02:28:10,983 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fb2cce0-55e6-4d69-8edf-e643872c989d
2026-08-24 02:28:11,065 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d7f633b-b689-4f8e-a93a-fde1fecd2d94
2026-08-24 02:28:11,077 - DEBUG - ==>Verifying data for policy with id: d4a8b7a6-1078-4079-a112-89eb278ba4ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-policy-allow-all-44907373']
2026-08-24 02:28:11,077 - INFO - VN ctest-vn-28468139 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-24 02:28:11,077 - DEBUG - Verifying the vn in opserver
2026-08-24 02:28:11,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-28468139 virtual network link through opserver 10.0.0.38
2026-08-24 02:28:11,077 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-24 02:28:11,404 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-24 02:28:11,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-28468139', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-28468139?flat'}
2026-08-24 02:28:11,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-28468139 is found in opserver
2026-08-24 02:28:11,473 - DEBUG - Do not have enough data to verify VN in agent
2026-08-24 02:28:11,479 - DEBUG - VRF ids for VN ctest-vn-28468139: {}
2026-08-24 02:28:11,479 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-24 02:28:11,486 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a
2026-08-24 02:28:11,499 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fb2cce0-55e6-4d69-8edf-e643872c989d
2026-08-24 02:28:11,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5de0bbd0-1d59-4ae8-9cdc-2e34427580c1
2026-08-24 02:28:11,582 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5de0bbd0-1d59-4ae8-9cdc-2e34427580c1
2026-08-24 02:28:11,591 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1fd2276-67a8-41b4-a42d-ed5ebcdd5c57
2026-08-24 02:28:11,600 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1fd2276-67a8-41b4-a42d-ed5ebcdd5c57
2026-08-24 02:28:11,608 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7f89d164-67eb-40f4-8b27-82101ea8fe50
2026-08-24 02:28:11,615 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-24 02:28:11,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5de0bbd0-1d59-4ae8-9cdc-2e34427580c1
2026-08-24 02:28:11,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1fd2276-67a8-41b4-a42d-ed5ebcdd5c57
2026-08-24 02:28:11,641 - INFO - Verified VN network id 12 for VN 5de0bbd0-1d59-4ae8-9cdc-2e34427580c1
2026-08-24 02:28:11,641 - INFO - Verifications in API Server for VN ctest-vn-40507357 passed
2026-08-24 02:28:11,641 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5de0bbd0-1d59-4ae8-9cdc-2e34427580c1
2026-08-24 02:28:11,652 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1fd2276-67a8-41b4-a42d-ed5ebcdd5c57
2026-08-24 02:28:11,660 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c1fd2276-67a8-41b4-a42d-ed5ebcdd5c57
2026-08-24 02:28:11,669 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7f89d164-67eb-40f4-8b27-82101ea8fe50
2026-08-24 02:28:11,683 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-40507357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49429271', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6764613142830467816', 'uuid-lslong': '11302959966781276353'}, 'enable': 'true', 'created': '2026-08-24T02:28:09', 'last-modified': '2026-08-24T02:28:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467798'}
2026-08-24 02:28:11,689 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-24 02:28:11,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40507357 passed
2026-08-24 02:28:11,689 - DEBUG - ====Verifying policy data for ctest-vn-40507357 in API_Server ======
2026-08-24 02:28:11,689 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-24 02:28:11,694 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d70d8749-785a-46c7-989f-4684afa6070a
2026-08-24 02:28:11,705 - DEBUG - Requesting: http://10.0.0.38:8082/project/6fb2cce0-55e6-4d69-8edf-e643872c989d
2026-08-24 02:28:11,783 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5de0bbd0-1d59-4ae8-9cdc-2e34427580c1
2026-08-24 02:28:11,793 - DEBUG - ==>Verifying data for policy with id: d4a8b7a6-1078-4079-a112-89eb278ba4ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-49429271', 'ctest-policy-allow-all-44907373']
2026-08-24 02:28:11,793 - INFO - VN ctest-vn-40507357 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-24 02:28:11,793 - DEBUG - Verifying the vn in opserver
2026-08-24 02:28:11,794 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-40507357 virtual network link through opserver 10.0.0.38
2026-08-24 02:28:11,794 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-24 02:28:11,804 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-40507357', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-40507357?flat'}
2026-08-24 02:28:11,804 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49429271:ctest-vn-40507357 is found in opserver
2026-08-24 02:28:11,816 - DEBUG - Do not have enough data to verify VN in agent
2026-08-24 02:28:11,821 - DEBUG - VRF ids for VN ctest-vn-40507357: {}
2026-08-24 02:28:11,876 - DEBUG - Services list from nova: [