2025-09-25 10:12:20,382 - INFO - Domain Default found not creating
2025-09-25 10:12:20,544 - INFO - Project ctest-TestBasicPolicy-54474071 not found, creating it
2025-09-25 10:12:20,984 - INFO - Created Project:ctest-TestBasicPolicy-54474071, ID : f9e8642b-53f4-4849-b05c-0624886cbdc4
2025-09-25 10:12:22,348 - INFO - ================================================================================
2025-09-25 10:12:22,348 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-25 10:12:22,348 - 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-25 10:12:22,603 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-09-25 10:12:22,603 - INFO - Initial checks done. Running the testcase now
2025-09-25 10:12:22,603 - INFO -
2025-09-25 10:12:23,132 - DEBUG - Response for create_network : {'network': {'id': '5630bc2b-39a5-42f4-a71c-df300c40ba3b', 'name': 'ctest-vn-68956769', 'tenant_id': 'f9e8642b53f44849b05c0624886cbdc4', 'project_id': 'f9e8642b53f44849b05c0624886cbdc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-vn-68956769'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 10:12:23,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f27c8c9b-86bc-444e-bad3-f69abdbba8d2', 'name': '', 'tenant_id': 'f9e8642b53f44849b05c0624886cbdc4', 'network_id': '5630bc2b-39a5-42f4-a71c-df300c40ba3b', 'ip_version': 4, 'cidr': '203.192.95.64/26', 'allocation_pools': [{'start': '203.192.95.66', 'end': '203.192.95.126'}], 'gateway_ip': '203.192.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.192.95.66', 'tags': [], 'project_id': 'f9e8642b53f44849b05c0624886cbdc4'}}
2025-09-25 10:12:23,308 - INFO - Created VN ctest-vn-68956769
2025-09-25 10:12:23,361 - DEBUG - VN ctest-vn-68956769 UUID is 5630bc2b-39a5-42f4-a71c-df300c40ba3b
2025-09-25 10:12:23,664 - DEBUG - Response for create_network : {'network': {'id': '8b35942c-7d39-4213-bfe3-ba685a7a2ebf', 'name': 'ctest-vn-45341827', 'tenant_id': 'f9e8642b53f44849b05c0624886cbdc4', 'project_id': 'f9e8642b53f44849b05c0624886cbdc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-vn-45341827'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 10:12:23,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '4020e7a0-dbc8-4b3a-92c3-3647accc8f18', 'name': '', 'tenant_id': 'f9e8642b53f44849b05c0624886cbdc4', 'network_id': '8b35942c-7d39-4213-bfe3-ba685a7a2ebf', 'ip_version': 4, 'cidr': '70.84.202.0/26', 'allocation_pools': [{'start': '70.84.202.2', 'end': '70.84.202.62'}], 'gateway_ip': '70.84.202.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.84.202.2', 'tags': [], 'project_id': 'f9e8642b53f44849b05c0624886cbdc4'}}
2025-09-25 10:12:23,849 - INFO - Created VN ctest-vn-45341827
2025-09-25 10:12:23,901 - DEBUG - VN ctest-vn-45341827 UUID is 8b35942c-7d39-4213-bfe3-ba685a7a2ebf
2025-09-25 10:12:24,053 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-68956769, 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-54474071:ctest-vn-45341827, 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-25 10:12:24,357 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5630bc2b-39a5-42f4-a71c-df300c40ba3b', 'name': 'ctest-vn-68956769', 'tenant_id': 'f9e8642b53f44849b05c0624886cbdc4', 'project_id': 'f9e8642b53f44849b05c0624886cbdc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f27c8c9b-86bc-444e-bad3-f69abdbba8d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-vn-68956769'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-policy-allow-all-34656570']], 'subnet_ipam': [{'subnet_cidr': '203.192.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 10:12:24,623 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b35942c-7d39-4213-bfe3-ba685a7a2ebf', 'name': 'ctest-vn-45341827', 'tenant_id': 'f9e8642b53f44849b05c0624886cbdc4', 'project_id': 'f9e8642b53f44849b05c0624886cbdc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4020e7a0-dbc8-4b3a-92c3-3647accc8f18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-vn-45341827'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-policy-allow-all-34656570']], 'subnet_ipam': [{'subnet_cidr': '70.84.202.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 10:12:24,773 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 10:12:25,063 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 10:12:25,090 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5b8a266-7fc7-47e1-96de-23d2eaa95370
2025-09-25 10:12:25,103 - DEBUG - Requesting: http://10.0.0.50:8082/project/f9e8642b-53f4-4849-b05c-0624886cbdc4
2025-09-25 10:12:25,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5630bc2b-39a5-42f4-a71c-df300c40ba3b
2025-09-25 10:12:25,184 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5630bc2b-39a5-42f4-a71c-df300c40ba3b
2025-09-25 10:12:25,193 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c3202879-3a66-44a4-8eea-a7e97ee3bfa7
2025-09-25 10:12:25,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c3202879-3a66-44a4-8eea-a7e97ee3bfa7
2025-09-25 10:12:25,205 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d1e86081-1d2c-4ac3-986b-ab4d93e12cf8
2025-09-25 10:12:25,210 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 10:12:25,211 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5630bc2b-39a5-42f4-a71c-df300c40ba3b
2025-09-25 10:12:25,218 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c3202879-3a66-44a4-8eea-a7e97ee3bfa7
2025-09-25 10:12:25,230 - INFO - Verified VN network id 10 for VN 5630bc2b-39a5-42f4-a71c-df300c40ba3b
2025-09-25 10:12:25,230 - INFO - Verifications in API Server for VN ctest-vn-68956769 passed
2025-09-25 10:12:25,230 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5630bc2b-39a5-42f4-a71c-df300c40ba3b
2025-09-25 10:12:25,237 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c3202879-3a66-44a4-8eea-a7e97ee3bfa7
2025-09-25 10:12:25,243 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c3202879-3a66-44a4-8eea-a7e97ee3bfa7
2025-09-25 10:12:25,248 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d1e86081-1d2c-4ac3-986b-ab4d93e12cf8
2025-09-25 10:12:25,259 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-68956769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54474071', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6210670779980661492', 'uuid-lslong': '12041744901138856507'}, 'enable': 'true', 'created': '2025-09-25T10:12:23', 'last-modified': '2025-09-25T10:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922634'}
2025-09-25 10:12:25,266 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 10:12:25,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68956769 passed
2025-09-25 10:12:25,266 - DEBUG - ====Verifying policy data for ctest-vn-68956769 in API_Server ======
2025-09-25 10:12:25,266 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 10:12:25,274 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5b8a266-7fc7-47e1-96de-23d2eaa95370
2025-09-25 10:12:25,283 - DEBUG - Requesting: http://10.0.0.50:8082/project/f9e8642b-53f4-4849-b05c-0624886cbdc4
2025-09-25 10:12:25,351 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5630bc2b-39a5-42f4-a71c-df300c40ba3b
2025-09-25 10:12:25,359 - DEBUG - ==>Verifying data for policy with id: 5e0c66f1-c440-4ccf-b885-5e5eb4a58429, fqn: ['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-policy-allow-all-34656570']
2025-09-25 10:12:25,360 - INFO - VN ctest-vn-68956769 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 10:12:25,360 - DEBUG - Verifying the vn in opserver
2025-09-25 10:12:25,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-68956769 virtual network link through opserver 10.0.0.50
2025-09-25 10:12:25,360 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-25 10:12:25,647 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-25 10:12:25,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-68956769', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-68956769?flat'}
2025-09-25 10:12:25,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-68956769 is found in opserver
2025-09-25 10:12:25,706 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 10:12:25,710 - DEBUG - VRF ids for VN ctest-vn-68956769: {}
2025-09-25 10:12:25,710 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 10:12:25,715 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5b8a266-7fc7-47e1-96de-23d2eaa95370
2025-09-25 10:12:25,724 - DEBUG - Requesting: http://10.0.0.50:8082/project/f9e8642b-53f4-4849-b05c-0624886cbdc4
2025-09-25 10:12:25,796 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b35942c-7d39-4213-bfe3-ba685a7a2ebf
2025-09-25 10:12:25,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b35942c-7d39-4213-bfe3-ba685a7a2ebf
2025-09-25 10:12:25,815 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c410a25-8c01-4587-891b-1be3b3832120
2025-09-25 10:12:25,821 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c410a25-8c01-4587-891b-1be3b3832120
2025-09-25 10:12:25,827 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a3bf7bb0-4d1f-4865-9bce-5e63e76948a5
2025-09-25 10:12:25,833 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 10:12:25,833 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b35942c-7d39-4213-bfe3-ba685a7a2ebf
2025-09-25 10:12:25,841 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c410a25-8c01-4587-891b-1be3b3832120
2025-09-25 10:12:25,853 - INFO - Verified VN network id 11 for VN 8b35942c-7d39-4213-bfe3-ba685a7a2ebf
2025-09-25 10:12:25,853 - INFO - Verifications in API Server for VN ctest-vn-45341827 passed
2025-09-25 10:12:25,853 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b35942c-7d39-4213-bfe3-ba685a7a2ebf
2025-09-25 10:12:25,861 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c410a25-8c01-4587-891b-1be3b3832120
2025-09-25 10:12:25,866 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9c410a25-8c01-4587-891b-1be3b3832120
2025-09-25 10:12:25,872 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a3bf7bb0-4d1f-4865-9bce-5e63e76948a5
2025-09-25 10:12:25,882 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-45341827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54474071', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10031086663838024211', 'uuid-lslong': '13827100238314876607'}, 'enable': 'true', 'created': '2025-09-25T10:12:23', 'last-modified': '2025-09-25T10:12:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320624'}
2025-09-25 10:12:25,887 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 10:12:25,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45341827 passed
2025-09-25 10:12:25,887 - DEBUG - ====Verifying policy data for ctest-vn-45341827 in API_Server ======
2025-09-25 10:12:25,887 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 10:12:25,893 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5b8a266-7fc7-47e1-96de-23d2eaa95370
2025-09-25 10:12:25,908 - DEBUG - Requesting: http://10.0.0.50:8082/project/f9e8642b-53f4-4849-b05c-0624886cbdc4
2025-09-25 10:12:25,976 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8b35942c-7d39-4213-bfe3-ba685a7a2ebf
2025-09-25 10:12:25,985 - DEBUG - ==>Verifying data for policy with id: 5e0c66f1-c440-4ccf-b885-5e5eb4a58429, fqn: ['default-domain', 'ctest-TestBasicPolicy-54474071', 'ctest-policy-allow-all-34656570']
2025-09-25 10:12:25,985 - INFO - VN ctest-vn-45341827 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 10:12:25,985 - DEBUG - Verifying the vn in opserver
2025-09-25 10:12:25,985 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-45341827 virtual network link through opserver 10.0.0.50
2025-09-25 10:12:25,985 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-25 10:12:25,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-45341827', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-45341827?flat'}
2025-09-25 10:12:25,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54474071:ctest-vn-45341827 is found in opserver
2025-09-25 10:12:26,002 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 10:12:26,008 - DEBUG - VRF ids for VN ctest-vn-45341827: {}
2025-09-25 10:12:26,060 - DEBUG - Services list from nova: [