2025-10-09 16:30:56,136 - INFO - Domain Default found not creating
2025-10-09 16:30:56,311 - INFO - Project ctest-TestBasicPolicy-90779815 not found, creating it
2025-10-09 16:30:56,787 - INFO - Created Project:ctest-TestBasicPolicy-90779815, ID : f1cc9295-27c4-4e2f-aa62-094ebf7ab602
2025-10-09 16:30:58,439 - INFO - ================================================================================
2025-10-09 16:30:58,439 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 16:30:58,439 - 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-09 16:30:58,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-10-09 16:30:58,709 - INFO - Initial checks done. Running the testcase now
2025-10-09 16:30:58,709 - INFO -
2025-10-09 16:30:59,313 - DEBUG - Response for create_network : {'network': {'id': 'f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf', 'name': 'ctest-vn-67678770', 'tenant_id': 'f1cc929527c44e2faa62094ebf7ab602', 'project_id': 'f1cc929527c44e2faa62094ebf7ab602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-vn-67678770'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 16:30:59,524 - DEBUG - Response for create_subnet : {'subnet': {'id': '160731f8-dd2e-4c42-86d3-87ef487b60a7', 'name': '', 'tenant_id': 'f1cc929527c44e2faa62094ebf7ab602', 'network_id': 'f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf', 'ip_version': 4, 'cidr': '109.56.58.192/26', 'allocation_pools': [{'start': '109.56.58.194', 'end': '109.56.58.254'}], 'gateway_ip': '109.56.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.56.58.194', 'tags': [], 'project_id': 'f1cc929527c44e2faa62094ebf7ab602'}}
2025-10-09 16:30:59,545 - INFO - Created VN ctest-vn-67678770
2025-10-09 16:30:59,600 - DEBUG - VN ctest-vn-67678770 UUID is f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf
2025-10-09 16:30:59,923 - DEBUG - Response for create_network : {'network': {'id': '2583d3ca-9ab3-40ad-a4da-5a3ab02b0970', 'name': 'ctest-vn-48438326', 'tenant_id': 'f1cc929527c44e2faa62094ebf7ab602', 'project_id': 'f1cc929527c44e2faa62094ebf7ab602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-vn-48438326'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 16:31:00,147 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db316b82-909c-4ccd-8a4d-966e850cc53a', 'name': '', 'tenant_id': 'f1cc929527c44e2faa62094ebf7ab602', 'network_id': '2583d3ca-9ab3-40ad-a4da-5a3ab02b0970', 'ip_version': 4, 'cidr': '70.225.155.192/26', 'allocation_pools': [{'start': '70.225.155.194', 'end': '70.225.155.254'}], 'gateway_ip': '70.225.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.225.155.194', 'tags': [], 'project_id': 'f1cc929527c44e2faa62094ebf7ab602'}}
2025-10-09 16:31:00,170 - INFO - Created VN ctest-vn-48438326
2025-10-09 16:31:00,224 - DEBUG - VN ctest-vn-48438326 UUID is 2583d3ca-9ab3-40ad-a4da-5a3ab02b0970
2025-10-09 16:31:00,358 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-67678770, 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-90779815:ctest-vn-48438326, 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-09 16:31:00,678 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf', 'name': 'ctest-vn-67678770', 'tenant_id': 'f1cc929527c44e2faa62094ebf7ab602', 'project_id': 'f1cc929527c44e2faa62094ebf7ab602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['160731f8-dd2e-4c42-86d3-87ef487b60a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-vn-67678770'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-policy-allow-all-21755522']], 'subnet_ipam': [{'subnet_cidr': '109.56.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 16:31:00,974 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2583d3ca-9ab3-40ad-a4da-5a3ab02b0970', 'name': 'ctest-vn-48438326', 'tenant_id': 'f1cc929527c44e2faa62094ebf7ab602', 'project_id': 'f1cc929527c44e2faa62094ebf7ab602', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db316b82-909c-4ccd-8a4d-966e850cc53a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-vn-48438326'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-policy-allow-all-21755522']], 'subnet_ipam': [{'subnet_cidr': '70.225.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 16:31:01,129 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-09 16:31:01,446 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-09 16:31:01,483 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4e068b91-0bfe-45a1-839d-acbe5dc27105
2025-10-09 16:31:01,496 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1cc9295-27c4-4e2f-aa62-094ebf7ab602
2025-10-09 16:31:01,571 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf
2025-10-09 16:31:01,583 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf
2025-10-09 16:31:01,594 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a72dd99-7364-43e0-b554-21661ad921a4
2025-10-09 16:31:01,604 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a72dd99-7364-43e0-b554-21661ad921a4
2025-10-09 16:31:01,613 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/308a50e4-30ee-4b06-97af-8f45f263f38c
2025-10-09 16:31:01,622 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 16:31:01,622 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf
2025-10-09 16:31:01,633 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a72dd99-7364-43e0-b554-21661ad921a4
2025-10-09 16:31:01,651 - INFO - Verified VN network id 11 for VN f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf
2025-10-09 16:31:01,651 - INFO - Verifications in API Server for VN ctest-vn-67678770 passed
2025-10-09 16:31:01,652 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf
2025-10-09 16:31:01,662 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a72dd99-7364-43e0-b554-21661ad921a4
2025-10-09 16:31:01,673 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1a72dd99-7364-43e0-b554-21661ad921a4
2025-10-09 16:31:01,682 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/308a50e4-30ee-4b06-97af-8f45f263f38c
2025-10-09 16:31:01,697 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-67678770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90779815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17662499120077882294', 'uuid-lslong': '11116984952747605679'}, 'enable': 'true', 'created': '2025-10-09T16:30:59', 'last-modified': '2025-10-09T16:31:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046495'}
2025-10-09 16:31:01,706 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 16:31:01,706 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67678770 passed
2025-10-09 16:31:01,706 - DEBUG - ====Verifying policy data for ctest-vn-67678770 in API_Server ======
2025-10-09 16:31:01,706 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-09 16:31:01,713 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4e068b91-0bfe-45a1-839d-acbe5dc27105
2025-10-09 16:31:01,725 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1cc9295-27c4-4e2f-aa62-094ebf7ab602
2025-10-09 16:31:01,803 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f51dcd5e-a9e4-43b6-9a47-76ea09e23eaf
2025-10-09 16:31:01,814 - DEBUG - ==>Verifying data for policy with id: e078c0b7-5c24-46f2-a510-9f3cee912ff6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-policy-allow-all-21755522']
2025-10-09 16:31:01,814 - INFO - VN ctest-vn-67678770 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 16:31:01,814 - DEBUG - Verifying the vn in opserver
2025-10-09 16:31:01,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-67678770 virtual network link through opserver 10.0.0.22
2025-10-09 16:31:01,815 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-09 16:31:02,130 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-09 16:31:02,198 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-67678770', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-67678770?flat'}
2025-10-09 16:31:02,198 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-67678770 is found in opserver
2025-10-09 16:31:02,211 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 16:31:02,216 - DEBUG - VRF ids for VN ctest-vn-67678770: {}
2025-10-09 16:31:02,216 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-09 16:31:02,222 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4e068b91-0bfe-45a1-839d-acbe5dc27105
2025-10-09 16:31:02,235 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1cc9295-27c4-4e2f-aa62-094ebf7ab602
2025-10-09 16:31:02,325 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2583d3ca-9ab3-40ad-a4da-5a3ab02b0970
2025-10-09 16:31:02,337 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2583d3ca-9ab3-40ad-a4da-5a3ab02b0970
2025-10-09 16:31:02,348 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ab24a98-7653-49f2-bb63-6a1a461a7790
2025-10-09 16:31:02,357 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ab24a98-7653-49f2-bb63-6a1a461a7790
2025-10-09 16:31:02,365 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/911be0c1-f91d-4d64-ad02-7504cd80bbcb
2025-10-09 16:31:02,372 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 16:31:02,372 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2583d3ca-9ab3-40ad-a4da-5a3ab02b0970
2025-10-09 16:31:02,383 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ab24a98-7653-49f2-bb63-6a1a461a7790
2025-10-09 16:31:02,400 - INFO - Verified VN network id 12 for VN 2583d3ca-9ab3-40ad-a4da-5a3ab02b0970
2025-10-09 16:31:02,400 - INFO - Verifications in API Server for VN ctest-vn-48438326 passed
2025-10-09 16:31:02,400 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2583d3ca-9ab3-40ad-a4da-5a3ab02b0970
2025-10-09 16:31:02,411 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ab24a98-7653-49f2-bb63-6a1a461a7790
2025-10-09 16:31:02,421 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9ab24a98-7653-49f2-bb63-6a1a461a7790
2025-10-09 16:31:02,429 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/911be0c1-f91d-4d64-ad02-7504cd80bbcb
2025-10-09 16:31:02,441 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-48438326', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90779815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2703237068484722861', 'uuid-lslong': '11878906175253318000'}, 'enable': 'true', 'created': '2025-10-09T16:30:59', 'last-modified': '2025-10-09T16:31:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540496'}
2025-10-09 16:31:02,447 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 16:31:02,447 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48438326 passed
2025-10-09 16:31:02,447 - DEBUG - ====Verifying policy data for ctest-vn-48438326 in API_Server ======
2025-10-09 16:31:02,447 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-09 16:31:02,454 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4e068b91-0bfe-45a1-839d-acbe5dc27105
2025-10-09 16:31:02,466 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1cc9295-27c4-4e2f-aa62-094ebf7ab602
2025-10-09 16:31:02,545 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2583d3ca-9ab3-40ad-a4da-5a3ab02b0970
2025-10-09 16:31:02,555 - DEBUG - ==>Verifying data for policy with id: e078c0b7-5c24-46f2-a510-9f3cee912ff6, fqn: ['default-domain', 'ctest-TestBasicPolicy-90779815', 'ctest-policy-allow-all-21755522']
2025-10-09 16:31:02,555 - INFO - VN ctest-vn-48438326 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 16:31:02,555 - DEBUG - Verifying the vn in opserver
2025-10-09 16:31:02,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-48438326 virtual network link through opserver 10.0.0.22
2025-10-09 16:31:02,555 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-09 16:31:02,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-48438326', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-48438326?flat'}
2025-10-09 16:31:02,566 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90779815:ctest-vn-48438326 is found in opserver
2025-10-09 16:31:02,578 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 16:31:02,583 - DEBUG - VRF ids for VN ctest-vn-48438326: {}
2025-10-09 16:31:02,663 - DEBUG - Services list from nova: [