2024-09-04 13:59:45,200 - INFO - Domain Default found not creating
2024-09-04 13:59:45,391 - INFO - Project ctest-TestBasicPolicy-93207588 not found, creating it
2024-09-04 13:59:45,901 - INFO - Created Project:ctest-TestBasicPolicy-93207588, ID : d53ff46f-e83c-4225-a261-9ce96b8aeedf
2024-09-04 13:59:47,533 - INFO - ================================================================================
2024-09-04 13:59:47,534 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 13:59:47,534 - 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-04 13:59:47,804 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.23': '0'}} with
2024-09-04 13:59:47,804 - INFO - Initial checks done. Running the testcase now
2024-09-04 13:59:47,804 - INFO -
2024-09-04 13:59:48,399 - DEBUG - Response for create_network : {'network': {'id': '2243d6eb-6904-41be-b97a-fd26d90883c8', 'name': 'ctest-vn-36906249', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-36906249'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 13:59:48,610 - DEBUG - Response for create_subnet : {'subnet': {'id': '651b5117-4098-4d68-a23a-721721453137', 'name': '', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'network_id': '2243d6eb-6904-41be-b97a-fd26d90883c8', 'ip_version': 4, 'cidr': '140.244.211.128/26', 'allocation_pools': [{'start': '140.244.211.130', 'end': '140.244.211.190'}], 'gateway_ip': '140.244.211.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.244.211.130', 'tags': [], 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf'}}
2024-09-04 13:59:48,636 - INFO - Created VN ctest-vn-36906249
2024-09-04 13:59:48,691 - DEBUG - VN ctest-vn-36906249 UUID is 2243d6eb-6904-41be-b97a-fd26d90883c8
2024-09-04 13:59:49,012 - DEBUG - Response for create_network : {'network': {'id': 'ff15190d-775d-459f-9dc1-e8e3006ef2ff', 'name': 'ctest-vn-11660188', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-11660188'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 13:59:49,219 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9d281cc-fcb5-454f-b8d8-a2b7390994ea', 'name': '', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'network_id': 'ff15190d-775d-459f-9dc1-e8e3006ef2ff', 'ip_version': 4, 'cidr': '113.162.177.64/26', 'allocation_pools': [{'start': '113.162.177.66', 'end': '113.162.177.126'}], 'gateway_ip': '113.162.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.162.177.66', 'tags': [], 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf'}}
2024-09-04 13:59:49,243 - INFO - Created VN ctest-vn-11660188
2024-09-04 13:59:49,295 - DEBUG - VN ctest-vn-11660188 UUID is ff15190d-775d-459f-9dc1-e8e3006ef2ff
2024-09-04 13:59:49,418 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249, 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-93207588:ctest-vn-11660188, 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-04 13:59:49,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2243d6eb-6904-41be-b97a-fd26d90883c8', 'name': 'ctest-vn-36906249', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['651b5117-4098-4d68-a23a-721721453137'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-36906249'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471']], 'subnet_ipam': [{'subnet_cidr': '140.244.211.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 13:59:50,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff15190d-775d-459f-9dc1-e8e3006ef2ff', 'name': 'ctest-vn-11660188', 'tenant_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'project_id': 'd53ff46fe83c4225a2619ce96b8aeedf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9d281cc-fcb5-454f-b8d8-a2b7390994ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-vn-11660188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471']], 'subnet_ipam': [{'subnet_cidr': '113.162.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 13:59:50,175 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-04 13:59:50,507 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-04 13:59:50,540 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146
2024-09-04 13:59:50,558 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf
2024-09-04 13:59:50,635 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8
2024-09-04 13:59:50,646 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8
2024-09-04 13:59:50,656 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28
2024-09-04 13:59:50,665 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28
2024-09-04 13:59:50,683 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/ada887db-a687-4362-bb9b-15edce6485db
2024-09-04 13:59:50,691 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 13:59:50,691 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8
2024-09-04 13:59:50,699 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28
2024-09-04 13:59:50,713 - INFO - Verified VN network id 8 for VN 2243d6eb-6904-41be-b97a-fd26d90883c8
2024-09-04 13:59:50,713 - INFO - Verifications in API Server for VN ctest-vn-36906249 passed
2024-09-04 13:59:50,713 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8
2024-09-04 13:59:50,723 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28
2024-09-04 13:59:50,730 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/9e3da33f-e58a-474c-92b1-8905e50c4c28
2024-09-04 13:59:50,737 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/ada887db-a687-4362-bb9b-15edce6485db
2024-09-04 13:59:50,750 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93207588', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2469053327296709054', 'uuid-lslong': '13365273187467166664'}, 'enable': 'true', 'created': '2024-09-04T13:59:48', 'last-modified': '2024-09-04T13:59:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033633'}
2024-09-04 13:59:50,757 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 13:59:50,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36906249 passed
2024-09-04 13:59:50,757 - DEBUG - ====Verifying policy data for ctest-vn-36906249 in API_Server ======
2024-09-04 13:59:50,757 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-04 13:59:50,766 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146
2024-09-04 13:59:50,779 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf
2024-09-04 13:59:50,854 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2243d6eb-6904-41be-b97a-fd26d90883c8
2024-09-04 13:59:50,863 - DEBUG - ==>Verifying data for policy with id: 94036b3f-fb56-4252-8de2-d044eb234f9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471']
2024-09-04 13:59:50,863 - INFO - VN ctest-vn-36906249 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 13:59:50,864 - DEBUG - Verifying the vn in opserver
2024-09-04 13:59:50,864 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249 virtual network link through opserver 10.0.0.53
2024-09-04 13:59:50,864 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2024-09-04 13:59:51,164 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2024-09-04 13:59:51,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249?flat'}
2024-09-04 13:59:51,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-36906249 is found in opserver
2024-09-04 13:59:51,248 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 13:59:51,255 - DEBUG - VRF ids for VN ctest-vn-36906249: {}
2024-09-04 13:59:51,255 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-04 13:59:51,262 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146
2024-09-04 13:59:51,275 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf
2024-09-04 13:59:51,348 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff
2024-09-04 13:59:51,360 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff
2024-09-04 13:59:51,369 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064
2024-09-04 13:59:51,377 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064
2024-09-04 13:59:51,385 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/0c86711d-6b47-4d3e-8a87-497c32b4d612
2024-09-04 13:59:51,393 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 13:59:51,393 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff
2024-09-04 13:59:51,402 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064
2024-09-04 13:59:51,417 - INFO - Verified VN network id 9 for VN ff15190d-775d-459f-9dc1-e8e3006ef2ff
2024-09-04 13:59:51,417 - INFO - Verifications in API Server for VN ctest-vn-11660188 passed
2024-09-04 13:59:51,417 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff
2024-09-04 13:59:51,428 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064
2024-09-04 13:59:51,437 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/b211c527-f3c2-4b24-b988-948975b68064
2024-09-04 13:59:51,446 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/0c86711d-6b47-4d3e-8a87-497c32b4d612
2024-09-04 13:59:51,460 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93207588', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18380624999810418079', 'uuid-lslong': '11367622996122333951'}, 'enable': 'true', 'created': '2024-09-04T13:59:48', 'last-modified': '2024-09-04T13:59:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.475211'}
2024-09-04 13:59:51,468 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 13:59:51,468 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11660188 passed
2024-09-04 13:59:51,469 - DEBUG - ====Verifying policy data for ctest-vn-11660188 in API_Server ======
2024-09-04 13:59:51,469 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-04 13:59:51,481 - DEBUG - Requesting: http://10.0.0.53:8082/domain/71ff85a5-fa66-4156-8b6e-fcf48c891146
2024-09-04 13:59:51,495 - DEBUG - Requesting: http://10.0.0.53:8082/project/d53ff46f-e83c-4225-a261-9ce96b8aeedf
2024-09-04 13:59:51,567 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ff15190d-775d-459f-9dc1-e8e3006ef2ff
2024-09-04 13:59:51,578 - DEBUG - ==>Verifying data for policy with id: 94036b3f-fb56-4252-8de2-d044eb234f9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-93207588', 'ctest-policy-allow-all-02097471']
2024-09-04 13:59:51,578 - INFO - VN ctest-vn-11660188 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 13:59:51,578 - DEBUG - Verifying the vn in opserver
2024-09-04 13:59:51,578 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188 virtual network link through opserver 10.0.0.53
2024-09-04 13:59:51,578 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2024-09-04 13:59:51,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188?flat'}
2024-09-04 13:59:51,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93207588:ctest-vn-11660188 is found in opserver
2024-09-04 13:59:51,615 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 13:59:51,624 - DEBUG - VRF ids for VN ctest-vn-11660188: {}
2024-09-04 13:59:51,699 - DEBUG - Services list from nova: [