2024-09-12 13:34:10,662 - INFO - Domain Default found not creating
2024-09-12 13:34:10,893 - INFO - Project ctest-TestBasicPolicy-66690045 not found, creating it
2024-09-12 13:34:11,393 - INFO - Created Project:ctest-TestBasicPolicy-66690045, ID : ef94f91d-5503-4675-81a8-97f5717d9d05
2024-09-12 13:34:13,054 - INFO - ================================================================================
2024-09-12 13:34:13,054 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-12 13:34:13,054 - 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-12 13:34:13,309 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.10': '0'}} with
2024-09-12 13:34:13,309 - INFO - Initial checks done. Running the testcase now
2024-09-12 13:34:13,309 - INFO -
2024-09-12 13:34:13,936 - DEBUG - Response for create_network : {'network': {'id': 'a8ab9acb-ca57-4b77-89a3-5bb212bdfc51', 'name': 'ctest-vn-03100993', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-03100993'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 13:34:14,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '63daddb6-7424-49c8-a111-c3c8f15c6317', 'name': '', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'network_id': 'a8ab9acb-ca57-4b77-89a3-5bb212bdfc51', 'ip_version': 4, 'cidr': '103.71.101.192/26', 'allocation_pools': [{'start': '103.71.101.194', 'end': '103.71.101.254'}], 'gateway_ip': '103.71.101.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.71.101.194', 'tags': [], 'project_id': 'ef94f91d5503467581a897f5717d9d05'}}
2024-09-12 13:34:14,201 - INFO - Created VN ctest-vn-03100993
2024-09-12 13:34:14,261 - DEBUG - VN ctest-vn-03100993 UUID is a8ab9acb-ca57-4b77-89a3-5bb212bdfc51
2024-09-12 13:34:14,621 - DEBUG - Response for create_network : {'network': {'id': 'fd42e149-dd50-47bd-a566-ec4fe17ad043', 'name': 'ctest-vn-45981226', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-45981226'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 13:34:14,806 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc1ed51d-c07c-4b2e-aa9b-a9e0013aa1f0', 'name': '', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'network_id': 'fd42e149-dd50-47bd-a566-ec4fe17ad043', 'ip_version': 4, 'cidr': '29.245.135.64/26', 'allocation_pools': [{'start': '29.245.135.66', 'end': '29.245.135.126'}], 'gateway_ip': '29.245.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.245.135.66', 'tags': [], 'project_id': 'ef94f91d5503467581a897f5717d9d05'}}
2024-09-12 13:34:14,830 - INFO - Created VN ctest-vn-45981226
2024-09-12 13:34:14,893 - DEBUG - VN ctest-vn-45981226 UUID is fd42e149-dd50-47bd-a566-ec4fe17ad043
2024-09-12 13:34:15,032 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993, 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-66690045:ctest-vn-45981226, 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-12 13:34:15,383 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8ab9acb-ca57-4b77-89a3-5bb212bdfc51', 'name': 'ctest-vn-03100993', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63daddb6-7424-49c8-a111-c3c8f15c6317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-03100993'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154']], 'subnet_ipam': [{'subnet_cidr': '103.71.101.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 13:34:15,659 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd42e149-dd50-47bd-a566-ec4fe17ad043', 'name': 'ctest-vn-45981226', 'tenant_id': 'ef94f91d5503467581a897f5717d9d05', 'project_id': 'ef94f91d5503467581a897f5717d9d05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc1ed51d-c07c-4b2e-aa9b-a9e0013aa1f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-vn-45981226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154']], 'subnet_ipam': [{'subnet_cidr': '29.245.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 13:34:15,838 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 13:34:16,160 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 13:34:16,205 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066
2024-09-12 13:34:16,224 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05
2024-09-12 13:34:16,317 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51
2024-09-12 13:34:16,335 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51
2024-09-12 13:34:16,352 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8
2024-09-12 13:34:16,363 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8
2024-09-12 13:34:16,373 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/360607f4-d7f9-478c-be1c-6d906bad5c8b
2024-09-12 13:34:16,383 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 13:34:16,383 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51
2024-09-12 13:34:16,399 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8
2024-09-12 13:34:16,424 - INFO - Verified VN network id 9 for VN a8ab9acb-ca57-4b77-89a3-5bb212bdfc51
2024-09-12 13:34:16,425 - INFO - Verifications in API Server for VN ctest-vn-03100993 passed
2024-09-12 13:34:16,425 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51
2024-09-12 13:34:16,442 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8
2024-09-12 13:34:16,453 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/08db9dfb-1ea8-416c-8fa6-0096c5c711b8
2024-09-12 13:34:16,464 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/360607f4-d7f9-478c-be1c-6d906bad5c8b
2024-09-12 13:34:16,482 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66690045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12153978219453172599', 'uuid-lslong': '9917871624776711249'}, 'enable': 'true', 'created': '2024-09-12T13:34:13', 'last-modified': '2024-09-12T13:34:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.141790'}
2024-09-12 13:34:16,490 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 13:34:16,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03100993 passed
2024-09-12 13:34:16,491 - DEBUG - ====Verifying policy data for ctest-vn-03100993 in API_Server ======
2024-09-12 13:34:16,491 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 13:34:16,498 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066
2024-09-12 13:34:16,514 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05
2024-09-12 13:34:16,599 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a8ab9acb-ca57-4b77-89a3-5bb212bdfc51
2024-09-12 13:34:16,615 - DEBUG - ==>Verifying data for policy with id: 887278f9-e688-43b4-8fe5-53bef2f842b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154']
2024-09-12 13:34:16,615 - INFO - VN ctest-vn-03100993 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 13:34:16,615 - DEBUG - Verifying the vn in opserver
2024-09-12 13:34:16,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993 virtual network link through opserver 10.0.0.22
2024-09-12 13:34:16,616 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-12 13:34:16,921 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-12 13:34:16,997 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993?flat'}
2024-09-12 13:34:16,997 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-03100993 is found in opserver
2024-09-12 13:34:17,012 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 13:34:17,018 - DEBUG - VRF ids for VN ctest-vn-03100993: {}
2024-09-12 13:34:17,018 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 13:34:17,025 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066
2024-09-12 13:34:17,043 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05
2024-09-12 13:34:17,142 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043
2024-09-12 13:34:17,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043
2024-09-12 13:34:17,182 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721
2024-09-12 13:34:17,193 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721
2024-09-12 13:34:17,206 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bcf1902e-e87d-4fd1-a9b4-5764ba412fb3
2024-09-12 13:34:17,217 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 13:34:17,217 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043
2024-09-12 13:34:17,235 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721
2024-09-12 13:34:17,263 - INFO - Verified VN network id 10 for VN fd42e149-dd50-47bd-a566-ec4fe17ad043
2024-09-12 13:34:17,263 - INFO - Verifications in API Server for VN ctest-vn-45981226 passed
2024-09-12 13:34:17,263 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043
2024-09-12 13:34:17,280 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721
2024-09-12 13:34:17,293 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f1f2208b-4120-41a9-ad43-18f879d74721
2024-09-12 13:34:17,304 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bcf1902e-e87d-4fd1-a9b4-5764ba412fb3
2024-09-12 13:34:17,322 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66690045', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18249396347420559293', 'uuid-lslong': '11918473291712090179'}, 'enable': 'true', 'created': '2024-09-12T13:34:14', 'last-modified': '2024-09-12T13:34:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.700121'}
2024-09-12 13:34:17,330 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 13:34:17,330 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45981226 passed
2024-09-12 13:34:17,331 - DEBUG - ====Verifying policy data for ctest-vn-45981226 in API_Server ======
2024-09-12 13:34:17,331 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-09-12 13:34:17,338 - DEBUG - Requesting: http://10.0.0.22:8082/domain/73bbad78-0942-463c-b05f-6e98a0106066
2024-09-12 13:34:17,361 - DEBUG - Requesting: http://10.0.0.22:8082/project/ef94f91d-5503-4675-81a8-97f5717d9d05
2024-09-12 13:34:17,450 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fd42e149-dd50-47bd-a566-ec4fe17ad043
2024-09-12 13:34:17,465 - DEBUG - ==>Verifying data for policy with id: 887278f9-e688-43b4-8fe5-53bef2f842b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-66690045', 'ctest-policy-allow-all-02818154']
2024-09-12 13:34:17,465 - INFO - VN ctest-vn-45981226 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 13:34:17,465 - DEBUG - Verifying the vn in opserver
2024-09-12 13:34:17,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226 virtual network link through opserver 10.0.0.22
2024-09-12 13:34:17,465 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-09-12 13:34:17,480 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226?flat'}
2024-09-12 13:34:17,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66690045:ctest-vn-45981226 is found in opserver
2024-09-12 13:34:17,494 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 13:34:17,501 - DEBUG - VRF ids for VN ctest-vn-45981226: {}
2024-09-12 13:34:17,570 - DEBUG - Services list from nova: [