2025-10-08 12:49:48,035 - INFO - Domain Default found not creating
2025-10-08 12:49:48,171 - INFO - Project ctest-TestBasicPolicy-19794268 not found, creating it
2025-10-08 12:49:48,604 - INFO - Created Project:ctest-TestBasicPolicy-19794268, ID : 1eda5d24-9e5c-4881-9a9c-74ef6e64e93f
2025-10-08 12:49:50,532 - INFO - ================================================================================
2025-10-08 12:49:50,532 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 12:49:50,532 - 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-10-08 12:49:50,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-08 12:49:50,786 - INFO - Initial checks done. Running the testcase now
2025-10-08 12:49:50,786 - INFO -
2025-10-08 12:49:51,289 - DEBUG - Response for create_network : {'network': {'id': '304e9f4c-45ae-43c7-91d5-03e0adc56f3c', 'name': 'ctest-vn-24861962', 'tenant_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'project_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-vn-24861962'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 12:49:51,474 - DEBUG - Response for create_subnet : {'subnet': {'id': '305af033-4f67-4aa4-b7c3-1cf0815d2fd5', 'name': '', 'tenant_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'network_id': '304e9f4c-45ae-43c7-91d5-03e0adc56f3c', 'ip_version': 4, 'cidr': '205.113.43.192/26', 'allocation_pools': [{'start': '205.113.43.194', 'end': '205.113.43.254'}], 'gateway_ip': '205.113.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.113.43.194', 'tags': [], 'project_id': '1eda5d249e5c48819a9c74ef6e64e93f'}}
2025-10-08 12:49:51,490 - INFO - Created VN ctest-vn-24861962
2025-10-08 12:49:51,542 - DEBUG - VN ctest-vn-24861962 UUID is 304e9f4c-45ae-43c7-91d5-03e0adc56f3c
2025-10-08 12:49:51,848 - DEBUG - Response for create_network : {'network': {'id': 'a1d13722-7f4b-424f-bc23-57aa4db4eca1', 'name': 'ctest-vn-54552671', 'tenant_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'project_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-vn-54552671'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 12:49:52,047 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fedbd77d-92dd-4ed9-9f61-29264042d3a3', 'name': '', 'tenant_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'network_id': 'a1d13722-7f4b-424f-bc23-57aa4db4eca1', 'ip_version': 4, 'cidr': '147.204.37.128/26', 'allocation_pools': [{'start': '147.204.37.130', 'end': '147.204.37.190'}], 'gateway_ip': '147.204.37.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.204.37.130', 'tags': [], 'project_id': '1eda5d249e5c48819a9c74ef6e64e93f'}}
2025-10-08 12:49:52,063 - INFO - Created VN ctest-vn-54552671
2025-10-08 12:49:52,114 - DEBUG - VN ctest-vn-54552671 UUID is a1d13722-7f4b-424f-bc23-57aa4db4eca1
2025-10-08 12:49:52,265 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-24861962, 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-19794268:ctest-vn-54552671, 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-10-08 12:49:52,557 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '304e9f4c-45ae-43c7-91d5-03e0adc56f3c', 'name': 'ctest-vn-24861962', 'tenant_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'project_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['305af033-4f67-4aa4-b7c3-1cf0815d2fd5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-vn-24861962'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-policy-allow-all-52409927']], 'subnet_ipam': [{'subnet_cidr': '205.113.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 12:49:52,828 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1d13722-7f4b-424f-bc23-57aa4db4eca1', 'name': 'ctest-vn-54552671', 'tenant_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'project_id': '1eda5d249e5c48819a9c74ef6e64e93f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fedbd77d-92dd-4ed9-9f61-29264042d3a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-vn-54552671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-policy-allow-all-52409927']], 'subnet_ipam': [{'subnet_cidr': '147.204.37.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 12:49:52,982 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 12:49:53,272 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 12:49:53,297 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4
2025-10-08 12:49:53,308 - DEBUG - Requesting: http://10.0.0.254:8082/project/1eda5d24-9e5c-4881-9a9c-74ef6e64e93f
2025-10-08 12:49:53,386 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/304e9f4c-45ae-43c7-91d5-03e0adc56f3c
2025-10-08 12:49:53,398 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/304e9f4c-45ae-43c7-91d5-03e0adc56f3c
2025-10-08 12:49:53,408 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/15d5ddcd-29bc-49fb-9b57-97c0c5d462ff
2025-10-08 12:49:53,416 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/15d5ddcd-29bc-49fb-9b57-97c0c5d462ff
2025-10-08 12:49:53,423 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ae7e5b96-0745-4f74-a223-7c9493edbcbd
2025-10-08 12:49:53,428 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 12:49:53,428 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/304e9f4c-45ae-43c7-91d5-03e0adc56f3c
2025-10-08 12:49:53,436 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/15d5ddcd-29bc-49fb-9b57-97c0c5d462ff
2025-10-08 12:49:53,448 - INFO - Verified VN network id 11 for VN 304e9f4c-45ae-43c7-91d5-03e0adc56f3c
2025-10-08 12:49:53,448 - INFO - Verifications in API Server for VN ctest-vn-24861962 passed
2025-10-08 12:49:53,448 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/304e9f4c-45ae-43c7-91d5-03e0adc56f3c
2025-10-08 12:49:53,457 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/15d5ddcd-29bc-49fb-9b57-97c0c5d462ff
2025-10-08 12:49:53,466 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/15d5ddcd-29bc-49fb-9b57-97c0c5d462ff
2025-10-08 12:49:53,473 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ae7e5b96-0745-4f74-a223-7c9493edbcbd
2025-10-08 12:49:53,486 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-24861962', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19794268', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3480894711939351495', 'uuid-lslong': '10508309569061875516'}, 'enable': 'true', 'created': '2025-10-08T12:49:51', 'last-modified': '2025-10-08T12:49:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948939'}
2025-10-08 12:49:53,493 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 12:49:53,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24861962 passed
2025-10-08 12:49:53,493 - DEBUG - ====Verifying policy data for ctest-vn-24861962 in API_Server ======
2025-10-08 12:49:53,494 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 12:49:53,499 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4
2025-10-08 12:49:53,509 - DEBUG - Requesting: http://10.0.0.254:8082/project/1eda5d24-9e5c-4881-9a9c-74ef6e64e93f
2025-10-08 12:49:53,578 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/304e9f4c-45ae-43c7-91d5-03e0adc56f3c
2025-10-08 12:49:53,585 - DEBUG - ==>Verifying data for policy with id: 71baeb4d-ec54-45b3-81ac-b4cef9b9394d, fqn: ['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-policy-allow-all-52409927']
2025-10-08 12:49:53,585 - INFO - VN ctest-vn-24861962 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 12:49:53,585 - DEBUG - Verifying the vn in opserver
2025-10-08 12:49:53,585 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-24861962 virtual network link through opserver 10.0.0.254
2025-10-08 12:49:53,586 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-08 12:49:53,873 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-08 12:49:53,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-24861962', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-24861962?flat'}
2025-10-08 12:49:53,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-24861962 is found in opserver
2025-10-08 12:49:53,929 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 12:49:53,932 - DEBUG - VRF ids for VN ctest-vn-24861962: {}
2025-10-08 12:49:53,933 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 12:49:53,937 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4
2025-10-08 12:49:53,946 - DEBUG - Requesting: http://10.0.0.254:8082/project/1eda5d24-9e5c-4881-9a9c-74ef6e64e93f
2025-10-08 12:49:54,013 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1d13722-7f4b-424f-bc23-57aa4db4eca1
2025-10-08 12:49:54,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1d13722-7f4b-424f-bc23-57aa4db4eca1
2025-10-08 12:49:54,031 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ed86a304-979e-4d93-b379-2cc22f4f2aa5
2025-10-08 12:49:54,037 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ed86a304-979e-4d93-b379-2cc22f4f2aa5
2025-10-08 12:49:54,043 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c5918c8-e065-41d7-b8d8-ebdcb2d34c8b
2025-10-08 12:49:54,048 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 12:49:54,048 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1d13722-7f4b-424f-bc23-57aa4db4eca1
2025-10-08 12:49:54,056 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ed86a304-979e-4d93-b379-2cc22f4f2aa5
2025-10-08 12:49:54,067 - INFO - Verified VN network id 12 for VN a1d13722-7f4b-424f-bc23-57aa4db4eca1
2025-10-08 12:49:54,067 - INFO - Verifications in API Server for VN ctest-vn-54552671 passed
2025-10-08 12:49:54,067 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1d13722-7f4b-424f-bc23-57aa4db4eca1
2025-10-08 12:49:54,075 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ed86a304-979e-4d93-b379-2cc22f4f2aa5
2025-10-08 12:49:54,081 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ed86a304-979e-4d93-b379-2cc22f4f2aa5
2025-10-08 12:49:54,086 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c5918c8-e065-41d7-b8d8-ebdcb2d34c8b
2025-10-08 12:49:54,095 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-54552671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19794268', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11660161531542979151', 'uuid-lslong': '13556775692275084449'}, 'enable': 'true', 'created': '2025-10-08T12:49:51', 'last-modified': '2025-10-08T12:49:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.335336'}
2025-10-08 12:49:54,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 12:49:54,101 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54552671 passed
2025-10-08 12:49:54,101 - DEBUG - ====Verifying policy data for ctest-vn-54552671 in API_Server ======
2025-10-08 12:49:54,101 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 12:49:54,106 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ccda1354-36e4-4eba-bf2a-3d55d380c7d4
2025-10-08 12:49:54,116 - DEBUG - Requesting: http://10.0.0.254:8082/project/1eda5d24-9e5c-4881-9a9c-74ef6e64e93f
2025-10-08 12:49:54,180 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1d13722-7f4b-424f-bc23-57aa4db4eca1
2025-10-08 12:49:54,187 - DEBUG - ==>Verifying data for policy with id: 71baeb4d-ec54-45b3-81ac-b4cef9b9394d, fqn: ['default-domain', 'ctest-TestBasicPolicy-19794268', 'ctest-policy-allow-all-52409927']
2025-10-08 12:49:54,187 - INFO - VN ctest-vn-54552671 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 12:49:54,188 - DEBUG - Verifying the vn in opserver
2025-10-08 12:49:54,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-54552671 virtual network link through opserver 10.0.0.254
2025-10-08 12:49:54,188 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-08 12:49:54,195 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-54552671', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-54552671?flat'}
2025-10-08 12:49:54,195 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19794268:ctest-vn-54552671 is found in opserver
2025-10-08 12:49:54,203 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 12:49:54,207 - DEBUG - VRF ids for VN ctest-vn-54552671: {}
2025-10-08 12:49:54,256 - DEBUG - Services list from nova: [