2024-10-24 16:19:53,561 - INFO - Domain Default found not creating
2024-10-24 16:19:53,778 - INFO - Project ctest-TestBasicPolicy-30075056 not found, creating it
2024-10-24 16:19:54,335 - INFO - Created Project:ctest-TestBasicPolicy-30075056, ID : 65a106da-0978-49a5-9fc1-84d4db2fe190
2024-10-24 16:19:56,073 - INFO - ================================================================================
2024-10-24 16:19:56,074 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 16:19:56,074 - 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-24 16:19:56,334 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.10': '0'}} with
2024-10-24 16:19:56,334 - INFO - Initial checks done. Running the testcase now
2024-10-24 16:19:56,334 - INFO -
2024-10-24 16:19:56,982 - DEBUG - Response for create_network : {'network': {'id': 'a5266bf3-473a-46ac-ae30-3b594f94b1c4', 'name': 'ctest-vn-95666636', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-95666636'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 16:19:57,161 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6259b15-1aa6-44cf-a5b7-1cf549999916', 'name': '', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'network_id': 'a5266bf3-473a-46ac-ae30-3b594f94b1c4', 'ip_version': 4, 'cidr': '198.101.228.64/26', 'allocation_pools': [{'start': '198.101.228.66', 'end': '198.101.228.126'}], 'gateway_ip': '198.101.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.101.228.66', 'tags': [], 'project_id': '65a106da097849a59fc184d4db2fe190'}}
2024-10-24 16:19:57,192 - INFO - Created VN ctest-vn-95666636
2024-10-24 16:19:57,251 - DEBUG - VN ctest-vn-95666636 UUID is a5266bf3-473a-46ac-ae30-3b594f94b1c4
2024-10-24 16:19:57,613 - DEBUG - Response for create_network : {'network': {'id': '5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9', 'name': 'ctest-vn-90440461', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-90440461'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 16:19:57,871 - DEBUG - Response for create_subnet : {'subnet': {'id': '9deaed15-5e83-4004-81a9-9b594312b3fd', 'name': '', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'network_id': '5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9', 'ip_version': 4, 'cidr': '123.100.101.0/26', 'allocation_pools': [{'start': '123.100.101.2', 'end': '123.100.101.62'}], 'gateway_ip': '123.100.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.100.101.2', 'tags': [], 'project_id': '65a106da097849a59fc184d4db2fe190'}}
2024-10-24 16:19:57,895 - INFO - Created VN ctest-vn-90440461
2024-10-24 16:19:57,959 - DEBUG - VN ctest-vn-90440461 UUID is 5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9
2024-10-24 16:19:58,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636, 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-30075056:ctest-vn-90440461, 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-24 16:19:58,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5266bf3-473a-46ac-ae30-3b594f94b1c4', 'name': 'ctest-vn-95666636', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6259b15-1aa6-44cf-a5b7-1cf549999916'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-95666636'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143']], 'subnet_ipam': [{'subnet_cidr': '198.101.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 16:19:58,724 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9', 'name': 'ctest-vn-90440461', 'tenant_id': '65a106da097849a59fc184d4db2fe190', 'project_id': '65a106da097849a59fc184d4db2fe190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9deaed15-5e83-4004-81a9-9b594312b3fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-vn-90440461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143']], 'subnet_ipam': [{'subnet_cidr': '123.100.101.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 16:19:58,927 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 16:19:59,237 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 16:19:59,280 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d
2024-10-24 16:19:59,297 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190
2024-10-24 16:19:59,392 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4
2024-10-24 16:19:59,411 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4
2024-10-24 16:19:59,428 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4
2024-10-24 16:19:59,440 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4
2024-10-24 16:19:59,451 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f1e1e28f-9535-4569-8d2b-c73d2d986187
2024-10-24 16:19:59,463 - DEBUG - Route Targets: ['target:64512:8000004']
2024-10-24 16:19:59,463 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4
2024-10-24 16:19:59,481 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4
2024-10-24 16:19:59,507 - INFO - Verified VN network id 7 for VN a5266bf3-473a-46ac-ae30-3b594f94b1c4
2024-10-24 16:19:59,507 - INFO - Verifications in API Server for VN ctest-vn-95666636 passed
2024-10-24 16:19:59,507 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4
2024-10-24 16:19:59,526 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4
2024-10-24 16:19:59,538 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/07551a91-e79a-4000-bc82-442c942280d4
2024-10-24 16:19:59,550 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f1e1e28f-9535-4569-8d2b-c73d2d986187
2024-10-24 16:19:59,571 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30075056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11900317757989340844', 'uuid-lslong': '12551597416254845380'}, 'enable': 'true', 'created': '2024-10-24T16:19:56', 'last-modified': '2024-10-24T16:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135378'}
2024-10-24 16:19:59,582 - DEBUG - Route Targets: ['target:64512:8000004']
2024-10-24 16:19:59,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95666636 passed
2024-10-24 16:19:59,583 - DEBUG - ====Verifying policy data for ctest-vn-95666636 in API_Server ======
2024-10-24 16:19:59,583 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 16:19:59,593 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d
2024-10-24 16:19:59,613 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190
2024-10-24 16:19:59,711 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a5266bf3-473a-46ac-ae30-3b594f94b1c4
2024-10-24 16:19:59,728 - DEBUG - ==>Verifying data for policy with id: 16738293-0f78-4da4-bcf8-6a59a12ba5d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143']
2024-10-24 16:19:59,728 - INFO - VN ctest-vn-95666636 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 16:19:59,728 - DEBUG - Verifying the vn in opserver
2024-10-24 16:19:59,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636 virtual network link through opserver 10.0.0.27
2024-10-24 16:19:59,729 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-24 16:20:00,049 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-24 16:20:00,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636?flat'}
2024-10-24 16:20:00,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-95666636 is found in opserver
2024-10-24 16:20:00,154 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 16:20:00,162 - DEBUG - VRF ids for VN ctest-vn-95666636: {}
2024-10-24 16:20:00,162 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 16:20:00,171 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d
2024-10-24 16:20:00,191 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190
2024-10-24 16:20:00,282 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9
2024-10-24 16:20:00,302 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9
2024-10-24 16:20:00,322 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe
2024-10-24 16:20:00,335 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe
2024-10-24 16:20:00,351 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/bf8a944c-d3f5-44de-b065-9a533227f33d
2024-10-24 16:20:00,365 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 16:20:00,365 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9
2024-10-24 16:20:00,386 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe
2024-10-24 16:20:00,415 - INFO - Verified VN network id 8 for VN 5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9
2024-10-24 16:20:00,415 - INFO - Verifications in API Server for VN ctest-vn-90440461 passed
2024-10-24 16:20:00,415 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9
2024-10-24 16:20:00,433 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe
2024-10-24 16:20:00,447 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6eb6b2e2-7baf-4946-a698-f62ef624aefe
2024-10-24 16:20:00,461 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/bf8a944c-d3f5-44de-b065-9a533227f33d
2024-10-24 16:20:00,483 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30075056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5866484720034205175', 'uuid-lslong': '10364306849628949465'}, 'enable': 'true', 'created': '2024-10-24T16:19:57', 'last-modified': '2024-10-24T16:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.787561'}
2024-10-24 16:20:00,492 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 16:20:00,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90440461 passed
2024-10-24 16:20:00,492 - DEBUG - ====Verifying policy data for ctest-vn-90440461 in API_Server ======
2024-10-24 16:20:00,493 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-24 16:20:00,502 - DEBUG - Requesting: http://10.0.0.27:8082/domain/601ceeaf-5dea-4ead-99e3-6ec9647d577d
2024-10-24 16:20:00,520 - DEBUG - Requesting: http://10.0.0.27:8082/project/65a106da-0978-49a5-9fc1-84d4db2fe190
2024-10-24 16:20:00,623 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5169f0c5-59e5-4df7-8fd5-6a2ad3480bd9
2024-10-24 16:20:00,644 - DEBUG - ==>Verifying data for policy with id: 16738293-0f78-4da4-bcf8-6a59a12ba5d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30075056', 'ctest-policy-allow-all-06181143']
2024-10-24 16:20:00,644 - INFO - VN ctest-vn-90440461 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 16:20:00,644 - DEBUG - Verifying the vn in opserver
2024-10-24 16:20:00,644 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461 virtual network link through opserver 10.0.0.27
2024-10-24 16:20:00,644 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-24 16:20:00,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461?flat'}
2024-10-24 16:20:00,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30075056:ctest-vn-90440461 is found in opserver
2024-10-24 16:20:00,677 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 16:20:00,684 - DEBUG - VRF ids for VN ctest-vn-90440461: {}
2024-10-24 16:20:00,758 - DEBUG - Services list from nova: [