2025-10-20 21:31:57,786 - INFO - Domain Default found not creating 2025-10-20 21:31:57,961 - INFO - Project ctest-TestBasicPolicy-06491382 not found, creating it 2025-10-20 21:31:58,508 - INFO - Created Project:ctest-TestBasicPolicy-06491382, ID : c83907b1-9251-43a3-9af0-bdf94780d2e9 2025-10-20 21:32:00,160 - INFO - ================================================================================ 2025-10-20 21:32:00,160 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-20 21:32:00,160 - 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-10-20 21:32:01,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.240': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-10-20 21:32:01,502 - INFO - Initial checks done. Running the testcase now 2025-10-20 21:32:01,503 - INFO - 2025-10-20 21:32:02,249 - DEBUG - Response for create_network : {'network': {'id': '2a32bdd4-d189-4e82-b18c-dbe4f15d2c56', 'name': 'ctest-vn-87556200', 'tenant_id': 'c83907b1925143a39af0bdf94780d2e9', 'project_id': 'c83907b1925143a39af0bdf94780d2e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-vn-87556200'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 21:32:02,591 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de6e2c94-18d8-41ab-9adb-0184a8171597', 'name': '', 'tenant_id': 'c83907b1925143a39af0bdf94780d2e9', 'network_id': '2a32bdd4-d189-4e82-b18c-dbe4f15d2c56', 'ip_version': 4, 'cidr': '42.39.42.64/26', 'allocation_pools': [{'start': '42.39.42.66', 'end': '42.39.42.126'}], 'gateway_ip': '42.39.42.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.39.42.66', 'tags': [], 'project_id': 'c83907b1925143a39af0bdf94780d2e9'}} 2025-10-20 21:32:02,619 - INFO - Created VN ctest-vn-87556200 2025-10-20 21:32:02,631 - DEBUG - VN ctest-vn-87556200 UUID is 2a32bdd4-d189-4e82-b18c-dbe4f15d2c56 2025-10-20 21:32:03,008 - DEBUG - Response for create_network : {'network': {'id': 'b082abae-2ea0-4e50-8074-c816847aa1fd', 'name': 'ctest-vn-66265940', 'tenant_id': 'c83907b1925143a39af0bdf94780d2e9', 'project_id': 'c83907b1925143a39af0bdf94780d2e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-vn-66265940'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 21:32:03,222 - DEBUG - Response for create_subnet : {'subnet': {'id': '0879300b-6ee2-4c91-a76d-47dc7f05c505', 'name': '', 'tenant_id': 'c83907b1925143a39af0bdf94780d2e9', 'network_id': 'b082abae-2ea0-4e50-8074-c816847aa1fd', 'ip_version': 4, 'cidr': '130.49.208.0/26', 'allocation_pools': [{'start': '130.49.208.2', 'end': '130.49.208.62'}], 'gateway_ip': '130.49.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.49.208.2', 'tags': [], 'project_id': 'c83907b1925143a39af0bdf94780d2e9'}} 2025-10-20 21:32:03,246 - INFO - Created VN ctest-vn-66265940 2025-10-20 21:32:03,261 - DEBUG - VN ctest-vn-66265940 UUID is b082abae-2ea0-4e50-8074-c816847aa1fd 2025-10-20 21:32:03,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200, 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-06491382:ctest-vn-66265940, 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-10-20 21:32:03,680 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a32bdd4-d189-4e82-b18c-dbe4f15d2c56', 'name': 'ctest-vn-87556200', 'tenant_id': 'c83907b1925143a39af0bdf94780d2e9', 'project_id': 'c83907b1925143a39af0bdf94780d2e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de6e2c94-18d8-41ab-9adb-0184a8171597'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-vn-87556200'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-policy-allow-all-13664800']], 'subnet_ipam': [{'subnet_cidr': '42.39.42.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 21:32:03,897 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b082abae-2ea0-4e50-8074-c816847aa1fd', 'name': 'ctest-vn-66265940', 'tenant_id': 'c83907b1925143a39af0bdf94780d2e9', 'project_id': 'c83907b1925143a39af0bdf94780d2e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0879300b-6ee2-4c91-a76d-47dc7f05c505'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-vn-66265940'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-policy-allow-all-13664800']], 'subnet_ipam': [{'subnet_cidr': '130.49.208.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 21:32:03,992 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:32:04,321 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:32:04,351 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:32:04,373 - DEBUG - Requesting: http://10.0.0.141:8082/project/c83907b1-9251-43a3-9af0-bdf94780d2e9 2025-10-20 21:32:04,459 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a32bdd4-d189-4e82-b18c-dbe4f15d2c56 2025-10-20 21:32:04,474 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a32bdd4-d189-4e82-b18c-dbe4f15d2c56 2025-10-20 21:32:04,484 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/65451c90-9e2e-4020-8085-5711bf0707bc 2025-10-20 21:32:04,493 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/65451c90-9e2e-4020-8085-5711bf0707bc 2025-10-20 21:32:04,500 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1b28989c-3b45-458e-9991-e938b64bdf3f 2025-10-20 21:32:04,508 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:32:04,508 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a32bdd4-d189-4e82-b18c-dbe4f15d2c56 2025-10-20 21:32:04,517 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/65451c90-9e2e-4020-8085-5711bf0707bc 2025-10-20 21:32:04,532 - INFO - Verified VN network id 11 for VN 2a32bdd4-d189-4e82-b18c-dbe4f15d2c56 2025-10-20 21:32:04,532 - INFO - Verifications in API Server for VN ctest-vn-87556200 passed 2025-10-20 21:32:04,533 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a32bdd4-d189-4e82-b18c-dbe4f15d2c56 2025-10-20 21:32:04,542 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/65451c90-9e2e-4020-8085-5711bf0707bc 2025-10-20 21:32:04,556 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/65451c90-9e2e-4020-8085-5711bf0707bc 2025-10-20 21:32:04,564 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1b28989c-3b45-458e-9991-e938b64bdf3f 2025-10-20 21:32:04,582 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06491382', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3040701420174659202', 'uuid-lslong': '12793842417801178198'}, 'enable': 'true', 'created': '2025-10-20T21:32:02', 'last-modified': '2025-10-20T21:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951618'} 2025-10-20 21:32:04,588 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:32:04,594 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06491382', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3040701420174659202', 'uuid-lslong': '12793842417801178198'}, 'enable': 'true', 'created': '2025-10-20T21:32:02', 'last-modified': '2025-10-20T21:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962466'} 2025-10-20 21:32:04,602 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:32:04,608 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06491382', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3040701420174659202', 'uuid-lslong': '12793842417801178198'}, 'enable': 'true', 'created': '2025-10-20T21:32:02', 'last-modified': '2025-10-20T21:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974897'} 2025-10-20 21:32:04,615 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:32:04,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87556200 passed 2025-10-20 21:32:04,615 - DEBUG - ====Verifying policy data for ctest-vn-87556200 in API_Server ====== 2025-10-20 21:32:04,615 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:32:04,622 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:32:04,635 - DEBUG - Requesting: http://10.0.0.141:8082/project/c83907b1-9251-43a3-9af0-bdf94780d2e9 2025-10-20 21:32:04,727 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2a32bdd4-d189-4e82-b18c-dbe4f15d2c56 2025-10-20 21:32:04,737 - DEBUG - ==>Verifying data for policy with id: 0db0e990-2f23-4fd9-a2e0-d9d6e2f12dba, fqn: ['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-policy-allow-all-13664800'] 2025-10-20 21:32:04,737 - INFO - VN ctest-vn-87556200 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 21:32:04,737 - DEBUG - Verifying the vn in opserver 2025-10-20 21:32:04,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200 virtual network link through opserver 10.0.0.141 2025-10-20 21:32:04,737 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-20 21:32:05,034 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-20 21:32:05,106 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200?flat'} 2025-10-20 21:32:05,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200 virtual network link through opserver 10.0.0.27 2025-10-20 21:32:05,106 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 21:32:05,407 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 21:32:05,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200?flat'} 2025-10-20 21:32:05,483 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200 virtual network link through opserver 10.0.0.23 2025-10-20 21:32:05,484 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-20 21:32:05,794 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-20 21:32:05,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200?flat'} 2025-10-20 21:32:05,853 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200 is found in opserver 2025-10-20 21:32:05,885 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 21:32:05,900 - DEBUG - VRF ids for VN ctest-vn-87556200: {} 2025-10-20 21:32:05,900 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:32:05,906 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:32:05,919 - DEBUG - Requesting: http://10.0.0.141:8082/project/c83907b1-9251-43a3-9af0-bdf94780d2e9 2025-10-20 21:32:06,015 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b082abae-2ea0-4e50-8074-c816847aa1fd 2025-10-20 21:32:06,026 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b082abae-2ea0-4e50-8074-c816847aa1fd 2025-10-20 21:32:06,035 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/02e11c75-7605-4a94-8335-051492bf6884 2025-10-20 21:32:06,044 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/02e11c75-7605-4a94-8335-051492bf6884 2025-10-20 21:32:06,052 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/588948b1-1f2b-4248-b1e6-d95ff348cc61 2025-10-20 21:32:06,059 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-20 21:32:06,059 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b082abae-2ea0-4e50-8074-c816847aa1fd 2025-10-20 21:32:06,067 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/02e11c75-7605-4a94-8335-051492bf6884 2025-10-20 21:32:06,082 - INFO - Verified VN network id 12 for VN b082abae-2ea0-4e50-8074-c816847aa1fd 2025-10-20 21:32:06,082 - INFO - Verifications in API Server for VN ctest-vn-66265940 passed 2025-10-20 21:32:06,082 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b082abae-2ea0-4e50-8074-c816847aa1fd 2025-10-20 21:32:06,091 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/02e11c75-7605-4a94-8335-051492bf6884 2025-10-20 21:32:06,099 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/02e11c75-7605-4a94-8335-051492bf6884 2025-10-20 21:32:06,106 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/588948b1-1f2b-4248-b1e6-d95ff348cc61 2025-10-20 21:32:06,120 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06491382', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12718917062242618960', 'uuid-lslong': '9256243133190676989'}, 'enable': 'true', 'created': '2025-10-20T21:32:02', 'last-modified': '2025-10-20T21:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.258837'} 2025-10-20 21:32:06,141 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-20 21:32:06,150 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06491382', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12718917062242618960', 'uuid-lslong': '9256243133190676989'}, 'enable': 'true', 'created': '2025-10-20T21:32:02', 'last-modified': '2025-10-20T21:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.289863'} 2025-10-20 21:32:06,159 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-20 21:32:06,166 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06491382', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12718917062242618960', 'uuid-lslong': '9256243133190676989'}, 'enable': 'true', 'created': '2025-10-20T21:32:02', 'last-modified': '2025-10-20T21:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.309715'} 2025-10-20 21:32:06,173 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-10-20 21:32:06,173 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66265940 passed 2025-10-20 21:32:06,174 - DEBUG - ====Verifying policy data for ctest-vn-66265940 in API_Server ====== 2025-10-20 21:32:06,174 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:32:06,184 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:32:06,204 - DEBUG - Requesting: http://10.0.0.141:8082/project/c83907b1-9251-43a3-9af0-bdf94780d2e9 2025-10-20 21:32:06,309 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/b082abae-2ea0-4e50-8074-c816847aa1fd 2025-10-20 21:32:06,327 - DEBUG - ==>Verifying data for policy with id: 0db0e990-2f23-4fd9-a2e0-d9d6e2f12dba, fqn: ['default-domain', 'ctest-TestBasicPolicy-06491382', 'ctest-policy-allow-all-13664800'] 2025-10-20 21:32:06,327 - INFO - VN ctest-vn-66265940 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 21:32:06,327 - DEBUG - Verifying the vn in opserver 2025-10-20 21:32:06,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940 virtual network link through opserver 10.0.0.141 2025-10-20 21:32:06,328 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-20 21:32:06,398 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940?flat'} 2025-10-20 21:32:06,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940 virtual network link through opserver 10.0.0.27 2025-10-20 21:32:06,398 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 21:32:06,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940?flat'} 2025-10-20 21:32:06,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940 virtual network link through opserver 10.0.0.23 2025-10-20 21:32:06,462 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-20 21:32:06,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940?flat'} 2025-10-20 21:32:06,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-66265940 is found in opserver 2025-10-20 21:32:06,551 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 21:32:06,564 - DEBUG - VRF ids for VN ctest-vn-66265940: {} 2025-10-20 21:32:06,632 - DEBUG - Services list from nova: [, , , ] 2025-10-20 21:32:07,685 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4386-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4386-2) 2025-10-20 21:32:09,108 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4386-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4386-1) 2025-10-20 21:32:09,108 - INFO - Waiting for VM ctest-TestBasicPolicy-06491382-18347758 to be up.. 2025-10-20 21:32:09,215 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-20 21:32:14,313 - DEBUG - VM is in ACTIVE state now 2025-10-20 21:32:14,313 - INFO - VM name : ctest-TestBasicPolicy-06491382-18347758 2025-10-20 21:32:14,424 - DEBUG - VM ctest-TestBasicPolicy-06491382-18347758 ID is 4b3c7148-4003-4fb9-9689-992b23b39100 2025-10-20 21:32:14,449 - DEBUG - VM ctest-TestBasicPolicy-06491382-18347758 launched on Node an-jenkins-deploy-platform-ansible-os-4386-2 2025-10-20 21:32:14,551 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/4b3c7148-4003-4fb9-9689-992b23b39100 2025-10-20 21:32:14,863 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/4b3c7148-4003-4fb9-9689-992b23b39100 2025-10-20 21:32:14,898 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/7f61bc30-ce6e-49e8-ba64-ef6c690a361c 2025-10-20 21:32:18,132 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1031ms') 2025-10-20 21:32:18,132 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06491382-18347758 failed! 2025-10-20 21:32:18,145 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-06491382:ctest-vn-87556200 is 42.39.42.65 and allocation pool is NOT set 2025-10-20 21:32:20,209 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.415 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.415/2.588/4.761/2.173 ms') 2025-10-20 21:32:20,209 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06491382-18347758 passed 2025-10-20 21:32:20,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 21:32:20,320 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06491382-18347758, IP 42.39.42.67, Port 22 2025-10-20 21:32:20,488 - DEBUG - VM ctest-TestBasicPolicy-06491382-18347758 is ready for SSH connections 2025-10-20 21:32:20,488 - INFO - Waiting for VM ctest-TestBasicPolicy-06491382-89301084 to be up.. 2025-10-20 21:32:20,589 - DEBUG - VM is in ACTIVE state now 2025-10-20 21:32:20,589 - INFO - VM name : ctest-TestBasicPolicy-06491382-89301084 2025-10-20 21:32:20,690 - DEBUG - VM ctest-TestBasicPolicy-06491382-89301084 ID is b218cede-74d0-4075-897a-b3bea55989e0 2025-10-20 21:32:20,690 - DEBUG - VM ctest-TestBasicPolicy-06491382-89301084 launched on Node an-jenkins-deploy-platform-ansible-os-4386-1 2025-10-20 21:32:20,782 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b218cede-74d0-4075-897a-b3bea55989e0 2025-10-20 21:32:20,793 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/4202e048-1d95-482e-9ba4-38d16e96a3d4 2025-10-20 21:32:22,044 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.83 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.830/3.322/4.814/1.492 ms') 2025-10-20 21:32:22,044 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-06491382-89301084 passed 2025-10-20 21:32:22,151 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 21:32:22,151 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06491382-89301084, IP 130.49.208.3, Port 22 2025-10-20 21:32:22,241 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-10-20 21:32:22,342 - DEBUG - VM ctest-TestBasicPolicy-06491382-89301084 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-20 21:32:27,343 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 21:32:27,343 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-06491382-89301084, IP 130.49.208.3, Port 22 2025-10-20 21:32:27,510 - DEBUG - VM ctest-TestBasicPolicy-06491382-89301084 is ready for SSH connections 2025-10-20 21:32:27,510 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 21:32:27,510 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 130.49.208.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.240, gateway password: c0ntrail123 2025-10-20 21:32:27,510 - DEBUG - ping -s 56 -c 3 -W 1 130.49.208.3 2025-10-20 21:32:31,423 - DEBUG - PING 130.49.208.3 (130.49.208.3): 56 data bytes 64 bytes from 130.49.208.3: seq=0 ttl=63 time=10.235 ms 64 bytes from 130.49.208.3: seq=1 ttl=63 time=2.022 ms 64 bytes from 130.49.208.3: seq=2 ttl=63 time=1.169 ms --- 130.49.208.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.169/4.475/10.235 ms 2025-10-20 21:32:31,423 - INFO - Ping to IP 130.49.208.3 from VM ctest-TestBasicPolicy-06491382-18347758 passed 2025-10-20 21:32:31,641 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0db0e990-2f23-4fd9-a2e0-d9d6e2f12dba", "href": "http://10.0.0.23:8082/network-policy/0db0e990-2f23-4fd9-a2e0-d9d6e2f12dba"}} 2025-10-20 21:32:31,641 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-20 21:32:31,641 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 130.49.208.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.240, gateway password: c0ntrail123 2025-10-20 21:32:31,642 - DEBUG - ping -s 56 -c 3 -W 1 130.49.208.3 2025-10-20 21:32:34,846 - DEBUG - PING 130.49.208.3 (130.49.208.3): 56 data bytes 64 bytes from 130.49.208.3: seq=0 ttl=63 time=4.376 ms --- 130.49.208.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 4.376/4.376/4.376 ms 2025-10-20 21:32:34,846 - WARNING - Ping to IP 130.49.208.3 from VM ctest-TestBasicPolicy-06491382-18347758 failed 2025-10-20 21:32:34,847 - INFO - Deleting VM ctest-TestBasicPolicy-06491382-89301084 2025-10-20 21:32:34,916 - INFO - Deleting VM ctest-TestBasicPolicy-06491382-18347758 2025-10-20 21:32:35,391 - INFO - Deleted policy ctest-policy-allow-all-13664800 2025-10-20 21:32:35,391 - INFO - Deleting VN ctest-vn-66265940 2025-10-20 21:32:35,454 - DEBUG - VN b082abae-2ea0-4e50-8074-c816847aa1fd still in use: Unable to complete operation on network b082abae-2ea0-4e50-8074-c816847aa1fd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7cf165a6-fce9-4c44-b4d8-8920b3f77017'] 2025-10-20 21:32:35,454 - WARNING - Deleting VN ctest-vn-66265940 failed..Will retry 2025-10-20 21:32:37,618 - DEBUG - Response for deleting network () 2025-10-20 21:32:37,618 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/02e11c75-7605-4a94-8335-051492bf6884 2025-10-20 21:32:37,624 - DEBUG - Response Code: 404 2025-10-20 21:32:37,625 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:32:37,637 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:32:37,654 - DEBUG - Requesting: http://10.0.0.141:8082/project/c83907b1-9251-43a3-9af0-bdf94780d2e9 2025-10-20 21:32:37,752 - INFO - Validated that VN ctest-vn-66265940 is not found in API Server 2025-10-20 21:32:37,779 - DEBUG - VN ctest-vn-66265940 is not present in Agent 10.0.0.242 2025-10-20 21:32:37,790 - DEBUG - VN ctest-vn-66265940 is not present in Agent 10.0.0.240 2025-10-20 21:32:37,790 - INFO - Validated that VN ctest-vn-66265940 is not in any agent 2025-10-20 21:32:37,831 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66265940 info 2025-10-20 21:32:37,831 - INFO - Deleting VN ctest-vn-87556200 2025-10-20 21:32:38,073 - DEBUG - Response for deleting network () 2025-10-20 21:32:38,074 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/65451c90-9e2e-4020-8085-5711bf0707bc 2025-10-20 21:32:38,080 - DEBUG - Response Code: 404 2025-10-20 21:32:38,080 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:32:38,094 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:32:38,108 - DEBUG - Requesting: http://10.0.0.141:8082/project/c83907b1-9251-43a3-9af0-bdf94780d2e9 2025-10-20 21:32:38,213 - INFO - Validated that VN ctest-vn-87556200 is not found in API Server 2025-10-20 21:32:38,232 - DEBUG - VN ctest-vn-87556200 is not present in Agent 10.0.0.242 2025-10-20 21:32:38,243 - DEBUG - VN ctest-vn-87556200 is not present in Agent 10.0.0.240 2025-10-20 21:32:38,243 - INFO - Validated that VN ctest-vn-87556200 is not in any agent 2025-10-20 21:32:38,295 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-87556200 info 2025-10-20 21:32:39,669 - DEBUG - No XMPP flaps were noticed during the test 2025-10-20 21:32:39,670 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-10-20 21:32:39,670 - INFO - -------------------------------------------------------------------------------- 2025-10-20 21:32:40,435 - INFO - Deleted project: ctest-TestBasicPolicy-06491382, ID : c83907b1-9251-43a3-9af0-bdf94780d2e9