2025-07-24 02:37:16,597 - INFO - Domain Default found not creating
2025-07-24 02:37:16,733 - INFO - Project ctest-TestBasicPolicy-96269702 not found, creating it
2025-07-24 02:37:17,167 - INFO - Created Project:ctest-TestBasicPolicy-96269702, ID : 4af03d29-4d86-44fb-8ae1-58c494c1e73e
2025-07-24 02:37:18,528 - INFO - ================================================================================
2025-07-24 02:37:18,528 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-24 02:37:18,528 - 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-07-24 02:37:18,782 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.241': '0'}} with
2025-07-24 02:37:18,782 - INFO - Initial checks done. Running the testcase now
2025-07-24 02:37:18,782 - INFO -
2025-07-24 02:37:19,308 - DEBUG - Response for create_network : {'network': {'id': '637c796f-f0cf-41ab-967f-a6cf633c21eb', 'name': 'ctest-vn-48157322', 'tenant_id': '4af03d294d8644fb8ae158c494c1e73e', 'project_id': '4af03d294d8644fb8ae158c494c1e73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-vn-48157322'], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:37:19,457 - DEBUG - Response for create_subnet : {'subnet': {'id': '105fe82a-7f7f-415b-9b34-aaa501f991cd', 'name': '', 'tenant_id': '4af03d294d8644fb8ae158c494c1e73e', 'network_id': '637c796f-f0cf-41ab-967f-a6cf633c21eb', 'ip_version': 4, 'cidr': '156.113.147.0/26', 'allocation_pools': [{'start': '156.113.147.2', 'end': '156.113.147.62'}], 'gateway_ip': '156.113.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.113.147.2', 'tags': [], 'project_id': '4af03d294d8644fb8ae158c494c1e73e'}}
2025-07-24 02:37:19,472 - INFO - Created VN ctest-vn-48157322
2025-07-24 02:37:19,527 - DEBUG - VN ctest-vn-48157322 UUID is 637c796f-f0cf-41ab-967f-a6cf633c21eb
2025-07-24 02:37:19,853 - DEBUG - Response for create_network : {'network': {'id': 'b855482f-1126-4ae1-b317-bd7f35244ec0', 'name': 'ctest-vn-31767429', 'tenant_id': '4af03d294d8644fb8ae158c494c1e73e', 'project_id': '4af03d294d8644fb8ae158c494c1e73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-vn-31767429'], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:37:20,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '12e287d5-a05c-4651-9992-513fb900bd04', 'name': '', 'tenant_id': '4af03d294d8644fb8ae158c494c1e73e', 'network_id': 'b855482f-1126-4ae1-b317-bd7f35244ec0', 'ip_version': 4, 'cidr': '66.156.120.128/26', 'allocation_pools': [{'start': '66.156.120.130', 'end': '66.156.120.190'}], 'gateway_ip': '66.156.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.156.120.130', 'tags': [], 'project_id': '4af03d294d8644fb8ae158c494c1e73e'}}
2025-07-24 02:37:20,080 - INFO - Created VN ctest-vn-31767429
2025-07-24 02:37:20,131 - DEBUG - VN ctest-vn-31767429 UUID is b855482f-1126-4ae1-b317-bd7f35244ec0
2025-07-24 02:37:20,279 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-48157322, 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-96269702:ctest-vn-31767429, 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-07-24 02:37:20,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '637c796f-f0cf-41ab-967f-a6cf633c21eb', 'name': 'ctest-vn-48157322', 'tenant_id': '4af03d294d8644fb8ae158c494c1e73e', 'project_id': '4af03d294d8644fb8ae158c494c1e73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['105fe82a-7f7f-415b-9b34-aaa501f991cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-vn-48157322'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-policy-allow-all-23270051']], 'subnet_ipam': [{'subnet_cidr': '156.113.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:37:20,809 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b855482f-1126-4ae1-b317-bd7f35244ec0', 'name': 'ctest-vn-31767429', 'tenant_id': '4af03d294d8644fb8ae158c494c1e73e', 'project_id': '4af03d294d8644fb8ae158c494c1e73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12e287d5-a05c-4651-9992-513fb900bd04'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-vn-31767429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-policy-allow-all-23270051']], 'subnet_ipam': [{'subnet_cidr': '66.156.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-24 02:37:20,979 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-24 02:37:21,270 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-24 02:37:21,295 - DEBUG - Requesting: http://10.0.0.27:8082/domain/46efb883-2df5-47ea-8c88-1a68427bfb38
2025-07-24 02:37:21,307 - DEBUG - Requesting: http://10.0.0.27:8082/project/4af03d29-4d86-44fb-8ae1-58c494c1e73e
2025-07-24 02:37:21,378 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/637c796f-f0cf-41ab-967f-a6cf633c21eb
2025-07-24 02:37:21,390 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/637c796f-f0cf-41ab-967f-a6cf633c21eb
2025-07-24 02:37:21,399 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/53c20e17-eee6-4005-bd39-ee5f1005c440
2025-07-24 02:37:21,406 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/53c20e17-eee6-4005-bd39-ee5f1005c440
2025-07-24 02:37:21,413 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9ff41475-6c19-4258-b683-ce842504ab81
2025-07-24 02:37:21,419 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-24 02:37:21,419 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/637c796f-f0cf-41ab-967f-a6cf633c21eb
2025-07-24 02:37:21,428 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/53c20e17-eee6-4005-bd39-ee5f1005c440
2025-07-24 02:37:21,440 - INFO - Verified VN network id 12 for VN 637c796f-f0cf-41ab-967f-a6cf633c21eb
2025-07-24 02:37:21,440 - INFO - Verifications in API Server for VN ctest-vn-48157322 passed
2025-07-24 02:37:21,440 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/637c796f-f0cf-41ab-967f-a6cf633c21eb
2025-07-24 02:37:21,448 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/53c20e17-eee6-4005-bd39-ee5f1005c440
2025-07-24 02:37:21,455 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/53c20e17-eee6-4005-bd39-ee5f1005c440
2025-07-24 02:37:21,462 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9ff41475-6c19-4258-b683-ce842504ab81
2025-07-24 02:37:21,474 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-48157322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96269702', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7168738228555432363', 'uuid-lslong': '10844569837384770027'}, 'enable': 'true', 'created': '2025-07-24T02:37:19', 'last-modified': '2025-07-24T02:37:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931616'}
2025-07-24 02:37:21,480 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-24 02:37:21,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48157322 passed
2025-07-24 02:37:21,481 - DEBUG - ====Verifying policy data for ctest-vn-48157322 in API_Server ======
2025-07-24 02:37:21,481 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-24 02:37:21,486 - DEBUG - Requesting: http://10.0.0.27:8082/domain/46efb883-2df5-47ea-8c88-1a68427bfb38
2025-07-24 02:37:21,497 - DEBUG - Requesting: http://10.0.0.27:8082/project/4af03d29-4d86-44fb-8ae1-58c494c1e73e
2025-07-24 02:37:21,564 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/637c796f-f0cf-41ab-967f-a6cf633c21eb
2025-07-24 02:37:21,573 - DEBUG - ==>Verifying data for policy with id: b5f23b29-c685-404a-83d0-d896962a5826, fqn: ['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-policy-allow-all-23270051']
2025-07-24 02:37:21,573 - INFO - VN ctest-vn-48157322 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-24 02:37:21,573 - DEBUG - Verifying the vn in opserver
2025-07-24 02:37:21,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-48157322 virtual network link through opserver 10.0.0.27
2025-07-24 02:37:21,574 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-24 02:37:21,863 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-24 02:37:21,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-48157322', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-48157322?flat'}
2025-07-24 02:37:21,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-48157322 is found in opserver
2025-07-24 02:37:21,922 - DEBUG - Do not have enough data to verify VN in agent
2025-07-24 02:37:21,926 - DEBUG - VRF ids for VN ctest-vn-48157322: {}
2025-07-24 02:37:21,926 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-24 02:37:21,931 - DEBUG - Requesting: http://10.0.0.27:8082/domain/46efb883-2df5-47ea-8c88-1a68427bfb38
2025-07-24 02:37:21,942 - DEBUG - Requesting: http://10.0.0.27:8082/project/4af03d29-4d86-44fb-8ae1-58c494c1e73e
2025-07-24 02:37:22,013 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b855482f-1126-4ae1-b317-bd7f35244ec0
2025-07-24 02:37:22,024 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b855482f-1126-4ae1-b317-bd7f35244ec0
2025-07-24 02:37:22,032 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8b1fb921-b239-4e4c-ba76-d220a63351e3
2025-07-24 02:37:22,039 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8b1fb921-b239-4e4c-ba76-d220a63351e3
2025-07-24 02:37:22,044 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b7808cda-e7f8-49f6-8156-7a6cd0313629
2025-07-24 02:37:22,050 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-24 02:37:22,050 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b855482f-1126-4ae1-b317-bd7f35244ec0
2025-07-24 02:37:22,058 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8b1fb921-b239-4e4c-ba76-d220a63351e3
2025-07-24 02:37:22,071 - INFO - Verified VN network id 13 for VN b855482f-1126-4ae1-b317-bd7f35244ec0
2025-07-24 02:37:22,071 - INFO - Verifications in API Server for VN ctest-vn-31767429 passed
2025-07-24 02:37:22,071 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b855482f-1126-4ae1-b317-bd7f35244ec0
2025-07-24 02:37:22,080 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8b1fb921-b239-4e4c-ba76-d220a63351e3
2025-07-24 02:37:22,086 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8b1fb921-b239-4e4c-ba76-d220a63351e3
2025-07-24 02:37:22,092 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b7808cda-e7f8-49f6-8156-7a6cd0313629
2025-07-24 02:37:22,103 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-31767429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96269702', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13282602042987530977', 'uuid-lslong': '12904991611303513792'}, 'enable': 'true', 'created': '2025-07-24T02:37:19', 'last-modified': '2025-07-24T02:37:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.317572'}
2025-07-24 02:37:22,109 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-24 02:37:22,110 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31767429 passed
2025-07-24 02:37:22,110 - DEBUG - ====Verifying policy data for ctest-vn-31767429 in API_Server ======
2025-07-24 02:37:22,110 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-07-24 02:37:22,115 - DEBUG - Requesting: http://10.0.0.27:8082/domain/46efb883-2df5-47ea-8c88-1a68427bfb38
2025-07-24 02:37:22,125 - DEBUG - Requesting: http://10.0.0.27:8082/project/4af03d29-4d86-44fb-8ae1-58c494c1e73e
2025-07-24 02:37:22,196 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b855482f-1126-4ae1-b317-bd7f35244ec0
2025-07-24 02:37:22,205 - DEBUG - ==>Verifying data for policy with id: b5f23b29-c685-404a-83d0-d896962a5826, fqn: ['default-domain', 'ctest-TestBasicPolicy-96269702', 'ctest-policy-allow-all-23270051']
2025-07-24 02:37:22,205 - INFO - VN ctest-vn-31767429 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-24 02:37:22,205 - DEBUG - Verifying the vn in opserver
2025-07-24 02:37:22,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-31767429 virtual network link through opserver 10.0.0.27
2025-07-24 02:37:22,205 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-07-24 02:37:22,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-31767429', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-31767429?flat'}
2025-07-24 02:37:22,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96269702:ctest-vn-31767429 is found in opserver
2025-07-24 02:37:22,225 - DEBUG - Do not have enough data to verify VN in agent
2025-07-24 02:37:22,230 - DEBUG - VRF ids for VN ctest-vn-31767429: {}
2025-07-24 02:37:22,282 - DEBUG - Services list from nova: [