2025-10-08 22:36:30,751 - INFO - Domain Default found not creating
2025-10-08 22:36:30,890 - INFO - Project ctest-TestBasicPolicy-56818920 not found, creating it
2025-10-08 22:36:31,305 - INFO - Created Project:ctest-TestBasicPolicy-56818920, ID : ae6952f7-309d-49ab-9ff9-04b0858d31d8
2025-10-08 22:36:32,640 - INFO - ================================================================================
2025-10-08 22:36:32,640 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 22:36:32,640 - 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-08 22:36:32,895 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-10-08 22:36:32,895 - INFO - Initial checks done. Running the testcase now
2025-10-08 22:36:32,895 - INFO -
2025-10-08 22:36:33,418 - DEBUG - Response for create_network : {'network': {'id': '634b0ad0-70ea-405f-9c34-70d0f593920c', 'name': 'ctest-vn-56592074', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-56592074'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:36:33,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '3794baa3-dcfa-4ac1-b121-228b46088ed1', 'name': '', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'network_id': '634b0ad0-70ea-405f-9c34-70d0f593920c', 'ip_version': 4, 'cidr': '212.222.17.64/26', 'allocation_pools': [{'start': '212.222.17.66', 'end': '212.222.17.126'}], 'gateway_ip': '212.222.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.222.17.66', 'tags': [], 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8'}}
2025-10-08 22:36:33,609 - INFO - Created VN ctest-vn-56592074
2025-10-08 22:36:33,665 - DEBUG - VN ctest-vn-56592074 UUID is 634b0ad0-70ea-405f-9c34-70d0f593920c
2025-10-08 22:36:33,964 - DEBUG - Response for create_network : {'network': {'id': 'aaf4431d-f409-408c-b904-14f448f535c4', 'name': 'ctest-vn-04402247', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-04402247'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:36:34,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '7397ec79-fdb4-4577-882b-677317dad328', 'name': '', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'network_id': 'aaf4431d-f409-408c-b904-14f448f535c4', 'ip_version': 4, 'cidr': '27.198.71.192/26', 'allocation_pools': [{'start': '27.198.71.194', 'end': '27.198.71.254'}], 'gateway_ip': '27.198.71.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.198.71.194', 'tags': [], 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8'}}
2025-10-08 22:36:34,158 - INFO - Created VN ctest-vn-04402247
2025-10-08 22:36:34,209 - DEBUG - VN ctest-vn-04402247 UUID is aaf4431d-f409-408c-b904-14f448f535c4
2025-10-08 22:36:34,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074, 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-56818920:ctest-vn-04402247, 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-08 22:36:34,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '634b0ad0-70ea-405f-9c34-70d0f593920c', 'name': 'ctest-vn-56592074', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3794baa3-dcfa-4ac1-b121-228b46088ed1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-56592074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855']], 'subnet_ipam': [{'subnet_cidr': '212.222.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:36:34,922 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aaf4431d-f409-408c-b904-14f448f535c4', 'name': 'ctest-vn-04402247', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7397ec79-fdb4-4577-882b-677317dad328'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-04402247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855']], 'subnet_ipam': [{'subnet_cidr': '27.198.71.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:36:35,073 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-08 22:36:35,361 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-08 22:36:35,387 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55
2025-10-08 22:36:35,397 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8
2025-10-08 22:36:35,472 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c
2025-10-08 22:36:35,482 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c
2025-10-08 22:36:35,489 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401
2025-10-08 22:36:35,494 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401
2025-10-08 22:36:35,500 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e4b34be-8fb5-4999-88f6-66e89cd2f8b7
2025-10-08 22:36:35,506 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 22:36:35,506 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c
2025-10-08 22:36:35,515 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401
2025-10-08 22:36:35,529 - INFO - Verified VN network id 12 for VN 634b0ad0-70ea-405f-9c34-70d0f593920c
2025-10-08 22:36:35,529 - INFO - Verifications in API Server for VN ctest-vn-56592074 passed
2025-10-08 22:36:35,529 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c
2025-10-08 22:36:35,536 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401
2025-10-08 22:36:35,541 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401
2025-10-08 22:36:35,546 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e4b34be-8fb5-4999-88f6-66e89cd2f8b7
2025-10-08 22:36:35,556 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56818920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7154824323372040287', 'uuid-lslong': '11255745411481309708'}, 'enable': 'true', 'created': '2025-10-08T22:36:33', 'last-modified': '2025-10-08T22:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926373'}
2025-10-08 22:36:35,560 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 22:36:35,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56592074 passed
2025-10-08 22:36:35,561 - DEBUG - ====Verifying policy data for ctest-vn-56592074 in API_Server ======
2025-10-08 22:36:35,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-08 22:36:35,565 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55
2025-10-08 22:36:35,573 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8
2025-10-08 22:36:35,645 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c
2025-10-08 22:36:35,652 - DEBUG - ==>Verifying data for policy with id: 477fd293-1b1b-405b-a325-6e4bb25fac7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855']
2025-10-08 22:36:35,652 - INFO - VN ctest-vn-56592074 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 22:36:35,652 - DEBUG - Verifying the vn in opserver
2025-10-08 22:36:35,652 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074 virtual network link through opserver 10.0.0.50
2025-10-08 22:36:35,653 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-08 22:36:35,942 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-08 22:36:35,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074?flat'}
2025-10-08 22:36:35,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074 is found in opserver
2025-10-08 22:36:36,003 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 22:36:36,007 - DEBUG - VRF ids for VN ctest-vn-56592074: {}
2025-10-08 22:36:36,007 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-08 22:36:36,012 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55
2025-10-08 22:36:36,021 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8
2025-10-08 22:36:36,086 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4
2025-10-08 22:36:36,096 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4
2025-10-08 22:36:36,103 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d
2025-10-08 22:36:36,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d
2025-10-08 22:36:36,113 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc8dcd5f-04d5-4423-8bf5-a97b797a7689
2025-10-08 22:36:36,118 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 22:36:36,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4
2025-10-08 22:36:36,125 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d
2025-10-08 22:36:36,136 - INFO - Verified VN network id 13 for VN aaf4431d-f409-408c-b904-14f448f535c4
2025-10-08 22:36:36,136 - INFO - Verifications in API Server for VN ctest-vn-04402247 passed
2025-10-08 22:36:36,136 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4
2025-10-08 22:36:36,145 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d
2025-10-08 22:36:36,151 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d
2025-10-08 22:36:36,156 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc8dcd5f-04d5-4423-8bf5-a97b797a7689
2025-10-08 22:36:36,166 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56818920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12318544676692508812', 'uuid-lslong': '13331803836352116164'}, 'enable': 'true', 'created': '2025-10-08T22:36:33', 'last-modified': '2025-10-08T22:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308007'}
2025-10-08 22:36:36,171 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 22:36:36,171 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04402247 passed
2025-10-08 22:36:36,172 - DEBUG - ====Verifying policy data for ctest-vn-04402247 in API_Server ======
2025-10-08 22:36:36,172 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-08 22:36:36,176 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55
2025-10-08 22:36:36,184 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8
2025-10-08 22:36:36,246 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4
2025-10-08 22:36:36,253 - DEBUG - ==>Verifying data for policy with id: 477fd293-1b1b-405b-a325-6e4bb25fac7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855']
2025-10-08 22:36:36,253 - INFO - VN ctest-vn-04402247 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 22:36:36,253 - DEBUG - Verifying the vn in opserver
2025-10-08 22:36:36,254 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247 virtual network link through opserver 10.0.0.50
2025-10-08 22:36:36,254 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-08 22:36:36,261 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247?flat'}
2025-10-08 22:36:36,261 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247 is found in opserver
2025-10-08 22:36:36,270 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 22:36:36,274 - DEBUG - VRF ids for VN ctest-vn-04402247: {}
2025-10-08 22:36:36,324 - DEBUG - Services list from nova: [