2025-04-16 20:06:55,578 - INFO - Domain Default found not creating
2025-04-16 20:06:55,738 - INFO - Project ctest-TestBasicPolicy-89172505 not found, creating it
2025-04-16 20:06:56,220 - INFO - Created Project:ctest-TestBasicPolicy-89172505, ID : 1d720bd6-7eb4-4f8b-bee6-50aff9aeee56
2025-04-16 20:06:57,774 - INFO - ================================================================================
2025-04-16 20:06:57,774 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-16 20:06:57,774 - 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
2025-04-16 20:06:58,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.129': '0'}} with
2025-04-16 20:06:58,041 - INFO - Initial checks done. Running the testcase now
2025-04-16 20:06:58,041 - INFO -
2025-04-16 20:06:58,603 - DEBUG - Response for create_network : {'network': {'id': '74720fd0-387a-494b-86c9-c170edfb301c', 'name': 'ctest-vn-57920392', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-57920392'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 20:06:58,782 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0681700-216c-459a-92db-a392b0c5ceaf', 'name': '', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'network_id': '74720fd0-387a-494b-86c9-c170edfb301c', 'ip_version': 4, 'cidr': '130.101.117.64/26', 'allocation_pools': [{'start': '130.101.117.66', 'end': '130.101.117.126'}], 'gateway_ip': '130.101.117.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.101.117.66', 'tags': [], 'project_id': '1d720bd67eb44f8bbee650aff9aeee56'}}
2025-04-16 20:06:58,806 - INFO - Created VN ctest-vn-57920392
2025-04-16 20:06:58,862 - DEBUG - VN ctest-vn-57920392 UUID is 74720fd0-387a-494b-86c9-c170edfb301c
2025-04-16 20:06:59,213 - DEBUG - Response for create_network : {'network': {'id': 'acb8f2ed-0993-4c21-b89a-9a6e0faad538', 'name': 'ctest-vn-36248485', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-36248485'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 20:06:59,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cd047d9-9250-4366-a967-2278e44e2a5d', 'name': '', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'network_id': 'acb8f2ed-0993-4c21-b89a-9a6e0faad538', 'ip_version': 4, 'cidr': '78.82.174.128/26', 'allocation_pools': [{'start': '78.82.174.130', 'end': '78.82.174.190'}], 'gateway_ip': '78.82.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.82.174.130', 'tags': [], 'project_id': '1d720bd67eb44f8bbee650aff9aeee56'}}
2025-04-16 20:06:59,447 - INFO - Created VN ctest-vn-36248485
2025-04-16 20:06:59,502 - DEBUG - VN ctest-vn-36248485 UUID is acb8f2ed-0993-4c21-b89a-9a6e0faad538
2025-04-16 20:06:59,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392, 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-89172505:ctest-vn-36248485, 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]
2025-04-16 20:06:59,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74720fd0-387a-494b-86c9-c170edfb301c', 'name': 'ctest-vn-57920392', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0681700-216c-459a-92db-a392b0c5ceaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-57920392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693']], 'subnet_ipam': [{'subnet_cidr': '130.101.117.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 20:07:00,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'acb8f2ed-0993-4c21-b89a-9a6e0faad538', 'name': 'ctest-vn-36248485', 'tenant_id': '1d720bd67eb44f8bbee650aff9aeee56', 'project_id': '1d720bd67eb44f8bbee650aff9aeee56', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cd047d9-9250-4366-a967-2278e44e2a5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-vn-36248485'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693']], 'subnet_ipam': [{'subnet_cidr': '78.82.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 20:07:00,394 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-16 20:07:00,700 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-16 20:07:00,731 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb
2025-04-16 20:07:00,748 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56
2025-04-16 20:07:00,826 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c
2025-04-16 20:07:00,838 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c
2025-04-16 20:07:00,849 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f
2025-04-16 20:07:00,859 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f
2025-04-16 20:07:00,868 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/817a0a35-6aea-4f22-affb-b3c9255f84d2
2025-04-16 20:07:00,877 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 20:07:00,877 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c
2025-04-16 20:07:00,891 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f
2025-04-16 20:07:00,911 - INFO - Verified VN network id 8 for VN 74720fd0-387a-494b-86c9-c170edfb301c
2025-04-16 20:07:00,912 - INFO - Verifications in API Server for VN ctest-vn-57920392 passed
2025-04-16 20:07:00,912 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c
2025-04-16 20:07:00,923 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f
2025-04-16 20:07:00,931 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3b21188f-ab39-422e-84e9-ccacccfb9a7f
2025-04-16 20:07:00,940 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/817a0a35-6aea-4f22-affb-b3c9255f84d2
2025-04-16 20:07:00,956 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89172505', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8390786442719807819', 'uuid-lslong': '9712506762174345244'}, 'enable': 'true', 'created': '2025-04-16T20:06:58', 'last-modified': '2025-04-16T20:06:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034212'}
2025-04-16 20:07:00,963 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 20:07:00,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57920392 passed
2025-04-16 20:07:00,964 - DEBUG - ====Verifying policy data for ctest-vn-57920392 in API_Server ======
2025-04-16 20:07:00,964 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-16 20:07:00,972 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb
2025-04-16 20:07:00,986 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56
2025-04-16 20:07:01,057 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/74720fd0-387a-494b-86c9-c170edfb301c
2025-04-16 20:07:01,069 - DEBUG - ==>Verifying data for policy with id: a1cb995f-df14-429f-8d61-884c59e34a64, fqn: ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693']
2025-04-16 20:07:01,069 - INFO - VN ctest-vn-57920392 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 20:07:01,069 - DEBUG - Verifying the vn in opserver
2025-04-16 20:07:01,069 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392 virtual network link through opserver 10.0.0.129
2025-04-16 20:07:01,069 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-04-16 20:07:01,373 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-04-16 20:07:01,439 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392?flat'}
2025-04-16 20:07:01,439 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-57920392 is found in opserver
2025-04-16 20:07:01,454 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 20:07:01,461 - DEBUG - VRF ids for VN ctest-vn-57920392: {}
2025-04-16 20:07:01,461 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-16 20:07:01,469 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb
2025-04-16 20:07:01,483 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56
2025-04-16 20:07:01,563 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538
2025-04-16 20:07:01,578 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538
2025-04-16 20:07:01,589 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b
2025-04-16 20:07:01,598 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b
2025-04-16 20:07:01,606 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c6a166bf-f6e8-43df-849d-3670c76da19d
2025-04-16 20:07:01,615 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 20:07:01,615 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538
2025-04-16 20:07:01,626 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b
2025-04-16 20:07:01,643 - INFO - Verified VN network id 9 for VN acb8f2ed-0993-4c21-b89a-9a6e0faad538
2025-04-16 20:07:01,643 - INFO - Verifications in API Server for VN ctest-vn-36248485 passed
2025-04-16 20:07:01,643 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538
2025-04-16 20:07:01,655 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b
2025-04-16 20:07:01,663 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/a749a5d0-5ad5-4265-9152-34845aa6205b
2025-04-16 20:07:01,672 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c6a166bf-f6e8-43df-849d-3670c76da19d
2025-04-16 20:07:01,686 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89172505', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12445964670120184865', 'uuid-lslong': '13302114246892115256'}, 'enable': 'true', 'created': '2025-04-16T20:06:59', 'last-modified': '2025-04-16T20:07:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504818'}
2025-04-16 20:07:01,695 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 20:07:01,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36248485 passed
2025-04-16 20:07:01,696 - DEBUG - ====Verifying policy data for ctest-vn-36248485 in API_Server ======
2025-04-16 20:07:01,696 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-04-16 20:07:01,704 - DEBUG - Requesting: http://10.0.0.129:8082/domain/e3850cea-b4da-4173-8314-76828c0796eb
2025-04-16 20:07:01,719 - DEBUG - Requesting: http://10.0.0.129:8082/project/1d720bd6-7eb4-4f8b-bee6-50aff9aeee56
2025-04-16 20:07:01,796 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/acb8f2ed-0993-4c21-b89a-9a6e0faad538
2025-04-16 20:07:01,807 - DEBUG - ==>Verifying data for policy with id: a1cb995f-df14-429f-8d61-884c59e34a64, fqn: ['default-domain', 'ctest-TestBasicPolicy-89172505', 'ctest-policy-allow-all-39086693']
2025-04-16 20:07:01,807 - INFO - VN ctest-vn-36248485 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 20:07:01,807 - DEBUG - Verifying the vn in opserver
2025-04-16 20:07:01,807 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485 virtual network link through opserver 10.0.0.129
2025-04-16 20:07:01,807 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-04-16 20:07:01,821 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485?flat'}
2025-04-16 20:07:01,821 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89172505:ctest-vn-36248485 is found in opserver
2025-04-16 20:07:01,835 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 20:07:01,841 - DEBUG - VRF ids for VN ctest-vn-36248485: {}
2025-04-16 20:07:01,930 - DEBUG - Services list from nova: [