2025-09-24 08:03:33,059 - INFO - Domain Default found not creating
2025-09-24 08:03:33,195 - INFO - Project ctest-TestBasicPolicy-83434639 not found, creating it
2025-09-24 08:03:33,630 - INFO - Created Project:ctest-TestBasicPolicy-83434639, ID : b34a585f-0ae7-4a22-882e-018c3766c4b6
2025-09-24 08:03:34,970 - INFO - ================================================================================
2025-09-24 08:03:34,970 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-24 08:03:34,970 - 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-24 08:03:35,223 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-24 08:03:35,223 - INFO - Initial checks done. Running the testcase now
2025-09-24 08:03:35,223 - INFO -
2025-09-24 08:03:35,732 - DEBUG - Response for create_network : {'network': {'id': '87eaaac1-1bea-44ac-9a27-0c25890a41d3', 'name': 'ctest-vn-55886940', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-55886940'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 08:03:35,886 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f86d58a-2532-47cd-b34a-59e0a0085d24', 'name': '', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'network_id': '87eaaac1-1bea-44ac-9a27-0c25890a41d3', 'ip_version': 4, 'cidr': '100.2.30.192/26', 'allocation_pools': [{'start': '100.2.30.194', 'end': '100.2.30.254'}], 'gateway_ip': '100.2.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.2.30.194', 'tags': [], 'project_id': 'b34a585f0ae74a22882e018c3766c4b6'}}
2025-09-24 08:03:35,901 - INFO - Created VN ctest-vn-55886940
2025-09-24 08:03:35,950 - DEBUG - VN ctest-vn-55886940 UUID is 87eaaac1-1bea-44ac-9a27-0c25890a41d3
2025-09-24 08:03:36,256 - DEBUG - Response for create_network : {'network': {'id': '6733aea3-926c-4176-b90b-c8d2d70aa4ee', 'name': 'ctest-vn-14734580', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-14734580'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 08:03:36,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ed7f6b0-f447-4ebd-aad0-73cc5b21d910', 'name': '', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'network_id': '6733aea3-926c-4176-b90b-c8d2d70aa4ee', 'ip_version': 4, 'cidr': '38.160.39.128/26', 'allocation_pools': [{'start': '38.160.39.130', 'end': '38.160.39.190'}], 'gateway_ip': '38.160.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.160.39.130', 'tags': [], 'project_id': 'b34a585f0ae74a22882e018c3766c4b6'}}
2025-09-24 08:03:36,441 - INFO - Created VN ctest-vn-14734580
2025-09-24 08:03:36,490 - DEBUG - VN ctest-vn-14734580 UUID is 6733aea3-926c-4176-b90b-c8d2d70aa4ee
2025-09-24 08:03:36,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940, 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-83434639:ctest-vn-14734580, 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-24 08:03:36,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87eaaac1-1bea-44ac-9a27-0c25890a41d3', 'name': 'ctest-vn-55886940', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f86d58a-2532-47cd-b34a-59e0a0085d24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-55886940'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256']], 'subnet_ipam': [{'subnet_cidr': '100.2.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 08:03:37,126 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6733aea3-926c-4176-b90b-c8d2d70aa4ee', 'name': 'ctest-vn-14734580', 'tenant_id': 'b34a585f0ae74a22882e018c3766c4b6', 'project_id': 'b34a585f0ae74a22882e018c3766c4b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ed7f6b0-f447-4ebd-aad0-73cc5b21d910'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-vn-14734580'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256']], 'subnet_ipam': [{'subnet_cidr': '38.160.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 08:03:37,290 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 08:03:37,577 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 08:03:37,602 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd
2025-09-24 08:03:37,613 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6
2025-09-24 08:03:37,686 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3
2025-09-24 08:03:37,695 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3
2025-09-24 08:03:37,703 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a
2025-09-24 08:03:37,708 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a
2025-09-24 08:03:37,714 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4380e9cd-a2ba-4118-8ee8-b9b11c8d1c05
2025-09-24 08:03:37,719 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 08:03:37,719 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3
2025-09-24 08:03:37,726 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a
2025-09-24 08:03:37,737 - INFO - Verified VN network id 11 for VN 87eaaac1-1bea-44ac-9a27-0c25890a41d3
2025-09-24 08:03:37,737 - INFO - Verifications in API Server for VN ctest-vn-55886940 passed
2025-09-24 08:03:37,737 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3
2025-09-24 08:03:37,744 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a
2025-09-24 08:03:37,749 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/b531c835-9db7-4314-9a08-8d655301671a
2025-09-24 08:03:37,754 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4380e9cd-a2ba-4118-8ee8-b9b11c8d1c05
2025-09-24 08:03:37,763 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83434639', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9793828086044312748', 'uuid-lslong': '11107860361285091795'}, 'enable': 'true', 'created': '2025-09-24T08:03:35', 'last-modified': '2025-09-24T08:03:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.873282'}
2025-09-24 08:03:37,769 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 08:03:37,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55886940 passed
2025-09-24 08:03:37,769 - DEBUG - ====Verifying policy data for ctest-vn-55886940 in API_Server ======
2025-09-24 08:03:37,769 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 08:03:37,773 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd
2025-09-24 08:03:37,783 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6
2025-09-24 08:03:37,850 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/87eaaac1-1bea-44ac-9a27-0c25890a41d3
2025-09-24 08:03:37,858 - DEBUG - ==>Verifying data for policy with id: 51f7b2bf-ead6-4fef-aee8-b891ff872064, fqn: ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256']
2025-09-24 08:03:37,858 - INFO - VN ctest-vn-55886940 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 08:03:37,858 - DEBUG - Verifying the vn in opserver
2025-09-24 08:03:37,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940 virtual network link through opserver 10.0.0.57
2025-09-24 08:03:37,858 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 08:03:38,146 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 08:03:38,195 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940?flat'}
2025-09-24 08:03:38,195 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-55886940 is found in opserver
2025-09-24 08:03:38,203 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 08:03:38,206 - DEBUG - VRF ids for VN ctest-vn-55886940: {}
2025-09-24 08:03:38,206 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 08:03:38,210 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd
2025-09-24 08:03:38,219 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6
2025-09-24 08:03:38,287 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee
2025-09-24 08:03:38,297 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee
2025-09-24 08:03:38,304 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70
2025-09-24 08:03:38,311 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70
2025-09-24 08:03:38,317 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4dd03905-24e4-4f1d-b291-74edf750d13e
2025-09-24 08:03:38,323 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 08:03:38,323 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee
2025-09-24 08:03:38,330 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70
2025-09-24 08:03:38,342 - INFO - Verified VN network id 12 for VN 6733aea3-926c-4176-b90b-c8d2d70aa4ee
2025-09-24 08:03:38,342 - INFO - Verifications in API Server for VN ctest-vn-14734580 passed
2025-09-24 08:03:38,342 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee
2025-09-24 08:03:38,350 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70
2025-09-24 08:03:38,355 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/198af154-831e-4014-874d-2cce099abe70
2025-09-24 08:03:38,361 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4dd03905-24e4-4f1d-b291-74edf750d13e
2025-09-24 08:03:38,370 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83434639', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7436479427278291318', 'uuid-lslong': '13333971929636971758'}, 'enable': 'true', 'created': '2025-09-24T08:03:36', 'last-modified': '2025-09-24T08:03:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262071'}
2025-09-24 08:03:38,375 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 08:03:38,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14734580 passed
2025-09-24 08:03:38,375 - DEBUG - ====Verifying policy data for ctest-vn-14734580 in API_Server ======
2025-09-24 08:03:38,375 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 08:03:38,380 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd
2025-09-24 08:03:38,389 - DEBUG - Requesting: http://10.0.0.57:8082/project/b34a585f-0ae7-4a22-882e-018c3766c4b6
2025-09-24 08:03:38,452 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6733aea3-926c-4176-b90b-c8d2d70aa4ee
2025-09-24 08:03:38,460 - DEBUG - ==>Verifying data for policy with id: 51f7b2bf-ead6-4fef-aee8-b891ff872064, fqn: ['default-domain', 'ctest-TestBasicPolicy-83434639', 'ctest-policy-allow-all-81243256']
2025-09-24 08:03:38,460 - INFO - VN ctest-vn-14734580 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 08:03:38,460 - DEBUG - Verifying the vn in opserver
2025-09-24 08:03:38,460 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580 virtual network link through opserver 10.0.0.57
2025-09-24 08:03:38,460 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 08:03:38,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580?flat'}
2025-09-24 08:03:38,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83434639:ctest-vn-14734580 is found in opserver
2025-09-24 08:03:38,476 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 08:03:38,480 - DEBUG - VRF ids for VN ctest-vn-14734580: {}
2025-09-24 08:03:38,533 - DEBUG - Services list from nova: [