2025-04-22 11:27:31,823 - INFO - Domain Default found not creating
2025-04-22 11:27:31,955 - INFO - Project ctest-TestBasicPolicy-02651621 not found, creating it
2025-04-22 11:27:32,395 - INFO - Created Project:ctest-TestBasicPolicy-02651621, ID : 373af53c-3e47-4043-9a98-ad6b3461f9c1
2025-04-22 11:27:33,739 - INFO - ================================================================================
2025-04-22 11:27:33,739 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 11:27:33,739 - 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-04-22 11:27:34,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-04-22 11:27:34,000 - INFO - Initial checks done. Running the testcase now
2025-04-22 11:27:34,000 - INFO -
2025-04-22 11:27:34,539 - DEBUG - Response for create_network : {'network': {'id': '281610f8-3750-40a8-8f75-69eca9907ed3', 'name': 'ctest-vn-60716505', 'tenant_id': '373af53c3e4740439a98ad6b3461f9c1', 'project_id': '373af53c3e4740439a98ad6b3461f9c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-vn-60716505'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 11:27:34,693 - DEBUG - Response for create_subnet : {'subnet': {'id': '25e2e463-0ba1-4086-9820-c6f8a4942b39', 'name': '', 'tenant_id': '373af53c3e4740439a98ad6b3461f9c1', 'network_id': '281610f8-3750-40a8-8f75-69eca9907ed3', 'ip_version': 4, 'cidr': '170.60.240.128/26', 'allocation_pools': [{'start': '170.60.240.130', 'end': '170.60.240.190'}], 'gateway_ip': '170.60.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.60.240.130', 'tags': [], 'project_id': '373af53c3e4740439a98ad6b3461f9c1'}}
2025-04-22 11:27:34,710 - INFO - Created VN ctest-vn-60716505
2025-04-22 11:27:34,766 - DEBUG - VN ctest-vn-60716505 UUID is 281610f8-3750-40a8-8f75-69eca9907ed3
2025-04-22 11:27:35,091 - DEBUG - Response for create_network : {'network': {'id': '0af65cbf-de09-46d1-a5bb-6e10075f7a02', 'name': 'ctest-vn-38782431', 'tenant_id': '373af53c3e4740439a98ad6b3461f9c1', 'project_id': '373af53c3e4740439a98ad6b3461f9c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-vn-38782431'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 11:27:35,272 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5bfd8fc-0d8c-41f8-88f2-6ed7d2a597c6', 'name': '', 'tenant_id': '373af53c3e4740439a98ad6b3461f9c1', 'network_id': '0af65cbf-de09-46d1-a5bb-6e10075f7a02', 'ip_version': 4, 'cidr': '11.146.102.0/26', 'allocation_pools': [{'start': '11.146.102.2', 'end': '11.146.102.62'}], 'gateway_ip': '11.146.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.146.102.2', 'tags': [], 'project_id': '373af53c3e4740439a98ad6b3461f9c1'}}
2025-04-22 11:27:35,289 - INFO - Created VN ctest-vn-38782431
2025-04-22 11:27:35,342 - DEBUG - VN ctest-vn-38782431 UUID is 0af65cbf-de09-46d1-a5bb-6e10075f7a02
2025-04-22 11:27:35,494 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-60716505, 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-02651621:ctest-vn-38782431, 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-04-22 11:27:35,808 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '281610f8-3750-40a8-8f75-69eca9907ed3', 'name': 'ctest-vn-60716505', 'tenant_id': '373af53c3e4740439a98ad6b3461f9c1', 'project_id': '373af53c3e4740439a98ad6b3461f9c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25e2e463-0ba1-4086-9820-c6f8a4942b39'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-vn-60716505'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-policy-allow-all-41578841']], 'subnet_ipam': [{'subnet_cidr': '170.60.240.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 11:27:36,086 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0af65cbf-de09-46d1-a5bb-6e10075f7a02', 'name': 'ctest-vn-38782431', 'tenant_id': '373af53c3e4740439a98ad6b3461f9c1', 'project_id': '373af53c3e4740439a98ad6b3461f9c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5bfd8fc-0d8c-41f8-88f2-6ed7d2a597c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-vn-38782431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-policy-allow-all-41578841']], 'subnet_ipam': [{'subnet_cidr': '11.146.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 11:27:36,234 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 11:27:36,533 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 11:27:36,562 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f911907e-30fb-4f3c-aa83-6900c0ab1d9b
2025-04-22 11:27:36,576 - DEBUG - Requesting: http://10.0.0.33:8082/project/373af53c-3e47-4043-9a98-ad6b3461f9c1
2025-04-22 11:27:36,659 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/281610f8-3750-40a8-8f75-69eca9907ed3
2025-04-22 11:27:36,672 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/281610f8-3750-40a8-8f75-69eca9907ed3
2025-04-22 11:27:36,683 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ccf3046-3547-4ee6-9f87-68136fe431f4
2025-04-22 11:27:36,691 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ccf3046-3547-4ee6-9f87-68136fe431f4
2025-04-22 11:27:36,699 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8fca25f3-9196-4604-8e39-766915a4d0ff
2025-04-22 11:27:36,705 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 11:27:36,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/281610f8-3750-40a8-8f75-69eca9907ed3
2025-04-22 11:27:36,714 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ccf3046-3547-4ee6-9f87-68136fe431f4
2025-04-22 11:27:36,728 - INFO - Verified VN network id 8 for VN 281610f8-3750-40a8-8f75-69eca9907ed3
2025-04-22 11:27:36,728 - INFO - Verifications in API Server for VN ctest-vn-60716505 passed
2025-04-22 11:27:36,728 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/281610f8-3750-40a8-8f75-69eca9907ed3
2025-04-22 11:27:36,737 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ccf3046-3547-4ee6-9f87-68136fe431f4
2025-04-22 11:27:36,743 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6ccf3046-3547-4ee6-9f87-68136fe431f4
2025-04-22 11:27:36,750 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8fca25f3-9196-4604-8e39-766915a4d0ff
2025-04-22 11:27:36,762 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-60716505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02651621', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2888514869270692008', 'uuid-lslong': '10337284984876859091'}, 'enable': 'true', 'created': '2025-04-22T11:27:34', 'last-modified': '2025-04-22T11:27:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987028'}
2025-04-22 11:27:36,768 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 11:27:36,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60716505 passed
2025-04-22 11:27:36,768 - DEBUG - ====Verifying policy data for ctest-vn-60716505 in API_Server ======
2025-04-22 11:27:36,768 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 11:27:36,774 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f911907e-30fb-4f3c-aa83-6900c0ab1d9b
2025-04-22 11:27:36,784 - DEBUG - Requesting: http://10.0.0.33:8082/project/373af53c-3e47-4043-9a98-ad6b3461f9c1
2025-04-22 11:27:36,855 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/281610f8-3750-40a8-8f75-69eca9907ed3
2025-04-22 11:27:36,865 - DEBUG - ==>Verifying data for policy with id: 174359e5-a68f-4b3e-934b-9b948f49f7f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-policy-allow-all-41578841']
2025-04-22 11:27:36,865 - INFO - VN ctest-vn-60716505 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 11:27:36,865 - DEBUG - Verifying the vn in opserver
2025-04-22 11:27:36,865 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-60716505 virtual network link through opserver 10.0.0.33
2025-04-22 11:27:36,866 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-22 11:27:37,153 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-22 11:27:37,208 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-60716505', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-60716505?flat'}
2025-04-22 11:27:37,208 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-60716505 is found in opserver
2025-04-22 11:27:37,219 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 11:27:37,223 - DEBUG - VRF ids for VN ctest-vn-60716505: {}
2025-04-22 11:27:37,224 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 11:27:37,229 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f911907e-30fb-4f3c-aa83-6900c0ab1d9b
2025-04-22 11:27:37,240 - DEBUG - Requesting: http://10.0.0.33:8082/project/373af53c-3e47-4043-9a98-ad6b3461f9c1
2025-04-22 11:27:37,313 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0af65cbf-de09-46d1-a5bb-6e10075f7a02
2025-04-22 11:27:37,326 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0af65cbf-de09-46d1-a5bb-6e10075f7a02
2025-04-22 11:27:37,335 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91f94f38-23f4-4d1b-86da-46e7542930c9
2025-04-22 11:27:37,344 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91f94f38-23f4-4d1b-86da-46e7542930c9
2025-04-22 11:27:37,351 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0c12e683-efaf-49e0-ba14-db1823eece7d
2025-04-22 11:27:37,357 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 11:27:37,357 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0af65cbf-de09-46d1-a5bb-6e10075f7a02
2025-04-22 11:27:37,367 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91f94f38-23f4-4d1b-86da-46e7542930c9
2025-04-22 11:27:37,380 - INFO - Verified VN network id 9 for VN 0af65cbf-de09-46d1-a5bb-6e10075f7a02
2025-04-22 11:27:37,380 - INFO - Verifications in API Server for VN ctest-vn-38782431 passed
2025-04-22 11:27:37,380 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0af65cbf-de09-46d1-a5bb-6e10075f7a02
2025-04-22 11:27:37,389 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91f94f38-23f4-4d1b-86da-46e7542930c9
2025-04-22 11:27:37,396 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/91f94f38-23f4-4d1b-86da-46e7542930c9
2025-04-22 11:27:37,402 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0c12e683-efaf-49e0-ba14-db1823eece7d
2025-04-22 11:27:37,413 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-38782431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02651621', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '789920763783759569', 'uuid-lslong': '11942259852025231874'}, 'enable': 'true', 'created': '2025-04-22T11:27:35', 'last-modified': '2025-04-22T11:27:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399601'}
2025-04-22 11:27:37,419 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 11:27:37,419 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38782431 passed
2025-04-22 11:27:37,419 - DEBUG - ====Verifying policy data for ctest-vn-38782431 in API_Server ======
2025-04-22 11:27:37,419 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-04-22 11:27:37,424 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f911907e-30fb-4f3c-aa83-6900c0ab1d9b
2025-04-22 11:27:37,435 - DEBUG - Requesting: http://10.0.0.33:8082/project/373af53c-3e47-4043-9a98-ad6b3461f9c1
2025-04-22 11:27:37,505 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0af65cbf-de09-46d1-a5bb-6e10075f7a02
2025-04-22 11:27:37,515 - DEBUG - ==>Verifying data for policy with id: 174359e5-a68f-4b3e-934b-9b948f49f7f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-02651621', 'ctest-policy-allow-all-41578841']
2025-04-22 11:27:37,515 - INFO - VN ctest-vn-38782431 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 11:27:37,515 - DEBUG - Verifying the vn in opserver
2025-04-22 11:27:37,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-38782431 virtual network link through opserver 10.0.0.33
2025-04-22 11:27:37,515 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-04-22 11:27:37,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-38782431', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-38782431?flat'}
2025-04-22 11:27:37,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02651621:ctest-vn-38782431 is found in opserver
2025-04-22 11:27:37,536 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 11:27:37,540 - DEBUG - VRF ids for VN ctest-vn-38782431: {}
2025-04-22 11:27:37,595 - DEBUG - Services list from nova: [