2024-10-29 11:16:28,553 - INFO - Domain Default found not creating
2024-10-29 11:16:28,737 - INFO - Project ctest-TestBasicPolicy-61035929 not found, creating it
2024-10-29 11:16:29,238 - INFO - Created Project:ctest-TestBasicPolicy-61035929, ID : 7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66
2024-10-29 11:16:30,843 - INFO - ================================================================================
2024-10-29 11:16:30,844 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-29 11:16:30,845 - 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
2024-10-29 11:16:31,110 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.5': '0'}} with
2024-10-29 11:16:31,110 - INFO - Initial checks done. Running the testcase now
2024-10-29 11:16:31,110 - INFO -
2024-10-29 11:16:31,769 - DEBUG - Response for create_network : {'network': {'id': '4049bdfb-20b4-4f79-910e-74de6fe43c6a', 'name': 'ctest-vn-15436115', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-15436115'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:16:32,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '980d5b9e-ddc5-4b17-9e83-0327580666f0', 'name': '', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'network_id': '4049bdfb-20b4-4f79-910e-74de6fe43c6a', 'ip_version': 4, 'cidr': '116.106.87.64/26', 'allocation_pools': [{'start': '116.106.87.66', 'end': '116.106.87.126'}], 'gateway_ip': '116.106.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.106.87.66', 'tags': [], 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66'}}
2024-10-29 11:16:32,026 - INFO - Created VN ctest-vn-15436115
2024-10-29 11:16:32,086 - DEBUG - VN ctest-vn-15436115 UUID is 4049bdfb-20b4-4f79-910e-74de6fe43c6a
2024-10-29 11:16:32,405 - DEBUG - Response for create_network : {'network': {'id': '3484d6fa-d3a9-4abd-8aca-2543d867586c', 'name': 'ctest-vn-94829662', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-94829662'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:16:32,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ac1071b-d3cc-4e39-9b8c-74278ef51d5c', 'name': '', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'network_id': '3484d6fa-d3a9-4abd-8aca-2543d867586c', 'ip_version': 4, 'cidr': '125.51.22.128/26', 'allocation_pools': [{'start': '125.51.22.130', 'end': '125.51.22.190'}], 'gateway_ip': '125.51.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.51.22.130', 'tags': [], 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66'}}
2024-10-29 11:16:32,608 - INFO - Created VN ctest-vn-94829662
2024-10-29 11:16:32,665 - DEBUG - VN ctest-vn-94829662 UUID is 3484d6fa-d3a9-4abd-8aca-2543d867586c
2024-10-29 11:16:32,796 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115, 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-61035929:ctest-vn-94829662, 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]
2024-10-29 11:16:33,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4049bdfb-20b4-4f79-910e-74de6fe43c6a', 'name': 'ctest-vn-15436115', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['980d5b9e-ddc5-4b17-9e83-0327580666f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-15436115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811']], 'subnet_ipam': [{'subnet_cidr': '116.106.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:16:33,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3484d6fa-d3a9-4abd-8aca-2543d867586c', 'name': 'ctest-vn-94829662', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ac1071b-d3cc-4e39-9b8c-74278ef51d5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-94829662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811']], 'subnet_ipam': [{'subnet_cidr': '125.51.22.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:16:33,545 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-29 11:16:33,862 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-29 11:16:33,894 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261
2024-10-29 11:16:33,909 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66
2024-10-29 11:16:33,998 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a
2024-10-29 11:16:34,016 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a
2024-10-29 11:16:34,035 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7
2024-10-29 11:16:34,045 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7
2024-10-29 11:16:34,056 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ae0cebd0-d353-4ddc-9143-abe6bf211435
2024-10-29 11:16:34,065 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 11:16:34,065 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a
2024-10-29 11:16:34,081 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7
2024-10-29 11:16:34,100 - INFO - Verified VN network id 9 for VN 4049bdfb-20b4-4f79-910e-74de6fe43c6a
2024-10-29 11:16:34,101 - INFO - Verifications in API Server for VN ctest-vn-15436115 passed
2024-10-29 11:16:34,101 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a
2024-10-29 11:16:34,115 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7
2024-10-29 11:16:34,127 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7
2024-10-29 11:16:34,136 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ae0cebd0-d353-4ddc-9143-abe6bf211435
2024-10-29 11:16:34,151 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61035929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4632442578010394489', 'uuid-lslong': '10452420283882290282'}, 'enable': 'true', 'created': '2024-10-29T11:16:31', 'last-modified': '2024-10-29T11:16:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066336'}
2024-10-29 11:16:34,157 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 11:16:34,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15436115 passed
2024-10-29 11:16:34,158 - DEBUG - ====Verifying policy data for ctest-vn-15436115 in API_Server ======
2024-10-29 11:16:34,158 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-29 11:16:34,165 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261
2024-10-29 11:16:34,180 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66
2024-10-29 11:16:34,267 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a
2024-10-29 11:16:34,282 - DEBUG - ==>Verifying data for policy with id: 45ce065f-bea0-4280-b009-9292721d367a, fqn: ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811']
2024-10-29 11:16:34,282 - INFO - VN ctest-vn-15436115 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 11:16:34,282 - DEBUG - Verifying the vn in opserver
2024-10-29 11:16:34,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115 virtual network link through opserver 10.0.0.43
2024-10-29 11:16:34,283 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-29 11:16:34,580 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-29 11:16:34,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115?flat'}
2024-10-29 11:16:34,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115 is found in opserver
2024-10-29 11:16:34,661 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 11:16:34,667 - DEBUG - VRF ids for VN ctest-vn-15436115: {}
2024-10-29 11:16:34,667 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-29 11:16:34,674 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261
2024-10-29 11:16:34,690 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66
2024-10-29 11:16:34,781 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c
2024-10-29 11:16:34,799 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c
2024-10-29 11:16:34,815 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53
2024-10-29 11:16:34,825 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53
2024-10-29 11:16:34,834 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/808093ea-c930-45af-996e-e5972bc8c611
2024-10-29 11:16:34,842 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 11:16:34,842 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c
2024-10-29 11:16:34,858 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53
2024-10-29 11:16:34,879 - INFO - Verified VN network id 10 for VN 3484d6fa-d3a9-4abd-8aca-2543d867586c
2024-10-29 11:16:34,879 - INFO - Verifications in API Server for VN ctest-vn-94829662 passed
2024-10-29 11:16:34,879 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c
2024-10-29 11:16:34,896 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53
2024-10-29 11:16:34,907 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53
2024-10-29 11:16:34,918 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/808093ea-c930-45af-996e-e5972bc8c611
2024-10-29 11:16:34,934 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61035929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3784385959679314621', 'uuid-lslong': '10000846895853295724'}, 'enable': 'true', 'created': '2024-10-29T11:16:32', 'last-modified': '2024-10-29T11:16:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.615211'}
2024-10-29 11:16:34,942 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 11:16:34,942 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94829662 passed
2024-10-29 11:16:34,942 - DEBUG - ====Verifying policy data for ctest-vn-94829662 in API_Server ======
2024-10-29 11:16:34,942 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-29 11:16:34,948 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261
2024-10-29 11:16:34,960 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66
2024-10-29 11:16:35,044 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c
2024-10-29 11:16:35,062 - DEBUG - ==>Verifying data for policy with id: 45ce065f-bea0-4280-b009-9292721d367a, fqn: ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811']
2024-10-29 11:16:35,062 - INFO - VN ctest-vn-94829662 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 11:16:35,062 - DEBUG - Verifying the vn in opserver
2024-10-29 11:16:35,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662 virtual network link through opserver 10.0.0.43
2024-10-29 11:16:35,062 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-29 11:16:35,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662?flat'}
2024-10-29 11:16:35,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662 is found in opserver
2024-10-29 11:16:35,086 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 11:16:35,092 - DEBUG - VRF ids for VN ctest-vn-94829662: {}
2024-10-29 11:16:35,147 - DEBUG - Services list from nova: [