2026-02-07 14:38:27,320 - INFO - Domain Default found not creating
2026-02-07 14:38:27,468 - INFO - Project ctest-TestBasicPolicy-94108153 not found, creating it
2026-02-07 14:38:27,908 - INFO - Created Project:ctest-TestBasicPolicy-94108153, ID : 7cebfb0c-accc-4fd3-a99c-085b80cdc451
2026-02-07 14:38:29,311 - INFO - ================================================================================
2026-02-07 14:38:29,311 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-07 14:38:29,311 - 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-02-07 14:38:29,568 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-02-07 14:38:29,568 - INFO - Initial checks done. Running the testcase now
2026-02-07 14:38:29,568 - INFO -
2026-02-07 14:38:30,117 - DEBUG - Response for create_network : {'network': {'id': '99b722f5-7ed5-48b9-84b9-3075d921f7eb', 'name': 'ctest-vn-36891234', 'tenant_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'project_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-vn-36891234'], 'port_security_enabled': True, 'description': ''}}
2026-02-07 14:38:30,267 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b99d0472-98cb-40b6-b12b-210e4316c0a3', 'name': '', 'tenant_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'network_id': '99b722f5-7ed5-48b9-84b9-3075d921f7eb', 'ip_version': 4, 'cidr': '68.237.59.64/26', 'allocation_pools': [{'start': '68.237.59.66', 'end': '68.237.59.126'}], 'gateway_ip': '68.237.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.237.59.66', 'tags': [], 'project_id': '7cebfb0caccc4fd3a99c085b80cdc451'}}
2026-02-07 14:38:30,282 - INFO - Created VN ctest-vn-36891234
2026-02-07 14:38:30,334 - DEBUG - VN ctest-vn-36891234 UUID is 99b722f5-7ed5-48b9-84b9-3075d921f7eb
2026-02-07 14:38:30,635 - DEBUG - Response for create_network : {'network': {'id': '8718d7cb-8612-42d6-bee7-d73b228ca20c', 'name': 'ctest-vn-47503516', 'tenant_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'project_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-vn-47503516'], 'port_security_enabled': True, 'description': ''}}
2026-02-07 14:38:30,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '73f7b573-8de2-4c7f-a0ce-32b716fd4f04', 'name': '', 'tenant_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'network_id': '8718d7cb-8612-42d6-bee7-d73b228ca20c', 'ip_version': 4, 'cidr': '146.16.214.0/26', 'allocation_pools': [{'start': '146.16.214.2', 'end': '146.16.214.62'}], 'gateway_ip': '146.16.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.16.214.2', 'tags': [], 'project_id': '7cebfb0caccc4fd3a99c085b80cdc451'}}
2026-02-07 14:38:30,828 - INFO - Created VN ctest-vn-47503516
2026-02-07 14:38:30,882 - DEBUG - VN ctest-vn-47503516 UUID is 8718d7cb-8612-42d6-bee7-d73b228ca20c
2026-02-07 14:38:31,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-36891234, 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-94108153:ctest-vn-47503516, 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-02-07 14:38:31,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99b722f5-7ed5-48b9-84b9-3075d921f7eb', 'name': 'ctest-vn-36891234', 'tenant_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'project_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b99d0472-98cb-40b6-b12b-210e4316c0a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-vn-36891234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-policy-allow-all-13610414']], 'subnet_ipam': [{'subnet_cidr': '68.237.59.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-07 14:38:31,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8718d7cb-8612-42d6-bee7-d73b228ca20c', 'name': 'ctest-vn-47503516', 'tenant_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'project_id': '7cebfb0caccc4fd3a99c085b80cdc451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73f7b573-8de2-4c7f-a0ce-32b716fd4f04'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-vn-47503516'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-policy-allow-all-13610414']], 'subnet_ipam': [{'subnet_cidr': '146.16.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-07 14:38:31,703 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-07 14:38:32,003 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-07 14:38:32,032 - DEBUG - Requesting: http://10.0.0.33:8082/domain/16d106f2-9191-4525-b46b-62ed64c2c520
2026-02-07 14:38:32,042 - DEBUG - Requesting: http://10.0.0.33:8082/project/7cebfb0c-accc-4fd3-a99c-085b80cdc451
2026-02-07 14:38:32,113 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/99b722f5-7ed5-48b9-84b9-3075d921f7eb
2026-02-07 14:38:32,122 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/99b722f5-7ed5-48b9-84b9-3075d921f7eb
2026-02-07 14:38:32,130 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2fe90956-79ea-4352-bceb-7256bec401e7
2026-02-07 14:38:32,136 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2fe90956-79ea-4352-bceb-7256bec401e7
2026-02-07 14:38:32,141 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c872160a-e6b0-4dc7-b96e-c43b609cd0bf
2026-02-07 14:38:32,146 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-07 14:38:32,146 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/99b722f5-7ed5-48b9-84b9-3075d921f7eb
2026-02-07 14:38:32,153 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2fe90956-79ea-4352-bceb-7256bec401e7
2026-02-07 14:38:32,164 - INFO - Verified VN network id 12 for VN 99b722f5-7ed5-48b9-84b9-3075d921f7eb
2026-02-07 14:38:32,164 - INFO - Verifications in API Server for VN ctest-vn-36891234 passed
2026-02-07 14:38:32,164 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/99b722f5-7ed5-48b9-84b9-3075d921f7eb
2026-02-07 14:38:32,171 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2fe90956-79ea-4352-bceb-7256bec401e7
2026-02-07 14:38:32,177 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2fe90956-79ea-4352-bceb-7256bec401e7
2026-02-07 14:38:32,182 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c872160a-e6b0-4dc7-b96e-c43b609cd0bf
2026-02-07 14:38:32,191 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-36891234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94108153', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11076360246331263161', 'uuid-lslong': '9563728566410147819'}, 'enable': 'true', 'created': '2026-02-07T14:38:30', 'last-modified': '2026-02-07T14:38:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890850'}
2026-02-07 14:38:32,196 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-07 14:38:32,196 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36891234 passed
2026-02-07 14:38:32,196 - DEBUG - ====Verifying policy data for ctest-vn-36891234 in API_Server ======
2026-02-07 14:38:32,196 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-07 14:38:32,200 - DEBUG - Requesting: http://10.0.0.33:8082/domain/16d106f2-9191-4525-b46b-62ed64c2c520
2026-02-07 14:38:32,211 - DEBUG - Requesting: http://10.0.0.33:8082/project/7cebfb0c-accc-4fd3-a99c-085b80cdc451
2026-02-07 14:38:32,276 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/99b722f5-7ed5-48b9-84b9-3075d921f7eb
2026-02-07 14:38:32,284 - DEBUG - ==>Verifying data for policy with id: 86780c23-4dc7-4e70-99ce-ab894c40bc82, fqn: ['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-policy-allow-all-13610414']
2026-02-07 14:38:32,284 - INFO - VN ctest-vn-36891234 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-07 14:38:32,284 - DEBUG - Verifying the vn in opserver
2026-02-07 14:38:32,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-36891234 virtual network link through opserver 10.0.0.33
2026-02-07 14:38:32,284 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-07 14:38:32,574 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-07 14:38:32,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-36891234', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-36891234?flat'}
2026-02-07 14:38:32,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-36891234 is found in opserver
2026-02-07 14:38:32,636 - DEBUG - Do not have enough data to verify VN in agent
2026-02-07 14:38:32,639 - DEBUG - VRF ids for VN ctest-vn-36891234: {}
2026-02-07 14:38:32,639 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-07 14:38:32,644 - DEBUG - Requesting: http://10.0.0.33:8082/domain/16d106f2-9191-4525-b46b-62ed64c2c520
2026-02-07 14:38:32,654 - DEBUG - Requesting: http://10.0.0.33:8082/project/7cebfb0c-accc-4fd3-a99c-085b80cdc451
2026-02-07 14:38:32,724 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8718d7cb-8612-42d6-bee7-d73b228ca20c
2026-02-07 14:38:32,734 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8718d7cb-8612-42d6-bee7-d73b228ca20c
2026-02-07 14:38:32,744 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd3cd5e9-9f9e-4be8-8509-950894dbc859
2026-02-07 14:38:32,751 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd3cd5e9-9f9e-4be8-8509-950894dbc859
2026-02-07 14:38:32,758 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c9a08f46-06ca-4af6-82d0-db40944e80e2
2026-02-07 14:38:32,763 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-07 14:38:32,763 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8718d7cb-8612-42d6-bee7-d73b228ca20c
2026-02-07 14:38:32,771 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd3cd5e9-9f9e-4be8-8509-950894dbc859
2026-02-07 14:38:32,782 - INFO - Verified VN network id 13 for VN 8718d7cb-8612-42d6-bee7-d73b228ca20c
2026-02-07 14:38:32,782 - INFO - Verifications in API Server for VN ctest-vn-47503516 passed
2026-02-07 14:38:32,782 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8718d7cb-8612-42d6-bee7-d73b228ca20c
2026-02-07 14:38:32,789 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd3cd5e9-9f9e-4be8-8509-950894dbc859
2026-02-07 14:38:32,795 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/bd3cd5e9-9f9e-4be8-8509-950894dbc859
2026-02-07 14:38:32,801 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c9a08f46-06ca-4af6-82d0-db40944e80e2
2026-02-07 14:38:32,810 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-47503516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94108153', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9734767863689003734', 'uuid-lslong': '13756200235809153548'}, 'enable': 'true', 'created': '2026-02-07T14:38:30', 'last-modified': '2026-02-07T14:38:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.288636'}
2026-02-07 14:38:32,814 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-07 14:38:32,814 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47503516 passed
2026-02-07 14:38:32,814 - DEBUG - ====Verifying policy data for ctest-vn-47503516 in API_Server ======
2026-02-07 14:38:32,815 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-07 14:38:32,819 - DEBUG - Requesting: http://10.0.0.33:8082/domain/16d106f2-9191-4525-b46b-62ed64c2c520
2026-02-07 14:38:32,828 - DEBUG - Requesting: http://10.0.0.33:8082/project/7cebfb0c-accc-4fd3-a99c-085b80cdc451
2026-02-07 14:38:32,895 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8718d7cb-8612-42d6-bee7-d73b228ca20c
2026-02-07 14:38:32,903 - DEBUG - ==>Verifying data for policy with id: 86780c23-4dc7-4e70-99ce-ab894c40bc82, fqn: ['default-domain', 'ctest-TestBasicPolicy-94108153', 'ctest-policy-allow-all-13610414']
2026-02-07 14:38:32,903 - INFO - VN ctest-vn-47503516 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-07 14:38:32,903 - DEBUG - Verifying the vn in opserver
2026-02-07 14:38:32,903 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-47503516 virtual network link through opserver 10.0.0.33
2026-02-07 14:38:32,903 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-07 14:38:32,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-47503516', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-47503516?flat'}
2026-02-07 14:38:32,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94108153:ctest-vn-47503516 is found in opserver
2026-02-07 14:38:32,919 - DEBUG - Do not have enough data to verify VN in agent
2026-02-07 14:38:32,923 - DEBUG - VRF ids for VN ctest-vn-47503516: {}
2026-02-07 14:38:32,973 - DEBUG - Services list from nova: [