2024-10-31 02:35:02,572 - INFO - Domain Default found not creating
2024-10-31 02:35:02,799 - INFO - Project ctest-TestBasicPolicy-74550052 not found, creating it
2024-10-31 02:35:03,358 - INFO - Created Project:ctest-TestBasicPolicy-74550052, ID : c6f5ed20-df1f-42b5-be53-28c232a5c558
2024-10-31 02:35:05,326 - INFO - ================================================================================
2024-10-31 02:35:05,326 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-31 02:35:05,327 - 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-31 02:35:05,604 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.5': '0'}} with
2024-10-31 02:35:05,604 - INFO - Initial checks done. Running the testcase now
2024-10-31 02:35:05,604 - INFO -
2024-10-31 02:35:06,430 - DEBUG - Response for create_network : {'network': {'id': '302556f3-3940-4d30-90a9-32cf7ff942f2', 'name': 'ctest-vn-71693501', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-71693501'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:35:06,620 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6836138-393f-41fa-b487-084f6e9a711a', 'name': '', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'network_id': '302556f3-3940-4d30-90a9-32cf7ff942f2', 'ip_version': 4, 'cidr': '78.14.23.192/26', 'allocation_pools': [{'start': '78.14.23.194', 'end': '78.14.23.254'}], 'gateway_ip': '78.14.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.14.23.194', 'tags': [], 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558'}}
2024-10-31 02:35:06,651 - INFO - Created VN ctest-vn-71693501
2024-10-31 02:35:06,732 - DEBUG - VN ctest-vn-71693501 UUID is 302556f3-3940-4d30-90a9-32cf7ff942f2
2024-10-31 02:35:07,151 - DEBUG - Response for create_network : {'network': {'id': '1bfaa85b-8813-4fae-a413-47dc0e4b0ebc', 'name': 'ctest-vn-23383127', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-23383127'], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:35:07,436 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c05e2db-689a-40dd-8984-ec1fb69bbe06', 'name': '', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'network_id': '1bfaa85b-8813-4fae-a413-47dc0e4b0ebc', 'ip_version': 4, 'cidr': '91.32.142.192/26', 'allocation_pools': [{'start': '91.32.142.194', 'end': '91.32.142.254'}], 'gateway_ip': '91.32.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.32.142.194', 'tags': [], 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558'}}
2024-10-31 02:35:07,468 - INFO - Created VN ctest-vn-23383127
2024-10-31 02:35:07,532 - DEBUG - VN ctest-vn-23383127 UUID is 1bfaa85b-8813-4fae-a413-47dc0e4b0ebc
2024-10-31 02:35:07,693 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501, 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-74550052:ctest-vn-23383127, 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-31 02:35:08,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '302556f3-3940-4d30-90a9-32cf7ff942f2', 'name': 'ctest-vn-71693501', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6836138-393f-41fa-b487-084f6e9a711a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-71693501'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465']], 'subnet_ipam': [{'subnet_cidr': '78.14.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:35:08,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1bfaa85b-8813-4fae-a413-47dc0e4b0ebc', 'name': 'ctest-vn-23383127', 'tenant_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'project_id': 'c6f5ed20df1f42b5be5328c232a5c558', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c05e2db-689a-40dd-8984-ec1fb69bbe06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-vn-23383127'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465']], 'subnet_ipam': [{'subnet_cidr': '91.32.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-31 02:35:08,572 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-31 02:35:08,927 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-31 02:35:08,972 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4
2024-10-31 02:35:08,992 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558
2024-10-31 02:35:09,083 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2
2024-10-31 02:35:09,105 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2
2024-10-31 02:35:09,126 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030
2024-10-31 02:35:09,142 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030
2024-10-31 02:35:09,155 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/9f19fdcf-8a99-44d9-a9d1-f194d5998dfd
2024-10-31 02:35:09,167 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:35:09,167 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2
2024-10-31 02:35:09,187 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030
2024-10-31 02:35:09,219 - INFO - Verified VN network id 8 for VN 302556f3-3940-4d30-90a9-32cf7ff942f2
2024-10-31 02:35:09,219 - INFO - Verifications in API Server for VN ctest-vn-71693501 passed
2024-10-31 02:35:09,220 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2
2024-10-31 02:35:09,239 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030
2024-10-31 02:35:09,251 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/6b5675ce-940b-4f0c-9423-ee1e31b67030
2024-10-31 02:35:09,264 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/9f19fdcf-8a99-44d9-a9d1-f194d5998dfd
2024-10-31 02:35:09,289 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74550052', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3469274690596392240', 'uuid-lslong': '10423918679312384754'}, 'enable': 'true', 'created': '2024-10-31T02:35:06', 'last-modified': '2024-10-31T02:35:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.247420'}
2024-10-31 02:35:09,300 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-31 02:35:09,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71693501 passed
2024-10-31 02:35:09,300 - DEBUG - ====Verifying policy data for ctest-vn-71693501 in API_Server ======
2024-10-31 02:35:09,300 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-31 02:35:09,310 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4
2024-10-31 02:35:09,328 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558
2024-10-31 02:35:09,430 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/302556f3-3940-4d30-90a9-32cf7ff942f2
2024-10-31 02:35:09,450 - DEBUG - ==>Verifying data for policy with id: 10b54c0f-0931-479f-9bf3-cdcaec22d3b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465']
2024-10-31 02:35:09,450 - INFO - VN ctest-vn-71693501 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:35:09,450 - DEBUG - Verifying the vn in opserver
2024-10-31 02:35:09,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501 virtual network link through opserver 10.0.0.34
2024-10-31 02:35:09,450 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-31 02:35:09,804 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-31 02:35:09,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501?flat'}
2024-10-31 02:35:09,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-71693501 is found in opserver
2024-10-31 02:35:09,911 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:35:09,919 - DEBUG - VRF ids for VN ctest-vn-71693501: {}
2024-10-31 02:35:09,919 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-31 02:35:09,927 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4
2024-10-31 02:35:09,944 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558
2024-10-31 02:35:10,038 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc
2024-10-31 02:35:10,062 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc
2024-10-31 02:35:10,082 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1
2024-10-31 02:35:10,098 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1
2024-10-31 02:35:10,114 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ed3c5c48-aa6e-4e41-ab73-c59e4d876e4c
2024-10-31 02:35:10,127 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:35:10,127 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc
2024-10-31 02:35:10,147 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1
2024-10-31 02:35:10,180 - INFO - Verified VN network id 9 for VN 1bfaa85b-8813-4fae-a413-47dc0e4b0ebc
2024-10-31 02:35:10,180 - INFO - Verifications in API Server for VN ctest-vn-23383127 passed
2024-10-31 02:35:10,180 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc
2024-10-31 02:35:10,199 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1
2024-10-31 02:35:10,212 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/970138ee-8b41-4dc2-9d93-5a35a7ca0ac1
2024-10-31 02:35:10,223 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/ed3c5c48-aa6e-4e41-ab73-c59e4d876e4c
2024-10-31 02:35:10,241 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74550052', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2016108894280175534', 'uuid-lslong': '11822872457235861180'}, 'enable': 'true', 'created': '2024-10-31T02:35:07', 'last-modified': '2024-10-31T02:35:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.896972'}
2024-10-31 02:35:10,250 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-31 02:35:10,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23383127 passed
2024-10-31 02:35:10,250 - DEBUG - ====Verifying policy data for ctest-vn-23383127 in API_Server ======
2024-10-31 02:35:10,251 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2024-10-31 02:35:10,259 - DEBUG - Requesting: http://10.0.0.34:8082/domain/8c113549-a182-4912-a71e-a025c3af72d4
2024-10-31 02:35:10,280 - DEBUG - Requesting: http://10.0.0.34:8082/project/c6f5ed20-df1f-42b5-be53-28c232a5c558
2024-10-31 02:35:10,374 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/1bfaa85b-8813-4fae-a413-47dc0e4b0ebc
2024-10-31 02:35:10,394 - DEBUG - ==>Verifying data for policy with id: 10b54c0f-0931-479f-9bf3-cdcaec22d3b6, fqn: ['default-domain', 'ctest-TestBasicPolicy-74550052', 'ctest-policy-allow-all-41358465']
2024-10-31 02:35:10,395 - INFO - VN ctest-vn-23383127 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-31 02:35:10,395 - DEBUG - Verifying the vn in opserver
2024-10-31 02:35:10,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127 virtual network link through opserver 10.0.0.34
2024-10-31 02:35:10,395 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2024-10-31 02:35:10,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127?flat'}
2024-10-31 02:35:10,411 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74550052:ctest-vn-23383127 is found in opserver
2024-10-31 02:35:10,425 - DEBUG - Do not have enough data to verify VN in agent
2024-10-31 02:35:10,432 - DEBUG - VRF ids for VN ctest-vn-23383127: {}
2024-10-31 02:35:10,517 - DEBUG - Services list from nova: [