2024-11-15 01:44:49,063 - INFO - Domain Default found not creating
2024-11-15 01:44:49,227 - INFO - Project ctest-TestBasicPolicy-92263399 not found, creating it
2024-11-15 01:44:49,722 - INFO - Created Project:ctest-TestBasicPolicy-92263399, ID : 47f181f5-b3a7-4b11-ac88-31501a44d636
2024-11-15 01:44:51,273 - INFO - ================================================================================
2024-11-15 01:44:51,273 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-15 01:44:51,273 - 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-11-15 01:44:51,526 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.18': '0'}} with
2024-11-15 01:44:51,526 - INFO - Initial checks done. Running the testcase now
2024-11-15 01:44:51,527 - INFO -
2024-11-15 01:44:52,092 - DEBUG - Response for create_network : {'network': {'id': '5f89badc-6a8e-40fc-b49a-c316cd6038b2', 'name': 'ctest-vn-33131899', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-33131899'], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:44:52,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '1dd0033f-7172-4762-83cf-1d344c3c0cdb', 'name': '', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'network_id': '5f89badc-6a8e-40fc-b49a-c316cd6038b2', 'ip_version': 4, 'cidr': '125.74.46.128/26', 'allocation_pools': [{'start': '125.74.46.130', 'end': '125.74.46.190'}], 'gateway_ip': '125.74.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.74.46.130', 'tags': [], 'project_id': '47f181f5b3a74b11ac8831501a44d636'}}
2024-11-15 01:44:52,276 - INFO - Created VN ctest-vn-33131899
2024-11-15 01:44:52,333 - DEBUG - VN ctest-vn-33131899 UUID is 5f89badc-6a8e-40fc-b49a-c316cd6038b2
2024-11-15 01:44:52,625 - DEBUG - Response for create_network : {'network': {'id': 'ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7', 'name': 'ctest-vn-46662521', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-46662521'], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:44:52,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '3619f695-9805-4f8a-ae67-ef3550ed4152', 'name': '', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'network_id': 'ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7', 'ip_version': 4, 'cidr': '152.129.133.192/26', 'allocation_pools': [{'start': '152.129.133.194', 'end': '152.129.133.254'}], 'gateway_ip': '152.129.133.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.129.133.194', 'tags': [], 'project_id': '47f181f5b3a74b11ac8831501a44d636'}}
2024-11-15 01:44:52,854 - INFO - Created VN ctest-vn-46662521
2024-11-15 01:44:52,913 - DEBUG - VN ctest-vn-46662521 UUID is ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7
2024-11-15 01:44:53,033 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899, 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-92263399:ctest-vn-46662521, 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-11-15 01:44:53,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f89badc-6a8e-40fc-b49a-c316cd6038b2', 'name': 'ctest-vn-33131899', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1dd0033f-7172-4762-83cf-1d344c3c0cdb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-33131899'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824']], 'subnet_ipam': [{'subnet_cidr': '125.74.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:44:53,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7', 'name': 'ctest-vn-46662521', 'tenant_id': '47f181f5b3a74b11ac8831501a44d636', 'project_id': '47f181f5b3a74b11ac8831501a44d636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3619f695-9805-4f8a-ae67-ef3550ed4152'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-vn-46662521'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824']], 'subnet_ipam': [{'subnet_cidr': '152.129.133.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-15 01:44:53,782 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-15 01:44:54,117 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-15 01:44:54,149 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb
2024-11-15 01:44:54,164 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636
2024-11-15 01:44:54,249 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2
2024-11-15 01:44:54,265 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2
2024-11-15 01:44:54,277 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33
2024-11-15 01:44:54,286 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33
2024-11-15 01:44:54,295 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ee3570b7-57d0-467f-ae49-c1ee02c230e1
2024-11-15 01:44:54,302 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-15 01:44:54,302 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2
2024-11-15 01:44:54,317 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33
2024-11-15 01:44:54,341 - INFO - Verified VN network id 9 for VN 5f89badc-6a8e-40fc-b49a-c316cd6038b2
2024-11-15 01:44:54,341 - INFO - Verifications in API Server for VN ctest-vn-33131899 passed
2024-11-15 01:44:54,341 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2
2024-11-15 01:44:54,355 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33
2024-11-15 01:44:54,364 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/97b7bcf2-75c7-4978-9fee-0ae63cc46d33
2024-11-15 01:44:54,373 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/ee3570b7-57d0-467f-ae49-c1ee02c230e1
2024-11-15 01:44:54,386 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92263399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6884238961255792892', 'uuid-lslong': '13013928575942801586'}, 'enable': 'true', 'created': '2024-11-15T01:44:52', 'last-modified': '2024-11-15T01:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.055999'}
2024-11-15 01:44:54,392 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-15 01:44:54,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33131899 passed
2024-11-15 01:44:54,392 - DEBUG - ====Verifying policy data for ctest-vn-33131899 in API_Server ======
2024-11-15 01:44:54,393 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-15 01:44:54,398 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb
2024-11-15 01:44:54,412 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636
2024-11-15 01:44:54,493 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/5f89badc-6a8e-40fc-b49a-c316cd6038b2
2024-11-15 01:44:54,508 - DEBUG - ==>Verifying data for policy with id: 5b6fc509-bbd1-4a39-ba19-61ecf79c1b1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824']
2024-11-15 01:44:54,508 - INFO - VN ctest-vn-33131899 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-15 01:44:54,508 - DEBUG - Verifying the vn in opserver
2024-11-15 01:44:54,508 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899 virtual network link through opserver 10.0.0.42
2024-11-15 01:44:54,508 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-11-15 01:44:54,809 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-11-15 01:44:54,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899?flat'}
2024-11-15 01:44:54,868 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-33131899 is found in opserver
2024-11-15 01:44:54,879 - DEBUG - Do not have enough data to verify VN in agent
2024-11-15 01:44:54,885 - DEBUG - VRF ids for VN ctest-vn-33131899: {}
2024-11-15 01:44:54,885 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-15 01:44:54,890 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb
2024-11-15 01:44:54,904 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636
2024-11-15 01:44:54,982 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7
2024-11-15 01:44:54,999 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7
2024-11-15 01:44:55,012 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3
2024-11-15 01:44:55,022 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3
2024-11-15 01:44:55,030 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/08499160-d7ab-4eee-b75d-345f8b92a8e2
2024-11-15 01:44:55,037 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-15 01:44:55,037 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7
2024-11-15 01:44:55,050 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3
2024-11-15 01:44:55,070 - INFO - Verified VN network id 10 for VN ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7
2024-11-15 01:44:55,070 - INFO - Verifications in API Server for VN ctest-vn-46662521 passed
2024-11-15 01:44:55,071 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7
2024-11-15 01:44:55,084 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3
2024-11-15 01:44:55,092 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/0b71139e-f4a2-499d-bb4d-d7c8b0e970b3
2024-11-15 01:44:55,100 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/08499160-d7ab-4eee-b75d-345f8b92a8e2
2024-11-15 01:44:55,114 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92263399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12413439871845420829', 'uuid-lslong': '12634190920189684663'}, 'enable': 'true', 'created': '2024-11-15T01:44:52', 'last-modified': '2024-11-15T01:44:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530865'}
2024-11-15 01:44:55,120 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-15 01:44:55,120 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46662521 passed
2024-11-15 01:44:55,121 - DEBUG - ====Verifying policy data for ctest-vn-46662521 in API_Server ======
2024-11-15 01:44:55,121 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-11-15 01:44:55,127 - DEBUG - Requesting: http://10.0.0.42:8082/domain/2fd3c138-6b6a-41e2-a6fd-e0da4fa5babb
2024-11-15 01:44:55,141 - DEBUG - Requesting: http://10.0.0.42:8082/project/47f181f5-b3a7-4b11-ac88-31501a44d636
2024-11-15 01:44:55,229 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac4565cb-5204-4f1d-af55-a9b3fe5f2bb7
2024-11-15 01:44:55,243 - DEBUG - ==>Verifying data for policy with id: 5b6fc509-bbd1-4a39-ba19-61ecf79c1b1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-92263399', 'ctest-policy-allow-all-95552824']
2024-11-15 01:44:55,243 - INFO - VN ctest-vn-46662521 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-15 01:44:55,243 - DEBUG - Verifying the vn in opserver
2024-11-15 01:44:55,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521 virtual network link through opserver 10.0.0.42
2024-11-15 01:44:55,244 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-11-15 01:44:55,255 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521?flat'}
2024-11-15 01:44:55,255 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92263399:ctest-vn-46662521 is found in opserver
2024-11-15 01:44:55,269 - DEBUG - Do not have enough data to verify VN in agent
2024-11-15 01:44:55,275 - DEBUG - VRF ids for VN ctest-vn-46662521: {}
2024-11-15 01:44:55,344 - DEBUG - Services list from nova: [