2025-09-25 01:49:49,393 - INFO - Domain Default found not creating
2025-09-25 01:49:49,557 - INFO - Project ctest-TestBasicPolicy-72652379 not found, creating it
2025-09-25 01:49:50,051 - INFO - Created Project:ctest-TestBasicPolicy-72652379, ID : 11b9442b-937f-4a7f-beab-2b2bc535dfaf
2025-09-25 01:49:51,561 - INFO - ================================================================================
2025-09-25 01:49:51,561 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-25 01:49:51,561 - 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-25 01:49:51,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-09-25 01:49:51,816 - INFO - Initial checks done. Running the testcase now
2025-09-25 01:49:51,816 - INFO -
2025-09-25 01:49:53,013 - DEBUG - Response for create_network : {'network': {'id': '3c886513-9615-4788-ad01-2c1e05cd1d85', 'name': 'ctest-vn-32175287', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-32175287'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:53,169 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef1683a3-1aa1-4b18-ab54-fe1905a045c2', 'name': '', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'network_id': '3c886513-9615-4788-ad01-2c1e05cd1d85', 'ip_version': 4, 'cidr': '3.164.182.64/26', 'allocation_pools': [{'start': '3.164.182.66', 'end': '3.164.182.126'}], 'gateway_ip': '3.164.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.164.182.66', 'tags': [], 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf'}}
2025-09-25 01:49:53,186 - INFO - Created VN ctest-vn-32175287
2025-09-25 01:49:53,239 - DEBUG - VN ctest-vn-32175287 UUID is 3c886513-9615-4788-ad01-2c1e05cd1d85
2025-09-25 01:49:53,602 - DEBUG - Response for create_network : {'network': {'id': '4fcd95a0-dceb-4b6d-897d-6c2585a35f31', 'name': 'ctest-vn-55791040', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-55791040'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:53,829 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b42b2be-df96-44a8-b79e-6b5461c4fa1f', 'name': '', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'network_id': '4fcd95a0-dceb-4b6d-897d-6c2585a35f31', 'ip_version': 4, 'cidr': '7.7.165.0/26', 'allocation_pools': [{'start': '7.7.165.2', 'end': '7.7.165.62'}], 'gateway_ip': '7.7.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.7.165.2', 'tags': [], 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf'}}
2025-09-25 01:49:53,848 - INFO - Created VN ctest-vn-55791040
2025-09-25 01:49:53,899 - DEBUG - VN ctest-vn-55791040 UUID is 4fcd95a0-dceb-4b6d-897d-6c2585a35f31
2025-09-25 01:49:54,051 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287, 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-72652379:ctest-vn-55791040, 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-25 01:49:54,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c886513-9615-4788-ad01-2c1e05cd1d85', 'name': 'ctest-vn-32175287', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef1683a3-1aa1-4b18-ab54-fe1905a045c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-32175287'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357']], 'subnet_ipam': [{'subnet_cidr': '3.164.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:54,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fcd95a0-dceb-4b6d-897d-6c2585a35f31', 'name': 'ctest-vn-55791040', 'tenant_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'project_id': '11b9442b937f4a7fbeab2b2bc535dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b42b2be-df96-44a8-b79e-6b5461c4fa1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-vn-55791040'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357']], 'subnet_ipam': [{'subnet_cidr': '7.7.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:54,767 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 01:49:55,101 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 01:49:55,127 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13
2025-09-25 01:49:55,140 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf
2025-09-25 01:49:55,210 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85
2025-09-25 01:49:55,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85
2025-09-25 01:49:55,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b
2025-09-25 01:49:55,233 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b
2025-09-25 01:49:55,239 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f2016f-846d-45b0-a68a-3fb1c57daf2b
2025-09-25 01:49:55,243 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 01:49:55,243 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85
2025-09-25 01:49:55,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b
2025-09-25 01:49:55,262 - INFO - Verified VN network id 9 for VN 3c886513-9615-4788-ad01-2c1e05cd1d85
2025-09-25 01:49:55,262 - INFO - Verifications in API Server for VN ctest-vn-32175287 passed
2025-09-25 01:49:55,262 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85
2025-09-25 01:49:55,270 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b
2025-09-25 01:49:55,276 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/49a3ed24-2792-4f72-aabd-44e85063983b
2025-09-25 01:49:55,282 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8f2016f-846d-45b0-a68a-3fb1c57daf2b
2025-09-25 01:49:55,292 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72652379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4361847373905086344', 'uuid-lslong': '12466293750996213125'}, 'enable': 'true', 'created': '2025-09-25T01:49:52', 'last-modified': '2025-09-25T01:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963700'}
2025-09-25 01:49:55,298 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 01:49:55,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32175287 passed
2025-09-25 01:49:55,298 - DEBUG - ====Verifying policy data for ctest-vn-32175287 in API_Server ======
2025-09-25 01:49:55,298 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 01:49:55,303 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13
2025-09-25 01:49:55,313 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf
2025-09-25 01:49:55,387 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c886513-9615-4788-ad01-2c1e05cd1d85
2025-09-25 01:49:55,395 - DEBUG - ==>Verifying data for policy with id: 42ff4135-568f-40e3-ac9b-a252af263d73, fqn: ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357']
2025-09-25 01:49:55,395 - INFO - VN ctest-vn-32175287 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 01:49:55,395 - DEBUG - Verifying the vn in opserver
2025-09-25 01:49:55,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287 virtual network link through opserver 10.0.0.254
2025-09-25 01:49:55,396 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-25 01:49:55,726 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-25 01:49:55,777 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287?flat'}
2025-09-25 01:49:55,777 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-32175287 is found in opserver
2025-09-25 01:49:55,787 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 01:49:55,791 - DEBUG - VRF ids for VN ctest-vn-32175287: {}
2025-09-25 01:49:55,791 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 01:49:55,797 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13
2025-09-25 01:49:55,807 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf
2025-09-25 01:49:55,878 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31
2025-09-25 01:49:55,889 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31
2025-09-25 01:49:55,898 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34
2025-09-25 01:49:55,904 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34
2025-09-25 01:49:55,909 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e622b6a-65ad-4a47-8369-0a0c334b8206
2025-09-25 01:49:55,915 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 01:49:55,915 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31
2025-09-25 01:49:55,923 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34
2025-09-25 01:49:55,936 - INFO - Verified VN network id 10 for VN 4fcd95a0-dceb-4b6d-897d-6c2585a35f31
2025-09-25 01:49:55,936 - INFO - Verifications in API Server for VN ctest-vn-55791040 passed
2025-09-25 01:49:55,936 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31
2025-09-25 01:49:55,944 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34
2025-09-25 01:49:55,950 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/964e7a52-ffbf-47aa-9be4-786e50b5ef34
2025-09-25 01:49:55,955 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e622b6a-65ad-4a47-8369-0a0c334b8206
2025-09-25 01:49:55,965 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72652379', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5750416817355705197', 'uuid-lslong': '9907193663696625457'}, 'enable': 'true', 'created': '2025-09-25T01:49:53', 'last-modified': '2025-09-25T01:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400931'}
2025-09-25 01:49:55,970 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 01:49:55,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55791040 passed
2025-09-25 01:49:55,970 - DEBUG - ====Verifying policy data for ctest-vn-55791040 in API_Server ======
2025-09-25 01:49:55,970 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-25 01:49:55,976 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ba76756e-1614-44a9-b36c-3ce434e08c13
2025-09-25 01:49:55,985 - DEBUG - Requesting: http://10.0.0.254:8082/project/11b9442b-937f-4a7f-beab-2b2bc535dfaf
2025-09-25 01:49:56,053 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcd95a0-dceb-4b6d-897d-6c2585a35f31
2025-09-25 01:49:56,063 - DEBUG - ==>Verifying data for policy with id: 42ff4135-568f-40e3-ac9b-a252af263d73, fqn: ['default-domain', 'ctest-TestBasicPolicy-72652379', 'ctest-policy-allow-all-27437357']
2025-09-25 01:49:56,063 - INFO - VN ctest-vn-55791040 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 01:49:56,063 - DEBUG - Verifying the vn in opserver
2025-09-25 01:49:56,063 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040 virtual network link through opserver 10.0.0.254
2025-09-25 01:49:56,063 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-25 01:49:56,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040?flat'}
2025-09-25 01:49:56,072 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72652379:ctest-vn-55791040 is found in opserver
2025-09-25 01:49:56,083 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 01:49:56,087 - DEBUG - VRF ids for VN ctest-vn-55791040: {}
2025-09-25 01:49:56,139 - DEBUG - Services list from nova: [