2025-09-29 18:17:53,355 - INFO - Domain Default found not creating
2025-09-29 18:17:53,521 - INFO - Project ctest-TestBasicPolicy-99949383 not found, creating it
2025-09-29 18:17:53,956 - INFO - Created Project:ctest-TestBasicPolicy-99949383, ID : 3e76009f-fffe-49d5-aabb-597921a68132
2025-09-29 18:17:55,497 - INFO - ================================================================================
2025-09-29 18:17:55,497 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-29 18:17:55,497 - 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-09-29 18:17:55,761 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-29 18:17:55,761 - INFO - Initial checks done. Running the testcase now
2025-09-29 18:17:55,761 - INFO -
2025-09-29 18:17:56,349 - DEBUG - Response for create_network : {'network': {'id': '560495a5-8d8d-4dac-b937-ab73542d27b7', 'name': 'ctest-vn-39965249', 'tenant_id': '3e76009ffffe49d5aabb597921a68132', 'project_id': '3e76009ffffe49d5aabb597921a68132', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-vn-39965249'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 18:17:56,566 - DEBUG - Response for create_subnet : {'subnet': {'id': '22215dba-7eec-40ca-b1b3-86eb65fd0548', 'name': '', 'tenant_id': '3e76009ffffe49d5aabb597921a68132', 'network_id': '560495a5-8d8d-4dac-b937-ab73542d27b7', 'ip_version': 4, 'cidr': '49.164.95.128/26', 'allocation_pools': [{'start': '49.164.95.130', 'end': '49.164.95.190'}], 'gateway_ip': '49.164.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.164.95.130', 'tags': [], 'project_id': '3e76009ffffe49d5aabb597921a68132'}}
2025-09-29 18:17:56,584 - INFO - Created VN ctest-vn-39965249
2025-09-29 18:17:56,635 - DEBUG - VN ctest-vn-39965249 UUID is 560495a5-8d8d-4dac-b937-ab73542d27b7
2025-09-29 18:17:56,925 - DEBUG - Response for create_network : {'network': {'id': '15661703-1c4d-4394-af34-cc4b425875c8', 'name': 'ctest-vn-25891020', 'tenant_id': '3e76009ffffe49d5aabb597921a68132', 'project_id': '3e76009ffffe49d5aabb597921a68132', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-vn-25891020'], 'port_security_enabled': True, 'description': ''}}
2025-09-29 18:17:57,100 - DEBUG - Response for create_subnet : {'subnet': {'id': '8882798d-2af3-401b-ba96-307203f829e2', 'name': '', 'tenant_id': '3e76009ffffe49d5aabb597921a68132', 'network_id': '15661703-1c4d-4394-af34-cc4b425875c8', 'ip_version': 4, 'cidr': '200.24.133.64/26', 'allocation_pools': [{'start': '200.24.133.66', 'end': '200.24.133.126'}], 'gateway_ip': '200.24.133.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.24.133.66', 'tags': [], 'project_id': '3e76009ffffe49d5aabb597921a68132'}}
2025-09-29 18:17:57,117 - INFO - Created VN ctest-vn-25891020
2025-09-29 18:17:57,171 - DEBUG - VN ctest-vn-25891020 UUID is 15661703-1c4d-4394-af34-cc4b425875c8
2025-09-29 18:17:57,296 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-39965249, 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-99949383:ctest-vn-25891020, 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-09-29 18:17:57,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '560495a5-8d8d-4dac-b937-ab73542d27b7', 'name': 'ctest-vn-39965249', 'tenant_id': '3e76009ffffe49d5aabb597921a68132', 'project_id': '3e76009ffffe49d5aabb597921a68132', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22215dba-7eec-40ca-b1b3-86eb65fd0548'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-vn-39965249'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-policy-allow-all-18172998']], 'subnet_ipam': [{'subnet_cidr': '49.164.95.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 18:17:57,883 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15661703-1c4d-4394-af34-cc4b425875c8', 'name': 'ctest-vn-25891020', 'tenant_id': '3e76009ffffe49d5aabb597921a68132', 'project_id': '3e76009ffffe49d5aabb597921a68132', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8882798d-2af3-401b-ba96-307203f829e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-vn-25891020'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-policy-allow-all-18172998']], 'subnet_ipam': [{'subnet_cidr': '200.24.133.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-29 18:17:58,043 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 18:17:58,382 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 18:17:58,410 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd
2025-09-29 18:17:58,423 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e76009f-fffe-49d5-aabb-597921a68132
2025-09-29 18:17:58,497 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/560495a5-8d8d-4dac-b937-ab73542d27b7
2025-09-29 18:17:58,508 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/560495a5-8d8d-4dac-b937-ab73542d27b7
2025-09-29 18:17:58,517 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83aa4bdf-7a21-4c0f-8298-e6a5e69beabd
2025-09-29 18:17:58,523 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83aa4bdf-7a21-4c0f-8298-e6a5e69beabd
2025-09-29 18:17:58,529 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e1b8e6f0-fb75-47fa-b264-c6195b89a430
2025-09-29 18:17:58,535 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 18:17:58,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/560495a5-8d8d-4dac-b937-ab73542d27b7
2025-09-29 18:17:58,543 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83aa4bdf-7a21-4c0f-8298-e6a5e69beabd
2025-09-29 18:17:58,556 - INFO - Verified VN network id 11 for VN 560495a5-8d8d-4dac-b937-ab73542d27b7
2025-09-29 18:17:58,556 - INFO - Verifications in API Server for VN ctest-vn-39965249 passed
2025-09-29 18:17:58,556 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/560495a5-8d8d-4dac-b937-ab73542d27b7
2025-09-29 18:17:58,565 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83aa4bdf-7a21-4c0f-8298-e6a5e69beabd
2025-09-29 18:17:58,571 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83aa4bdf-7a21-4c0f-8298-e6a5e69beabd
2025-09-29 18:17:58,577 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e1b8e6f0-fb75-47fa-b264-c6195b89a430
2025-09-29 18:17:58,589 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-39965249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99949383', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6198243525445635500', 'uuid-lslong': '13346324532557588407'}, 'enable': 'true', 'created': '2025-09-29T18:17:56', 'last-modified': '2025-09-29T18:17:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003491'}
2025-09-29 18:17:58,595 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-29 18:17:58,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39965249 passed
2025-09-29 18:17:58,595 - DEBUG - ====Verifying policy data for ctest-vn-39965249 in API_Server ======
2025-09-29 18:17:58,596 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 18:17:58,600 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd
2025-09-29 18:17:58,611 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e76009f-fffe-49d5-aabb-597921a68132
2025-09-29 18:17:58,681 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/560495a5-8d8d-4dac-b937-ab73542d27b7
2025-09-29 18:17:58,690 - DEBUG - ==>Verifying data for policy with id: 4b85b56f-fd2f-409e-ac36-3033f7a61130, fqn: ['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-policy-allow-all-18172998']
2025-09-29 18:17:58,690 - INFO - VN ctest-vn-39965249 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 18:17:58,690 - DEBUG - Verifying the vn in opserver
2025-09-29 18:17:58,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-39965249 virtual network link through opserver 10.0.0.254
2025-09-29 18:17:58,690 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-29 18:17:59,025 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-29 18:17:59,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-39965249', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-39965249?flat'}
2025-09-29 18:17:59,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-39965249 is found in opserver
2025-09-29 18:17:59,090 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 18:17:59,095 - DEBUG - VRF ids for VN ctest-vn-39965249: {}
2025-09-29 18:17:59,095 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 18:17:59,100 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd
2025-09-29 18:17:59,111 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e76009f-fffe-49d5-aabb-597921a68132
2025-09-29 18:17:59,187 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15661703-1c4d-4394-af34-cc4b425875c8
2025-09-29 18:17:59,198 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15661703-1c4d-4394-af34-cc4b425875c8
2025-09-29 18:17:59,206 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c945752-a4db-496e-9458-97282401c1a2
2025-09-29 18:17:59,212 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c945752-a4db-496e-9458-97282401c1a2
2025-09-29 18:17:59,218 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/009e3dce-de06-4639-9b7e-f9630ae86979
2025-09-29 18:17:59,225 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 18:17:59,225 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15661703-1c4d-4394-af34-cc4b425875c8
2025-09-29 18:17:59,234 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c945752-a4db-496e-9458-97282401c1a2
2025-09-29 18:17:59,246 - INFO - Verified VN network id 12 for VN 15661703-1c4d-4394-af34-cc4b425875c8
2025-09-29 18:17:59,246 - INFO - Verifications in API Server for VN ctest-vn-25891020 passed
2025-09-29 18:17:59,246 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15661703-1c4d-4394-af34-cc4b425875c8
2025-09-29 18:17:59,255 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c945752-a4db-496e-9458-97282401c1a2
2025-09-29 18:17:59,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c945752-a4db-496e-9458-97282401c1a2
2025-09-29 18:17:59,266 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/009e3dce-de06-4639-9b7e-f9630ae86979
2025-09-29 18:17:59,277 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-25891020', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99949383', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1541945224548139924', 'uuid-lslong': '12624940279034049992'}, 'enable': 'true', 'created': '2025-09-29T18:17:56', 'last-modified': '2025-09-29T18:17:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.458290'}
2025-09-29 18:17:59,283 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-29 18:17:59,284 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25891020 passed
2025-09-29 18:17:59,284 - DEBUG - ====Verifying policy data for ctest-vn-25891020 in API_Server ======
2025-09-29 18:17:59,284 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-29 18:17:59,289 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd
2025-09-29 18:17:59,299 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e76009f-fffe-49d5-aabb-597921a68132
2025-09-29 18:17:59,371 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15661703-1c4d-4394-af34-cc4b425875c8
2025-09-29 18:17:59,383 - DEBUG - ==>Verifying data for policy with id: 4b85b56f-fd2f-409e-ac36-3033f7a61130, fqn: ['default-domain', 'ctest-TestBasicPolicy-99949383', 'ctest-policy-allow-all-18172998']
2025-09-29 18:17:59,383 - INFO - VN ctest-vn-25891020 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-29 18:17:59,383 - DEBUG - Verifying the vn in opserver
2025-09-29 18:17:59,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-25891020 virtual network link through opserver 10.0.0.254
2025-09-29 18:17:59,384 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-29 18:17:59,393 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-25891020', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-25891020?flat'}
2025-09-29 18:17:59,393 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99949383:ctest-vn-25891020 is found in opserver
2025-09-29 18:17:59,402 - DEBUG - Do not have enough data to verify VN in agent
2025-09-29 18:17:59,407 - DEBUG - VRF ids for VN ctest-vn-25891020: {}
2025-09-29 18:17:59,470 - DEBUG - Services list from nova: [