2026-08-21 17:56:39,204 - INFO - Domain Default found not creating
2026-08-21 17:56:39,402 - INFO - Project ctest-TestBasicPolicy-23688497 not found, creating it
2026-08-21 17:56:39,958 - INFO - Created Project:ctest-TestBasicPolicy-23688497, ID : 707edabc-02e8-4009-915d-c66142184e06
2026-08-21 17:56:41,804 - INFO - ================================================================================
2026-08-21 17:56:41,804 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-21 17:56:41,804 - 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-21 17:56:42,072 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-08-21 17:56:42,072 - INFO - Initial checks done. Running the testcase now
2026-08-21 17:56:42,072 - INFO -
2026-08-21 17:56:42,789 - DEBUG - Response for create_network : {'network': {'id': '8481caeb-a437-4604-8cfc-39db9579ce3a', 'name': 'ctest-vn-30766504', 'tenant_id': '707edabc02e84009915dc66142184e06', 'project_id': '707edabc02e84009915dc66142184e06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-vn-30766504'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 17:56:43,036 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5a5db5e-2744-4d48-a92e-296cfa73184f', 'name': '', 'tenant_id': '707edabc02e84009915dc66142184e06', 'network_id': '8481caeb-a437-4604-8cfc-39db9579ce3a', 'ip_version': 4, 'cidr': '210.107.120.192/26', 'allocation_pools': [{'start': '210.107.120.194', 'end': '210.107.120.254'}], 'gateway_ip': '210.107.120.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.107.120.194', 'tags': [], 'project_id': '707edabc02e84009915dc66142184e06'}}
2026-08-21 17:56:43,058 - INFO - Created VN ctest-vn-30766504
2026-08-21 17:56:43,112 - DEBUG - VN ctest-vn-30766504 UUID is 8481caeb-a437-4604-8cfc-39db9579ce3a
2026-08-21 17:56:43,471 - DEBUG - Response for create_network : {'network': {'id': '8edc2efc-a6c5-49cd-bd40-c41c4bdf604d', 'name': 'ctest-vn-83268595', 'tenant_id': '707edabc02e84009915dc66142184e06', 'project_id': '707edabc02e84009915dc66142184e06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-vn-83268595'], 'port_security_enabled': True, 'description': ''}}
2026-08-21 17:56:43,707 - DEBUG - Response for create_subnet : {'subnet': {'id': 'baad4895-e0ad-47f5-989a-8bc6ce1c9eb1', 'name': '', 'tenant_id': '707edabc02e84009915dc66142184e06', 'network_id': '8edc2efc-a6c5-49cd-bd40-c41c4bdf604d', 'ip_version': 4, 'cidr': '26.234.59.0/26', 'allocation_pools': [{'start': '26.234.59.2', 'end': '26.234.59.62'}], 'gateway_ip': '26.234.59.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.234.59.2', 'tags': [], 'project_id': '707edabc02e84009915dc66142184e06'}}
2026-08-21 17:56:43,728 - INFO - Created VN ctest-vn-83268595
2026-08-21 17:56:43,784 - DEBUG - VN ctest-vn-83268595 UUID is 8edc2efc-a6c5-49cd-bd40-c41c4bdf604d
2026-08-21 17:56:43,935 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-30766504, 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-23688497:ctest-vn-83268595, 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-21 17:56:44,254 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8481caeb-a437-4604-8cfc-39db9579ce3a', 'name': 'ctest-vn-30766504', 'tenant_id': '707edabc02e84009915dc66142184e06', 'project_id': '707edabc02e84009915dc66142184e06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5a5db5e-2744-4d48-a92e-296cfa73184f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-vn-30766504'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-policy-allow-all-37322250']], 'subnet_ipam': [{'subnet_cidr': '210.107.120.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 17:56:44,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8edc2efc-a6c5-49cd-bd40-c41c4bdf604d', 'name': 'ctest-vn-83268595', 'tenant_id': '707edabc02e84009915dc66142184e06', 'project_id': '707edabc02e84009915dc66142184e06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['baad4895-e0ad-47f5-989a-8bc6ce1c9eb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-vn-83268595'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-policy-allow-all-37322250']], 'subnet_ipam': [{'subnet_cidr': '26.234.59.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-21 17:56:44,656 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-21 17:56:45,040 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-21 17:56:45,072 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed
2026-08-21 17:56:45,087 - DEBUG - Requesting: http://10.0.0.161:8082/project/707edabc-02e8-4009-915d-c66142184e06
2026-08-21 17:56:45,167 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8481caeb-a437-4604-8cfc-39db9579ce3a
2026-08-21 17:56:45,181 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8481caeb-a437-4604-8cfc-39db9579ce3a
2026-08-21 17:56:45,193 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7ea84000-aac9-4ae6-9dc4-743c95dc59be
2026-08-21 17:56:45,204 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7ea84000-aac9-4ae6-9dc4-743c95dc59be
2026-08-21 17:56:45,213 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/9313ade0-6577-419b-a305-dc2d3545d845
2026-08-21 17:56:45,223 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 17:56:45,223 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8481caeb-a437-4604-8cfc-39db9579ce3a
2026-08-21 17:56:45,233 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7ea84000-aac9-4ae6-9dc4-743c95dc59be
2026-08-21 17:56:45,250 - INFO - Verified VN network id 11 for VN 8481caeb-a437-4604-8cfc-39db9579ce3a
2026-08-21 17:56:45,250 - INFO - Verifications in API Server for VN ctest-vn-30766504 passed
2026-08-21 17:56:45,251 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8481caeb-a437-4604-8cfc-39db9579ce3a
2026-08-21 17:56:45,262 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7ea84000-aac9-4ae6-9dc4-743c95dc59be
2026-08-21 17:56:45,271 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7ea84000-aac9-4ae6-9dc4-743c95dc59be
2026-08-21 17:56:45,280 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/9313ade0-6577-419b-a305-dc2d3545d845
2026-08-21 17:56:45,296 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-30766504', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23688497', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9548135798423373316', 'uuid-lslong': '10159058474709405242'}, 'enable': 'true', 'created': '2026-08-21T17:56:42', 'last-modified': '2026-08-21T17:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066273'}
2026-08-21 17:56:45,305 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-21 17:56:45,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30766504 passed
2026-08-21 17:56:45,305 - DEBUG - ====Verifying policy data for ctest-vn-30766504 in API_Server ======
2026-08-21 17:56:45,305 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-21 17:56:45,313 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed
2026-08-21 17:56:45,327 - DEBUG - Requesting: http://10.0.0.161:8082/project/707edabc-02e8-4009-915d-c66142184e06
2026-08-21 17:56:45,416 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8481caeb-a437-4604-8cfc-39db9579ce3a
2026-08-21 17:56:45,432 - DEBUG - ==>Verifying data for policy with id: 4308734f-ac84-44ff-b022-d01ba9ee296a, fqn: ['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-policy-allow-all-37322250']
2026-08-21 17:56:45,432 - INFO - VN ctest-vn-30766504 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 17:56:45,432 - DEBUG - Verifying the vn in opserver
2026-08-21 17:56:45,432 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-30766504 virtual network link through opserver 10.0.0.161
2026-08-21 17:56:45,432 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-21 17:56:45,804 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-21 17:56:45,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-30766504', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-30766504?flat'}
2026-08-21 17:56:45,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-30766504 is found in opserver
2026-08-21 17:56:45,881 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 17:56:45,886 - DEBUG - VRF ids for VN ctest-vn-30766504: {}
2026-08-21 17:56:45,886 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-21 17:56:45,893 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed
2026-08-21 17:56:45,904 - DEBUG - Requesting: http://10.0.0.161:8082/project/707edabc-02e8-4009-915d-c66142184e06
2026-08-21 17:56:45,985 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8edc2efc-a6c5-49cd-bd40-c41c4bdf604d
2026-08-21 17:56:46,000 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8edc2efc-a6c5-49cd-bd40-c41c4bdf604d
2026-08-21 17:56:46,011 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/70c3cce6-e368-47aa-b734-e7c18a96f082
2026-08-21 17:56:46,020 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/70c3cce6-e368-47aa-b734-e7c18a96f082
2026-08-21 17:56:46,030 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/01f60199-287f-4d6a-a399-1964ae122c13
2026-08-21 17:56:46,037 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 17:56:46,038 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8edc2efc-a6c5-49cd-bd40-c41c4bdf604d
2026-08-21 17:56:46,049 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/70c3cce6-e368-47aa-b734-e7c18a96f082
2026-08-21 17:56:46,067 - INFO - Verified VN network id 12 for VN 8edc2efc-a6c5-49cd-bd40-c41c4bdf604d
2026-08-21 17:56:46,067 - INFO - Verifications in API Server for VN ctest-vn-83268595 passed
2026-08-21 17:56:46,067 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8edc2efc-a6c5-49cd-bd40-c41c4bdf604d
2026-08-21 17:56:46,078 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/70c3cce6-e368-47aa-b734-e7c18a96f082
2026-08-21 17:56:46,087 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/70c3cce6-e368-47aa-b734-e7c18a96f082
2026-08-21 17:56:46,095 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/01f60199-287f-4d6a-a399-1964ae122c13
2026-08-21 17:56:46,111 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-83268595', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23688497', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10294154510926694861', 'uuid-lslong': '13637115297488920653'}, 'enable': 'true', 'created': '2026-08-21T17:56:43', 'last-modified': '2026-08-21T17:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.606839'}
2026-08-21 17:56:46,118 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-21 17:56:46,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83268595 passed
2026-08-21 17:56:46,118 - DEBUG - ====Verifying policy data for ctest-vn-83268595 in API_Server ======
2026-08-21 17:56:46,118 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-21 17:56:46,125 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed
2026-08-21 17:56:46,137 - DEBUG - Requesting: http://10.0.0.161:8082/project/707edabc-02e8-4009-915d-c66142184e06
2026-08-21 17:56:46,218 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/8edc2efc-a6c5-49cd-bd40-c41c4bdf604d
2026-08-21 17:56:46,231 - DEBUG - ==>Verifying data for policy with id: 4308734f-ac84-44ff-b022-d01ba9ee296a, fqn: ['default-domain', 'ctest-TestBasicPolicy-23688497', 'ctest-policy-allow-all-37322250']
2026-08-21 17:56:46,231 - INFO - VN ctest-vn-83268595 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-21 17:56:46,231 - DEBUG - Verifying the vn in opserver
2026-08-21 17:56:46,231 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-83268595 virtual network link through opserver 10.0.0.161
2026-08-21 17:56:46,231 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-21 17:56:46,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-83268595', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-83268595?flat'}
2026-08-21 17:56:46,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23688497:ctest-vn-83268595 is found in opserver
2026-08-21 17:56:46,256 - DEBUG - Do not have enough data to verify VN in agent
2026-08-21 17:56:46,262 - DEBUG - VRF ids for VN ctest-vn-83268595: {}
2026-08-21 17:56:46,330 - DEBUG - Services list from nova: [