2025-03-29 18:37:51,786 - INFO - Domain Default found not creating
2025-03-29 18:37:51,942 - INFO - Project ctest-TestBasicPolicy-62274567 not found, creating it
2025-03-29 18:37:52,429 - INFO - Created Project:ctest-TestBasicPolicy-62274567, ID : 9a60fb08-6577-4f06-8b7a-7ce0e3977fc8
2025-03-29 18:37:53,986 - INFO - ================================================================================
2025-03-29 18:37:53,986 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-29 18:37:53,986 - 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-03-29 18:37:54,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.5': '0'}} with
2025-03-29 18:37:54,239 - INFO - Initial checks done. Running the testcase now
2025-03-29 18:37:54,239 - INFO -
2025-03-29 18:37:54,839 - DEBUG - Response for create_network : {'network': {'id': '2d893dd4-55c6-4762-819e-a33cb4163ad4', 'name': 'ctest-vn-83751746', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-83751746'], 'port_security_enabled': True, 'description': ''}}
2025-03-29 18:37:55,042 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35a51a7-085b-40c7-ac7d-e1ef7d1e4c82', 'name': '', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'network_id': '2d893dd4-55c6-4762-819e-a33cb4163ad4', 'ip_version': 4, 'cidr': '189.18.80.0/26', 'allocation_pools': [{'start': '189.18.80.2', 'end': '189.18.80.62'}], 'gateway_ip': '189.18.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.18.80.2', 'tags': [], 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8'}}
2025-03-29 18:37:55,062 - INFO - Created VN ctest-vn-83751746
2025-03-29 18:37:55,117 - DEBUG - VN ctest-vn-83751746 UUID is 2d893dd4-55c6-4762-819e-a33cb4163ad4
2025-03-29 18:37:55,458 - DEBUG - Response for create_network : {'network': {'id': '15f03d25-997b-4fb7-afcd-996861cd2454', 'name': 'ctest-vn-77219973', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-77219973'], 'port_security_enabled': True, 'description': ''}}
2025-03-29 18:37:55,623 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e00a7c1-b7d1-4c86-a673-368c1b7b2c96', 'name': '', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'network_id': '15f03d25-997b-4fb7-afcd-996861cd2454', 'ip_version': 4, 'cidr': '62.55.193.192/26', 'allocation_pools': [{'start': '62.55.193.194', 'end': '62.55.193.254'}], 'gateway_ip': '62.55.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.55.193.194', 'tags': [], 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8'}}
2025-03-29 18:37:55,644 - INFO - Created VN ctest-vn-77219973
2025-03-29 18:37:55,697 - DEBUG - VN ctest-vn-77219973 UUID is 15f03d25-997b-4fb7-afcd-996861cd2454
2025-03-29 18:37:55,814 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746, 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-62274567:ctest-vn-77219973, 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-03-29 18:37:56,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d893dd4-55c6-4762-819e-a33cb4163ad4', 'name': 'ctest-vn-83751746', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b35a51a7-085b-40c7-ac7d-e1ef7d1e4c82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-83751746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541']], 'subnet_ipam': [{'subnet_cidr': '189.18.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-29 18:37:56,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15f03d25-997b-4fb7-afcd-996861cd2454', 'name': 'ctest-vn-77219973', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e00a7c1-b7d1-4c86-a673-368c1b7b2c96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-77219973'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541']], 'subnet_ipam': [{'subnet_cidr': '62.55.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-29 18:37:56,537 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-29 18:37:56,882 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-29 18:37:56,910 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb
2025-03-29 18:37:56,924 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8
2025-03-29 18:37:57,001 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4
2025-03-29 18:37:57,013 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4
2025-03-29 18:37:57,023 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a
2025-03-29 18:37:57,031 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a
2025-03-29 18:37:57,039 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55d282c6-020d-4a6c-bf1e-04d61326e24d
2025-03-29 18:37:57,045 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-29 18:37:57,045 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4
2025-03-29 18:37:57,058 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a
2025-03-29 18:37:57,075 - INFO - Verified VN network id 8 for VN 2d893dd4-55c6-4762-819e-a33cb4163ad4
2025-03-29 18:37:57,075 - INFO - Verifications in API Server for VN ctest-vn-83751746 passed
2025-03-29 18:37:57,075 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4
2025-03-29 18:37:57,085 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a
2025-03-29 18:37:57,092 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a
2025-03-29 18:37:57,099 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55d282c6-020d-4a6c-bf1e-04d61326e24d
2025-03-29 18:37:57,112 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62274567', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3281221785697535842', 'uuid-lslong': '9340082158327708372'}, 'enable': 'true', 'created': '2025-03-29T18:37:54', 'last-modified': '2025-03-29T18:37:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013824'}
2025-03-29 18:37:57,119 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-29 18:37:57,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83751746 passed
2025-03-29 18:37:57,119 - DEBUG - ====Verifying policy data for ctest-vn-83751746 in API_Server ======
2025-03-29 18:37:57,119 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-29 18:37:57,125 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb
2025-03-29 18:37:57,138 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8
2025-03-29 18:37:57,209 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4
2025-03-29 18:37:57,219 - DEBUG - ==>Verifying data for policy with id: 0a0a71c6-4a89-4534-b3f1-bf22974459b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541']
2025-03-29 18:37:57,220 - INFO - VN ctest-vn-83751746 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-29 18:37:57,220 - DEBUG - Verifying the vn in opserver
2025-03-29 18:37:57,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746 virtual network link through opserver 10.0.0.27
2025-03-29 18:37:57,220 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-29 18:37:57,551 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-29 18:37:57,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746?flat'}
2025-03-29 18:37:57,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746 is found in opserver
2025-03-29 18:37:57,618 - DEBUG - Do not have enough data to verify VN in agent
2025-03-29 18:37:57,623 - DEBUG - VRF ids for VN ctest-vn-83751746: {}
2025-03-29 18:37:57,624 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-29 18:37:57,630 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb
2025-03-29 18:37:57,644 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8
2025-03-29 18:37:57,718 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454
2025-03-29 18:37:57,731 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454
2025-03-29 18:37:57,742 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907
2025-03-29 18:37:57,749 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907
2025-03-29 18:37:57,764 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4e4d04e8-4425-4e33-9666-c0721dcf19cd
2025-03-29 18:37:57,771 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-29 18:37:57,772 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454
2025-03-29 18:37:57,782 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907
2025-03-29 18:37:57,796 - INFO - Verified VN network id 9 for VN 15f03d25-997b-4fb7-afcd-996861cd2454
2025-03-29 18:37:57,796 - INFO - Verifications in API Server for VN ctest-vn-77219973 passed
2025-03-29 18:37:57,796 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454
2025-03-29 18:37:57,808 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907
2025-03-29 18:37:57,815 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907
2025-03-29 18:37:57,822 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4e4d04e8-4425-4e33-9666-c0721dcf19cd
2025-03-29 18:37:57,834 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62274567', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1580830700905123767', 'uuid-lslong': '12667950000459555924'}, 'enable': 'true', 'created': '2025-03-29T18:37:55', 'last-modified': '2025-03-29T18:37:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479552'}
2025-03-29 18:37:57,841 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-29 18:37:57,841 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77219973 passed
2025-03-29 18:37:57,841 - DEBUG - ====Verifying policy data for ctest-vn-77219973 in API_Server ======
2025-03-29 18:37:57,841 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-29 18:37:57,847 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb
2025-03-29 18:37:57,861 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8
2025-03-29 18:37:57,970 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454
2025-03-29 18:37:57,982 - DEBUG - ==>Verifying data for policy with id: 0a0a71c6-4a89-4534-b3f1-bf22974459b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541']
2025-03-29 18:37:57,982 - INFO - VN ctest-vn-77219973 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-29 18:37:57,982 - DEBUG - Verifying the vn in opserver
2025-03-29 18:37:57,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973 virtual network link through opserver 10.0.0.27
2025-03-29 18:37:57,982 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-29 18:37:57,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973?flat'}
2025-03-29 18:37:57,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973 is found in opserver
2025-03-29 18:37:58,005 - DEBUG - Do not have enough data to verify VN in agent
2025-03-29 18:37:58,011 - DEBUG - VRF ids for VN ctest-vn-77219973: {}
2025-03-29 18:37:58,074 - DEBUG - Services list from nova: [