2025-05-22 15:57:46,798 - INFO - Domain Default found not creating
2025-05-22 15:57:46,948 - INFO - Project ctest-TestBasicPolicy-60438712 not found, creating it
2025-05-22 15:57:47,470 - INFO - Created Project:ctest-TestBasicPolicy-60438712, ID : 07de0475-37c9-47f2-b7f8-c579bdd3eb9c
2025-05-22 15:57:48,885 - INFO - ================================================================================
2025-05-22 15:57:48,885 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-22 15:57:48,885 - 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-05-22 15:57:49,146 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-05-22 15:57:49,146 - INFO - Initial checks done. Running the testcase now
2025-05-22 15:57:49,146 - INFO -
2025-05-22 15:57:49,736 - DEBUG - Response for create_network : {'network': {'id': '34e68086-ceaf-4a9a-b484-68ce137380bd', 'name': 'ctest-vn-36838225', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-36838225'], 'port_security_enabled': True, 'description': ''}}
2025-05-22 15:57:49,904 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a180759-a64c-4a14-8466-641c77d0690a', 'name': '', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'network_id': '34e68086-ceaf-4a9a-b484-68ce137380bd', 'ip_version': 4, 'cidr': '64.18.154.128/26', 'allocation_pools': [{'start': '64.18.154.130', 'end': '64.18.154.190'}], 'gateway_ip': '64.18.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.18.154.130', 'tags': [], 'project_id': '07de047537c947f2b7f8c579bdd3eb9c'}}
2025-05-22 15:57:49,925 - INFO - Created VN ctest-vn-36838225
2025-05-22 15:57:49,983 - DEBUG - VN ctest-vn-36838225 UUID is 34e68086-ceaf-4a9a-b484-68ce137380bd
2025-05-22 15:57:50,274 - DEBUG - Response for create_network : {'network': {'id': '64495d10-cc87-4c19-9397-3b52bea7cfa5', 'name': 'ctest-vn-72967035', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-72967035'], 'port_security_enabled': True, 'description': ''}}
2025-05-22 15:57:50,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '81f9141b-faa4-4620-bf6d-927cf993914c', 'name': '', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'network_id': '64495d10-cc87-4c19-9397-3b52bea7cfa5', 'ip_version': 4, 'cidr': '157.171.124.192/26', 'allocation_pools': [{'start': '157.171.124.194', 'end': '157.171.124.254'}], 'gateway_ip': '157.171.124.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.171.124.194', 'tags': [], 'project_id': '07de047537c947f2b7f8c579bdd3eb9c'}}
2025-05-22 15:57:50,448 - INFO - Created VN ctest-vn-72967035
2025-05-22 15:57:50,503 - DEBUG - VN ctest-vn-72967035 UUID is 64495d10-cc87-4c19-9397-3b52bea7cfa5
2025-05-22 15:57:50,655 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225, 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-60438712:ctest-vn-72967035, 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-05-22 15:57:50,966 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34e68086-ceaf-4a9a-b484-68ce137380bd', 'name': 'ctest-vn-36838225', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a180759-a64c-4a14-8466-641c77d0690a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-36838225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363']], 'subnet_ipam': [{'subnet_cidr': '64.18.154.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-22 15:57:51,206 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64495d10-cc87-4c19-9397-3b52bea7cfa5', 'name': 'ctest-vn-72967035', 'tenant_id': '07de047537c947f2b7f8c579bdd3eb9c', 'project_id': '07de047537c947f2b7f8c579bdd3eb9c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81f9141b-faa4-4620-bf6d-927cf993914c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-vn-72967035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363']], 'subnet_ipam': [{'subnet_cidr': '157.171.124.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-22 15:57:51,375 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 15:57:51,668 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 15:57:51,701 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b
2025-05-22 15:57:51,717 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c
2025-05-22 15:57:51,798 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd
2025-05-22 15:57:51,809 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd
2025-05-22 15:57:51,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae
2025-05-22 15:57:51,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae
2025-05-22 15:57:51,832 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/50a54b85-b78c-48b1-bb09-9b517febc29c
2025-05-22 15:57:51,840 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-22 15:57:51,840 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd
2025-05-22 15:57:51,852 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae
2025-05-22 15:57:51,870 - INFO - Verified VN network id 9 for VN 34e68086-ceaf-4a9a-b484-68ce137380bd
2025-05-22 15:57:51,870 - INFO - Verifications in API Server for VN ctest-vn-36838225 passed
2025-05-22 15:57:51,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd
2025-05-22 15:57:51,882 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae
2025-05-22 15:57:51,889 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c17764ea-5278-4f73-8d71-0e6b2aaf51ae
2025-05-22 15:57:51,895 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/50a54b85-b78c-48b1-bb09-9b517febc29c
2025-05-22 15:57:51,907 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60438712', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3811875451097270938', 'uuid-lslong': '13007636858051723453'}, 'enable': 'true', 'created': '2025-05-22T15:57:49', 'last-modified': '2025-05-22T15:57:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971425'}
2025-05-22 15:57:51,914 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-22 15:57:51,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36838225 passed
2025-05-22 15:57:51,914 - DEBUG - ====Verifying policy data for ctest-vn-36838225 in API_Server ======
2025-05-22 15:57:51,914 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 15:57:51,920 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b
2025-05-22 15:57:51,933 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c
2025-05-22 15:57:52,008 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/34e68086-ceaf-4a9a-b484-68ce137380bd
2025-05-22 15:57:52,018 - DEBUG - ==>Verifying data for policy with id: 951416d2-c98c-4acd-a804-310600ff6cc6, fqn: ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363']
2025-05-22 15:57:52,018 - INFO - VN ctest-vn-36838225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-22 15:57:52,018 - DEBUG - Verifying the vn in opserver
2025-05-22 15:57:52,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225 virtual network link through opserver 10.0.0.50
2025-05-22 15:57:52,018 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-22 15:57:52,313 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-22 15:57:52,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225?flat'}
2025-05-22 15:57:52,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-36838225 is found in opserver
2025-05-22 15:57:52,386 - DEBUG - Do not have enough data to verify VN in agent
2025-05-22 15:57:52,391 - DEBUG - VRF ids for VN ctest-vn-36838225: {}
2025-05-22 15:57:52,391 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 15:57:52,396 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b
2025-05-22 15:57:52,409 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c
2025-05-22 15:57:52,486 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5
2025-05-22 15:57:52,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5
2025-05-22 15:57:52,507 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300
2025-05-22 15:57:52,514 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300
2025-05-22 15:57:52,521 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7a00da65-59c6-4f6a-95bd-2b66cc2a459e
2025-05-22 15:57:52,527 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-22 15:57:52,528 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5
2025-05-22 15:57:52,538 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300
2025-05-22 15:57:52,553 - INFO - Verified VN network id 10 for VN 64495d10-cc87-4c19-9397-3b52bea7cfa5
2025-05-22 15:57:52,553 - INFO - Verifications in API Server for VN ctest-vn-72967035 passed
2025-05-22 15:57:52,553 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5
2025-05-22 15:57:52,563 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300
2025-05-22 15:57:52,571 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16edf0ee-84c0-4e50-b4ac-103894962300
2025-05-22 15:57:52,579 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7a00da65-59c6-4f6a-95bd-2b66cc2a459e
2025-05-22 15:57:52,591 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60438712', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7226409403824950297', 'uuid-lslong': '10635034271630741413'}, 'enable': 'true', 'created': '2025-05-22T15:57:50', 'last-modified': '2025-05-22T15:57:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405863'}
2025-05-22 15:57:52,597 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-22 15:57:52,597 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72967035 passed
2025-05-22 15:57:52,598 - DEBUG - ====Verifying policy data for ctest-vn-72967035 in API_Server ======
2025-05-22 15:57:52,598 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-22 15:57:52,603 - DEBUG - Requesting: http://10.0.0.50:8082/domain/827cab08-2d80-48e6-a969-89c23bdcf71b
2025-05-22 15:57:52,615 - DEBUG - Requesting: http://10.0.0.50:8082/project/07de0475-37c9-47f2-b7f8-c579bdd3eb9c
2025-05-22 15:57:52,690 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64495d10-cc87-4c19-9397-3b52bea7cfa5
2025-05-22 15:57:52,700 - DEBUG - ==>Verifying data for policy with id: 951416d2-c98c-4acd-a804-310600ff6cc6, fqn: ['default-domain', 'ctest-TestBasicPolicy-60438712', 'ctest-policy-allow-all-27557363']
2025-05-22 15:57:52,700 - INFO - VN ctest-vn-72967035 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-22 15:57:52,700 - DEBUG - Verifying the vn in opserver
2025-05-22 15:57:52,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035 virtual network link through opserver 10.0.0.50
2025-05-22 15:57:52,700 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-22 15:57:52,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035?flat'}
2025-05-22 15:57:52,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60438712:ctest-vn-72967035 is found in opserver
2025-05-22 15:57:52,722 - DEBUG - Do not have enough data to verify VN in agent
2025-05-22 15:57:52,728 - DEBUG - VRF ids for VN ctest-vn-72967035: {}
2025-05-22 15:57:52,781 - DEBUG - Services list from nova: [