2024-08-27 08:35:55,658 - INFO - Domain Default found not creating
2024-08-27 08:35:55,876 - INFO - Project ctest-TestBasicPolicy-02495937 not found, creating it
2024-08-27 08:35:56,347 - INFO - Created Project:ctest-TestBasicPolicy-02495937, ID : a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7
2024-08-27 08:35:57,955 - INFO - ================================================================================
2024-08-27 08:35:57,956 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 08:35:57,956 - 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-08-27 08:35:58,216 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.20': '0'}} with
2024-08-27 08:35:58,216 - INFO - Initial checks done. Running the testcase now
2024-08-27 08:35:58,216 - INFO -
2024-08-27 08:35:58,801 - DEBUG - Response for create_network : {'network': {'id': '85af797c-da90-4277-87ce-ff5ce135a23c', 'name': 'ctest-vn-78903353', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-78903353'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:35:58,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fe7a2c6-c374-404f-aff6-c8804438fadf', 'name': '', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'network_id': '85af797c-da90-4277-87ce-ff5ce135a23c', 'ip_version': 4, 'cidr': '62.166.159.0/26', 'allocation_pools': [{'start': '62.166.159.2', 'end': '62.166.159.62'}], 'gateway_ip': '62.166.159.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.166.159.2', 'tags': [], 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7'}}
2024-08-27 08:35:59,008 - INFO - Created VN ctest-vn-78903353
2024-08-27 08:35:59,070 - DEBUG - VN ctest-vn-78903353 UUID is 85af797c-da90-4277-87ce-ff5ce135a23c
2024-08-27 08:35:59,461 - DEBUG - Response for create_network : {'network': {'id': '8d9c8183-493e-41ad-9915-f0abc6d75e1e', 'name': 'ctest-vn-98835070', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-98835070'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:35:59,670 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a4de90e8-a309-4f7d-8981-f4c1a07f86b2', 'name': '', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'network_id': '8d9c8183-493e-41ad-9915-f0abc6d75e1e', 'ip_version': 4, 'cidr': '186.33.231.0/26', 'allocation_pools': [{'start': '186.33.231.2', 'end': '186.33.231.62'}], 'gateway_ip': '186.33.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.33.231.2', 'tags': [], 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7'}}
2024-08-27 08:35:59,696 - INFO - Created VN ctest-vn-98835070
2024-08-27 08:35:59,750 - DEBUG - VN ctest-vn-98835070 UUID is 8d9c8183-493e-41ad-9915-f0abc6d75e1e
2024-08-27 08:35:59,881 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353, 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-02495937:ctest-vn-98835070, 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-08-27 08:36:00,210 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85af797c-da90-4277-87ce-ff5ce135a23c', 'name': 'ctest-vn-78903353', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fe7a2c6-c374-404f-aff6-c8804438fadf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-78903353'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930']], 'subnet_ipam': [{'subnet_cidr': '62.166.159.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:36:00,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d9c8183-493e-41ad-9915-f0abc6d75e1e', 'name': 'ctest-vn-98835070', 'tenant_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'project_id': 'a3fb7fe07a3442d69d903dad7a292fe7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a4de90e8-a309-4f7d-8981-f4c1a07f86b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-vn-98835070'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930']], 'subnet_ipam': [{'subnet_cidr': '186.33.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 08:36:00,622 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-08-27 08:36:00,927 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-08-27 08:36:00,971 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7
2024-08-27 08:36:00,989 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7
2024-08-27 08:36:01,071 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c
2024-08-27 08:36:01,083 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c
2024-08-27 08:36:01,093 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636
2024-08-27 08:36:01,101 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636
2024-08-27 08:36:01,111 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4042c9d5-86a9-43b5-af94-11c2a960e9e9
2024-08-27 08:36:01,120 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 08:36:01,120 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c
2024-08-27 08:36:01,131 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636
2024-08-27 08:36:01,149 - INFO - Verified VN network id 8 for VN 85af797c-da90-4277-87ce-ff5ce135a23c
2024-08-27 08:36:01,150 - INFO - Verifications in API Server for VN ctest-vn-78903353 passed
2024-08-27 08:36:01,150 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c
2024-08-27 08:36:01,161 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636
2024-08-27 08:36:01,171 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e1cec42c-129c-4677-b8c7-5c4dbb21e636
2024-08-27 08:36:01,182 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4042c9d5-86a9-43b5-af94-11c2a960e9e9
2024-08-27 08:36:01,199 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02495937', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9633051705118573175', 'uuid-lslong': '9786039814703129148'}, 'enable': 'true', 'created': '2024-08-27T08:35:58', 'last-modified': '2024-08-27T08:36:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016043'}
2024-08-27 08:36:01,207 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 08:36:01,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78903353 passed
2024-08-27 08:36:01,208 - DEBUG - ====Verifying policy data for ctest-vn-78903353 in API_Server ======
2024-08-27 08:36:01,208 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-08-27 08:36:01,216 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7
2024-08-27 08:36:01,231 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7
2024-08-27 08:36:01,305 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/85af797c-da90-4277-87ce-ff5ce135a23c
2024-08-27 08:36:01,318 - DEBUG - ==>Verifying data for policy with id: bd7e08af-acfe-4b0a-89b2-ac9a8388dde5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930']
2024-08-27 08:36:01,318 - INFO - VN ctest-vn-78903353 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 08:36:01,318 - DEBUG - Verifying the vn in opserver
2024-08-27 08:36:01,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353 virtual network link through opserver 10.0.0.27
2024-08-27 08:36:01,318 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-08-27 08:36:01,634 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-08-27 08:36:01,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353?flat'}
2024-08-27 08:36:01,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-78903353 is found in opserver
2024-08-27 08:36:01,726 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 08:36:01,734 - DEBUG - VRF ids for VN ctest-vn-78903353: {}
2024-08-27 08:36:01,734 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-08-27 08:36:01,742 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7
2024-08-27 08:36:01,756 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7
2024-08-27 08:36:01,826 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e
2024-08-27 08:36:01,838 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e
2024-08-27 08:36:01,848 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1
2024-08-27 08:36:01,858 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1
2024-08-27 08:36:01,869 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b8f6e3c3-b5ef-4778-9024-ebf1e0ac3b81
2024-08-27 08:36:01,878 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 08:36:01,878 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e
2024-08-27 08:36:01,889 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1
2024-08-27 08:36:01,906 - INFO - Verified VN network id 9 for VN 8d9c8183-493e-41ad-9915-f0abc6d75e1e
2024-08-27 08:36:01,906 - INFO - Verifications in API Server for VN ctest-vn-98835070 passed
2024-08-27 08:36:01,906 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e
2024-08-27 08:36:01,916 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1
2024-08-27 08:36:01,925 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/727ced1a-6c6d-40d5-a644-5b6bebeff8f1
2024-08-27 08:36:01,935 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/b8f6e3c3-b5ef-4778-9024-ebf1e0ac3b81
2024-08-27 08:36:01,953 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02495937', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10204173256584217005', 'uuid-lslong': '11030987482879974942'}, 'enable': 'true', 'created': '2024-08-27T08:35:59', 'last-modified': '2024-08-27T08:36:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504842'}
2024-08-27 08:36:01,961 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 08:36:01,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98835070 passed
2024-08-27 08:36:01,962 - DEBUG - ====Verifying policy data for ctest-vn-98835070 in API_Server ======
2024-08-27 08:36:01,962 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-08-27 08:36:01,969 - DEBUG - Requesting: http://10.0.0.27:8082/domain/72718c98-775f-4519-85d1-7e3a502964a7
2024-08-27 08:36:01,984 - DEBUG - Requesting: http://10.0.0.27:8082/project/a3fb7fe0-7a34-42d6-9d90-3dad7a292fe7
2024-08-27 08:36:02,062 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8d9c8183-493e-41ad-9915-f0abc6d75e1e
2024-08-27 08:36:02,072 - DEBUG - ==>Verifying data for policy with id: bd7e08af-acfe-4b0a-89b2-ac9a8388dde5, fqn: ['default-domain', 'ctest-TestBasicPolicy-02495937', 'ctest-policy-allow-all-35619930']
2024-08-27 08:36:02,072 - INFO - VN ctest-vn-98835070 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 08:36:02,072 - DEBUG - Verifying the vn in opserver
2024-08-27 08:36:02,072 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070 virtual network link through opserver 10.0.0.27
2024-08-27 08:36:02,072 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-08-27 08:36:02,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070?flat'}
2024-08-27 08:36:02,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02495937:ctest-vn-98835070 is found in opserver
2024-08-27 08:36:02,100 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 08:36:02,108 - DEBUG - VRF ids for VN ctest-vn-98835070: {}
2024-08-27 08:36:02,178 - DEBUG - Services list from nova: [