2025-12-09 06:08:27,909 - INFO - Domain Default found not creating
2025-12-09 06:08:28,057 - INFO - Project ctest-TestBasicPolicy-72729087 not found, creating it
2025-12-09 06:08:28,494 - INFO - Created Project:ctest-TestBasicPolicy-72729087, ID : 19e5e9c5-2399-4671-8d11-b64a1895a476
2025-12-09 06:08:29,797 - INFO - ================================================================================
2025-12-09 06:08:29,797 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 06:08:29,797 - 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-09 06:08:30,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-12-09 06:08:30,051 - INFO - Initial checks done. Running the testcase now
2025-12-09 06:08:30,051 - INFO -
2025-12-09 06:08:30,553 - DEBUG - Response for create_network : {'network': {'id': 'df1f4ab9-e0ad-4532-b316-4ed021a57790', 'name': 'ctest-vn-52072979', 'tenant_id': '19e5e9c5239946718d11b64a1895a476', 'project_id': '19e5e9c5239946718d11b64a1895a476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-vn-52072979'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 06:08:30,787 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f28e5f6e-eb9a-495c-8787-040244c98d08', 'name': '', 'tenant_id': '19e5e9c5239946718d11b64a1895a476', 'network_id': 'df1f4ab9-e0ad-4532-b316-4ed021a57790', 'ip_version': 4, 'cidr': '41.147.213.64/26', 'allocation_pools': [{'start': '41.147.213.66', 'end': '41.147.213.126'}], 'gateway_ip': '41.147.213.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.147.213.66', 'tags': [], 'project_id': '19e5e9c5239946718d11b64a1895a476'}}
2025-12-09 06:08:30,809 - INFO - Created VN ctest-vn-52072979
2025-12-09 06:08:30,863 - DEBUG - VN ctest-vn-52072979 UUID is df1f4ab9-e0ad-4532-b316-4ed021a57790
2025-12-09 06:08:31,183 - DEBUG - Response for create_network : {'network': {'id': '31231fa2-b41c-4f16-a24f-9295ad7662f9', 'name': 'ctest-vn-08343440', 'tenant_id': '19e5e9c5239946718d11b64a1895a476', 'project_id': '19e5e9c5239946718d11b64a1895a476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-vn-08343440'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 06:08:31,361 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbb6a7af-c222-4a68-b371-dff6b886571d', 'name': '', 'tenant_id': '19e5e9c5239946718d11b64a1895a476', 'network_id': '31231fa2-b41c-4f16-a24f-9295ad7662f9', 'ip_version': 4, 'cidr': '156.51.59.64/26', 'allocation_pools': [{'start': '156.51.59.66', 'end': '156.51.59.126'}], 'gateway_ip': '156.51.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.51.59.66', 'tags': [], 'project_id': '19e5e9c5239946718d11b64a1895a476'}}
2025-12-09 06:08:31,381 - INFO - Created VN ctest-vn-08343440
2025-12-09 06:08:31,435 - DEBUG - VN ctest-vn-08343440 UUID is 31231fa2-b41c-4f16-a24f-9295ad7662f9
2025-12-09 06:08:31,582 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-52072979, 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-72729087:ctest-vn-08343440, 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-09 06:08:31,859 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df1f4ab9-e0ad-4532-b316-4ed021a57790', 'name': 'ctest-vn-52072979', 'tenant_id': '19e5e9c5239946718d11b64a1895a476', 'project_id': '19e5e9c5239946718d11b64a1895a476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f28e5f6e-eb9a-495c-8787-040244c98d08'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-vn-52072979'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-policy-allow-all-66271072']], 'subnet_ipam': [{'subnet_cidr': '41.147.213.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 06:08:32,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31231fa2-b41c-4f16-a24f-9295ad7662f9', 'name': 'ctest-vn-08343440', 'tenant_id': '19e5e9c5239946718d11b64a1895a476', 'project_id': '19e5e9c5239946718d11b64a1895a476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fbb6a7af-c222-4a68-b371-dff6b886571d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-vn-08343440'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-policy-allow-all-66271072']], 'subnet_ipam': [{'subnet_cidr': '156.51.59.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 06:08:32,219 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 06:08:32,484 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 06:08:32,513 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922
2025-12-09 06:08:32,524 - DEBUG - Requesting: http://10.0.0.38:8082/project/19e5e9c5-2399-4671-8d11-b64a1895a476
2025-12-09 06:08:32,593 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df1f4ab9-e0ad-4532-b316-4ed021a57790
2025-12-09 06:08:32,603 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df1f4ab9-e0ad-4532-b316-4ed021a57790
2025-12-09 06:08:32,612 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3759a81a-609c-497b-8b1b-36631e4fbf2c
2025-12-09 06:08:32,619 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3759a81a-609c-497b-8b1b-36631e4fbf2c
2025-12-09 06:08:32,625 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/76fca379-3edb-4e92-9f8a-97e64ded8c65
2025-12-09 06:08:32,630 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 06:08:32,631 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df1f4ab9-e0ad-4532-b316-4ed021a57790
2025-12-09 06:08:32,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3759a81a-609c-497b-8b1b-36631e4fbf2c
2025-12-09 06:08:32,652 - INFO - Verified VN network id 12 for VN df1f4ab9-e0ad-4532-b316-4ed021a57790
2025-12-09 06:08:32,652 - INFO - Verifications in API Server for VN ctest-vn-52072979 passed
2025-12-09 06:08:32,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df1f4ab9-e0ad-4532-b316-4ed021a57790
2025-12-09 06:08:32,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3759a81a-609c-497b-8b1b-36631e4fbf2c
2025-12-09 06:08:32,667 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3759a81a-609c-497b-8b1b-36631e4fbf2c
2025-12-09 06:08:32,672 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/76fca379-3edb-4e92-9f8a-97e64ded8c65
2025-12-09 06:08:32,682 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-52072979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72729087', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16077651356934817074', 'uuid-lslong': '12904588438101391248'}, 'enable': 'true', 'created': '2025-12-09T06:08:30', 'last-modified': '2025-12-09T06:08:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.843604'}
2025-12-09 06:08:32,686 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 06:08:32,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52072979 passed
2025-12-09 06:08:32,687 - DEBUG - ====Verifying policy data for ctest-vn-52072979 in API_Server ======
2025-12-09 06:08:32,687 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 06:08:32,691 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922
2025-12-09 06:08:32,699 - DEBUG - Requesting: http://10.0.0.38:8082/project/19e5e9c5-2399-4671-8d11-b64a1895a476
2025-12-09 06:08:32,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/df1f4ab9-e0ad-4532-b316-4ed021a57790
2025-12-09 06:08:32,775 - DEBUG - ==>Verifying data for policy with id: 6040a871-8871-4c6c-a386-b7d54f016a01, fqn: ['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-policy-allow-all-66271072']
2025-12-09 06:08:32,775 - INFO - VN ctest-vn-52072979 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 06:08:32,775 - DEBUG - Verifying the vn in opserver
2025-12-09 06:08:32,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-52072979 virtual network link through opserver 10.0.0.38
2025-12-09 06:08:32,775 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 06:08:33,033 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 06:08:33,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-52072979', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-52072979?flat'}
2025-12-09 06:08:33,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-52072979 is found in opserver
2025-12-09 06:08:33,097 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 06:08:33,100 - DEBUG - VRF ids for VN ctest-vn-52072979: {}
2025-12-09 06:08:33,100 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 06:08:33,105 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922
2025-12-09 06:08:33,113 - DEBUG - Requesting: http://10.0.0.38:8082/project/19e5e9c5-2399-4671-8d11-b64a1895a476
2025-12-09 06:08:33,176 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/31231fa2-b41c-4f16-a24f-9295ad7662f9
2025-12-09 06:08:33,186 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/31231fa2-b41c-4f16-a24f-9295ad7662f9
2025-12-09 06:08:33,193 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9800ccf2-30bf-4310-b1ea-c889969ac634
2025-12-09 06:08:33,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9800ccf2-30bf-4310-b1ea-c889969ac634
2025-12-09 06:08:33,205 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c8691a3c-f9e1-4951-8b7a-2518db4b5563
2025-12-09 06:08:33,211 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 06:08:33,211 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/31231fa2-b41c-4f16-a24f-9295ad7662f9
2025-12-09 06:08:33,218 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9800ccf2-30bf-4310-b1ea-c889969ac634
2025-12-09 06:08:33,230 - INFO - Verified VN network id 13 for VN 31231fa2-b41c-4f16-a24f-9295ad7662f9
2025-12-09 06:08:33,230 - INFO - Verifications in API Server for VN ctest-vn-08343440 passed
2025-12-09 06:08:33,230 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/31231fa2-b41c-4f16-a24f-9295ad7662f9
2025-12-09 06:08:33,238 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9800ccf2-30bf-4310-b1ea-c889969ac634
2025-12-09 06:08:33,243 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9800ccf2-30bf-4310-b1ea-c889969ac634
2025-12-09 06:08:33,248 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c8691a3c-f9e1-4951-8b7a-2518db4b5563
2025-12-09 06:08:33,256 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-08343440', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72729087', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3540708515710258966', 'uuid-lslong': '11695727928862466809'}, 'enable': 'true', 'created': '2025-12-09T06:08:31', 'last-modified': '2025-12-09T06:08:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.201812'}
2025-12-09 06:08:33,261 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 06:08:33,261 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08343440 passed
2025-12-09 06:08:33,261 - DEBUG - ====Verifying policy data for ctest-vn-08343440 in API_Server ======
2025-12-09 06:08:33,261 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-09 06:08:33,266 - DEBUG - Requesting: http://10.0.0.38:8082/domain/82582fe4-3a48-4728-978d-3e347efd8922
2025-12-09 06:08:33,274 - DEBUG - Requesting: http://10.0.0.38:8082/project/19e5e9c5-2399-4671-8d11-b64a1895a476
2025-12-09 06:08:33,340 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/31231fa2-b41c-4f16-a24f-9295ad7662f9
2025-12-09 06:08:33,348 - DEBUG - ==>Verifying data for policy with id: 6040a871-8871-4c6c-a386-b7d54f016a01, fqn: ['default-domain', 'ctest-TestBasicPolicy-72729087', 'ctest-policy-allow-all-66271072']
2025-12-09 06:08:33,348 - INFO - VN ctest-vn-08343440 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 06:08:33,348 - DEBUG - Verifying the vn in opserver
2025-12-09 06:08:33,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-08343440 virtual network link through opserver 10.0.0.38
2025-12-09 06:08:33,348 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-09 06:08:33,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-08343440', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-08343440?flat'}
2025-12-09 06:08:33,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72729087:ctest-vn-08343440 is found in opserver
2025-12-09 06:08:33,365 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 06:08:33,368 - DEBUG - VRF ids for VN ctest-vn-08343440: {}
2025-12-09 06:08:33,436 - DEBUG - Services list from nova: [