2026-04-30 08:49:30,198 - INFO - Domain Default found not creating
2026-04-30 08:49:30,357 - INFO - Project ctest-TestBasicPolicy-17052297 not found, creating it
2026-04-30 08:49:30,813 - INFO - Created Project:ctest-TestBasicPolicy-17052297, ID : 14926f06-5283-4936-96f7-71692730e989
2026-04-30 08:49:32,264 - INFO - ================================================================================
2026-04-30 08:49:32,264 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-30 08:49:32,265 - 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-04-30 08:49:32,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2026-04-30 08:49:32,519 - INFO - Initial checks done. Running the testcase now
2026-04-30 08:49:32,519 - INFO -
2026-04-30 08:49:33,057 - DEBUG - Response for create_network : {'network': {'id': '74e1a27e-64bb-48c2-a7a9-af67da08e2a1', 'name': 'ctest-vn-66884014', 'tenant_id': '14926f065283493696f771692730e989', 'project_id': '14926f065283493696f771692730e989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-vn-66884014'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 08:49:33,231 - DEBUG - Response for create_subnet : {'subnet': {'id': '22b143bd-8e95-4302-b4b4-8016b6618671', 'name': '', 'tenant_id': '14926f065283493696f771692730e989', 'network_id': '74e1a27e-64bb-48c2-a7a9-af67da08e2a1', 'ip_version': 4, 'cidr': '148.250.3.192/26', 'allocation_pools': [{'start': '148.250.3.194', 'end': '148.250.3.254'}], 'gateway_ip': '148.250.3.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.250.3.194', 'tags': [], 'project_id': '14926f065283493696f771692730e989'}}
2026-04-30 08:49:33,248 - INFO - Created VN ctest-vn-66884014
2026-04-30 08:49:33,302 - DEBUG - VN ctest-vn-66884014 UUID is 74e1a27e-64bb-48c2-a7a9-af67da08e2a1
2026-04-30 08:49:33,614 - DEBUG - Response for create_network : {'network': {'id': '2018d3c1-2dfa-420b-b69a-00fd54f5e6fe', 'name': 'ctest-vn-60876724', 'tenant_id': '14926f065283493696f771692730e989', 'project_id': '14926f065283493696f771692730e989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-vn-60876724'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 08:49:33,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9c02133-ce3d-493b-a004-48dfe340cb53', 'name': '', 'tenant_id': '14926f065283493696f771692730e989', 'network_id': '2018d3c1-2dfa-420b-b69a-00fd54f5e6fe', 'ip_version': 4, 'cidr': '203.167.18.64/26', 'allocation_pools': [{'start': '203.167.18.66', 'end': '203.167.18.126'}], 'gateway_ip': '203.167.18.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.167.18.66', 'tags': [], 'project_id': '14926f065283493696f771692730e989'}}
2026-04-30 08:49:33,777 - INFO - Created VN ctest-vn-60876724
2026-04-30 08:49:33,827 - DEBUG - VN ctest-vn-60876724 UUID is 2018d3c1-2dfa-420b-b69a-00fd54f5e6fe
2026-04-30 08:49:33,978 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-66884014, 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-17052297:ctest-vn-60876724, 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-04-30 08:49:34,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74e1a27e-64bb-48c2-a7a9-af67da08e2a1', 'name': 'ctest-vn-66884014', 'tenant_id': '14926f065283493696f771692730e989', 'project_id': '14926f065283493696f771692730e989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22b143bd-8e95-4302-b4b4-8016b6618671'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-vn-66884014'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-policy-allow-all-45179151']], 'subnet_ipam': [{'subnet_cidr': '148.250.3.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 08:49:34,502 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2018d3c1-2dfa-420b-b69a-00fd54f5e6fe', 'name': 'ctest-vn-60876724', 'tenant_id': '14926f065283493696f771692730e989', 'project_id': '14926f065283493696f771692730e989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9c02133-ce3d-493b-a004-48dfe340cb53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-vn-60876724'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-policy-allow-all-45179151']], 'subnet_ipam': [{'subnet_cidr': '203.167.18.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 08:49:34,663 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-30 08:49:34,954 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-30 08:49:34,983 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419
2026-04-30 08:49:34,995 - DEBUG - Requesting: http://10.0.0.141:8082/project/14926f06-5283-4936-96f7-71692730e989
2026-04-30 08:49:35,064 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74e1a27e-64bb-48c2-a7a9-af67da08e2a1
2026-04-30 08:49:35,075 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74e1a27e-64bb-48c2-a7a9-af67da08e2a1
2026-04-30 08:49:35,085 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ffdae0b4-e484-4332-87da-1dbb2c399d48
2026-04-30 08:49:35,092 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ffdae0b4-e484-4332-87da-1dbb2c399d48
2026-04-30 08:49:35,099 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ceec1a70-782b-4038-8719-717821cee8bd
2026-04-30 08:49:35,106 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 08:49:35,106 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74e1a27e-64bb-48c2-a7a9-af67da08e2a1
2026-04-30 08:49:35,116 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ffdae0b4-e484-4332-87da-1dbb2c399d48
2026-04-30 08:49:35,130 - INFO - Verified VN network id 11 for VN 74e1a27e-64bb-48c2-a7a9-af67da08e2a1
2026-04-30 08:49:35,130 - INFO - Verifications in API Server for VN ctest-vn-66884014 passed
2026-04-30 08:49:35,130 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74e1a27e-64bb-48c2-a7a9-af67da08e2a1
2026-04-30 08:49:35,140 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ffdae0b4-e484-4332-87da-1dbb2c399d48
2026-04-30 08:49:35,147 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ffdae0b4-e484-4332-87da-1dbb2c399d48
2026-04-30 08:49:35,154 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ceec1a70-782b-4038-8719-717821cee8bd
2026-04-30 08:49:35,168 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-66884014', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17052297', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8422191441899112642', 'uuid-lslong': '12081380335972573857'}, 'enable': 'true', 'created': '2026-04-30T08:49:33', 'last-modified': '2026-04-30T08:49:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921906'}
2026-04-30 08:49:35,174 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 08:49:35,174 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66884014 passed
2026-04-30 08:49:35,174 - DEBUG - ====Verifying policy data for ctest-vn-66884014 in API_Server ======
2026-04-30 08:49:35,174 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-30 08:49:35,180 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419
2026-04-30 08:49:35,191 - DEBUG - Requesting: http://10.0.0.141:8082/project/14926f06-5283-4936-96f7-71692730e989
2026-04-30 08:49:35,255 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/74e1a27e-64bb-48c2-a7a9-af67da08e2a1
2026-04-30 08:49:35,263 - DEBUG - ==>Verifying data for policy with id: f2a3e113-a89d-4aef-861c-a3213c49ce0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-policy-allow-all-45179151']
2026-04-30 08:49:35,263 - INFO - VN ctest-vn-66884014 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 08:49:35,263 - DEBUG - Verifying the vn in opserver
2026-04-30 08:49:35,263 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-66884014 virtual network link through opserver 10.0.0.141
2026-04-30 08:49:35,264 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-30 08:49:35,553 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-30 08:49:35,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-66884014', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-66884014?flat'}
2026-04-30 08:49:35,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-66884014 is found in opserver
2026-04-30 08:49:35,620 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 08:49:35,624 - DEBUG - VRF ids for VN ctest-vn-66884014: {}
2026-04-30 08:49:35,624 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-30 08:49:35,631 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419
2026-04-30 08:49:35,640 - DEBUG - Requesting: http://10.0.0.141:8082/project/14926f06-5283-4936-96f7-71692730e989
2026-04-30 08:49:35,711 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2018d3c1-2dfa-420b-b69a-00fd54f5e6fe
2026-04-30 08:49:35,721 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2018d3c1-2dfa-420b-b69a-00fd54f5e6fe
2026-04-30 08:49:35,729 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5382748-9a11-4132-b3d2-9a3d85ea840f
2026-04-30 08:49:35,736 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5382748-9a11-4132-b3d2-9a3d85ea840f
2026-04-30 08:49:35,742 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ad2a6181-56a7-4272-965f-38f51cb913da
2026-04-30 08:49:35,747 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 08:49:35,747 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2018d3c1-2dfa-420b-b69a-00fd54f5e6fe
2026-04-30 08:49:35,755 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5382748-9a11-4132-b3d2-9a3d85ea840f
2026-04-30 08:49:35,769 - INFO - Verified VN network id 12 for VN 2018d3c1-2dfa-420b-b69a-00fd54f5e6fe
2026-04-30 08:49:35,769 - INFO - Verifications in API Server for VN ctest-vn-60876724 passed
2026-04-30 08:49:35,769 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2018d3c1-2dfa-420b-b69a-00fd54f5e6fe
2026-04-30 08:49:35,778 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5382748-9a11-4132-b3d2-9a3d85ea840f
2026-04-30 08:49:35,784 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e5382748-9a11-4132-b3d2-9a3d85ea840f
2026-04-30 08:49:35,790 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ad2a6181-56a7-4272-965f-38f51cb913da
2026-04-30 08:49:35,801 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-60876724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17052297', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2312831235308274187', 'uuid-lslong': '13157830349368452862'}, 'enable': 'true', 'created': '2026-04-30T08:49:33', 'last-modified': '2026-04-30T08:49:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.325029'}
2026-04-30 08:49:35,809 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 08:49:35,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60876724 passed
2026-04-30 08:49:35,809 - DEBUG - ====Verifying policy data for ctest-vn-60876724 in API_Server ======
2026-04-30 08:49:35,809 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-30 08:49:35,814 - DEBUG - Requesting: http://10.0.0.141:8082/domain/3c3b964b-15ea-41d3-8ed5-71c6292fb419
2026-04-30 08:49:35,824 - DEBUG - Requesting: http://10.0.0.141:8082/project/14926f06-5283-4936-96f7-71692730e989
2026-04-30 08:49:35,892 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2018d3c1-2dfa-420b-b69a-00fd54f5e6fe
2026-04-30 08:49:35,900 - DEBUG - ==>Verifying data for policy with id: f2a3e113-a89d-4aef-861c-a3213c49ce0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-17052297', 'ctest-policy-allow-all-45179151']
2026-04-30 08:49:35,900 - INFO - VN ctest-vn-60876724 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 08:49:35,900 - DEBUG - Verifying the vn in opserver
2026-04-30 08:49:35,900 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-60876724 virtual network link through opserver 10.0.0.141
2026-04-30 08:49:35,900 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-30 08:49:35,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-60876724', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-60876724?flat'}
2026-04-30 08:49:35,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17052297:ctest-vn-60876724 is found in opserver
2026-04-30 08:49:35,917 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 08:49:35,920 - DEBUG - VRF ids for VN ctest-vn-60876724: {}
2026-04-30 08:49:35,971 - DEBUG - Services list from nova: [