2025-03-25 03:28:18,658 - INFO - Domain Default found not creating
2025-03-25 03:28:18,806 - INFO - Project ctest-TestBasicPolicy-39844165 not found, creating it
2025-03-25 03:28:19,291 - INFO - Created Project:ctest-TestBasicPolicy-39844165, ID : 2b0da86b-6c88-4188-bbab-f3a349c67a9e
2025-03-25 03:28:20,784 - INFO - ================================================================================
2025-03-25 03:28:20,785 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-25 03:28:20,785 - 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-03-25 03:28:21,040 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.7': '0'}} with
2025-03-25 03:28:21,041 - INFO - Initial checks done. Running the testcase now
2025-03-25 03:28:21,041 - INFO -
2025-03-25 03:28:21,589 - DEBUG - Response for create_network : {'network': {'id': '0ae09a5a-a8ea-4c81-a28c-8da1a5394fef', 'name': 'ctest-vn-43513675', 'tenant_id': '2b0da86b6c884188bbabf3a349c67a9e', 'project_id': '2b0da86b6c884188bbabf3a349c67a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-vn-43513675'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 03:28:21,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd567028b-e13e-443d-ac39-9803093ec4b6', 'name': '', 'tenant_id': '2b0da86b6c884188bbabf3a349c67a9e', 'network_id': '0ae09a5a-a8ea-4c81-a28c-8da1a5394fef', 'ip_version': 4, 'cidr': '89.50.229.128/26', 'allocation_pools': [{'start': '89.50.229.130', 'end': '89.50.229.190'}], 'gateway_ip': '89.50.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.50.229.130', 'tags': [], 'project_id': '2b0da86b6c884188bbabf3a349c67a9e'}}
2025-03-25 03:28:21,780 - INFO - Created VN ctest-vn-43513675
2025-03-25 03:28:21,835 - DEBUG - VN ctest-vn-43513675 UUID is 0ae09a5a-a8ea-4c81-a28c-8da1a5394fef
2025-03-25 03:28:22,134 - DEBUG - Response for create_network : {'network': {'id': '054c8820-7c47-4e57-99c9-f54acd8223a6', 'name': 'ctest-vn-72265954', 'tenant_id': '2b0da86b6c884188bbabf3a349c67a9e', 'project_id': '2b0da86b6c884188bbabf3a349c67a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-vn-72265954'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 03:28:22,369 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f303f3e-4334-4064-b17a-bf34957b169e', 'name': '', 'tenant_id': '2b0da86b6c884188bbabf3a349c67a9e', 'network_id': '054c8820-7c47-4e57-99c9-f54acd8223a6', 'ip_version': 4, 'cidr': '126.202.97.0/26', 'allocation_pools': [{'start': '126.202.97.2', 'end': '126.202.97.62'}], 'gateway_ip': '126.202.97.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.202.97.2', 'tags': [], 'project_id': '2b0da86b6c884188bbabf3a349c67a9e'}}
2025-03-25 03:28:22,387 - INFO - Created VN ctest-vn-72265954
2025-03-25 03:28:22,443 - DEBUG - VN ctest-vn-72265954 UUID is 054c8820-7c47-4e57-99c9-f54acd8223a6
2025-03-25 03:28:22,556 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-43513675, 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-39844165:ctest-vn-72265954, 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-03-25 03:28:22,859 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ae09a5a-a8ea-4c81-a28c-8da1a5394fef', 'name': 'ctest-vn-43513675', 'tenant_id': '2b0da86b6c884188bbabf3a349c67a9e', 'project_id': '2b0da86b6c884188bbabf3a349c67a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d567028b-e13e-443d-ac39-9803093ec4b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-vn-43513675'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-policy-allow-all-75084494']], 'subnet_ipam': [{'subnet_cidr': '89.50.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 03:28:23,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '054c8820-7c47-4e57-99c9-f54acd8223a6', 'name': 'ctest-vn-72265954', 'tenant_id': '2b0da86b6c884188bbabf3a349c67a9e', 'project_id': '2b0da86b6c884188bbabf3a349c67a9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f303f3e-4334-4064-b17a-bf34957b169e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-vn-72265954'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-policy-allow-all-75084494']], 'subnet_ipam': [{'subnet_cidr': '126.202.97.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 03:28:23,263 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-25 03:28:23,552 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-25 03:28:23,579 - DEBUG - Requesting: http://10.0.0.17:8082/domain/961ce51a-0e09-4523-851b-3226ab47d136
2025-03-25 03:28:23,592 - DEBUG - Requesting: http://10.0.0.17:8082/project/2b0da86b-6c88-4188-bbab-f3a349c67a9e
2025-03-25 03:28:23,669 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/0ae09a5a-a8ea-4c81-a28c-8da1a5394fef
2025-03-25 03:28:23,680 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/0ae09a5a-a8ea-4c81-a28c-8da1a5394fef
2025-03-25 03:28:23,690 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2a535200-12e1-4242-876a-51988435f40e
2025-03-25 03:28:23,697 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2a535200-12e1-4242-876a-51988435f40e
2025-03-25 03:28:23,703 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/98adcd4f-fad7-448b-8ad3-680ef8fb2c8a
2025-03-25 03:28:23,710 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 03:28:23,710 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/0ae09a5a-a8ea-4c81-a28c-8da1a5394fef
2025-03-25 03:28:23,719 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2a535200-12e1-4242-876a-51988435f40e
2025-03-25 03:28:23,732 - INFO - Verified VN network id 7 for VN 0ae09a5a-a8ea-4c81-a28c-8da1a5394fef
2025-03-25 03:28:23,732 - INFO - Verifications in API Server for VN ctest-vn-43513675 passed
2025-03-25 03:28:23,732 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/0ae09a5a-a8ea-4c81-a28c-8da1a5394fef
2025-03-25 03:28:23,742 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2a535200-12e1-4242-876a-51988435f40e
2025-03-25 03:28:23,750 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/2a535200-12e1-4242-876a-51988435f40e
2025-03-25 03:28:23,758 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/98adcd4f-fad7-448b-8ad3-680ef8fb2c8a
2025-03-25 03:28:23,770 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-43513675', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39844165', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '783796049334127745', 'uuid-lslong': '11712892456285065199'}, 'enable': 'true', 'created': '2025-03-25T03:28:21', 'last-modified': '2025-03-25T03:28:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929538'}
2025-03-25 03:28:23,777 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 03:28:23,777 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43513675 passed
2025-03-25 03:28:23,777 - DEBUG - ====Verifying policy data for ctest-vn-43513675 in API_Server ======
2025-03-25 03:28:23,777 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-25 03:28:23,783 - DEBUG - Requesting: http://10.0.0.17:8082/domain/961ce51a-0e09-4523-851b-3226ab47d136
2025-03-25 03:28:23,793 - DEBUG - Requesting: http://10.0.0.17:8082/project/2b0da86b-6c88-4188-bbab-f3a349c67a9e
2025-03-25 03:28:23,876 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/0ae09a5a-a8ea-4c81-a28c-8da1a5394fef
2025-03-25 03:28:23,886 - DEBUG - ==>Verifying data for policy with id: 54a05c24-f6e9-4f09-a0bd-06d0a60d3bc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-policy-allow-all-75084494']
2025-03-25 03:28:23,886 - INFO - VN ctest-vn-43513675 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 03:28:23,886 - DEBUG - Verifying the vn in opserver
2025-03-25 03:28:23,886 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-43513675 virtual network link through opserver 10.0.0.17
2025-03-25 03:28:23,887 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-25 03:28:24,181 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-25 03:28:24,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-43513675', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-43513675?flat'}
2025-03-25 03:28:24,237 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-43513675 is found in opserver
2025-03-25 03:28:24,249 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 03:28:24,256 - DEBUG - VRF ids for VN ctest-vn-43513675: {}
2025-03-25 03:28:24,256 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-25 03:28:24,263 - DEBUG - Requesting: http://10.0.0.17:8082/domain/961ce51a-0e09-4523-851b-3226ab47d136
2025-03-25 03:28:24,277 - DEBUG - Requesting: http://10.0.0.17:8082/project/2b0da86b-6c88-4188-bbab-f3a349c67a9e
2025-03-25 03:28:24,352 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/054c8820-7c47-4e57-99c9-f54acd8223a6
2025-03-25 03:28:24,364 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/054c8820-7c47-4e57-99c9-f54acd8223a6
2025-03-25 03:28:24,374 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/56e38f22-736d-40d7-baa1-87596ae7b6f0
2025-03-25 03:28:24,382 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/56e38f22-736d-40d7-baa1-87596ae7b6f0
2025-03-25 03:28:24,388 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/fadb04a7-ae3a-4763-bf48-560d264f0c8b
2025-03-25 03:28:24,396 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 03:28:24,396 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/054c8820-7c47-4e57-99c9-f54acd8223a6
2025-03-25 03:28:24,406 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/56e38f22-736d-40d7-baa1-87596ae7b6f0
2025-03-25 03:28:24,424 - INFO - Verified VN network id 8 for VN 054c8820-7c47-4e57-99c9-f54acd8223a6
2025-03-25 03:28:24,424 - INFO - Verifications in API Server for VN ctest-vn-72265954 passed
2025-03-25 03:28:24,424 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/054c8820-7c47-4e57-99c9-f54acd8223a6
2025-03-25 03:28:24,435 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/56e38f22-736d-40d7-baa1-87596ae7b6f0
2025-03-25 03:28:24,442 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/56e38f22-736d-40d7-baa1-87596ae7b6f0
2025-03-25 03:28:24,449 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/fadb04a7-ae3a-4763-bf48-560d264f0c8b
2025-03-25 03:28:24,462 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-72265954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39844165', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '381829741525028439', 'uuid-lslong': '11081658059746059174'}, 'enable': 'true', 'created': '2025-03-25T03:28:22', 'last-modified': '2025-03-25T03:28:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386929'}
2025-03-25 03:28:24,470 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 03:28:24,470 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72265954 passed
2025-03-25 03:28:24,470 - DEBUG - ====Verifying policy data for ctest-vn-72265954 in API_Server ======
2025-03-25 03:28:24,470 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-25 03:28:24,477 - DEBUG - Requesting: http://10.0.0.17:8082/domain/961ce51a-0e09-4523-851b-3226ab47d136
2025-03-25 03:28:24,500 - DEBUG - Requesting: http://10.0.0.17:8082/project/2b0da86b-6c88-4188-bbab-f3a349c67a9e
2025-03-25 03:28:24,574 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/054c8820-7c47-4e57-99c9-f54acd8223a6
2025-03-25 03:28:24,586 - DEBUG - ==>Verifying data for policy with id: 54a05c24-f6e9-4f09-a0bd-06d0a60d3bc4, fqn: ['default-domain', 'ctest-TestBasicPolicy-39844165', 'ctest-policy-allow-all-75084494']
2025-03-25 03:28:24,586 - INFO - VN ctest-vn-72265954 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 03:28:24,586 - DEBUG - Verifying the vn in opserver
2025-03-25 03:28:24,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-72265954 virtual network link through opserver 10.0.0.17
2025-03-25 03:28:24,586 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-25 03:28:24,597 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-72265954', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-72265954?flat'}
2025-03-25 03:28:24,597 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39844165:ctest-vn-72265954 is found in opserver
2025-03-25 03:28:24,608 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 03:28:24,613 - DEBUG - VRF ids for VN ctest-vn-72265954: {}
2025-03-25 03:28:24,666 - DEBUG - Services list from nova: [