2025-04-04 15:05:02,642 - INFO - Domain Default found not creating
2025-04-04 15:05:02,816 - INFO - Project ctest-TestBasicPolicy-77511954 not found, creating it
2025-04-04 15:05:03,319 - INFO - Created Project:ctest-TestBasicPolicy-77511954, ID : 0cabdf2d-3236-4b08-ad0e-27b1795f213a
2025-04-04 15:05:04,841 - INFO - ================================================================================
2025-04-04 15:05:04,841 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-04 15:05:04,841 - 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-04-04 15:05:05,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with
2025-04-04 15:05:05,103 - INFO - Initial checks done. Running the testcase now
2025-04-04 15:05:05,103 - INFO -
2025-04-04 15:05:05,675 - DEBUG - Response for create_network : {'network': {'id': 'bc587a68-6ce2-4dde-b41e-0db7f35cb068', 'name': 'ctest-vn-37044663', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-37044663'], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:05:05,899 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3653492-6a59-4c25-8024-c3d03ba18750', 'name': '', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'network_id': 'bc587a68-6ce2-4dde-b41e-0db7f35cb068', 'ip_version': 4, 'cidr': '123.121.207.192/26', 'allocation_pools': [{'start': '123.121.207.194', 'end': '123.121.207.254'}], 'gateway_ip': '123.121.207.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.121.207.194', 'tags': [], 'project_id': '0cabdf2d32364b08ad0e27b1795f213a'}}
2025-04-04 15:05:05,921 - INFO - Created VN ctest-vn-37044663
2025-04-04 15:05:05,975 - DEBUG - VN ctest-vn-37044663 UUID is bc587a68-6ce2-4dde-b41e-0db7f35cb068
2025-04-04 15:05:06,338 - DEBUG - Response for create_network : {'network': {'id': '5284f1e9-3831-4a75-9568-c5561ab8e5d4', 'name': 'ctest-vn-39071860', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-39071860'], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:05:06,532 - DEBUG - Response for create_subnet : {'subnet': {'id': '94e12ec1-1028-4e6f-9d64-598caab9a378', 'name': '', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'network_id': '5284f1e9-3831-4a75-9568-c5561ab8e5d4', 'ip_version': 4, 'cidr': '32.34.32.192/26', 'allocation_pools': [{'start': '32.34.32.194', 'end': '32.34.32.254'}], 'gateway_ip': '32.34.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.34.32.194', 'tags': [], 'project_id': '0cabdf2d32364b08ad0e27b1795f213a'}}
2025-04-04 15:05:06,553 - INFO - Created VN ctest-vn-39071860
2025-04-04 15:05:06,620 - DEBUG - VN ctest-vn-39071860 UUID is 5284f1e9-3831-4a75-9568-c5561ab8e5d4
2025-04-04 15:05:06,746 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663, 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-77511954:ctest-vn-39071860, 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-04-04 15:05:07,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc587a68-6ce2-4dde-b41e-0db7f35cb068', 'name': 'ctest-vn-37044663', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3653492-6a59-4c25-8024-c3d03ba18750'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-37044663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856']], 'subnet_ipam': [{'subnet_cidr': '123.121.207.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:05:07,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5284f1e9-3831-4a75-9568-c5561ab8e5d4', 'name': 'ctest-vn-39071860', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94e12ec1-1028-4e6f-9d64-598caab9a378'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-39071860'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856']], 'subnet_ipam': [{'subnet_cidr': '32.34.32.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:05:07,580 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-04 15:05:07,899 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-04 15:05:07,930 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec
2025-04-04 15:05:07,945 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a
2025-04-04 15:05:08,021 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068
2025-04-04 15:05:08,034 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068
2025-04-04 15:05:08,047 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5
2025-04-04 15:05:08,058 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5
2025-04-04 15:05:08,067 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2e86cb2c-899a-4881-a126-82b2e695aef6
2025-04-04 15:05:08,076 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-04 15:05:08,076 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068
2025-04-04 15:05:08,087 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5
2025-04-04 15:05:08,105 - INFO - Verified VN network id 9 for VN bc587a68-6ce2-4dde-b41e-0db7f35cb068
2025-04-04 15:05:08,105 - INFO - Verifications in API Server for VN ctest-vn-37044663 passed
2025-04-04 15:05:08,105 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068
2025-04-04 15:05:08,117 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5
2025-04-04 15:05:08,126 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5
2025-04-04 15:05:08,136 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2e86cb2c-899a-4881-a126-82b2e695aef6
2025-04-04 15:05:08,154 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77511954', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13571732066002947550', 'uuid-lslong': '12978826259841462376'}, 'enable': 'true', 'created': '2025-04-04T15:05:05', 'last-modified': '2025-04-04T15:05:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.109538'}
2025-04-04 15:05:08,163 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-04 15:05:08,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37044663 passed
2025-04-04 15:05:08,164 - DEBUG - ====Verifying policy data for ctest-vn-37044663 in API_Server ======
2025-04-04 15:05:08,164 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-04 15:05:08,172 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec
2025-04-04 15:05:08,188 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a
2025-04-04 15:05:08,267 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068
2025-04-04 15:05:08,282 - DEBUG - ==>Verifying data for policy with id: 8b3da9d1-ec2c-49c9-801b-8f962155044d, fqn: ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856']
2025-04-04 15:05:08,282 - INFO - VN ctest-vn-37044663 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-04 15:05:08,283 - DEBUG - Verifying the vn in opserver
2025-04-04 15:05:08,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663 virtual network link through opserver 10.0.0.12
2025-04-04 15:05:08,283 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-04 15:05:08,587 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-04 15:05:08,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663?flat'}
2025-04-04 15:05:08,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663 is found in opserver
2025-04-04 15:05:08,680 - DEBUG - Do not have enough data to verify VN in agent
2025-04-04 15:05:08,690 - DEBUG - VRF ids for VN ctest-vn-37044663: {}
2025-04-04 15:05:08,690 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-04 15:05:08,701 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec
2025-04-04 15:05:08,722 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a
2025-04-04 15:05:08,817 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4
2025-04-04 15:05:08,838 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4
2025-04-04 15:05:08,855 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7
2025-04-04 15:05:08,873 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7
2025-04-04 15:05:08,889 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ede35a97-c0cb-40cf-a6ae-65296258d495
2025-04-04 15:05:08,908 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-04 15:05:08,908 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4
2025-04-04 15:05:08,925 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7
2025-04-04 15:05:08,953 - INFO - Verified VN network id 10 for VN 5284f1e9-3831-4a75-9568-c5561ab8e5d4
2025-04-04 15:05:08,953 - INFO - Verifications in API Server for VN ctest-vn-39071860 passed
2025-04-04 15:05:08,953 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4
2025-04-04 15:05:08,971 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7
2025-04-04 15:05:08,988 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7
2025-04-04 15:05:09,003 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ede35a97-c0cb-40cf-a6ae-65296258d495
2025-04-04 15:05:09,030 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77511954', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5946143392008325749', 'uuid-lslong': '10766071882835355092'}, 'enable': 'true', 'created': '2025-04-04T15:05:06', 'last-modified': '2025-04-04T15:05:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.699642'}
2025-04-04 15:05:09,040 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-04 15:05:09,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39071860 passed
2025-04-04 15:05:09,041 - DEBUG - ====Verifying policy data for ctest-vn-39071860 in API_Server ======
2025-04-04 15:05:09,041 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-04 15:05:09,058 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec
2025-04-04 15:05:09,077 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a
2025-04-04 15:05:09,155 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4
2025-04-04 15:05:09,167 - DEBUG - ==>Verifying data for policy with id: 8b3da9d1-ec2c-49c9-801b-8f962155044d, fqn: ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856']
2025-04-04 15:05:09,167 - INFO - VN ctest-vn-39071860 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-04 15:05:09,167 - DEBUG - Verifying the vn in opserver
2025-04-04 15:05:09,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860 virtual network link through opserver 10.0.0.12
2025-04-04 15:05:09,167 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-04 15:05:09,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860?flat'}
2025-04-04 15:05:09,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860 is found in opserver
2025-04-04 15:05:09,195 - DEBUG - Do not have enough data to verify VN in agent
2025-04-04 15:05:09,201 - DEBUG - VRF ids for VN ctest-vn-39071860: {}
2025-04-04 15:05:09,266 - DEBUG - Services list from nova: [