2025-08-13 18:44:30,497 - INFO - Domain Default found not creating
2025-08-13 18:44:30,649 - INFO - Project ctest-TestBasicPolicy-40837462 not found, creating it
2025-08-13 18:44:31,112 - INFO - Created Project:ctest-TestBasicPolicy-40837462, ID : b3797535-a8e4-4fb5-9766-10c2a696b0f9
2025-08-13 18:44:32,519 - INFO - ================================================================================
2025-08-13 18:44:32,519 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 18:44:32,519 - 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-08-13 18:44:32,772 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-08-13 18:44:32,772 - INFO - Initial checks done. Running the testcase now
2025-08-13 18:44:32,772 - INFO -
2025-08-13 18:44:33,305 - DEBUG - Response for create_network : {'network': {'id': '50539734-94fa-4df4-838a-244730f27f07', 'name': 'ctest-vn-55361857', 'tenant_id': 'b3797535a8e44fb5976610c2a696b0f9', 'project_id': 'b3797535a8e44fb5976610c2a696b0f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-vn-55361857'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 18:44:33,528 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e73f77ac-6525-4270-b370-bff817016db0', 'name': '', 'tenant_id': 'b3797535a8e44fb5976610c2a696b0f9', 'network_id': '50539734-94fa-4df4-838a-244730f27f07', 'ip_version': 4, 'cidr': '219.100.225.0/26', 'allocation_pools': [{'start': '219.100.225.2', 'end': '219.100.225.62'}], 'gateway_ip': '219.100.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.100.225.2', 'tags': [], 'project_id': 'b3797535a8e44fb5976610c2a696b0f9'}}
2025-08-13 18:44:33,545 - INFO - Created VN ctest-vn-55361857
2025-08-13 18:44:33,595 - DEBUG - VN ctest-vn-55361857 UUID is 50539734-94fa-4df4-838a-244730f27f07
2025-08-13 18:44:33,900 - DEBUG - Response for create_network : {'network': {'id': 'c1237d39-d96b-43eb-89e2-64e3bc04ddfb', 'name': 'ctest-vn-15301916', 'tenant_id': 'b3797535a8e44fb5976610c2a696b0f9', 'project_id': 'b3797535a8e44fb5976610c2a696b0f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-vn-15301916'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 18:44:34,076 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff332490-461e-4aa0-ba0f-7a0e00729855', 'name': '', 'tenant_id': 'b3797535a8e44fb5976610c2a696b0f9', 'network_id': 'c1237d39-d96b-43eb-89e2-64e3bc04ddfb', 'ip_version': 4, 'cidr': '173.127.222.128/26', 'allocation_pools': [{'start': '173.127.222.130', 'end': '173.127.222.190'}], 'gateway_ip': '173.127.222.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.127.222.130', 'tags': [], 'project_id': 'b3797535a8e44fb5976610c2a696b0f9'}}
2025-08-13 18:44:34,092 - INFO - Created VN ctest-vn-15301916
2025-08-13 18:44:34,143 - DEBUG - VN ctest-vn-15301916 UUID is c1237d39-d96b-43eb-89e2-64e3bc04ddfb
2025-08-13 18:44:34,291 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-55361857, 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-40837462:ctest-vn-15301916, 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-08-13 18:44:34,577 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50539734-94fa-4df4-838a-244730f27f07', 'name': 'ctest-vn-55361857', 'tenant_id': 'b3797535a8e44fb5976610c2a696b0f9', 'project_id': 'b3797535a8e44fb5976610c2a696b0f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e73f77ac-6525-4270-b370-bff817016db0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-vn-55361857'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-policy-allow-all-40743822']], 'subnet_ipam': [{'subnet_cidr': '219.100.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 18:44:34,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1237d39-d96b-43eb-89e2-64e3bc04ddfb', 'name': 'ctest-vn-15301916', 'tenant_id': 'b3797535a8e44fb5976610c2a696b0f9', 'project_id': 'b3797535a8e44fb5976610c2a696b0f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff332490-461e-4aa0-ba0f-7a0e00729855'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-vn-15301916'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-policy-allow-all-40743822']], 'subnet_ipam': [{'subnet_cidr': '173.127.222.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 18:44:34,963 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-13 18:44:35,253 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-13 18:44:35,277 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e
2025-08-13 18:44:35,290 - DEBUG - Requesting: http://10.0.0.19:8082/project/b3797535-a8e4-4fb5-9766-10c2a696b0f9
2025-08-13 18:44:35,360 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/50539734-94fa-4df4-838a-244730f27f07
2025-08-13 18:44:35,372 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/50539734-94fa-4df4-838a-244730f27f07
2025-08-13 18:44:35,381 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e891d98b-f2a5-4932-87f2-2877ad2c3d3a
2025-08-13 18:44:35,389 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e891d98b-f2a5-4932-87f2-2877ad2c3d3a
2025-08-13 18:44:35,395 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/4fca8a7d-6f4c-4a79-aa98-0db0433eb1fb
2025-08-13 18:44:35,401 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 18:44:35,401 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/50539734-94fa-4df4-838a-244730f27f07
2025-08-13 18:44:35,410 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e891d98b-f2a5-4932-87f2-2877ad2c3d3a
2025-08-13 18:44:35,423 - INFO - Verified VN network id 11 for VN 50539734-94fa-4df4-838a-244730f27f07
2025-08-13 18:44:35,423 - INFO - Verifications in API Server for VN ctest-vn-55361857 passed
2025-08-13 18:44:35,423 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/50539734-94fa-4df4-838a-244730f27f07
2025-08-13 18:44:35,432 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e891d98b-f2a5-4932-87f2-2877ad2c3d3a
2025-08-13 18:44:35,438 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e891d98b-f2a5-4932-87f2-2877ad2c3d3a
2025-08-13 18:44:35,444 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/4fca8a7d-6f4c-4a79-aa98-0db0433eb1fb
2025-08-13 18:44:35,456 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-55361857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40837462', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5788136198194744820', 'uuid-lslong': '9478428253937106695'}, 'enable': 'true', 'created': '2025-08-13T18:44:33', 'last-modified': '2025-08-13T18:44:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903169'}
2025-08-13 18:44:35,462 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-13 18:44:35,463 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55361857 passed
2025-08-13 18:44:35,463 - DEBUG - ====Verifying policy data for ctest-vn-55361857 in API_Server ======
2025-08-13 18:44:35,463 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-13 18:44:35,468 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e
2025-08-13 18:44:35,479 - DEBUG - Requesting: http://10.0.0.19:8082/project/b3797535-a8e4-4fb5-9766-10c2a696b0f9
2025-08-13 18:44:35,546 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/50539734-94fa-4df4-838a-244730f27f07
2025-08-13 18:44:35,556 - DEBUG - ==>Verifying data for policy with id: 42862b25-383d-4614-8e71-91bb724b1217, fqn: ['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-policy-allow-all-40743822']
2025-08-13 18:44:35,556 - INFO - VN ctest-vn-55361857 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 18:44:35,556 - DEBUG - Verifying the vn in opserver
2025-08-13 18:44:35,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-55361857 virtual network link through opserver 10.0.0.19
2025-08-13 18:44:35,556 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-13 18:44:35,844 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-13 18:44:35,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-55361857', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-55361857?flat'}
2025-08-13 18:44:35,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-55361857 is found in opserver
2025-08-13 18:44:35,905 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 18:44:35,909 - DEBUG - VRF ids for VN ctest-vn-55361857: {}
2025-08-13 18:44:35,910 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-13 18:44:35,915 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e
2025-08-13 18:44:35,926 - DEBUG - Requesting: http://10.0.0.19:8082/project/b3797535-a8e4-4fb5-9766-10c2a696b0f9
2025-08-13 18:44:35,996 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1237d39-d96b-43eb-89e2-64e3bc04ddfb
2025-08-13 18:44:36,008 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1237d39-d96b-43eb-89e2-64e3bc04ddfb
2025-08-13 18:44:36,017 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4ce9b2c5-6897-417b-8561-d7eda3d8b179
2025-08-13 18:44:36,023 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4ce9b2c5-6897-417b-8561-d7eda3d8b179
2025-08-13 18:44:36,030 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/c754c1bc-cbd3-44d3-8f1c-35302179a68a
2025-08-13 18:44:36,036 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 18:44:36,036 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1237d39-d96b-43eb-89e2-64e3bc04ddfb
2025-08-13 18:44:36,044 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4ce9b2c5-6897-417b-8561-d7eda3d8b179
2025-08-13 18:44:36,056 - INFO - Verified VN network id 12 for VN c1237d39-d96b-43eb-89e2-64e3bc04ddfb
2025-08-13 18:44:36,056 - INFO - Verifications in API Server for VN ctest-vn-15301916 passed
2025-08-13 18:44:36,056 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1237d39-d96b-43eb-89e2-64e3bc04ddfb
2025-08-13 18:44:36,065 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4ce9b2c5-6897-417b-8561-d7eda3d8b179
2025-08-13 18:44:36,071 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4ce9b2c5-6897-417b-8561-d7eda3d8b179
2025-08-13 18:44:36,077 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/c754c1bc-cbd3-44d3-8f1c-35302179a68a
2025-08-13 18:44:36,088 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-15301916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40837462', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13917104960919258091', 'uuid-lslong': '9935614657207524859'}, 'enable': 'true', 'created': '2025-08-13T18:44:33', 'last-modified': '2025-08-13T18:44:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.310765'}
2025-08-13 18:44:36,094 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-13 18:44:36,094 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15301916 passed
2025-08-13 18:44:36,094 - DEBUG - ====Verifying policy data for ctest-vn-15301916 in API_Server ======
2025-08-13 18:44:36,095 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-13 18:44:36,099 - DEBUG - Requesting: http://10.0.0.19:8082/domain/fc4625db-8a0d-498c-b4b3-66d0c568fc3e
2025-08-13 18:44:36,110 - DEBUG - Requesting: http://10.0.0.19:8082/project/b3797535-a8e4-4fb5-9766-10c2a696b0f9
2025-08-13 18:44:36,184 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1237d39-d96b-43eb-89e2-64e3bc04ddfb
2025-08-13 18:44:36,193 - DEBUG - ==>Verifying data for policy with id: 42862b25-383d-4614-8e71-91bb724b1217, fqn: ['default-domain', 'ctest-TestBasicPolicy-40837462', 'ctest-policy-allow-all-40743822']
2025-08-13 18:44:36,193 - INFO - VN ctest-vn-15301916 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-13 18:44:36,193 - DEBUG - Verifying the vn in opserver
2025-08-13 18:44:36,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-15301916 virtual network link through opserver 10.0.0.19
2025-08-13 18:44:36,193 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-13 18:44:36,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-15301916', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-15301916?flat'}
2025-08-13 18:44:36,203 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40837462:ctest-vn-15301916 is found in opserver
2025-08-13 18:44:36,212 - DEBUG - Do not have enough data to verify VN in agent
2025-08-13 18:44:36,217 - DEBUG - VRF ids for VN ctest-vn-15301916: {}
2025-08-13 18:44:36,266 - DEBUG - Services list from nova: [