2025-12-08 17:20:42,756 - INFO - Domain Default found not creating
2025-12-08 17:20:42,936 - INFO - Project ctest-TestBasicPolicy-66839516 not found, creating it
2025-12-08 17:20:43,357 - INFO - Created Project:ctest-TestBasicPolicy-66839516, ID : fcfdf0ef-aafc-4eb9-8b4b-427ff216c5e4
2025-12-08 17:20:44,738 - INFO - ================================================================================
2025-12-08 17:20:44,739 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 17:20:44,739 - 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-12-08 17:20:44,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with
2025-12-08 17:20:44,991 - INFO - Initial checks done. Running the testcase now
2025-12-08 17:20:44,991 - INFO -
2025-12-08 17:20:45,507 - DEBUG - Response for create_network : {'network': {'id': 'a3f5276a-e42c-4faf-a505-1cc24670c5c2', 'name': 'ctest-vn-29559754', 'tenant_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'project_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-vn-29559754'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 17:20:45,679 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0dd9b6a-3a2a-47b7-ae57-e6bbddf4f1b5', 'name': '', 'tenant_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'network_id': 'a3f5276a-e42c-4faf-a505-1cc24670c5c2', 'ip_version': 4, 'cidr': '184.228.115.0/26', 'allocation_pools': [{'start': '184.228.115.2', 'end': '184.228.115.62'}], 'gateway_ip': '184.228.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.228.115.2', 'tags': [], 'project_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4'}}
2025-12-08 17:20:45,706 - INFO - Created VN ctest-vn-29559754
2025-12-08 17:20:45,759 - DEBUG - VN ctest-vn-29559754 UUID is a3f5276a-e42c-4faf-a505-1cc24670c5c2
2025-12-08 17:20:46,079 - DEBUG - Response for create_network : {'network': {'id': '4eb1c90a-60f7-440a-9c9e-57545db7dc1d', 'name': 'ctest-vn-25853792', 'tenant_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'project_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-vn-25853792'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 17:20:46,263 - DEBUG - Response for create_subnet : {'subnet': {'id': '750d7309-1f03-4873-902b-ad8b6709027c', 'name': '', 'tenant_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'network_id': '4eb1c90a-60f7-440a-9c9e-57545db7dc1d', 'ip_version': 4, 'cidr': '51.89.79.128/26', 'allocation_pools': [{'start': '51.89.79.130', 'end': '51.89.79.190'}], 'gateway_ip': '51.89.79.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.89.79.130', 'tags': [], 'project_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4'}}
2025-12-08 17:20:46,279 - INFO - Created VN ctest-vn-25853792
2025-12-08 17:20:46,331 - DEBUG - VN ctest-vn-25853792 UUID is 4eb1c90a-60f7-440a-9c9e-57545db7dc1d
2025-12-08 17:20:46,438 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-29559754, 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-66839516:ctest-vn-25853792, 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-12-08 17:20:46,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3f5276a-e42c-4faf-a505-1cc24670c5c2', 'name': 'ctest-vn-29559754', 'tenant_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'project_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0dd9b6a-3a2a-47b7-ae57-e6bbddf4f1b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-vn-29559754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-policy-allow-all-97655895']], 'subnet_ipam': [{'subnet_cidr': '184.228.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 17:20:46,924 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4eb1c90a-60f7-440a-9c9e-57545db7dc1d', 'name': 'ctest-vn-25853792', 'tenant_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'project_id': 'fcfdf0efaafc4eb98b4b427ff216c5e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['750d7309-1f03-4873-902b-ad8b6709027c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-vn-25853792'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-policy-allow-all-97655895']], 'subnet_ipam': [{'subnet_cidr': '51.89.79.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 17:20:47,067 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-12-08 17:20:47,360 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-12-08 17:20:47,388 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697
2025-12-08 17:20:47,399 - DEBUG - Requesting: http://10.0.0.129:8082/project/fcfdf0ef-aafc-4eb9-8b4b-427ff216c5e4
2025-12-08 17:20:47,470 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a3f5276a-e42c-4faf-a505-1cc24670c5c2
2025-12-08 17:20:47,480 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a3f5276a-e42c-4faf-a505-1cc24670c5c2
2025-12-08 17:20:47,488 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e5e8d81-a291-43ea-9b54-1f9c57aa2db4
2025-12-08 17:20:47,493 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e5e8d81-a291-43ea-9b54-1f9c57aa2db4
2025-12-08 17:20:47,499 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/006f8fe8-01dc-42f8-9b06-5f949c7964fb
2025-12-08 17:20:47,503 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 17:20:47,503 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a3f5276a-e42c-4faf-a505-1cc24670c5c2
2025-12-08 17:20:47,510 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e5e8d81-a291-43ea-9b54-1f9c57aa2db4
2025-12-08 17:20:47,521 - INFO - Verified VN network id 12 for VN a3f5276a-e42c-4faf-a505-1cc24670c5c2
2025-12-08 17:20:47,521 - INFO - Verifications in API Server for VN ctest-vn-29559754 passed
2025-12-08 17:20:47,521 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a3f5276a-e42c-4faf-a505-1cc24670c5c2
2025-12-08 17:20:47,527 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e5e8d81-a291-43ea-9b54-1f9c57aa2db4
2025-12-08 17:20:47,532 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e5e8d81-a291-43ea-9b54-1f9c57aa2db4
2025-12-08 17:20:47,537 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/006f8fe8-01dc-42f8-9b06-5f949c7964fb
2025-12-08 17:20:47,548 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-29559754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66839516', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11814392537524490159', 'uuid-lslong': '11890942011872691650'}, 'enable': 'true', 'created': '2025-12-08T17:20:45', 'last-modified': '2025-12-08T17:20:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855538'}
2025-12-08 17:20:47,553 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 17:20:47,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29559754 passed
2025-12-08 17:20:47,553 - DEBUG - ====Verifying policy data for ctest-vn-29559754 in API_Server ======
2025-12-08 17:20:47,553 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-12-08 17:20:47,558 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697
2025-12-08 17:20:47,568 - DEBUG - Requesting: http://10.0.0.129:8082/project/fcfdf0ef-aafc-4eb9-8b4b-427ff216c5e4
2025-12-08 17:20:47,633 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a3f5276a-e42c-4faf-a505-1cc24670c5c2
2025-12-08 17:20:47,641 - DEBUG - ==>Verifying data for policy with id: 8630bdd3-2735-4afb-a462-0c1bdc3ae999, fqn: ['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-policy-allow-all-97655895']
2025-12-08 17:20:47,641 - INFO - VN ctest-vn-29559754 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 17:20:47,641 - DEBUG - Verifying the vn in opserver
2025-12-08 17:20:47,641 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-29559754 virtual network link through opserver 10.0.0.129
2025-12-08 17:20:47,641 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-12-08 17:20:47,929 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-12-08 17:20:47,979 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-29559754', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-29559754?flat'}
2025-12-08 17:20:47,979 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-29559754 is found in opserver
2025-12-08 17:20:47,987 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 17:20:47,990 - DEBUG - VRF ids for VN ctest-vn-29559754: {}
2025-12-08 17:20:47,990 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-12-08 17:20:47,994 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697
2025-12-08 17:20:48,003 - DEBUG - Requesting: http://10.0.0.129:8082/project/fcfdf0ef-aafc-4eb9-8b4b-427ff216c5e4
2025-12-08 17:20:48,072 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4eb1c90a-60f7-440a-9c9e-57545db7dc1d
2025-12-08 17:20:48,081 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4eb1c90a-60f7-440a-9c9e-57545db7dc1d
2025-12-08 17:20:48,088 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e27d902-089a-499c-87af-8726e762c3d1
2025-12-08 17:20:48,093 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e27d902-089a-499c-87af-8726e762c3d1
2025-12-08 17:20:48,098 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/23246313-d2a2-4958-a081-2f59f28080a0
2025-12-08 17:20:48,103 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 17:20:48,103 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4eb1c90a-60f7-440a-9c9e-57545db7dc1d
2025-12-08 17:20:48,109 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e27d902-089a-499c-87af-8726e762c3d1
2025-12-08 17:20:48,119 - INFO - Verified VN network id 13 for VN 4eb1c90a-60f7-440a-9c9e-57545db7dc1d
2025-12-08 17:20:48,119 - INFO - Verifications in API Server for VN ctest-vn-25853792 passed
2025-12-08 17:20:48,119 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4eb1c90a-60f7-440a-9c9e-57545db7dc1d
2025-12-08 17:20:48,126 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e27d902-089a-499c-87af-8726e762c3d1
2025-12-08 17:20:48,131 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/2e27d902-089a-499c-87af-8726e762c3d1
2025-12-08 17:20:48,135 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/23246313-d2a2-4958-a081-2f59f28080a0
2025-12-08 17:20:48,143 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-25853792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66839516', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5670534452249838602', 'uuid-lslong': '11285553736098241565'}, 'enable': 'true', 'created': '2025-12-08T17:20:46', 'last-modified': '2025-12-08T17:20:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.238426'}
2025-12-08 17:20:48,148 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 17:20:48,148 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25853792 passed
2025-12-08 17:20:48,148 - DEBUG - ====Verifying policy data for ctest-vn-25853792 in API_Server ======
2025-12-08 17:20:48,148 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-12-08 17:20:48,152 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697
2025-12-08 17:20:48,160 - DEBUG - Requesting: http://10.0.0.129:8082/project/fcfdf0ef-aafc-4eb9-8b4b-427ff216c5e4
2025-12-08 17:20:48,226 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/4eb1c90a-60f7-440a-9c9e-57545db7dc1d
2025-12-08 17:20:48,234 - DEBUG - ==>Verifying data for policy with id: 8630bdd3-2735-4afb-a462-0c1bdc3ae999, fqn: ['default-domain', 'ctest-TestBasicPolicy-66839516', 'ctest-policy-allow-all-97655895']
2025-12-08 17:20:48,234 - INFO - VN ctest-vn-25853792 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 17:20:48,234 - DEBUG - Verifying the vn in opserver
2025-12-08 17:20:48,234 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-25853792 virtual network link through opserver 10.0.0.129
2025-12-08 17:20:48,234 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-12-08 17:20:48,242 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-25853792', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-25853792?flat'}
2025-12-08 17:20:48,242 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66839516:ctest-vn-25853792 is found in opserver
2025-12-08 17:20:48,250 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 17:20:48,254 - DEBUG - VRF ids for VN ctest-vn-25853792: {}
2025-12-08 17:20:48,303 - DEBUG - Services list from nova: [