2025-09-22 02:11:19,620 - INFO - Domain Default found not creating
2025-09-22 02:11:19,752 - INFO - Project ctest-TestBasicPolicy-53846921 not found, creating it
2025-09-22 02:11:20,190 - INFO - Created Project:ctest-TestBasicPolicy-53846921, ID : 8670d7da-c5a9-42f0-8f02-867deb1f3ad0
2025-09-22 02:11:21,544 - INFO - ================================================================================
2025-09-22 02:11:21,544 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-22 02:11:21,544 - 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-09-22 02:11:21,804 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.209': '0'}} with
2025-09-22 02:11:21,804 - INFO - Initial checks done. Running the testcase now
2025-09-22 02:11:21,804 - INFO -
2025-09-22 02:11:22,324 - DEBUG - Response for create_network : {'network': {'id': '930c46f1-b7d4-4d91-bb00-d609b42ae21c', 'name': 'ctest-vn-37173819', 'tenant_id': '8670d7dac5a942f08f02867deb1f3ad0', 'project_id': '8670d7dac5a942f08f02867deb1f3ad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-vn-37173819'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:11:22,611 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c87a0ca1-7fff-4f68-974d-d52d4c75ffc5', 'name': '', 'tenant_id': '8670d7dac5a942f08f02867deb1f3ad0', 'network_id': '930c46f1-b7d4-4d91-bb00-d609b42ae21c', 'ip_version': 4, 'cidr': '153.175.81.128/26', 'allocation_pools': [{'start': '153.175.81.130', 'end': '153.175.81.190'}], 'gateway_ip': '153.175.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.175.81.130', 'tags': [], 'project_id': '8670d7dac5a942f08f02867deb1f3ad0'}}
2025-09-22 02:11:22,635 - INFO - Created VN ctest-vn-37173819
2025-09-22 02:11:22,691 - DEBUG - VN ctest-vn-37173819 UUID is 930c46f1-b7d4-4d91-bb00-d609b42ae21c
2025-09-22 02:11:23,173 - DEBUG - Response for create_network : {'network': {'id': 'defe0492-57e1-44af-a110-b6a72b400545', 'name': 'ctest-vn-96692440', 'tenant_id': '8670d7dac5a942f08f02867deb1f3ad0', 'project_id': '8670d7dac5a942f08f02867deb1f3ad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-vn-96692440'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:11:23,355 - DEBUG - Response for create_subnet : {'subnet': {'id': '162a1e76-302d-4331-b9d1-c44cc58a34be', 'name': '', 'tenant_id': '8670d7dac5a942f08f02867deb1f3ad0', 'network_id': 'defe0492-57e1-44af-a110-b6a72b400545', 'ip_version': 4, 'cidr': '165.74.159.128/26', 'allocation_pools': [{'start': '165.74.159.130', 'end': '165.74.159.190'}], 'gateway_ip': '165.74.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.74.159.130', 'tags': [], 'project_id': '8670d7dac5a942f08f02867deb1f3ad0'}}
2025-09-22 02:11:23,372 - INFO - Created VN ctest-vn-96692440
2025-09-22 02:11:23,427 - DEBUG - VN ctest-vn-96692440 UUID is defe0492-57e1-44af-a110-b6a72b400545
2025-09-22 02:11:23,579 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-37173819, 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-53846921:ctest-vn-96692440, 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-09-22 02:11:23,863 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '930c46f1-b7d4-4d91-bb00-d609b42ae21c', 'name': 'ctest-vn-37173819', 'tenant_id': '8670d7dac5a942f08f02867deb1f3ad0', 'project_id': '8670d7dac5a942f08f02867deb1f3ad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c87a0ca1-7fff-4f68-974d-d52d4c75ffc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-vn-37173819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-policy-allow-all-06141421']], 'subnet_ipam': [{'subnet_cidr': '153.175.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:11:24,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'defe0492-57e1-44af-a110-b6a72b400545', 'name': 'ctest-vn-96692440', 'tenant_id': '8670d7dac5a942f08f02867deb1f3ad0', 'project_id': '8670d7dac5a942f08f02867deb1f3ad0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['162a1e76-302d-4331-b9d1-c44cc58a34be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-vn-96692440'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-policy-allow-all-06141421']], 'subnet_ipam': [{'subnet_cidr': '165.74.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:11:24,223 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 02:11:24,520 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 02:11:24,546 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87
2025-09-22 02:11:24,557 - DEBUG - Requesting: http://10.0.0.50:8082/project/8670d7da-c5a9-42f0-8f02-867deb1f3ad0
2025-09-22 02:11:24,626 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/930c46f1-b7d4-4d91-bb00-d609b42ae21c
2025-09-22 02:11:24,636 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/930c46f1-b7d4-4d91-bb00-d609b42ae21c
2025-09-22 02:11:24,644 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d324d300-21e5-49d6-a854-8ca32a0e35f0
2025-09-22 02:11:24,649 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d324d300-21e5-49d6-a854-8ca32a0e35f0
2025-09-22 02:11:24,655 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e1874d0a-156b-4abe-8141-065a5b69338c
2025-09-22 02:11:24,659 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 02:11:24,659 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/930c46f1-b7d4-4d91-bb00-d609b42ae21c
2025-09-22 02:11:24,666 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d324d300-21e5-49d6-a854-8ca32a0e35f0
2025-09-22 02:11:24,676 - INFO - Verified VN network id 12 for VN 930c46f1-b7d4-4d91-bb00-d609b42ae21c
2025-09-22 02:11:24,676 - INFO - Verifications in API Server for VN ctest-vn-37173819 passed
2025-09-22 02:11:24,676 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/930c46f1-b7d4-4d91-bb00-d609b42ae21c
2025-09-22 02:11:24,683 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d324d300-21e5-49d6-a854-8ca32a0e35f0
2025-09-22 02:11:24,688 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d324d300-21e5-49d6-a854-8ca32a0e35f0
2025-09-22 02:11:24,693 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e1874d0a-156b-4abe-8141-065a5b69338c
2025-09-22 02:11:24,704 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-37173819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53846921', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10595922027281141137', 'uuid-lslong': '13475005422258283036'}, 'enable': 'true', 'created': '2025-09-22T02:11:22', 'last-modified': '2025-09-22T02:11:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.857792'}
2025-09-22 02:11:24,709 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 02:11:24,709 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37173819 passed
2025-09-22 02:11:24,709 - DEBUG - ====Verifying policy data for ctest-vn-37173819 in API_Server ======
2025-09-22 02:11:24,709 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 02:11:24,713 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87
2025-09-22 02:11:24,722 - DEBUG - Requesting: http://10.0.0.50:8082/project/8670d7da-c5a9-42f0-8f02-867deb1f3ad0
2025-09-22 02:11:24,789 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/930c46f1-b7d4-4d91-bb00-d609b42ae21c
2025-09-22 02:11:24,798 - DEBUG - ==>Verifying data for policy with id: f1698b9a-5706-4524-a76a-b7e6990d9bef, fqn: ['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-policy-allow-all-06141421']
2025-09-22 02:11:24,798 - INFO - VN ctest-vn-37173819 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 02:11:24,798 - DEBUG - Verifying the vn in opserver
2025-09-22 02:11:24,798 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-37173819 virtual network link through opserver 10.0.0.50
2025-09-22 02:11:24,798 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-22 02:11:25,087 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-22 02:11:25,135 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-37173819', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-37173819?flat'}
2025-09-22 02:11:25,135 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-37173819 is found in opserver
2025-09-22 02:11:25,143 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 02:11:25,147 - DEBUG - VRF ids for VN ctest-vn-37173819: {}
2025-09-22 02:11:25,147 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 02:11:25,152 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87
2025-09-22 02:11:25,162 - DEBUG - Requesting: http://10.0.0.50:8082/project/8670d7da-c5a9-42f0-8f02-867deb1f3ad0
2025-09-22 02:11:25,224 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/defe0492-57e1-44af-a110-b6a72b400545
2025-09-22 02:11:25,233 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/defe0492-57e1-44af-a110-b6a72b400545
2025-09-22 02:11:25,242 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6dfdae6-a707-4f96-b96c-eb45fc92767d
2025-09-22 02:11:25,248 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6dfdae6-a707-4f96-b96c-eb45fc92767d
2025-09-22 02:11:25,253 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a0af9be4-7b09-4731-844e-23348e8869a5
2025-09-22 02:11:25,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 02:11:25,257 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/defe0492-57e1-44af-a110-b6a72b400545
2025-09-22 02:11:25,264 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6dfdae6-a707-4f96-b96c-eb45fc92767d
2025-09-22 02:11:25,274 - INFO - Verified VN network id 13 for VN defe0492-57e1-44af-a110-b6a72b400545
2025-09-22 02:11:25,274 - INFO - Verifications in API Server for VN ctest-vn-96692440 passed
2025-09-22 02:11:25,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/defe0492-57e1-44af-a110-b6a72b400545
2025-09-22 02:11:25,281 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6dfdae6-a707-4f96-b96c-eb45fc92767d
2025-09-22 02:11:25,286 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b6dfdae6-a707-4f96-b96c-eb45fc92767d
2025-09-22 02:11:25,291 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a0af9be4-7b09-4731-844e-23348e8869a5
2025-09-22 02:11:25,300 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-96692440', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53846921', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16068285547090625711', 'uuid-lslong': '11605977068835177797'}, 'enable': 'true', 'created': '2025-09-22T02:11:23', 'last-modified': '2025-09-22T02:11:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.241183'}
2025-09-22 02:11:25,305 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 02:11:25,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96692440 passed
2025-09-22 02:11:25,305 - DEBUG - ====Verifying policy data for ctest-vn-96692440 in API_Server ======
2025-09-22 02:11:25,305 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 02:11:25,309 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5637f25-7d5a-451c-afff-faab7c691f87
2025-09-22 02:11:25,316 - DEBUG - Requesting: http://10.0.0.50:8082/project/8670d7da-c5a9-42f0-8f02-867deb1f3ad0
2025-09-22 02:11:25,379 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/defe0492-57e1-44af-a110-b6a72b400545
2025-09-22 02:11:25,387 - DEBUG - ==>Verifying data for policy with id: f1698b9a-5706-4524-a76a-b7e6990d9bef, fqn: ['default-domain', 'ctest-TestBasicPolicy-53846921', 'ctest-policy-allow-all-06141421']
2025-09-22 02:11:25,387 - INFO - VN ctest-vn-96692440 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 02:11:25,387 - DEBUG - Verifying the vn in opserver
2025-09-22 02:11:25,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-96692440 virtual network link through opserver 10.0.0.50
2025-09-22 02:11:25,387 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-22 02:11:25,396 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-96692440', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-96692440?flat'}
2025-09-22 02:11:25,396 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53846921:ctest-vn-96692440 is found in opserver
2025-09-22 02:11:25,404 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 02:11:25,408 - DEBUG - VRF ids for VN ctest-vn-96692440: {}
2025-09-22 02:11:25,460 - DEBUG - Services list from nova: [