2025-11-24 15:12:49,170 - INFO - Domain Default found not creating
2025-11-24 15:12:49,322 - INFO - Project ctest-TestBasicPolicy-79052792 not found, creating it
2025-11-24 15:12:49,750 - INFO - Created Project:ctest-TestBasicPolicy-79052792, ID : b65c1839-1920-43b9-9f17-ebff8a37c83c
2025-11-24 15:12:51,227 - INFO - ================================================================================
2025-11-24 15:12:51,227 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 15:12:51,227 - 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
2025-11-24 15:12:51,480 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0'}} with
2025-11-24 15:12:51,480 - INFO - Initial checks done. Running the testcase now
2025-11-24 15:12:51,481 - INFO -
2025-11-24 15:12:52,019 - DEBUG - Response for create_network : {'network': {'id': '8c2feeba-7166-4493-87ff-4247e2b6ca3d', 'name': 'ctest-vn-27818064', 'tenant_id': 'b65c1839192043b99f17ebff8a37c83c', 'project_id': 'b65c1839192043b99f17ebff8a37c83c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-vn-27818064'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 15:12:52,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '85b8e452-a52b-410c-8559-3854eb86344f', 'name': '', 'tenant_id': 'b65c1839192043b99f17ebff8a37c83c', 'network_id': '8c2feeba-7166-4493-87ff-4247e2b6ca3d', 'ip_version': 4, 'cidr': '192.219.223.64/26', 'allocation_pools': [{'start': '192.219.223.66', 'end': '192.219.223.126'}], 'gateway_ip': '192.219.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.219.223.66', 'tags': [], 'project_id': 'b65c1839192043b99f17ebff8a37c83c'}}
2025-11-24 15:12:52,200 - INFO - Created VN ctest-vn-27818064
2025-11-24 15:12:52,250 - DEBUG - VN ctest-vn-27818064 UUID is 8c2feeba-7166-4493-87ff-4247e2b6ca3d
2025-11-24 15:12:52,553 - DEBUG - Response for create_network : {'network': {'id': '46e486d8-4584-4f22-9047-f845322065e8', 'name': 'ctest-vn-15034460', 'tenant_id': 'b65c1839192043b99f17ebff8a37c83c', 'project_id': 'b65c1839192043b99f17ebff8a37c83c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-vn-15034460'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 15:12:52,701 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b827031e-cf25-420d-bd19-a09aa933ea3a', 'name': '', 'tenant_id': 'b65c1839192043b99f17ebff8a37c83c', 'network_id': '46e486d8-4584-4f22-9047-f845322065e8', 'ip_version': 4, 'cidr': '154.11.72.128/26', 'allocation_pools': [{'start': '154.11.72.130', 'end': '154.11.72.190'}], 'gateway_ip': '154.11.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.11.72.130', 'tags': [], 'project_id': 'b65c1839192043b99f17ebff8a37c83c'}}
2025-11-24 15:12:52,720 - INFO - Created VN ctest-vn-15034460
2025-11-24 15:12:52,774 - DEBUG - VN ctest-vn-15034460 UUID is 46e486d8-4584-4f22-9047-f845322065e8
2025-11-24 15:12:52,930 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-27818064, 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-79052792:ctest-vn-15034460, 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]
2025-11-24 15:12:53,222 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c2feeba-7166-4493-87ff-4247e2b6ca3d', 'name': 'ctest-vn-27818064', 'tenant_id': 'b65c1839192043b99f17ebff8a37c83c', 'project_id': 'b65c1839192043b99f17ebff8a37c83c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85b8e452-a52b-410c-8559-3854eb86344f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-vn-27818064'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-policy-allow-all-79628086']], 'subnet_ipam': [{'subnet_cidr': '192.219.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 15:12:53,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46e486d8-4584-4f22-9047-f845322065e8', 'name': 'ctest-vn-15034460', 'tenant_id': 'b65c1839192043b99f17ebff8a37c83c', 'project_id': 'b65c1839192043b99f17ebff8a37c83c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b827031e-cf25-420d-bd19-a09aa933ea3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-vn-15034460'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-policy-allow-all-79628086']], 'subnet_ipam': [{'subnet_cidr': '154.11.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 15:12:53,598 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-24 15:12:53,912 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-24 15:12:53,943 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4
2025-11-24 15:12:53,955 - DEBUG - Requesting: http://10.0.0.141:8082/project/b65c1839-1920-43b9-9f17-ebff8a37c83c
2025-11-24 15:12:54,026 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8c2feeba-7166-4493-87ff-4247e2b6ca3d
2025-11-24 15:12:54,037 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8c2feeba-7166-4493-87ff-4247e2b6ca3d
2025-11-24 15:12:54,046 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1f202470-6e77-4a05-85cd-8c6e888eacf8
2025-11-24 15:12:54,052 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1f202470-6e77-4a05-85cd-8c6e888eacf8
2025-11-24 15:12:54,059 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c3a7013c-d730-4ed3-b1df-175debb8a64e
2025-11-24 15:12:54,065 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 15:12:54,065 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8c2feeba-7166-4493-87ff-4247e2b6ca3d
2025-11-24 15:12:54,074 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1f202470-6e77-4a05-85cd-8c6e888eacf8
2025-11-24 15:12:54,088 - INFO - Verified VN network id 11 for VN 8c2feeba-7166-4493-87ff-4247e2b6ca3d
2025-11-24 15:12:54,088 - INFO - Verifications in API Server for VN ctest-vn-27818064 passed
2025-11-24 15:12:54,088 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8c2feeba-7166-4493-87ff-4247e2b6ca3d
2025-11-24 15:12:54,096 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1f202470-6e77-4a05-85cd-8c6e888eacf8
2025-11-24 15:12:54,103 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/1f202470-6e77-4a05-85cd-8c6e888eacf8
2025-11-24 15:12:54,110 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c3a7013c-d730-4ed3-b1df-175debb8a64e
2025-11-24 15:12:54,121 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-27818064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79052792', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10101554973749167251', 'uuid-lslong': '9799624190695230013'}, 'enable': 'true', 'created': '2025-11-24T15:12:51', 'last-modified': '2025-11-24T15:12:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924833'}
2025-11-24 15:12:54,127 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 15:12:54,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27818064 passed
2025-11-24 15:12:54,127 - DEBUG - ====Verifying policy data for ctest-vn-27818064 in API_Server ======
2025-11-24 15:12:54,127 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-24 15:12:54,132 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4
2025-11-24 15:12:54,143 - DEBUG - Requesting: http://10.0.0.141:8082/project/b65c1839-1920-43b9-9f17-ebff8a37c83c
2025-11-24 15:12:54,212 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8c2feeba-7166-4493-87ff-4247e2b6ca3d
2025-11-24 15:12:54,221 - DEBUG - ==>Verifying data for policy with id: 46d71dd5-1584-45ea-b401-36ca3520d87e, fqn: ['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-policy-allow-all-79628086']
2025-11-24 15:12:54,221 - INFO - VN ctest-vn-27818064 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 15:12:54,222 - DEBUG - Verifying the vn in opserver
2025-11-24 15:12:54,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-27818064 virtual network link through opserver 10.0.0.141
2025-11-24 15:12:54,222 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-24 15:12:54,514 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-24 15:12:54,575 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-27818064', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-27818064?flat'}
2025-11-24 15:12:54,575 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-27818064 is found in opserver
2025-11-24 15:12:54,583 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 15:12:54,587 - DEBUG - VRF ids for VN ctest-vn-27818064: {}
2025-11-24 15:12:54,588 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-24 15:12:54,592 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4
2025-11-24 15:12:54,603 - DEBUG - Requesting: http://10.0.0.141:8082/project/b65c1839-1920-43b9-9f17-ebff8a37c83c
2025-11-24 15:12:54,669 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46e486d8-4584-4f22-9047-f845322065e8
2025-11-24 15:12:54,680 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46e486d8-4584-4f22-9047-f845322065e8
2025-11-24 15:12:54,688 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b28c4cb-371a-44e4-be84-5b19ae21eb86
2025-11-24 15:12:54,694 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b28c4cb-371a-44e4-be84-5b19ae21eb86
2025-11-24 15:12:54,700 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e2adb661-ef12-49c4-823f-56841c796ea4
2025-11-24 15:12:54,706 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 15:12:54,707 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46e486d8-4584-4f22-9047-f845322065e8
2025-11-24 15:12:54,715 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b28c4cb-371a-44e4-be84-5b19ae21eb86
2025-11-24 15:12:54,731 - INFO - Verified VN network id 12 for VN 46e486d8-4584-4f22-9047-f845322065e8
2025-11-24 15:12:54,731 - INFO - Verifications in API Server for VN ctest-vn-15034460 passed
2025-11-24 15:12:54,731 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46e486d8-4584-4f22-9047-f845322065e8
2025-11-24 15:12:54,740 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b28c4cb-371a-44e4-be84-5b19ae21eb86
2025-11-24 15:12:54,746 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9b28c4cb-371a-44e4-be84-5b19ae21eb86
2025-11-24 15:12:54,752 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e2adb661-ef12-49c4-823f-56841c796ea4
2025-11-24 15:12:54,761 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-15034460', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79052792', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5108356140782341922', 'uuid-lslong': '10396551240885495272'}, 'enable': 'true', 'created': '2025-11-24T15:12:52', 'last-modified': '2025-11-24T15:12:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.339150'}
2025-11-24 15:12:54,767 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 15:12:54,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15034460 passed
2025-11-24 15:12:54,767 - DEBUG - ====Verifying policy data for ctest-vn-15034460 in API_Server ======
2025-11-24 15:12:54,767 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-11-24 15:12:54,772 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4
2025-11-24 15:12:54,781 - DEBUG - Requesting: http://10.0.0.141:8082/project/b65c1839-1920-43b9-9f17-ebff8a37c83c
2025-11-24 15:12:54,849 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46e486d8-4584-4f22-9047-f845322065e8
2025-11-24 15:12:54,857 - DEBUG - ==>Verifying data for policy with id: 46d71dd5-1584-45ea-b401-36ca3520d87e, fqn: ['default-domain', 'ctest-TestBasicPolicy-79052792', 'ctest-policy-allow-all-79628086']
2025-11-24 15:12:54,857 - INFO - VN ctest-vn-15034460 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 15:12:54,857 - DEBUG - Verifying the vn in opserver
2025-11-24 15:12:54,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-15034460 virtual network link through opserver 10.0.0.141
2025-11-24 15:12:54,858 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-11-24 15:12:54,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-15034460', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-15034460?flat'}
2025-11-24 15:12:54,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79052792:ctest-vn-15034460 is found in opserver
2025-11-24 15:12:54,875 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 15:12:54,878 - DEBUG - VRF ids for VN ctest-vn-15034460: {}
2025-11-24 15:12:54,933 - DEBUG - Services list from nova: [