2025-08-20 09:08:43,991 - INFO - Domain Default found not creating
2025-08-20 09:08:44,113 - INFO - Project ctest-TestBasicPolicy-24789124 not found, creating it
2025-08-20 09:08:44,533 - INFO - Created Project:ctest-TestBasicPolicy-24789124, ID : 1db65d3c-7437-42de-8701-355a4d66af89
2025-08-20 09:08:45,833 - INFO - ================================================================================
2025-08-20 09:08:45,833 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 09:08:45,833 - 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-08-20 09:08:46,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with
2025-08-20 09:08:46,081 - INFO - Initial checks done. Running the testcase now
2025-08-20 09:08:46,081 - INFO -
2025-08-20 09:08:46,588 - DEBUG - Response for create_network : {'network': {'id': 'f513d1b4-393a-475d-b230-6ee88b9afda7', 'name': 'ctest-vn-81297669', 'tenant_id': '1db65d3c743742de8701355a4d66af89', 'project_id': '1db65d3c743742de8701355a4d66af89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-vn-81297669'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:08:46,754 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1d9b171-cfa1-48c1-bd85-fb04f22a48f1', 'name': '', 'tenant_id': '1db65d3c743742de8701355a4d66af89', 'network_id': 'f513d1b4-393a-475d-b230-6ee88b9afda7', 'ip_version': 4, 'cidr': '135.29.127.128/26', 'allocation_pools': [{'start': '135.29.127.130', 'end': '135.29.127.190'}], 'gateway_ip': '135.29.127.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.29.127.130', 'tags': [], 'project_id': '1db65d3c743742de8701355a4d66af89'}}
2025-08-20 09:08:46,771 - INFO - Created VN ctest-vn-81297669
2025-08-20 09:08:46,823 - DEBUG - VN ctest-vn-81297669 UUID is f513d1b4-393a-475d-b230-6ee88b9afda7
2025-08-20 09:08:47,121 - DEBUG - Response for create_network : {'network': {'id': 'abf6852c-c3b7-482f-9a52-fafb46e5f9db', 'name': 'ctest-vn-87596383', 'tenant_id': '1db65d3c743742de8701355a4d66af89', 'project_id': '1db65d3c743742de8701355a4d66af89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-vn-87596383'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:08:47,270 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad6a05b6-aafc-43b4-9b02-d7a1c4292687', 'name': '', 'tenant_id': '1db65d3c743742de8701355a4d66af89', 'network_id': 'abf6852c-c3b7-482f-9a52-fafb46e5f9db', 'ip_version': 4, 'cidr': '183.175.90.128/26', 'allocation_pools': [{'start': '183.175.90.130', 'end': '183.175.90.190'}], 'gateway_ip': '183.175.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.175.90.130', 'tags': [], 'project_id': '1db65d3c743742de8701355a4d66af89'}}
2025-08-20 09:08:47,286 - INFO - Created VN ctest-vn-87596383
2025-08-20 09:08:47,335 - DEBUG - VN ctest-vn-87596383 UUID is abf6852c-c3b7-482f-9a52-fafb46e5f9db
2025-08-20 09:08:47,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-81297669, 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-24789124:ctest-vn-87596383, 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-08-20 09:08:47,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f513d1b4-393a-475d-b230-6ee88b9afda7', 'name': 'ctest-vn-81297669', 'tenant_id': '1db65d3c743742de8701355a4d66af89', 'project_id': '1db65d3c743742de8701355a4d66af89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1d9b171-cfa1-48c1-bd85-fb04f22a48f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-vn-81297669'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-policy-allow-all-52902220']], 'subnet_ipam': [{'subnet_cidr': '135.29.127.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:08:48,002 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abf6852c-c3b7-482f-9a52-fafb46e5f9db', 'name': 'ctest-vn-87596383', 'tenant_id': '1db65d3c743742de8701355a4d66af89', 'project_id': '1db65d3c743742de8701355a4d66af89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad6a05b6-aafc-43b4-9b02-d7a1c4292687'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-vn-87596383'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-policy-allow-all-52902220']], 'subnet_ipam': [{'subnet_cidr': '183.175.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 09:08:48,119 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-20 09:08:48,406 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-20 09:08:48,438 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8a7ce66-cd45-4e0f-bb23-46d15f99ef7e
2025-08-20 09:08:48,474 - DEBUG - Requesting: http://10.0.0.50:8082/project/1db65d3c-7437-42de-8701-355a4d66af89
2025-08-20 09:08:48,516 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f513d1b4-393a-475d-b230-6ee88b9afda7
2025-08-20 09:08:48,530 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f513d1b4-393a-475d-b230-6ee88b9afda7
2025-08-20 09:08:48,539 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f77c7e30-1c94-45ca-8afe-7855495d7a7f
2025-08-20 09:08:48,545 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f77c7e30-1c94-45ca-8afe-7855495d7a7f
2025-08-20 09:08:48,551 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36ce6598-0bc7-45c2-b1df-0fb532589389
2025-08-20 09:08:48,556 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 09:08:48,556 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f513d1b4-393a-475d-b230-6ee88b9afda7
2025-08-20 09:08:48,563 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f77c7e30-1c94-45ca-8afe-7855495d7a7f
2025-08-20 09:08:48,575 - INFO - Verified VN network id 12 for VN f513d1b4-393a-475d-b230-6ee88b9afda7
2025-08-20 09:08:48,575 - INFO - Verifications in API Server for VN ctest-vn-81297669 passed
2025-08-20 09:08:48,575 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f513d1b4-393a-475d-b230-6ee88b9afda7
2025-08-20 09:08:48,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f77c7e30-1c94-45ca-8afe-7855495d7a7f
2025-08-20 09:08:48,588 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f77c7e30-1c94-45ca-8afe-7855495d7a7f
2025-08-20 09:08:48,594 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36ce6598-0bc7-45c2-b1df-0fb532589389
2025-08-20 09:08:48,649 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-81297669', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24789124', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17659689135834285917', 'uuid-lslong': '12839884482686942631'}, 'enable': 'true', 'created': '2025-08-20T09:08:46', 'last-modified': '2025-08-20T09:08:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893815'}
2025-08-20 09:08:48,654 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 09:08:48,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81297669 passed
2025-08-20 09:08:48,654 - DEBUG - ====Verifying policy data for ctest-vn-81297669 in API_Server ======
2025-08-20 09:08:48,654 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-20 09:08:48,659 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8a7ce66-cd45-4e0f-bb23-46d15f99ef7e
2025-08-20 09:08:48,668 - DEBUG - Requesting: http://10.0.0.50:8082/project/1db65d3c-7437-42de-8701-355a4d66af89
2025-08-20 09:08:48,737 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f513d1b4-393a-475d-b230-6ee88b9afda7
2025-08-20 09:08:48,745 - DEBUG - ==>Verifying data for policy with id: 6e107cca-69df-4c14-8ee0-581a73100928, fqn: ['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-policy-allow-all-52902220']
2025-08-20 09:08:48,745 - INFO - VN ctest-vn-81297669 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 09:08:48,745 - DEBUG - Verifying the vn in opserver
2025-08-20 09:08:48,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-81297669 virtual network link through opserver 10.0.0.50
2025-08-20 09:08:48,745 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-20 09:08:49,034 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-20 09:08:49,083 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-81297669', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-81297669?flat'}
2025-08-20 09:08:49,083 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-81297669 is found in opserver
2025-08-20 09:08:49,092 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 09:08:49,096 - DEBUG - VRF ids for VN ctest-vn-81297669: {}
2025-08-20 09:08:49,097 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-20 09:08:49,101 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8a7ce66-cd45-4e0f-bb23-46d15f99ef7e
2025-08-20 09:08:49,111 - DEBUG - Requesting: http://10.0.0.50:8082/project/1db65d3c-7437-42de-8701-355a4d66af89
2025-08-20 09:08:49,184 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abf6852c-c3b7-482f-9a52-fafb46e5f9db
2025-08-20 09:08:49,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abf6852c-c3b7-482f-9a52-fafb46e5f9db
2025-08-20 09:08:49,204 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09a263bc-6e46-428d-b603-09fc50d2fe51
2025-08-20 09:08:49,210 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09a263bc-6e46-428d-b603-09fc50d2fe51
2025-08-20 09:08:49,217 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9504a470-9bfc-438b-8c4a-85e6437a8513
2025-08-20 09:08:49,223 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 09:08:49,223 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abf6852c-c3b7-482f-9a52-fafb46e5f9db
2025-08-20 09:08:49,232 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09a263bc-6e46-428d-b603-09fc50d2fe51
2025-08-20 09:08:49,244 - INFO - Verified VN network id 13 for VN abf6852c-c3b7-482f-9a52-fafb46e5f9db
2025-08-20 09:08:49,244 - INFO - Verifications in API Server for VN ctest-vn-87596383 passed
2025-08-20 09:08:49,244 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abf6852c-c3b7-482f-9a52-fafb46e5f9db
2025-08-20 09:08:49,252 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09a263bc-6e46-428d-b603-09fc50d2fe51
2025-08-20 09:08:49,257 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/09a263bc-6e46-428d-b603-09fc50d2fe51
2025-08-20 09:08:49,263 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9504a470-9bfc-438b-8c4a-85e6437a8513
2025-08-20 09:08:49,272 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-87596383', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24789124', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12391237852065122351', 'uuid-lslong': '11120226387064388059'}, 'enable': 'true', 'created': '2025-08-20T09:08:47', 'last-modified': '2025-08-20T09:08:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.289148'}
2025-08-20 09:08:49,278 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 09:08:49,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87596383 passed
2025-08-20 09:08:49,278 - DEBUG - ====Verifying policy data for ctest-vn-87596383 in API_Server ======
2025-08-20 09:08:49,278 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-20 09:08:49,283 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e8a7ce66-cd45-4e0f-bb23-46d15f99ef7e
2025-08-20 09:08:49,293 - DEBUG - Requesting: http://10.0.0.50:8082/project/1db65d3c-7437-42de-8701-355a4d66af89
2025-08-20 09:08:49,362 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/abf6852c-c3b7-482f-9a52-fafb46e5f9db
2025-08-20 09:08:49,370 - DEBUG - ==>Verifying data for policy with id: 6e107cca-69df-4c14-8ee0-581a73100928, fqn: ['default-domain', 'ctest-TestBasicPolicy-24789124', 'ctest-policy-allow-all-52902220']
2025-08-20 09:08:49,370 - INFO - VN ctest-vn-87596383 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 09:08:49,370 - DEBUG - Verifying the vn in opserver
2025-08-20 09:08:49,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-87596383 virtual network link through opserver 10.0.0.50
2025-08-20 09:08:49,370 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-20 09:08:49,379 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-87596383', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-87596383?flat'}
2025-08-20 09:08:49,379 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24789124:ctest-vn-87596383 is found in opserver
2025-08-20 09:08:49,389 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 09:08:49,393 - DEBUG - VRF ids for VN ctest-vn-87596383: {}
2025-08-20 09:08:49,445 - DEBUG - Services list from nova: [