2025-09-08 16:04:07,416 - INFO - Domain Default found not creating
2025-09-08 16:04:07,547 - INFO - Project ctest-TestBasicPolicy-01024001 not found, creating it
2025-09-08 16:04:07,980 - INFO - Created Project:ctest-TestBasicPolicy-01024001, ID : ab2cb73e-bf6b-40e2-a2c9-8afe1a48b15b
2025-09-08 16:04:09,420 - INFO - ================================================================================
2025-09-08 16:04:09,420 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-08 16:04:09,420 - 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-09-08 16:04:09,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.193': '0'}} with
2025-09-08 16:04:09,678 - INFO - Initial checks done. Running the testcase now
2025-09-08 16:04:09,678 - INFO -
2025-09-08 16:04:10,213 - DEBUG - Response for create_network : {'network': {'id': '15f887ec-0b14-4d4b-91b7-e560feb82710', 'name': 'ctest-vn-36638182', 'tenant_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'project_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-vn-36638182'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 16:04:10,414 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e217e566-0137-467c-b61f-ab1f9c09af0f', 'name': '', 'tenant_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'network_id': '15f887ec-0b14-4d4b-91b7-e560feb82710', 'ip_version': 4, 'cidr': '130.63.111.128/26', 'allocation_pools': [{'start': '130.63.111.130', 'end': '130.63.111.190'}], 'gateway_ip': '130.63.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.63.111.130', 'tags': [], 'project_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b'}}
2025-09-08 16:04:10,432 - INFO - Created VN ctest-vn-36638182
2025-09-08 16:04:10,483 - DEBUG - VN ctest-vn-36638182 UUID is 15f887ec-0b14-4d4b-91b7-e560feb82710
2025-09-08 16:04:10,756 - DEBUG - Response for create_network : {'network': {'id': '450ad08a-19c4-465e-8afe-210433ad800c', 'name': 'ctest-vn-09580672', 'tenant_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'project_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-vn-09580672'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 16:04:10,939 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dccde79e-2119-4415-9fb0-4db20c235c81', 'name': '', 'tenant_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'network_id': '450ad08a-19c4-465e-8afe-210433ad800c', 'ip_version': 4, 'cidr': '189.225.92.192/26', 'allocation_pools': [{'start': '189.225.92.194', 'end': '189.225.92.254'}], 'gateway_ip': '189.225.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.225.92.194', 'tags': [], 'project_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b'}}
2025-09-08 16:04:10,957 - INFO - Created VN ctest-vn-09580672
2025-09-08 16:04:11,011 - DEBUG - VN ctest-vn-09580672 UUID is 450ad08a-19c4-465e-8afe-210433ad800c
2025-09-08 16:04:11,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-36638182, 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-01024001:ctest-vn-09580672, 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-09-08 16:04:11,430 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15f887ec-0b14-4d4b-91b7-e560feb82710', 'name': 'ctest-vn-36638182', 'tenant_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'project_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e217e566-0137-467c-b61f-ab1f9c09af0f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-vn-36638182'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-policy-allow-all-75925986']], 'subnet_ipam': [{'subnet_cidr': '130.63.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 16:04:11,650 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '450ad08a-19c4-465e-8afe-210433ad800c', 'name': 'ctest-vn-09580672', 'tenant_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'project_id': 'ab2cb73ebf6b40e2a2c98afe1a48b15b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dccde79e-2119-4415-9fb0-4db20c235c81'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-vn-09580672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-policy-allow-all-75925986']], 'subnet_ipam': [{'subnet_cidr': '189.225.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 16:04:11,803 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 16:04:12,094 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 16:04:12,124 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb1103cc-1f72-4b41-b0db-05d945200c8d
2025-09-08 16:04:12,136 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab2cb73e-bf6b-40e2-a2c9-8afe1a48b15b
2025-09-08 16:04:12,208 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15f887ec-0b14-4d4b-91b7-e560feb82710
2025-09-08 16:04:12,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15f887ec-0b14-4d4b-91b7-e560feb82710
2025-09-08 16:04:12,229 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bfce9dd-34b9-41aa-ac59-e4ee2b670063
2025-09-08 16:04:12,236 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bfce9dd-34b9-41aa-ac59-e4ee2b670063
2025-09-08 16:04:12,242 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2d0be4f6-e26a-4024-a122-1c1d719e5d72
2025-09-08 16:04:12,248 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 16:04:12,248 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15f887ec-0b14-4d4b-91b7-e560feb82710
2025-09-08 16:04:12,255 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bfce9dd-34b9-41aa-ac59-e4ee2b670063
2025-09-08 16:04:12,270 - INFO - Verified VN network id 11 for VN 15f887ec-0b14-4d4b-91b7-e560feb82710
2025-09-08 16:04:12,270 - INFO - Verifications in API Server for VN ctest-vn-36638182 passed
2025-09-08 16:04:12,270 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15f887ec-0b14-4d4b-91b7-e560feb82710
2025-09-08 16:04:12,277 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bfce9dd-34b9-41aa-ac59-e4ee2b670063
2025-09-08 16:04:12,283 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2bfce9dd-34b9-41aa-ac59-e4ee2b670063
2025-09-08 16:04:12,288 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/2d0be4f6-e26a-4024-a122-1c1d719e5d72
2025-09-08 16:04:12,298 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-36638182', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01024001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1583164716888640843', 'uuid-lslong': '10500113260990703376'}, 'enable': 'true', 'created': '2025-09-08T16:04:10', 'last-modified': '2025-09-08T16:04:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890997'}
2025-09-08 16:04:12,304 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 16:04:12,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36638182 passed
2025-09-08 16:04:12,304 - DEBUG - ====Verifying policy data for ctest-vn-36638182 in API_Server ======
2025-09-08 16:04:12,304 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 16:04:12,309 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb1103cc-1f72-4b41-b0db-05d945200c8d
2025-09-08 16:04:12,320 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab2cb73e-bf6b-40e2-a2c9-8afe1a48b15b
2025-09-08 16:04:12,386 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/15f887ec-0b14-4d4b-91b7-e560feb82710
2025-09-08 16:04:12,395 - DEBUG - ==>Verifying data for policy with id: f920bd3a-bb4f-4ea2-93ce-0098f88d12ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-policy-allow-all-75925986']
2025-09-08 16:04:12,395 - INFO - VN ctest-vn-36638182 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 16:04:12,395 - DEBUG - Verifying the vn in opserver
2025-09-08 16:04:12,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-36638182 virtual network link through opserver 10.0.0.254
2025-09-08 16:04:12,395 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-08 16:04:12,686 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-08 16:04:12,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-36638182', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-36638182?flat'}
2025-09-08 16:04:12,741 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-36638182 is found in opserver
2025-09-08 16:04:12,749 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 16:04:12,754 - DEBUG - VRF ids for VN ctest-vn-36638182: {}
2025-09-08 16:04:12,754 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 16:04:12,759 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb1103cc-1f72-4b41-b0db-05d945200c8d
2025-09-08 16:04:12,772 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab2cb73e-bf6b-40e2-a2c9-8afe1a48b15b
2025-09-08 16:04:12,847 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/450ad08a-19c4-465e-8afe-210433ad800c
2025-09-08 16:04:12,859 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/450ad08a-19c4-465e-8afe-210433ad800c
2025-09-08 16:04:12,871 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/584c98ac-a30c-4677-9114-da4b8995947d
2025-09-08 16:04:12,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/584c98ac-a30c-4677-9114-da4b8995947d
2025-09-08 16:04:12,886 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7ad5978-ae07-4dd6-a05b-3a18ded15933
2025-09-08 16:04:12,892 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 16:04:12,892 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/450ad08a-19c4-465e-8afe-210433ad800c
2025-09-08 16:04:12,901 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/584c98ac-a30c-4677-9114-da4b8995947d
2025-09-08 16:04:12,917 - INFO - Verified VN network id 12 for VN 450ad08a-19c4-465e-8afe-210433ad800c
2025-09-08 16:04:12,917 - INFO - Verifications in API Server for VN ctest-vn-09580672 passed
2025-09-08 16:04:12,918 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/450ad08a-19c4-465e-8afe-210433ad800c
2025-09-08 16:04:12,927 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/584c98ac-a30c-4677-9114-da4b8995947d
2025-09-08 16:04:12,935 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/584c98ac-a30c-4677-9114-da4b8995947d
2025-09-08 16:04:12,942 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a7ad5978-ae07-4dd6-a05b-3a18ded15933
2025-09-08 16:04:12,955 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-09580672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01024001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4975018029940491870', 'uuid-lslong': '10015478923249156108'}, 'enable': 'true', 'created': '2025-09-08T16:04:10', 'last-modified': '2025-09-08T16:04:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324015'}
2025-09-08 16:04:12,961 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 16:04:12,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09580672 passed
2025-09-08 16:04:12,961 - DEBUG - ====Verifying policy data for ctest-vn-09580672 in API_Server ======
2025-09-08 16:04:12,961 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 16:04:12,967 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb1103cc-1f72-4b41-b0db-05d945200c8d
2025-09-08 16:04:12,977 - DEBUG - Requesting: http://10.0.0.254:8082/project/ab2cb73e-bf6b-40e2-a2c9-8afe1a48b15b
2025-09-08 16:04:13,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/450ad08a-19c4-465e-8afe-210433ad800c
2025-09-08 16:04:13,057 - DEBUG - ==>Verifying data for policy with id: f920bd3a-bb4f-4ea2-93ce-0098f88d12ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-01024001', 'ctest-policy-allow-all-75925986']
2025-09-08 16:04:13,057 - INFO - VN ctest-vn-09580672 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 16:04:13,057 - DEBUG - Verifying the vn in opserver
2025-09-08 16:04:13,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-09580672 virtual network link through opserver 10.0.0.254
2025-09-08 16:04:13,057 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-08 16:04:13,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-09580672', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-09580672?flat'}
2025-09-08 16:04:13,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01024001:ctest-vn-09580672 is found in opserver
2025-09-08 16:04:13,074 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 16:04:13,077 - DEBUG - VRF ids for VN ctest-vn-09580672: {}
2025-09-08 16:04:13,130 - DEBUG - Services list from nova: [