2025-11-10 01:58:58,822 - INFO - Domain Default found not creating
2025-11-10 01:58:58,989 - INFO - Project ctest-TestBasicPolicy-96783475 not found, creating it
2025-11-10 01:58:59,468 - INFO - Created Project:ctest-TestBasicPolicy-96783475, ID : be4335dc-456b-41dc-809c-aa6b8266c81a
2025-11-10 01:59:00,941 - INFO - ================================================================================
2025-11-10 01:59:00,942 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 01:59:00,942 - 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-11-10 01:59:01,204 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-11-10 01:59:01,204 - INFO - Initial checks done. Running the testcase now
2025-11-10 01:59:01,204 - INFO -
2025-11-10 01:59:01,806 - DEBUG - Response for create_network : {'network': {'id': '11143cd4-5987-4347-85d7-430b0bb78e6a', 'name': 'ctest-vn-83552125', 'tenant_id': 'be4335dc456b41dc809caa6b8266c81a', 'project_id': 'be4335dc456b41dc809caa6b8266c81a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-vn-83552125'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 01:59:02,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f53953c-e7a2-47c4-8227-190590a9087b', 'name': '', 'tenant_id': 'be4335dc456b41dc809caa6b8266c81a', 'network_id': '11143cd4-5987-4347-85d7-430b0bb78e6a', 'ip_version': 4, 'cidr': '167.195.208.64/26', 'allocation_pools': [{'start': '167.195.208.66', 'end': '167.195.208.126'}], 'gateway_ip': '167.195.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.195.208.66', 'tags': [], 'project_id': 'be4335dc456b41dc809caa6b8266c81a'}}
2025-11-10 01:59:02,033 - INFO - Created VN ctest-vn-83552125
2025-11-10 01:59:02,083 - DEBUG - VN ctest-vn-83552125 UUID is 11143cd4-5987-4347-85d7-430b0bb78e6a
2025-11-10 01:59:02,411 - DEBUG - Response for create_network : {'network': {'id': 'a233a502-b293-4db1-9013-5ddff70e2ab7', 'name': 'ctest-vn-39917282', 'tenant_id': 'be4335dc456b41dc809caa6b8266c81a', 'project_id': 'be4335dc456b41dc809caa6b8266c81a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-vn-39917282'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 01:59:02,620 - DEBUG - Response for create_subnet : {'subnet': {'id': '023a57ea-2d5b-473f-bf09-2f59c7fb99a1', 'name': '', 'tenant_id': 'be4335dc456b41dc809caa6b8266c81a', 'network_id': 'a233a502-b293-4db1-9013-5ddff70e2ab7', 'ip_version': 4, 'cidr': '212.110.169.192/26', 'allocation_pools': [{'start': '212.110.169.194', 'end': '212.110.169.254'}], 'gateway_ip': '212.110.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.110.169.194', 'tags': [], 'project_id': 'be4335dc456b41dc809caa6b8266c81a'}}
2025-11-10 01:59:02,639 - INFO - Created VN ctest-vn-39917282
2025-11-10 01:59:02,695 - DEBUG - VN ctest-vn-39917282 UUID is a233a502-b293-4db1-9013-5ddff70e2ab7
2025-11-10 01:59:02,826 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-83552125, 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-96783475:ctest-vn-39917282, 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-11-10 01:59:03,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11143cd4-5987-4347-85d7-430b0bb78e6a', 'name': 'ctest-vn-83552125', 'tenant_id': 'be4335dc456b41dc809caa6b8266c81a', 'project_id': 'be4335dc456b41dc809caa6b8266c81a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f53953c-e7a2-47c4-8227-190590a9087b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-vn-83552125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-policy-allow-all-49908263']], 'subnet_ipam': [{'subnet_cidr': '167.195.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 01:59:03,445 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a233a502-b293-4db1-9013-5ddff70e2ab7', 'name': 'ctest-vn-39917282', 'tenant_id': 'be4335dc456b41dc809caa6b8266c81a', 'project_id': 'be4335dc456b41dc809caa6b8266c81a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['023a57ea-2d5b-473f-bf09-2f59c7fb99a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-vn-39917282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-policy-allow-all-49908263']], 'subnet_ipam': [{'subnet_cidr': '212.110.169.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 01:59:03,615 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-10 01:59:03,913 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-10 01:59:03,941 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181
2025-11-10 01:59:03,951 - DEBUG - Requesting: http://10.0.0.41:8082/project/be4335dc-456b-41dc-809c-aa6b8266c81a
2025-11-10 01:59:04,021 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/11143cd4-5987-4347-85d7-430b0bb78e6a
2025-11-10 01:59:04,037 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/11143cd4-5987-4347-85d7-430b0bb78e6a
2025-11-10 01:59:04,046 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cfb5e550-2b61-4778-98e1-4f751522ad9d
2025-11-10 01:59:04,052 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cfb5e550-2b61-4778-98e1-4f751522ad9d
2025-11-10 01:59:04,058 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/73931aef-5479-44bf-9578-8c91f57a8b26
2025-11-10 01:59:04,064 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 01:59:04,064 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/11143cd4-5987-4347-85d7-430b0bb78e6a
2025-11-10 01:59:04,072 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cfb5e550-2b61-4778-98e1-4f751522ad9d
2025-11-10 01:59:04,084 - INFO - Verified VN network id 9 for VN 11143cd4-5987-4347-85d7-430b0bb78e6a
2025-11-10 01:59:04,084 - INFO - Verifications in API Server for VN ctest-vn-83552125 passed
2025-11-10 01:59:04,084 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/11143cd4-5987-4347-85d7-430b0bb78e6a
2025-11-10 01:59:04,094 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cfb5e550-2b61-4778-98e1-4f751522ad9d
2025-11-10 01:59:04,100 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/cfb5e550-2b61-4778-98e1-4f751522ad9d
2025-11-10 01:59:04,106 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/73931aef-5479-44bf-9578-8c91f57a8b26
2025-11-10 01:59:04,117 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-83552125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96783475', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1230675480911758151', 'uuid-lslong': '9644250841757486698'}, 'enable': 'true', 'created': '2025-11-10T01:59:01', 'last-modified': '2025-11-10T01:59:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968979'}
2025-11-10 01:59:04,124 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 01:59:04,124 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83552125 passed
2025-11-10 01:59:04,124 - DEBUG - ====Verifying policy data for ctest-vn-83552125 in API_Server ======
2025-11-10 01:59:04,124 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-10 01:59:04,129 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181
2025-11-10 01:59:04,138 - DEBUG - Requesting: http://10.0.0.41:8082/project/be4335dc-456b-41dc-809c-aa6b8266c81a
2025-11-10 01:59:04,209 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/11143cd4-5987-4347-85d7-430b0bb78e6a
2025-11-10 01:59:04,220 - DEBUG - ==>Verifying data for policy with id: 0cc59a60-e354-479b-bcf3-71a94b1969a0, fqn: ['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-policy-allow-all-49908263']
2025-11-10 01:59:04,220 - INFO - VN ctest-vn-83552125 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 01:59:04,220 - DEBUG - Verifying the vn in opserver
2025-11-10 01:59:04,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-83552125 virtual network link through opserver 10.0.0.41
2025-11-10 01:59:04,220 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-10 01:59:04,516 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-10 01:59:04,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-83552125', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-83552125?flat'}
2025-11-10 01:59:04,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-83552125 is found in opserver
2025-11-10 01:59:04,601 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 01:59:04,608 - DEBUG - VRF ids for VN ctest-vn-83552125: {}
2025-11-10 01:59:04,608 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-10 01:59:04,614 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181
2025-11-10 01:59:04,625 - DEBUG - Requesting: http://10.0.0.41:8082/project/be4335dc-456b-41dc-809c-aa6b8266c81a
2025-11-10 01:59:04,708 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a233a502-b293-4db1-9013-5ddff70e2ab7
2025-11-10 01:59:04,721 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a233a502-b293-4db1-9013-5ddff70e2ab7
2025-11-10 01:59:04,730 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/349645a9-5599-43ea-bdc8-e68733d5e58b
2025-11-10 01:59:04,737 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/349645a9-5599-43ea-bdc8-e68733d5e58b
2025-11-10 01:59:04,744 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1a20b2a0-1784-4265-8637-8396a3b245c4
2025-11-10 01:59:04,751 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 01:59:04,751 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a233a502-b293-4db1-9013-5ddff70e2ab7
2025-11-10 01:59:04,760 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/349645a9-5599-43ea-bdc8-e68733d5e58b
2025-11-10 01:59:04,776 - INFO - Verified VN network id 10 for VN a233a502-b293-4db1-9013-5ddff70e2ab7
2025-11-10 01:59:04,777 - INFO - Verifications in API Server for VN ctest-vn-39917282 passed
2025-11-10 01:59:04,777 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a233a502-b293-4db1-9013-5ddff70e2ab7
2025-11-10 01:59:04,788 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/349645a9-5599-43ea-bdc8-e68733d5e58b
2025-11-10 01:59:04,796 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/349645a9-5599-43ea-bdc8-e68733d5e58b
2025-11-10 01:59:04,804 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1a20b2a0-1784-4265-8637-8396a3b245c4
2025-11-10 01:59:04,815 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-39917282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96783475', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11687866888961084849', 'uuid-lslong': '10381744782523116215'}, 'enable': 'true', 'created': '2025-11-10T01:59:02', 'last-modified': '2025-11-10T01:59:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.391713'}
2025-11-10 01:59:04,821 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 01:59:04,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39917282 passed
2025-11-10 01:59:04,822 - DEBUG - ====Verifying policy data for ctest-vn-39917282 in API_Server ======
2025-11-10 01:59:04,822 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-10 01:59:04,827 - DEBUG - Requesting: http://10.0.0.41:8082/domain/870d4706-0fa5-4a50-ac53-19235cac7181
2025-11-10 01:59:04,839 - DEBUG - Requesting: http://10.0.0.41:8082/project/be4335dc-456b-41dc-809c-aa6b8266c81a
2025-11-10 01:59:04,909 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a233a502-b293-4db1-9013-5ddff70e2ab7
2025-11-10 01:59:04,918 - DEBUG - ==>Verifying data for policy with id: 0cc59a60-e354-479b-bcf3-71a94b1969a0, fqn: ['default-domain', 'ctest-TestBasicPolicy-96783475', 'ctest-policy-allow-all-49908263']
2025-11-10 01:59:04,918 - INFO - VN ctest-vn-39917282 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 01:59:04,919 - DEBUG - Verifying the vn in opserver
2025-11-10 01:59:04,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-39917282 virtual network link through opserver 10.0.0.41
2025-11-10 01:59:04,919 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-10 01:59:04,929 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-39917282', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-39917282?flat'}
2025-11-10 01:59:04,929 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96783475:ctest-vn-39917282 is found in opserver
2025-11-10 01:59:04,937 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 01:59:04,941 - DEBUG - VRF ids for VN ctest-vn-39917282: {}
2025-11-10 01:59:04,996 - DEBUG - Services list from nova: [