2025-07-31 02:22:22,878 - INFO - Domain Default found not creating
2025-07-31 02:22:23,019 - INFO - Project ctest-TestBasicPolicy-02755920 not found, creating it
2025-07-31 02:22:23,470 - INFO - Created Project:ctest-TestBasicPolicy-02755920, ID : 1ed48e6c-57c7-4e80-a631-b9b2718c719f
2025-07-31 02:22:24,859 - INFO - ================================================================================
2025-07-31 02:22:24,859 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-31 02:22:24,859 - 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-31 02:22:25,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-31 02:22:25,120 - INFO - Initial checks done. Running the testcase now
2025-07-31 02:22:25,120 - INFO -
2025-07-31 02:22:25,652 - DEBUG - Response for create_network : {'network': {'id': '86b65d3a-7d34-48ea-a50c-f815370e19dd', 'name': 'ctest-vn-60678262', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-60678262'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:22:25,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f00cbac-438e-417f-8ec2-0cae52923201', 'name': '', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'network_id': '86b65d3a-7d34-48ea-a50c-f815370e19dd', 'ip_version': 4, 'cidr': '24.255.1.128/26', 'allocation_pools': [{'start': '24.255.1.130', 'end': '24.255.1.190'}], 'gateway_ip': '24.255.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.255.1.130', 'tags': [], 'project_id': '1ed48e6c57c74e80a631b9b2718c719f'}}
2025-07-31 02:22:25,870 - INFO - Created VN ctest-vn-60678262
2025-07-31 02:22:25,923 - DEBUG - VN ctest-vn-60678262 UUID is 86b65d3a-7d34-48ea-a50c-f815370e19dd
2025-07-31 02:22:26,205 - DEBUG - Response for create_network : {'network': {'id': 'a65d3b6b-ba70-46f0-85c7-57044bc87c8c', 'name': 'ctest-vn-82235459', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-82235459'], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:22:26,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '3569f88a-f83e-4116-9a5d-8ccf478f72a0', 'name': '', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'network_id': 'a65d3b6b-ba70-46f0-85c7-57044bc87c8c', 'ip_version': 4, 'cidr': '154.60.74.128/26', 'allocation_pools': [{'start': '154.60.74.130', 'end': '154.60.74.190'}], 'gateway_ip': '154.60.74.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.60.74.130', 'tags': [], 'project_id': '1ed48e6c57c74e80a631b9b2718c719f'}}
2025-07-31 02:22:26,379 - INFO - Created VN ctest-vn-82235459
2025-07-31 02:22:26,431 - DEBUG - VN ctest-vn-82235459 UUID is a65d3b6b-ba70-46f0-85c7-57044bc87c8c
2025-07-31 02:22:26,583 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262, 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-02755920:ctest-vn-82235459, 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-31 02:22:26,877 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86b65d3a-7d34-48ea-a50c-f815370e19dd', 'name': 'ctest-vn-60678262', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f00cbac-438e-417f-8ec2-0cae52923201'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-60678262'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847']], 'subnet_ipam': [{'subnet_cidr': '24.255.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:22:27,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a65d3b6b-ba70-46f0-85c7-57044bc87c8c', 'name': 'ctest-vn-82235459', 'tenant_id': '1ed48e6c57c74e80a631b9b2718c719f', 'project_id': '1ed48e6c57c74e80a631b9b2718c719f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3569f88a-f83e-4116-9a5d-8ccf478f72a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-vn-82235459'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847']], 'subnet_ipam': [{'subnet_cidr': '154.60.74.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-31 02:22:27,255 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-31 02:22:27,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-31 02:22:27,585 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b
2025-07-31 02:22:27,597 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f
2025-07-31 02:22:27,673 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd
2025-07-31 02:22:27,685 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd
2025-07-31 02:22:27,695 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b
2025-07-31 02:22:27,703 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b
2025-07-31 02:22:27,709 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d92b0eea-8c3f-4432-a4a1-26278bca0abd
2025-07-31 02:22:27,715 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 02:22:27,715 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd
2025-07-31 02:22:27,724 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b
2025-07-31 02:22:27,736 - INFO - Verified VN network id 11 for VN 86b65d3a-7d34-48ea-a50c-f815370e19dd
2025-07-31 02:22:27,736 - INFO - Verifications in API Server for VN ctest-vn-60678262 passed
2025-07-31 02:22:27,737 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd
2025-07-31 02:22:27,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b
2025-07-31 02:22:27,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/35a6e40f-4d5d-4c4c-a8dd-9f9b1da7ef9b
2025-07-31 02:22:27,761 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d92b0eea-8c3f-4432-a4a1-26278bca0abd
2025-07-31 02:22:27,773 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02755920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9707048552633747690', 'uuid-lslong': '11893153485980309981'}, 'enable': 'true', 'created': '2025-07-31T02:22:25', 'last-modified': '2025-07-31T02:22:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919219'}
2025-07-31 02:22:27,779 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-31 02:22:27,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60678262 passed
2025-07-31 02:22:27,779 - DEBUG - ====Verifying policy data for ctest-vn-60678262 in API_Server ======
2025-07-31 02:22:27,779 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-31 02:22:27,785 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b
2025-07-31 02:22:27,796 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f
2025-07-31 02:22:27,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86b65d3a-7d34-48ea-a50c-f815370e19dd
2025-07-31 02:22:27,875 - DEBUG - ==>Verifying data for policy with id: 673d82a5-0fde-4cc7-90b1-3480cb5e36b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847']
2025-07-31 02:22:27,875 - INFO - VN ctest-vn-60678262 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 02:22:27,876 - DEBUG - Verifying the vn in opserver
2025-07-31 02:22:27,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262 virtual network link through opserver 10.0.0.254
2025-07-31 02:22:27,876 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-31 02:22:28,165 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-31 02:22:28,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262?flat'}
2025-07-31 02:22:28,217 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-60678262 is found in opserver
2025-07-31 02:22:28,228 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 02:22:28,233 - DEBUG - VRF ids for VN ctest-vn-60678262: {}
2025-07-31 02:22:28,233 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-31 02:22:28,239 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b
2025-07-31 02:22:28,250 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f
2025-07-31 02:22:28,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c
2025-07-31 02:22:28,334 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c
2025-07-31 02:22:28,344 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678
2025-07-31 02:22:28,351 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678
2025-07-31 02:22:28,358 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f80f669b-baf1-416f-b7b8-06e98e9b11e6
2025-07-31 02:22:28,364 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 02:22:28,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c
2025-07-31 02:22:28,373 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678
2025-07-31 02:22:28,386 - INFO - Verified VN network id 12 for VN a65d3b6b-ba70-46f0-85c7-57044bc87c8c
2025-07-31 02:22:28,387 - INFO - Verifications in API Server for VN ctest-vn-82235459 passed
2025-07-31 02:22:28,387 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c
2025-07-31 02:22:28,397 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678
2025-07-31 02:22:28,403 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e3820cfe-9b8a-4aa0-a393-f248270f5678
2025-07-31 02:22:28,410 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f80f669b-baf1-416f-b7b8-06e98e9b11e6
2025-07-31 02:22:28,423 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02755920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11987803117005588208', 'uuid-lslong': '9639769203372752012'}, 'enable': 'true', 'created': '2025-07-31T02:22:26', 'last-modified': '2025-07-31T02:22:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.332794'}
2025-07-31 02:22:28,429 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-31 02:22:28,430 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82235459 passed
2025-07-31 02:22:28,430 - DEBUG - ====Verifying policy data for ctest-vn-82235459 in API_Server ======
2025-07-31 02:22:28,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-31 02:22:28,435 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7c781461-8e55-4dfa-9cdf-42892b481a4b
2025-07-31 02:22:28,447 - DEBUG - Requesting: http://10.0.0.254:8082/project/1ed48e6c-57c7-4e80-a631-b9b2718c719f
2025-07-31 02:22:28,515 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a65d3b6b-ba70-46f0-85c7-57044bc87c8c
2025-07-31 02:22:28,524 - DEBUG - ==>Verifying data for policy with id: 673d82a5-0fde-4cc7-90b1-3480cb5e36b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02755920', 'ctest-policy-allow-all-47650847']
2025-07-31 02:22:28,524 - INFO - VN ctest-vn-82235459 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-31 02:22:28,524 - DEBUG - Verifying the vn in opserver
2025-07-31 02:22:28,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459 virtual network link through opserver 10.0.0.254
2025-07-31 02:22:28,524 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-31 02:22:28,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459?flat'}
2025-07-31 02:22:28,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02755920:ctest-vn-82235459 is found in opserver
2025-07-31 02:22:28,544 - DEBUG - Do not have enough data to verify VN in agent
2025-07-31 02:22:28,549 - DEBUG - VRF ids for VN ctest-vn-82235459: {}
2025-07-31 02:22:28,599 - DEBUG - Services list from nova: [