2025-03-24 18:16:52,830 - INFO - Domain Default found not creating
2025-03-24 18:16:53,004 - INFO - Project ctest-TestBasicPolicy-70749698 not found, creating it
2025-03-24 18:16:53,492 - INFO - Created Project:ctest-TestBasicPolicy-70749698, ID : 0a931f29-e32a-4cd3-85a3-cbd52e54ff24
2025-03-24 18:16:55,006 - INFO - ================================================================================
2025-03-24 18:16:55,007 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-24 18:16:55,007 - 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-24 18:16:55,264 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.6': '0'}} with
2025-03-24 18:16:55,264 - INFO - Initial checks done. Running the testcase now
2025-03-24 18:16:55,264 - INFO -
2025-03-24 18:16:55,852 - DEBUG - Response for create_network : {'network': {'id': 'db5968d9-42bc-4234-a7ff-8229f08e3bec', 'name': 'ctest-vn-54147953', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-54147953'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 18:16:56,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '612b01cb-ad76-4869-a969-ecacc7b6e008', 'name': '', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'network_id': 'db5968d9-42bc-4234-a7ff-8229f08e3bec', 'ip_version': 4, 'cidr': '220.122.64.64/26', 'allocation_pools': [{'start': '220.122.64.66', 'end': '220.122.64.126'}], 'gateway_ip': '220.122.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.122.64.66', 'tags': [], 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24'}}
2025-03-24 18:16:56,109 - INFO - Created VN ctest-vn-54147953
2025-03-24 18:16:56,163 - DEBUG - VN ctest-vn-54147953 UUID is db5968d9-42bc-4234-a7ff-8229f08e3bec
2025-03-24 18:16:56,488 - DEBUG - Response for create_network : {'network': {'id': 'a63d145a-384b-4e25-a3f3-68b63be84396', 'name': 'ctest-vn-67542814', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-67542814'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 18:16:56,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd46f2ba5-277e-424a-abe8-c331eb55ae1f', 'name': '', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'network_id': 'a63d145a-384b-4e25-a3f3-68b63be84396', 'ip_version': 4, 'cidr': '180.163.174.64/26', 'allocation_pools': [{'start': '180.163.174.66', 'end': '180.163.174.126'}], 'gateway_ip': '180.163.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.163.174.66', 'tags': [], 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24'}}
2025-03-24 18:16:56,676 - INFO - Created VN ctest-vn-67542814
2025-03-24 18:16:56,730 - DEBUG - VN ctest-vn-67542814 UUID is a63d145a-384b-4e25-a3f3-68b63be84396
2025-03-24 18:16:56,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953, 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-70749698:ctest-vn-67542814, 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-24 18:16:57,151 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db5968d9-42bc-4234-a7ff-8229f08e3bec', 'name': 'ctest-vn-54147953', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['612b01cb-ad76-4869-a969-ecacc7b6e008'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-54147953'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596']], 'subnet_ipam': [{'subnet_cidr': '220.122.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 18:16:57,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a63d145a-384b-4e25-a3f3-68b63be84396', 'name': 'ctest-vn-67542814', 'tenant_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'project_id': '0a931f29e32a4cd385a3cbd52e54ff24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d46f2ba5-277e-424a-abe8-c331eb55ae1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-vn-67542814'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596']], 'subnet_ipam': [{'subnet_cidr': '180.163.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 18:16:57,554 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-03-24 18:16:57,862 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-03-24 18:16:57,894 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476
2025-03-24 18:16:57,915 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24
2025-03-24 18:16:58,006 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec
2025-03-24 18:16:58,019 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec
2025-03-24 18:16:58,031 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f
2025-03-24 18:16:58,042 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f
2025-03-24 18:16:58,052 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7ebbf7b-a247-44fe-917e-f4fd0dd84734
2025-03-24 18:16:58,059 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 18:16:58,060 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec
2025-03-24 18:16:58,071 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f
2025-03-24 18:16:58,088 - INFO - Verified VN network id 7 for VN db5968d9-42bc-4234-a7ff-8229f08e3bec
2025-03-24 18:16:58,088 - INFO - Verifications in API Server for VN ctest-vn-54147953 passed
2025-03-24 18:16:58,088 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec
2025-03-24 18:16:58,099 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f
2025-03-24 18:16:58,107 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e62bc5c3-d4fa-4d20-bf8a-377885f4832f
2025-03-24 18:16:58,115 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b7ebbf7b-a247-44fe-917e-f4fd0dd84734
2025-03-24 18:16:58,129 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70749698', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15805779649570292276', 'uuid-lslong': '12105537440036305900'}, 'enable': 'true', 'created': '2025-03-24T18:16:55', 'last-modified': '2025-03-24T18:16:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995331'}
2025-03-24 18:16:58,138 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 18:16:58,139 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54147953 passed
2025-03-24 18:16:58,139 - DEBUG - ====Verifying policy data for ctest-vn-54147953 in API_Server ======
2025-03-24 18:16:58,139 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-03-24 18:16:58,145 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476
2025-03-24 18:16:58,158 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24
2025-03-24 18:16:58,236 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/db5968d9-42bc-4234-a7ff-8229f08e3bec
2025-03-24 18:16:58,248 - DEBUG - ==>Verifying data for policy with id: 8567ae3d-0f4f-4ba9-9173-51545ea3d9a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596']
2025-03-24 18:16:58,248 - INFO - VN ctest-vn-54147953 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 18:16:58,249 - DEBUG - Verifying the vn in opserver
2025-03-24 18:16:58,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953 virtual network link through opserver 10.0.0.50
2025-03-24 18:16:58,249 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-03-24 18:16:58,549 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-03-24 18:16:58,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953?flat'}
2025-03-24 18:16:58,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-54147953 is found in opserver
2025-03-24 18:16:58,624 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 18:16:58,631 - DEBUG - VRF ids for VN ctest-vn-54147953: {}
2025-03-24 18:16:58,631 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-03-24 18:16:58,637 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476
2025-03-24 18:16:58,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24
2025-03-24 18:16:58,726 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396
2025-03-24 18:16:58,741 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396
2025-03-24 18:16:58,754 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf
2025-03-24 18:16:58,764 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf
2025-03-24 18:16:58,774 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/98a64ee3-fccf-40b9-a65f-c9f94d1aa837
2025-03-24 18:16:58,784 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 18:16:58,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396
2025-03-24 18:16:58,796 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf
2025-03-24 18:16:58,812 - INFO - Verified VN network id 8 for VN a63d145a-384b-4e25-a3f3-68b63be84396
2025-03-24 18:16:58,813 - INFO - Verifications in API Server for VN ctest-vn-67542814 passed
2025-03-24 18:16:58,813 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396
2025-03-24 18:16:58,824 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf
2025-03-24 18:16:58,833 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/eb23c784-8302-4092-a014-d0da03c1e3bf
2025-03-24 18:16:58,841 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/98a64ee3-fccf-40b9-a65f-c9f94d1aa837
2025-03-24 18:16:58,864 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70749698', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11978752961599458853', 'uuid-lslong': '11813901379421356950'}, 'enable': 'true', 'created': '2025-03-24T18:16:56', 'last-modified': '2025-03-24T18:16:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500971'}
2025-03-24 18:16:58,877 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 18:16:58,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67542814 passed
2025-03-24 18:16:58,878 - DEBUG - ====Verifying policy data for ctest-vn-67542814 in API_Server ======
2025-03-24 18:16:58,878 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-03-24 18:16:58,884 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1bdac2b4-b991-4585-bef6-c4af35e49476
2025-03-24 18:16:58,897 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a931f29-e32a-4cd3-85a3-cbd52e54ff24
2025-03-24 18:16:58,973 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a63d145a-384b-4e25-a3f3-68b63be84396
2025-03-24 18:16:58,983 - DEBUG - ==>Verifying data for policy with id: 8567ae3d-0f4f-4ba9-9173-51545ea3d9a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-70749698', 'ctest-policy-allow-all-44128596']
2025-03-24 18:16:58,983 - INFO - VN ctest-vn-67542814 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 18:16:58,983 - DEBUG - Verifying the vn in opserver
2025-03-24 18:16:58,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814 virtual network link through opserver 10.0.0.50
2025-03-24 18:16:58,983 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-03-24 18:16:58,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814?flat'}
2025-03-24 18:16:58,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70749698:ctest-vn-67542814 is found in opserver
2025-03-24 18:16:59,006 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 18:16:59,013 - DEBUG - VRF ids for VN ctest-vn-67542814: {}
2025-03-24 18:16:59,080 - DEBUG - Services list from nova: [