2026-01-22 22:06:40,716 - INFO - Domain Default found not creating
2026-01-22 22:06:41,179 - INFO - Project ctest-TestBasicPolicy-68544663 not found, creating it
2026-01-22 22:06:41,979 - INFO - Created Project:ctest-TestBasicPolicy-68544663, ID : 387e50c3-3885-4286-86d6-37d939b234eb
2026-01-22 22:06:43,967 - INFO - ================================================================================
2026-01-22 22:06:43,968 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-22 22:06:43,968 - 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-01-22 22:06:44,271 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0'}} with
2026-01-22 22:06:44,272 - INFO - Initial checks done. Running the testcase now
2026-01-22 22:06:44,272 - INFO -
2026-01-22 22:06:45,053 - DEBUG - Response for create_network : {'network': {'id': 'ecd9c4a6-0aa1-47da-809e-8485e528fd03', 'name': 'ctest-vn-89662019', 'tenant_id': '387e50c33885428686d637d939b234eb', 'project_id': '387e50c33885428686d637d939b234eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-vn-89662019'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 22:06:45,235 - DEBUG - Response for create_subnet : {'subnet': {'id': '732b054e-1907-443d-bbd9-41e6ccd07857', 'name': '', 'tenant_id': '387e50c33885428686d637d939b234eb', 'network_id': 'ecd9c4a6-0aa1-47da-809e-8485e528fd03', 'ip_version': 4, 'cidr': '9.158.231.128/26', 'allocation_pools': [{'start': '9.158.231.130', 'end': '9.158.231.190'}], 'gateway_ip': '9.158.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.158.231.130', 'tags': [], 'project_id': '387e50c33885428686d637d939b234eb'}}
2026-01-22 22:06:45,270 - INFO - Created VN ctest-vn-89662019
2026-01-22 22:06:45,326 - DEBUG - VN ctest-vn-89662019 UUID is ecd9c4a6-0aa1-47da-809e-8485e528fd03
2026-01-22 22:06:45,773 - DEBUG - Response for create_network : {'network': {'id': '7a53c507-a8df-4e85-9f4e-478897e0e42d', 'name': 'ctest-vn-11623310', 'tenant_id': '387e50c33885428686d637d939b234eb', 'project_id': '387e50c33885428686d637d939b234eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-vn-11623310'], 'port_security_enabled': True, 'description': ''}}
2026-01-22 22:06:45,965 - DEBUG - Response for create_subnet : {'subnet': {'id': 'effc65cd-b662-483d-84d0-b44dbca17a77', 'name': '', 'tenant_id': '387e50c33885428686d637d939b234eb', 'network_id': '7a53c507-a8df-4e85-9f4e-478897e0e42d', 'ip_version': 4, 'cidr': '154.167.96.192/26', 'allocation_pools': [{'start': '154.167.96.194', 'end': '154.167.96.254'}], 'gateway_ip': '154.167.96.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.167.96.194', 'tags': [], 'project_id': '387e50c33885428686d637d939b234eb'}}
2026-01-22 22:06:45,988 - INFO - Created VN ctest-vn-11623310
2026-01-22 22:06:46,042 - DEBUG - VN ctest-vn-11623310 UUID is 7a53c507-a8df-4e85-9f4e-478897e0e42d
2026-01-22 22:06:46,225 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-89662019, 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-68544663:ctest-vn-11623310, 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-01-22 22:06:46,625 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ecd9c4a6-0aa1-47da-809e-8485e528fd03', 'name': 'ctest-vn-89662019', 'tenant_id': '387e50c33885428686d637d939b234eb', 'project_id': '387e50c33885428686d637d939b234eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['732b054e-1907-443d-bbd9-41e6ccd07857'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-vn-89662019'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-policy-allow-all-65596691']], 'subnet_ipam': [{'subnet_cidr': '9.158.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 22:06:46,912 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a53c507-a8df-4e85-9f4e-478897e0e42d', 'name': 'ctest-vn-11623310', 'tenant_id': '387e50c33885428686d637d939b234eb', 'project_id': '387e50c33885428686d637d939b234eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['effc65cd-b662-483d-84d0-b44dbca17a77'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-vn-11623310'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-policy-allow-all-65596691']], 'subnet_ipam': [{'subnet_cidr': '154.167.96.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-22 22:06:47,109 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 22:06:47,435 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 22:06:47,530 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268
2026-01-22 22:06:47,563 - DEBUG - Requesting: http://10.0.0.50:8082/project/387e50c3-3885-4286-86d6-37d939b234eb
2026-01-22 22:06:47,686 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecd9c4a6-0aa1-47da-809e-8485e528fd03
2026-01-22 22:06:47,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecd9c4a6-0aa1-47da-809e-8485e528fd03
2026-01-22 22:06:47,739 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acc5d08b-48ca-43ca-b846-417f05319aa8
2026-01-22 22:06:47,757 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acc5d08b-48ca-43ca-b846-417f05319aa8
2026-01-22 22:06:47,778 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d7ada86e-9d63-4f0b-b23b-8f93930758a2
2026-01-22 22:06:47,795 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 22:06:47,795 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecd9c4a6-0aa1-47da-809e-8485e528fd03
2026-01-22 22:06:47,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acc5d08b-48ca-43ca-b846-417f05319aa8
2026-01-22 22:06:47,865 - INFO - Verified VN network id 11 for VN ecd9c4a6-0aa1-47da-809e-8485e528fd03
2026-01-22 22:06:47,865 - INFO - Verifications in API Server for VN ctest-vn-89662019 passed
2026-01-22 22:06:47,865 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecd9c4a6-0aa1-47da-809e-8485e528fd03
2026-01-22 22:06:47,888 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acc5d08b-48ca-43ca-b846-417f05319aa8
2026-01-22 22:06:47,905 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/acc5d08b-48ca-43ca-b846-417f05319aa8
2026-01-22 22:06:47,922 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d7ada86e-9d63-4f0b-b23b-8f93930758a2
2026-01-22 22:06:47,950 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-89662019', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68544663', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17066888480319162330', 'uuid-lslong': '9267990793785244931'}, 'enable': 'true', 'created': '2026-01-22T22:06:45', 'last-modified': '2026-01-22T22:06:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.355755'}
2026-01-22 22:06:47,962 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-22 22:06:47,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89662019 passed
2026-01-22 22:06:47,962 - DEBUG - ====Verifying policy data for ctest-vn-89662019 in API_Server ======
2026-01-22 22:06:47,963 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 22:06:47,976 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268
2026-01-22 22:06:48,003 - DEBUG - Requesting: http://10.0.0.50:8082/project/387e50c3-3885-4286-86d6-37d939b234eb
2026-01-22 22:06:48,119 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecd9c4a6-0aa1-47da-809e-8485e528fd03
2026-01-22 22:06:48,142 - DEBUG - ==>Verifying data for policy with id: da438040-cd8e-4d35-b0b0-43a5b2f37046, fqn: ['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-policy-allow-all-65596691']
2026-01-22 22:06:48,142 - INFO - VN ctest-vn-89662019 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 22:06:48,143 - DEBUG - Verifying the vn in opserver
2026-01-22 22:06:48,143 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-89662019 virtual network link through opserver 10.0.0.50
2026-01-22 22:06:48,143 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-22 22:06:48,493 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-22 22:06:48,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-89662019', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-89662019?flat'}
2026-01-22 22:06:48,597 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-89662019 is found in opserver
2026-01-22 22:06:48,614 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 22:06:48,629 - DEBUG - VRF ids for VN ctest-vn-89662019: {}
2026-01-22 22:06:48,629 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 22:06:48,638 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268
2026-01-22 22:06:48,656 - DEBUG - Requesting: http://10.0.0.50:8082/project/387e50c3-3885-4286-86d6-37d939b234eb
2026-01-22 22:06:48,752 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a53c507-a8df-4e85-9f4e-478897e0e42d
2026-01-22 22:06:48,774 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a53c507-a8df-4e85-9f4e-478897e0e42d
2026-01-22 22:06:48,789 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e805823b-923a-4b6e-bca7-7585fb229da7
2026-01-22 22:06:48,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e805823b-923a-4b6e-bca7-7585fb229da7
2026-01-22 22:06:48,813 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3a4510bd-64d8-43b1-b884-03125572db72
2026-01-22 22:06:48,823 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 22:06:48,823 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a53c507-a8df-4e85-9f4e-478897e0e42d
2026-01-22 22:06:48,838 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e805823b-923a-4b6e-bca7-7585fb229da7
2026-01-22 22:06:48,857 - INFO - Verified VN network id 12 for VN 7a53c507-a8df-4e85-9f4e-478897e0e42d
2026-01-22 22:06:48,857 - INFO - Verifications in API Server for VN ctest-vn-11623310 passed
2026-01-22 22:06:48,857 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a53c507-a8df-4e85-9f4e-478897e0e42d
2026-01-22 22:06:48,873 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e805823b-923a-4b6e-bca7-7585fb229da7
2026-01-22 22:06:48,887 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e805823b-923a-4b6e-bca7-7585fb229da7
2026-01-22 22:06:48,900 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3a4510bd-64d8-43b1-b884-03125572db72
2026-01-22 22:06:48,917 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-11623310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68544663', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8814605532382842501', 'uuid-lslong': '11479191152203195437'}, 'enable': 'true', 'created': '2026-01-22T22:06:45', 'last-modified': '2026-01-22T22:06:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.056587'}
2026-01-22 22:06:48,925 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-22 22:06:48,925 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11623310 passed
2026-01-22 22:06:48,925 - DEBUG - ====Verifying policy data for ctest-vn-11623310 in API_Server ======
2026-01-22 22:06:48,926 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-22 22:06:48,933 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e35fd34d-c78d-40e5-9dc1-4c6e4ec0e268
2026-01-22 22:06:48,946 - DEBUG - Requesting: http://10.0.0.50:8082/project/387e50c3-3885-4286-86d6-37d939b234eb
2026-01-22 22:06:49,028 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a53c507-a8df-4e85-9f4e-478897e0e42d
2026-01-22 22:06:49,039 - DEBUG - ==>Verifying data for policy with id: da438040-cd8e-4d35-b0b0-43a5b2f37046, fqn: ['default-domain', 'ctest-TestBasicPolicy-68544663', 'ctest-policy-allow-all-65596691']
2026-01-22 22:06:49,039 - INFO - VN ctest-vn-11623310 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-22 22:06:49,039 - DEBUG - Verifying the vn in opserver
2026-01-22 22:06:49,040 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-11623310 virtual network link through opserver 10.0.0.50
2026-01-22 22:06:49,040 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-22 22:06:49,051 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-11623310', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-11623310?flat'}
2026-01-22 22:06:49,051 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68544663:ctest-vn-11623310 is found in opserver
2026-01-22 22:06:49,067 - DEBUG - Do not have enough data to verify VN in agent
2026-01-22 22:06:49,075 - DEBUG - VRF ids for VN ctest-vn-11623310: {}
2026-01-22 22:06:49,170 - DEBUG - Services list from nova: [