2025-06-16 20:53:04,764 - INFO - Domain Default found not creating
2025-06-16 20:53:04,926 - INFO - Project ctest-TestBasicPolicy-57025915 not found, creating it
2025-06-16 20:53:05,438 - INFO - Created Project:ctest-TestBasicPolicy-57025915, ID : c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103
2025-06-16 20:53:07,081 - INFO - ================================================================================
2025-06-16 20:53:07,082 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-16 20:53:07,082 - 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-06-16 20:53:07,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-06-16 20:53:07,342 - INFO - Initial checks done. Running the testcase now
2025-06-16 20:53:07,342 - INFO -
2025-06-16 20:53:07,963 - DEBUG - Response for create_network : {'network': {'id': 'c03c384c-d629-4829-b006-4bb14034adef', 'name': 'ctest-vn-57682148', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-57682148'], 'port_security_enabled': True, 'description': ''}}
2025-06-16 20:53:08,137 - DEBUG - Response for create_subnet : {'subnet': {'id': '98e80629-f6fd-4f49-bf10-4f13f2506906', 'name': '', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'network_id': 'c03c384c-d629-4829-b006-4bb14034adef', 'ip_version': 4, 'cidr': '55.226.225.64/26', 'allocation_pools': [{'start': '55.226.225.66', 'end': '55.226.225.126'}], 'gateway_ip': '55.226.225.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.226.225.66', 'tags': [], 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103'}}
2025-06-16 20:53:08,159 - INFO - Created VN ctest-vn-57682148
2025-06-16 20:53:08,215 - DEBUG - VN ctest-vn-57682148 UUID is c03c384c-d629-4829-b006-4bb14034adef
2025-06-16 20:53:08,569 - DEBUG - Response for create_network : {'network': {'id': '4a7ae742-d013-4918-9322-06848db5692d', 'name': 'ctest-vn-80081620', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-80081620'], 'port_security_enabled': True, 'description': ''}}
2025-06-16 20:53:08,734 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e9b7dfc-0d3e-4b85-a791-31616c46cae5', 'name': '', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'network_id': '4a7ae742-d013-4918-9322-06848db5692d', 'ip_version': 4, 'cidr': '25.225.159.128/26', 'allocation_pools': [{'start': '25.225.159.130', 'end': '25.225.159.190'}], 'gateway_ip': '25.225.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.225.159.130', 'tags': [], 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103'}}
2025-06-16 20:53:08,755 - INFO - Created VN ctest-vn-80081620
2025-06-16 20:53:08,811 - DEBUG - VN ctest-vn-80081620 UUID is 4a7ae742-d013-4918-9322-06848db5692d
2025-06-16 20:53:08,933 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148, 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-57025915:ctest-vn-80081620, 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-06-16 20:53:09,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c03c384c-d629-4829-b006-4bb14034adef', 'name': 'ctest-vn-57682148', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98e80629-f6fd-4f49-bf10-4f13f2506906'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-57682148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357']], 'subnet_ipam': [{'subnet_cidr': '55.226.225.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-16 20:53:09,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a7ae742-d013-4918-9322-06848db5692d', 'name': 'ctest-vn-80081620', 'tenant_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'project_id': 'c9f09ec99e5b44a8a94d1ddb80c8f103', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8e9b7dfc-0d3e-4b85-a791-31616c46cae5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-vn-80081620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357']], 'subnet_ipam': [{'subnet_cidr': '25.225.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-16 20:53:09,631 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-16 20:53:09,970 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-16 20:53:10,008 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4
2025-06-16 20:53:10,027 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103
2025-06-16 20:53:10,107 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef
2025-06-16 20:53:10,122 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef
2025-06-16 20:53:10,134 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f
2025-06-16 20:53:10,143 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f
2025-06-16 20:53:10,151 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e3190c6f-a2dc-4d82-951b-ce66547bbb88
2025-06-16 20:53:10,160 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-16 20:53:10,160 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef
2025-06-16 20:53:10,171 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f
2025-06-16 20:53:10,198 - INFO - Verified VN network id 9 for VN c03c384c-d629-4829-b006-4bb14034adef
2025-06-16 20:53:10,198 - INFO - Verifications in API Server for VN ctest-vn-57682148 passed
2025-06-16 20:53:10,198 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef
2025-06-16 20:53:10,210 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f
2025-06-16 20:53:10,220 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/cba7e41c-8e64-4010-b30d-0eacebf4872f
2025-06-16 20:53:10,231 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e3190c6f-a2dc-4d82-951b-ce66547bbb88
2025-06-16 20:53:10,249 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57025915', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13852008456546502697', 'uuid-lslong': '12683908625194069487'}, 'enable': 'true', 'created': '2025-06-16T20:53:07', 'last-modified': '2025-06-16T20:53:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.027403'}
2025-06-16 20:53:10,257 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-16 20:53:10,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57682148 passed
2025-06-16 20:53:10,257 - DEBUG - ====Verifying policy data for ctest-vn-57682148 in API_Server ======
2025-06-16 20:53:10,257 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-16 20:53:10,264 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4
2025-06-16 20:53:10,283 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103
2025-06-16 20:53:10,366 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c03c384c-d629-4829-b006-4bb14034adef
2025-06-16 20:53:10,378 - DEBUG - ==>Verifying data for policy with id: f3788043-fd39-42e4-af4e-0188d2e69e45, fqn: ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357']
2025-06-16 20:53:10,378 - INFO - VN ctest-vn-57682148 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-16 20:53:10,378 - DEBUG - Verifying the vn in opserver
2025-06-16 20:53:10,378 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148 virtual network link through opserver 10.0.0.57
2025-06-16 20:53:10,378 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-16 20:53:10,720 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-16 20:53:10,794 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148?flat'}
2025-06-16 20:53:10,794 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-57682148 is found in opserver
2025-06-16 20:53:10,807 - DEBUG - Do not have enough data to verify VN in agent
2025-06-16 20:53:10,816 - DEBUG - VRF ids for VN ctest-vn-57682148: {}
2025-06-16 20:53:10,816 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-16 20:53:10,823 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4
2025-06-16 20:53:10,837 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103
2025-06-16 20:53:10,917 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d
2025-06-16 20:53:10,931 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d
2025-06-16 20:53:10,942 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee
2025-06-16 20:53:10,950 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee
2025-06-16 20:53:10,959 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ab1748d8-09fe-4d54-a6ba-ef0034c5db7b
2025-06-16 20:53:10,967 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-16 20:53:10,967 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d
2025-06-16 20:53:10,980 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee
2025-06-16 20:53:10,999 - INFO - Verified VN network id 10 for VN 4a7ae742-d013-4918-9322-06848db5692d
2025-06-16 20:53:10,999 - INFO - Verifications in API Server for VN ctest-vn-80081620 passed
2025-06-16 20:53:10,999 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d
2025-06-16 20:53:11,013 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee
2025-06-16 20:53:11,024 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e9cb0acf-6dd2-43c7-a181-bf0d1e6b48ee
2025-06-16 20:53:11,035 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ab1748d8-09fe-4d54-a6ba-ef0034c5db7b
2025-06-16 20:53:11,052 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57025915', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5366856180110149912', 'uuid-lslong': '10602043639166495021'}, 'enable': 'true', 'created': '2025-06-16T20:53:08', 'last-modified': '2025-06-16T20:53:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.624970'}
2025-06-16 20:53:11,060 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-16 20:53:11,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80081620 passed
2025-06-16 20:53:11,060 - DEBUG - ====Verifying policy data for ctest-vn-80081620 in API_Server ======
2025-06-16 20:53:11,060 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-16 20:53:11,066 - DEBUG - Requesting: http://10.0.0.57:8082/domain/db228a13-fe26-4dfb-af8a-087d1d70c3b4
2025-06-16 20:53:11,079 - DEBUG - Requesting: http://10.0.0.57:8082/project/c9f09ec9-9e5b-44a8-a94d-1ddb80c8f103
2025-06-16 20:53:11,161 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/4a7ae742-d013-4918-9322-06848db5692d
2025-06-16 20:53:11,172 - DEBUG - ==>Verifying data for policy with id: f3788043-fd39-42e4-af4e-0188d2e69e45, fqn: ['default-domain', 'ctest-TestBasicPolicy-57025915', 'ctest-policy-allow-all-95474357']
2025-06-16 20:53:11,172 - INFO - VN ctest-vn-80081620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-16 20:53:11,172 - DEBUG - Verifying the vn in opserver
2025-06-16 20:53:11,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620 virtual network link through opserver 10.0.0.57
2025-06-16 20:53:11,172 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-16 20:53:11,183 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620?flat'}
2025-06-16 20:53:11,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57025915:ctest-vn-80081620 is found in opserver
2025-06-16 20:53:11,195 - DEBUG - Do not have enough data to verify VN in agent
2025-06-16 20:53:11,201 - DEBUG - VRF ids for VN ctest-vn-80081620: {}
2025-06-16 20:53:11,267 - DEBUG - Services list from nova: [