2025-09-13 14:17:28,924 - INFO - Domain Default found not creating
2025-09-13 14:17:29,071 - INFO - Project ctest-TestBasicPolicy-27523805 not found, creating it
2025-09-13 14:17:29,519 - INFO - Created Project:ctest-TestBasicPolicy-27523805, ID : 113bbc7b-d1ff-4f50-82dc-04699880b0a7
2025-09-13 14:17:31,030 - INFO - ================================================================================
2025-09-13 14:17:31,030 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-13 14:17:31,030 - 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-13 14:17:31,290 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-13 14:17:31,290 - INFO - Initial checks done. Running the testcase now
2025-09-13 14:17:31,290 - INFO -
2025-09-13 14:17:31,883 - DEBUG - Response for create_network : {'network': {'id': '53b58848-f790-4d3e-8ba3-189f635c047a', 'name': 'ctest-vn-02645836', 'tenant_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'project_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-vn-02645836'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 14:17:32,055 - DEBUG - Response for create_subnet : {'subnet': {'id': '15761b4a-2b07-4205-8606-4d08ec491ccc', 'name': '', 'tenant_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'network_id': '53b58848-f790-4d3e-8ba3-189f635c047a', 'ip_version': 4, 'cidr': '126.248.130.64/26', 'allocation_pools': [{'start': '126.248.130.66', 'end': '126.248.130.126'}], 'gateway_ip': '126.248.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.248.130.66', 'tags': [], 'project_id': '113bbc7bd1ff4f5082dc04699880b0a7'}}
2025-09-13 14:17:32,073 - INFO - Created VN ctest-vn-02645836
2025-09-13 14:17:32,125 - DEBUG - VN ctest-vn-02645836 UUID is 53b58848-f790-4d3e-8ba3-189f635c047a
2025-09-13 14:17:32,418 - DEBUG - Response for create_network : {'network': {'id': '9da12157-fb05-4cc7-adad-2c46ae9b9de4', 'name': 'ctest-vn-30855773', 'tenant_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'project_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-vn-30855773'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 14:17:32,648 - DEBUG - Response for create_subnet : {'subnet': {'id': 'feccfc1c-f4f7-4fcc-9e75-e4e697b637af', 'name': '', 'tenant_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'network_id': '9da12157-fb05-4cc7-adad-2c46ae9b9de4', 'ip_version': 4, 'cidr': '34.81.89.64/26', 'allocation_pools': [{'start': '34.81.89.66', 'end': '34.81.89.126'}], 'gateway_ip': '34.81.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.81.89.66', 'tags': [], 'project_id': '113bbc7bd1ff4f5082dc04699880b0a7'}}
2025-09-13 14:17:32,665 - INFO - Created VN ctest-vn-30855773
2025-09-13 14:17:32,717 - DEBUG - VN ctest-vn-30855773 UUID is 9da12157-fb05-4cc7-adad-2c46ae9b9de4
2025-09-13 14:17:32,834 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-02645836, 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-27523805:ctest-vn-30855773, 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-13 14:17:33,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53b58848-f790-4d3e-8ba3-189f635c047a', 'name': 'ctest-vn-02645836', 'tenant_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'project_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15761b4a-2b07-4205-8606-4d08ec491ccc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-vn-02645836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-policy-allow-all-66373747']], 'subnet_ipam': [{'subnet_cidr': '126.248.130.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 14:17:33,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9da12157-fb05-4cc7-adad-2c46ae9b9de4', 'name': 'ctest-vn-30855773', 'tenant_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'project_id': '113bbc7bd1ff4f5082dc04699880b0a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['feccfc1c-f4f7-4fcc-9e75-e4e697b637af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-vn-30855773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-policy-allow-all-66373747']], 'subnet_ipam': [{'subnet_cidr': '34.81.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 14:17:33,549 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 14:17:33,886 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 14:17:33,912 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d90c412-7a41-44e1-a30a-789cfe5e5f64
2025-09-13 14:17:33,924 - DEBUG - Requesting: http://10.0.0.22:8082/project/113bbc7b-d1ff-4f50-82dc-04699880b0a7
2025-09-13 14:17:33,995 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53b58848-f790-4d3e-8ba3-189f635c047a
2025-09-13 14:17:34,005 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53b58848-f790-4d3e-8ba3-189f635c047a
2025-09-13 14:17:34,013 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5463189-6aeb-47ce-9e23-96ee4915ead7
2025-09-13 14:17:34,020 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5463189-6aeb-47ce-9e23-96ee4915ead7
2025-09-13 14:17:34,026 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f2b76eef-aa3e-4ace-9aa8-45d17fdc3302
2025-09-13 14:17:34,031 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 14:17:34,031 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53b58848-f790-4d3e-8ba3-189f635c047a
2025-09-13 14:17:34,040 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5463189-6aeb-47ce-9e23-96ee4915ead7
2025-09-13 14:17:34,054 - INFO - Verified VN network id 11 for VN 53b58848-f790-4d3e-8ba3-189f635c047a
2025-09-13 14:17:34,054 - INFO - Verifications in API Server for VN ctest-vn-02645836 passed
2025-09-13 14:17:34,054 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53b58848-f790-4d3e-8ba3-189f635c047a
2025-09-13 14:17:34,063 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5463189-6aeb-47ce-9e23-96ee4915ead7
2025-09-13 14:17:34,069 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5463189-6aeb-47ce-9e23-96ee4915ead7
2025-09-13 14:17:34,076 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f2b76eef-aa3e-4ace-9aa8-45d17fdc3302
2025-09-13 14:17:34,086 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-02645836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27523805', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6031877122905099582', 'uuid-lslong': '10061913065321661562'}, 'enable': 'true', 'created': '2025-09-13T14:17:31', 'last-modified': '2025-09-13T14:17:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978814'}
2025-09-13 14:17:34,094 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 14:17:34,094 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02645836 passed
2025-09-13 14:17:34,094 - DEBUG - ====Verifying policy data for ctest-vn-02645836 in API_Server ======
2025-09-13 14:17:34,094 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 14:17:34,100 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d90c412-7a41-44e1-a30a-789cfe5e5f64
2025-09-13 14:17:34,110 - DEBUG - Requesting: http://10.0.0.22:8082/project/113bbc7b-d1ff-4f50-82dc-04699880b0a7
2025-09-13 14:17:34,184 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/53b58848-f790-4d3e-8ba3-189f635c047a
2025-09-13 14:17:34,194 - DEBUG - ==>Verifying data for policy with id: 3c55beb0-87bf-4e9e-9559-9db5a430f12d, fqn: ['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-policy-allow-all-66373747']
2025-09-13 14:17:34,194 - INFO - VN ctest-vn-02645836 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 14:17:34,194 - DEBUG - Verifying the vn in opserver
2025-09-13 14:17:34,194 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-02645836 virtual network link through opserver 10.0.0.22
2025-09-13 14:17:34,194 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 14:17:34,531 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 14:17:34,594 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-02645836', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-02645836?flat'}
2025-09-13 14:17:34,594 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-02645836 is found in opserver
2025-09-13 14:17:34,603 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 14:17:34,607 - DEBUG - VRF ids for VN ctest-vn-02645836: {}
2025-09-13 14:17:34,607 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 14:17:34,612 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d90c412-7a41-44e1-a30a-789cfe5e5f64
2025-09-13 14:17:34,624 - DEBUG - Requesting: http://10.0.0.22:8082/project/113bbc7b-d1ff-4f50-82dc-04699880b0a7
2025-09-13 14:17:34,695 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9da12157-fb05-4cc7-adad-2c46ae9b9de4
2025-09-13 14:17:34,707 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9da12157-fb05-4cc7-adad-2c46ae9b9de4
2025-09-13 14:17:34,716 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/01483bb5-bac7-4724-9476-98ce2ee52f9e
2025-09-13 14:17:34,723 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/01483bb5-bac7-4724-9476-98ce2ee52f9e
2025-09-13 14:17:34,729 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/20360484-4368-42e9-ba0e-9c8cc39dca5d
2025-09-13 14:17:34,736 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 14:17:34,736 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9da12157-fb05-4cc7-adad-2c46ae9b9de4
2025-09-13 14:17:34,744 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/01483bb5-bac7-4724-9476-98ce2ee52f9e
2025-09-13 14:17:34,758 - INFO - Verified VN network id 12 for VN 9da12157-fb05-4cc7-adad-2c46ae9b9de4
2025-09-13 14:17:34,758 - INFO - Verifications in API Server for VN ctest-vn-30855773 passed
2025-09-13 14:17:34,758 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9da12157-fb05-4cc7-adad-2c46ae9b9de4
2025-09-13 14:17:34,767 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/01483bb5-bac7-4724-9476-98ce2ee52f9e
2025-09-13 14:17:34,774 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/01483bb5-bac7-4724-9476-98ce2ee52f9e
2025-09-13 14:17:34,780 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/20360484-4368-42e9-ba0e-9c8cc39dca5d
2025-09-13 14:17:34,792 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-30855773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27523805', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11358396396962401479', 'uuid-lslong': '12514707621621243364'}, 'enable': 'true', 'created': '2025-09-13T14:17:32', 'last-modified': '2025-09-13T14:17:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.451414'}
2025-09-13 14:17:34,797 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 14:17:34,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30855773 passed
2025-09-13 14:17:34,798 - DEBUG - ====Verifying policy data for ctest-vn-30855773 in API_Server ======
2025-09-13 14:17:34,798 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 14:17:34,803 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d90c412-7a41-44e1-a30a-789cfe5e5f64
2025-09-13 14:17:34,813 - DEBUG - Requesting: http://10.0.0.22:8082/project/113bbc7b-d1ff-4f50-82dc-04699880b0a7
2025-09-13 14:17:34,884 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9da12157-fb05-4cc7-adad-2c46ae9b9de4
2025-09-13 14:17:34,893 - DEBUG - ==>Verifying data for policy with id: 3c55beb0-87bf-4e9e-9559-9db5a430f12d, fqn: ['default-domain', 'ctest-TestBasicPolicy-27523805', 'ctest-policy-allow-all-66373747']
2025-09-13 14:17:34,893 - INFO - VN ctest-vn-30855773 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 14:17:34,893 - DEBUG - Verifying the vn in opserver
2025-09-13 14:17:34,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-30855773 virtual network link through opserver 10.0.0.22
2025-09-13 14:17:34,893 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 14:17:34,902 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-30855773', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-30855773?flat'}
2025-09-13 14:17:34,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27523805:ctest-vn-30855773 is found in opserver
2025-09-13 14:17:34,911 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 14:17:34,916 - DEBUG - VRF ids for VN ctest-vn-30855773: {}
2025-09-13 14:17:34,973 - DEBUG - Services list from nova: [