2024-09-15 08:42:59,749 - INFO - Domain Default found not creating
2024-09-15 08:42:59,913 - INFO - Project ctest-TestBasicPolicy-28034412 not found, creating it
2024-09-15 08:43:00,420 - INFO - Created Project:ctest-TestBasicPolicy-28034412, ID : fb9aea65-6242-435b-bcc2-dc8d72b62f2d
2024-09-15 08:43:01,955 - INFO - ================================================================================
2024-09-15 08:43:01,955 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-15 08:43:01,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-09-15 08:43:02,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.14': '0'}} with
2024-09-15 08:43:02,209 - INFO - Initial checks done. Running the testcase now
2024-09-15 08:43:02,209 - INFO -
2024-09-15 08:43:02,800 - DEBUG - Response for create_network : {'network': {'id': '07c6ae92-5212-43de-aa16-b326364c2abf', 'name': 'ctest-vn-81183672', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-81183672'], 'port_security_enabled': True, 'description': ''}}
2024-09-15 08:43:03,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b86c0f8-85b0-47e7-a34a-0ef7e5a53364', 'name': '', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'network_id': '07c6ae92-5212-43de-aa16-b326364c2abf', 'ip_version': 4, 'cidr': '180.206.234.0/26', 'allocation_pools': [{'start': '180.206.234.2', 'end': '180.206.234.62'}], 'gateway_ip': '180.206.234.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.206.234.2', 'tags': [], 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d'}}
2024-09-15 08:43:03,060 - INFO - Created VN ctest-vn-81183672
2024-09-15 08:43:03,127 - DEBUG - VN ctest-vn-81183672 UUID is 07c6ae92-5212-43de-aa16-b326364c2abf
2024-09-15 08:43:03,466 - DEBUG - Response for create_network : {'network': {'id': '21295ebe-3a8e-4ae7-a16a-349aa6b33db0', 'name': 'ctest-vn-88237458', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-88237458'], 'port_security_enabled': True, 'description': ''}}
2024-09-15 08:43:03,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '1002825e-c738-4a73-86a1-5a433ee65291', 'name': '', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'network_id': '21295ebe-3a8e-4ae7-a16a-349aa6b33db0', 'ip_version': 4, 'cidr': '29.33.98.192/26', 'allocation_pools': [{'start': '29.33.98.194', 'end': '29.33.98.254'}], 'gateway_ip': '29.33.98.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.33.98.194', 'tags': [], 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d'}}
2024-09-15 08:43:03,740 - INFO - Created VN ctest-vn-88237458
2024-09-15 08:43:03,799 - DEBUG - VN ctest-vn-88237458 UUID is 21295ebe-3a8e-4ae7-a16a-349aa6b33db0
2024-09-15 08:43:03,940 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672, 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-28034412:ctest-vn-88237458, 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-09-15 08:43:04,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07c6ae92-5212-43de-aa16-b326364c2abf', 'name': 'ctest-vn-81183672', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b86c0f8-85b0-47e7-a34a-0ef7e5a53364'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-81183672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816']], 'subnet_ipam': [{'subnet_cidr': '180.206.234.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-15 08:43:04,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21295ebe-3a8e-4ae7-a16a-349aa6b33db0', 'name': 'ctest-vn-88237458', 'tenant_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'project_id': 'fb9aea656242435bbcc2dc8d72b62f2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1002825e-c738-4a73-86a1-5a433ee65291'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-vn-88237458'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816']], 'subnet_ipam': [{'subnet_cidr': '29.33.98.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-15 08:43:04,703 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-09-15 08:43:05,025 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-09-15 08:43:05,059 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b
2024-09-15 08:43:05,076 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d
2024-09-15 08:43:05,168 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf
2024-09-15 08:43:05,182 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf
2024-09-15 08:43:05,196 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d
2024-09-15 08:43:05,206 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d
2024-09-15 08:43:05,216 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/daee29ce-2316-489b-8c07-ee9b388bd190
2024-09-15 08:43:05,226 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-15 08:43:05,226 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf
2024-09-15 08:43:05,239 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d
2024-09-15 08:43:05,257 - INFO - Verified VN network id 8 for VN 07c6ae92-5212-43de-aa16-b326364c2abf
2024-09-15 08:43:05,257 - INFO - Verifications in API Server for VN ctest-vn-81183672 passed
2024-09-15 08:43:05,257 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf
2024-09-15 08:43:05,271 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d
2024-09-15 08:43:05,278 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/f801a701-bf70-4d6e-94ac-5289f9a9160d
2024-09-15 08:43:05,288 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/daee29ce-2316-489b-8c07-ee9b388bd190
2024-09-15 08:43:05,303 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28034412', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '560327147119592414', 'uuid-lslong': '12256180412636474047'}, 'enable': 'true', 'created': '2024-09-15T08:43:02', 'last-modified': '2024-09-15T08:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.069217'}
2024-09-15 08:43:05,310 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-15 08:43:05,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81183672 passed
2024-09-15 08:43:05,310 - DEBUG - ====Verifying policy data for ctest-vn-81183672 in API_Server ======
2024-09-15 08:43:05,310 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-09-15 08:43:05,317 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b
2024-09-15 08:43:05,338 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d
2024-09-15 08:43:05,424 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/07c6ae92-5212-43de-aa16-b326364c2abf
2024-09-15 08:43:05,438 - DEBUG - ==>Verifying data for policy with id: 95a89fbd-8202-43d9-b424-ab573242a8b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816']
2024-09-15 08:43:05,438 - INFO - VN ctest-vn-81183672 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-15 08:43:05,438 - DEBUG - Verifying the vn in opserver
2024-09-15 08:43:05,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672 virtual network link through opserver 10.0.0.52
2024-09-15 08:43:05,438 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-09-15 08:43:05,745 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-09-15 08:43:05,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672?flat'}
2024-09-15 08:43:05,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-81183672 is found in opserver
2024-09-15 08:43:05,822 - DEBUG - Do not have enough data to verify VN in agent
2024-09-15 08:43:05,828 - DEBUG - VRF ids for VN ctest-vn-81183672: {}
2024-09-15 08:43:05,828 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-09-15 08:43:05,834 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b
2024-09-15 08:43:05,848 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d
2024-09-15 08:43:05,931 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0
2024-09-15 08:43:05,960 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0
2024-09-15 08:43:05,976 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650
2024-09-15 08:43:05,985 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650
2024-09-15 08:43:05,994 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/1b787cfb-469e-477d-812d-7b1bd05f76b0
2024-09-15 08:43:06,003 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-15 08:43:06,003 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0
2024-09-15 08:43:06,017 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650
2024-09-15 08:43:06,041 - INFO - Verified VN network id 9 for VN 21295ebe-3a8e-4ae7-a16a-349aa6b33db0
2024-09-15 08:43:06,042 - INFO - Verifications in API Server for VN ctest-vn-88237458 passed
2024-09-15 08:43:06,042 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0
2024-09-15 08:43:06,066 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650
2024-09-15 08:43:06,077 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/5cb4d023-d731-4b8d-b9a4-c8e6d5ec4650
2024-09-15 08:43:06,089 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/1b787cfb-469e-477d-812d-7b1bd05f76b0
2024-09-15 08:43:06,106 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28034412', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2389545248415959783', 'uuid-lslong': '11631166826464099760'}, 'enable': 'true', 'created': '2024-09-15T08:43:03', 'last-modified': '2024-09-15T08:43:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.616641'}
2024-09-15 08:43:06,113 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-15 08:43:06,113 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88237458 passed
2024-09-15 08:43:06,113 - DEBUG - ====Verifying policy data for ctest-vn-88237458 in API_Server ======
2024-09-15 08:43:06,113 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-09-15 08:43:06,120 - DEBUG - Requesting: http://10.0.0.52:8082/domain/c74ec817-aad0-4d89-911e-55477966338b
2024-09-15 08:43:06,134 - DEBUG - Requesting: http://10.0.0.52:8082/project/fb9aea65-6242-435b-bcc2-dc8d72b62f2d
2024-09-15 08:43:06,224 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/21295ebe-3a8e-4ae7-a16a-349aa6b33db0
2024-09-15 08:43:06,239 - DEBUG - ==>Verifying data for policy with id: 95a89fbd-8202-43d9-b424-ab573242a8b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-28034412', 'ctest-policy-allow-all-74786816']
2024-09-15 08:43:06,239 - INFO - VN ctest-vn-88237458 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-15 08:43:06,239 - DEBUG - Verifying the vn in opserver
2024-09-15 08:43:06,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458 virtual network link through opserver 10.0.0.52
2024-09-15 08:43:06,239 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-09-15 08:43:06,251 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458?flat'}
2024-09-15 08:43:06,251 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28034412:ctest-vn-88237458 is found in opserver
2024-09-15 08:43:06,269 - DEBUG - Do not have enough data to verify VN in agent
2024-09-15 08:43:06,277 - DEBUG - VRF ids for VN ctest-vn-88237458: {}
2024-09-15 08:43:06,332 - DEBUG - Services list from nova: [