2026-10-21 12:03:23,624 - INFO - Domain Default found not creating
2026-10-21 12:03:23,814 - INFO - Project ctest-TestBasicPolicy-82069689 not found, creating it
2026-10-21 12:03:24,263 - INFO - Created Project:ctest-TestBasicPolicy-82069689, ID : fb1e3a7b-8558-472d-8256-9025ebe0c64e
2026-10-21 12:03:26,033 - INFO - ================================================================================
2026-10-21 12:03:26,034 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-21 12:03:26,034 - 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
2026-10-21 12:03:26,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with
2026-10-21 12:03:26,301 - INFO - Initial checks done. Running the testcase now
2026-10-21 12:03:26,302 - INFO -
2026-10-21 12:03:26,962 - DEBUG - Response for create_network : {'network': {'id': 'd6746d4e-ac60-475a-a367-d186eb1287e7', 'name': 'ctest-vn-01144649', 'tenant_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'project_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-vn-01144649'], 'port_security_enabled': True, 'description': ''}}
2026-10-21 12:03:27,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b5d929a-2d37-4ce8-821b-c69a0e595a4b', 'name': '', 'tenant_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'network_id': 'd6746d4e-ac60-475a-a367-d186eb1287e7', 'ip_version': 4, 'cidr': '1.227.161.192/26', 'allocation_pools': [{'start': '1.227.161.194', 'end': '1.227.161.254'}], 'gateway_ip': '1.227.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.227.161.194', 'tags': [], 'project_id': 'fb1e3a7b8558472d82569025ebe0c64e'}}
2026-10-21 12:03:27,193 - INFO - Created VN ctest-vn-01144649
2026-10-21 12:03:27,245 - DEBUG - VN ctest-vn-01144649 UUID is d6746d4e-ac60-475a-a367-d186eb1287e7
2026-10-21 12:03:27,578 - DEBUG - Response for create_network : {'network': {'id': '9b23c33d-ecfe-40b3-a195-67ec24153af4', 'name': 'ctest-vn-06041358', 'tenant_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'project_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-vn-06041358'], 'port_security_enabled': True, 'description': ''}}
2026-10-21 12:03:27,774 - DEBUG - Response for create_subnet : {'subnet': {'id': '06d7de99-2783-44e0-9df9-519fa870c2ca', 'name': '', 'tenant_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'network_id': '9b23c33d-ecfe-40b3-a195-67ec24153af4', 'ip_version': 4, 'cidr': '62.19.172.128/26', 'allocation_pools': [{'start': '62.19.172.130', 'end': '62.19.172.190'}], 'gateway_ip': '62.19.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.19.172.130', 'tags': [], 'project_id': 'fb1e3a7b8558472d82569025ebe0c64e'}}
2026-10-21 12:03:27,792 - INFO - Created VN ctest-vn-06041358
2026-10-21 12:03:27,845 - DEBUG - VN ctest-vn-06041358 UUID is 9b23c33d-ecfe-40b3-a195-67ec24153af4
2026-10-21 12:03:27,997 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-01144649, 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-82069689:ctest-vn-06041358, 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]
2026-10-21 12:03:28,296 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6746d4e-ac60-475a-a367-d186eb1287e7', 'name': 'ctest-vn-01144649', 'tenant_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'project_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8b5d929a-2d37-4ce8-821b-c69a0e595a4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-vn-01144649'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-policy-allow-all-08822439']], 'subnet_ipam': [{'subnet_cidr': '1.227.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-21 12:03:28,541 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b23c33d-ecfe-40b3-a195-67ec24153af4', 'name': 'ctest-vn-06041358', 'tenant_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'project_id': 'fb1e3a7b8558472d82569025ebe0c64e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['06d7de99-2783-44e0-9df9-519fa870c2ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-vn-06041358'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-policy-allow-all-08822439']], 'subnet_ipam': [{'subnet_cidr': '62.19.172.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-21 12:03:28,717 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-10-21 12:03:29,088 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-10-21 12:03:29,117 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f
2026-10-21 12:03:29,131 - DEBUG - Requesting: http://10.0.0.185:8082/project/fb1e3a7b-8558-472d-8256-9025ebe0c64e
2026-10-21 12:03:29,208 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d6746d4e-ac60-475a-a367-d186eb1287e7
2026-10-21 12:03:29,219 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d6746d4e-ac60-475a-a367-d186eb1287e7
2026-10-21 12:03:29,229 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/251ebd3d-3b3f-4248-b029-6e67013f1efc
2026-10-21 12:03:29,237 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/251ebd3d-3b3f-4248-b029-6e67013f1efc
2026-10-21 12:03:29,244 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/95d1b7c0-23af-4289-8c98-64671b2f2825
2026-10-21 12:03:29,251 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-21 12:03:29,251 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d6746d4e-ac60-475a-a367-d186eb1287e7
2026-10-21 12:03:29,260 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/251ebd3d-3b3f-4248-b029-6e67013f1efc
2026-10-21 12:03:29,278 - INFO - Verified VN network id 12 for VN d6746d4e-ac60-475a-a367-d186eb1287e7
2026-10-21 12:03:29,278 - INFO - Verifications in API Server for VN ctest-vn-01144649 passed
2026-10-21 12:03:29,278 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d6746d4e-ac60-475a-a367-d186eb1287e7
2026-10-21 12:03:29,288 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/251ebd3d-3b3f-4248-b029-6e67013f1efc
2026-10-21 12:03:29,295 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/251ebd3d-3b3f-4248-b029-6e67013f1efc
2026-10-21 12:03:29,303 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/95d1b7c0-23af-4289-8c98-64671b2f2825
2026-10-21 12:03:29,317 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-01144649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82069689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15453096406081881946', 'uuid-lslong': '11774610128183134183'}, 'enable': 'true', 'created': '2026-10-21T12:03:26', 'last-modified': '2026-10-21T12:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043808'}
2026-10-21 12:03:29,325 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-21 12:03:29,325 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01144649 passed
2026-10-21 12:03:29,325 - DEBUG - ====Verifying policy data for ctest-vn-01144649 in API_Server ======
2026-10-21 12:03:29,325 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-10-21 12:03:29,331 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f
2026-10-21 12:03:29,342 - DEBUG - Requesting: http://10.0.0.185:8082/project/fb1e3a7b-8558-472d-8256-9025ebe0c64e
2026-10-21 12:03:29,429 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d6746d4e-ac60-475a-a367-d186eb1287e7
2026-10-21 12:03:29,440 - DEBUG - ==>Verifying data for policy with id: ab4bc7b6-0d22-4126-9acf-9d8a0aeebb11, fqn: ['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-policy-allow-all-08822439']
2026-10-21 12:03:29,440 - INFO - VN ctest-vn-01144649 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-21 12:03:29,440 - DEBUG - Verifying the vn in opserver
2026-10-21 12:03:29,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-01144649 virtual network link through opserver 10.0.0.185
2026-10-21 12:03:29,440 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-10-21 12:03:29,812 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-10-21 12:03:29,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-01144649', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-01144649?flat'}
2026-10-21 12:03:29,914 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-01144649 is found in opserver
2026-10-21 12:03:29,925 - DEBUG - Do not have enough data to verify VN in agent
2026-10-21 12:03:29,932 - DEBUG - VRF ids for VN ctest-vn-01144649: {}
2026-10-21 12:03:29,932 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-10-21 12:03:29,972 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f
2026-10-21 12:03:30,003 - DEBUG - Requesting: http://10.0.0.185:8082/project/fb1e3a7b-8558-472d-8256-9025ebe0c64e
2026-10-21 12:03:30,086 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/9b23c33d-ecfe-40b3-a195-67ec24153af4
2026-10-21 12:03:30,103 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/9b23c33d-ecfe-40b3-a195-67ec24153af4
2026-10-21 12:03:30,115 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/f5498f5f-2d56-47d1-90d4-dc5c71f982be
2026-10-21 12:03:30,123 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/f5498f5f-2d56-47d1-90d4-dc5c71f982be
2026-10-21 12:03:30,135 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/c64a26a9-e330-4cb3-a4ef-ed8331bf8152
2026-10-21 12:03:30,149 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-21 12:03:30,149 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/9b23c33d-ecfe-40b3-a195-67ec24153af4
2026-10-21 12:03:30,173 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/f5498f5f-2d56-47d1-90d4-dc5c71f982be
2026-10-21 12:03:30,205 - INFO - Verified VN network id 13 for VN 9b23c33d-ecfe-40b3-a195-67ec24153af4
2026-10-21 12:03:30,205 - INFO - Verifications in API Server for VN ctest-vn-06041358 passed
2026-10-21 12:03:30,205 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/9b23c33d-ecfe-40b3-a195-67ec24153af4
2026-10-21 12:03:30,220 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/f5498f5f-2d56-47d1-90d4-dc5c71f982be
2026-10-21 12:03:30,228 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/f5498f5f-2d56-47d1-90d4-dc5c71f982be
2026-10-21 12:03:30,252 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/c64a26a9-e330-4cb3-a4ef-ed8331bf8152
2026-10-21 12:03:30,278 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-06041358', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82069689', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11178993370800210099', 'uuid-lslong': '11643326675551599348'}, 'enable': 'true', 'created': '2026-10-21T12:03:27', 'last-modified': '2026-10-21T12:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.756763'}
2026-10-21 12:03:30,294 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-21 12:03:30,294 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06041358 passed
2026-10-21 12:03:30,295 - DEBUG - ====Verifying policy data for ctest-vn-06041358 in API_Server ======
2026-10-21 12:03:30,295 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-10-21 12:03:30,326 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f
2026-10-21 12:03:30,344 - DEBUG - Requesting: http://10.0.0.185:8082/project/fb1e3a7b-8558-472d-8256-9025ebe0c64e
2026-10-21 12:03:30,453 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/9b23c33d-ecfe-40b3-a195-67ec24153af4
2026-10-21 12:03:30,470 - DEBUG - ==>Verifying data for policy with id: ab4bc7b6-0d22-4126-9acf-9d8a0aeebb11, fqn: ['default-domain', 'ctest-TestBasicPolicy-82069689', 'ctest-policy-allow-all-08822439']
2026-10-21 12:03:30,470 - INFO - VN ctest-vn-06041358 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-21 12:03:30,470 - DEBUG - Verifying the vn in opserver
2026-10-21 12:03:30,470 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-06041358 virtual network link through opserver 10.0.0.185
2026-10-21 12:03:30,470 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-10-21 12:03:30,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-06041358', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-06041358?flat'}
2026-10-21 12:03:30,484 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-06041358 is found in opserver
2026-10-21 12:03:30,505 - DEBUG - Do not have enough data to verify VN in agent
2026-10-21 12:03:30,513 - DEBUG - VRF ids for VN ctest-vn-06041358: {}
2026-10-21 12:03:30,579 - DEBUG - Services list from nova: [, , ]
2026-10-21 12:03:30,963 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6377-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6377-1)
2026-10-21 12:03:31,403 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-6377-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-6377-1)
2026-10-21 12:03:31,403 - INFO - Waiting for VM ctest-TestBasicPolicy-82069689-35285968 to be up..
2026-10-21 12:03:31,446 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:03:36,527 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:03:41,613 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:03:46,699 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:03:51,785 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:03:56,863 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:04:01,948 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:04:07,032 - DEBUG - VM is still in BUILD state, Expected: ACTIVE
2026-10-21 12:04:12,122 - DEBUG - VM is in ACTIVE state now
2026-10-21 12:04:12,122 - INFO - VM name : ctest-TestBasicPolicy-82069689-35285968
2026-10-21 12:04:12,215 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 ID is 9d7d4895-fb89-4ad9-9aeb-c459a5b429c8
2026-10-21 12:04:12,241 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 launched on Node cn-jenkins-deploy-platform-ansible-os-6377-1
2026-10-21 12:04:12,322 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-machine/9d7d4895-fb89-4ad9-9aeb-c459a5b429c8
2026-10-21 12:04:12,331 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-machine-interface/9892226a-e0b7-4d2f-86cf-301529c4f054
2026-10-21 12:04:15,601 - 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 1025ms')
2026-10-21 12:04:15,601 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82069689-35285968 failed!
2026-10-21 12:04:15,657 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82069689:ctest-vn-01144649 is 1.227.161.193 and allocation pool is NOT set
2026-10-21 12:04:17,716 - 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=3.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.501 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 = 0.501/2.129/3.757/1.628 ms')
2026-10-21 12:04:17,716 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82069689-35285968 passed
2026-10-21 12:04:17,865 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:17,865 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:17,932 - 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': ''}
2026-10-21 12:04:18,016 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:23,018 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:23,018 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:23,083 - 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': ''}
2026-10-21 12:04:23,177 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:28,177 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:28,178 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:28,244 - 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': ''}
2026-10-21 12:04:28,327 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:33,328 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:33,328 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:33,386 - 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': ''}
2026-10-21 12:04:33,475 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:38,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:38,477 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:38,533 - 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': ''}
2026-10-21 12:04:38,700 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:43,702 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:43,702 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:43,767 - 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': ''}
2026-10-21 12:04:43,847 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:48,847 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:48,847 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:48,915 - 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': ''}
2026-10-21 12:04:48,995 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:53,995 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:53,996 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:54,063 - 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': ''}
2026-10-21 12:04:54,148 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is NOT ready for SSH connections, VM status: ACTIVE
2026-10-21 12:04:59,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:04:59,149 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-35285968, IP 1.227.161.195, Port 22
2026-10-21 12:04:59,324 - DEBUG - VM ctest-TestBasicPolicy-82069689-35285968 is ready for SSH connections
2026-10-21 12:04:59,324 - INFO - Waiting for VM ctest-TestBasicPolicy-82069689-65932306 to be up..
2026-10-21 12:04:59,407 - DEBUG - VM is in ACTIVE state now
2026-10-21 12:04:59,407 - INFO - VM name : ctest-TestBasicPolicy-82069689-65932306
2026-10-21 12:04:59,484 - DEBUG - VM ctest-TestBasicPolicy-82069689-65932306 ID is 95844c17-c2cc-4ea9-8ef0-ac9d7ad1eb44
2026-10-21 12:04:59,484 - DEBUG - VM ctest-TestBasicPolicy-82069689-65932306 launched on Node cn-jenkins-deploy-platform-ansible-os-6377-1
2026-10-21 12:04:59,565 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-machine/95844c17-c2cc-4ea9-8ef0-ac9d7ad1eb44
2026-10-21 12:04:59,577 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-machine-interface/6f6c1c44-4404-4dfc-a72b-f258fb45724e
2026-10-21 12:05:00,831 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=2.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.406 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.406/1.345/2.285/0.939 ms')
2026-10-21 12:05:00,831 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82069689-65932306 passed
2026-10-21 12:05:00,981 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:05:00,981 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82069689-65932306, IP 62.19.172.131, Port 22
2026-10-21 12:05:01,151 - DEBUG - VM ctest-TestBasicPolicy-82069689-65932306 is ready for SSH connections
2026-10-21 12:05:01,151 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:05:01,152 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.19.172.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.185, gateway password: c0ntrail123
2026-10-21 12:05:01,152 - DEBUG - ping -s 56 -c 3 -W 1 62.19.172.131
2026-10-21 12:05:05,213 - DEBUG - PING 62.19.172.131 (62.19.172.131): 56 data bytes
64 bytes from 62.19.172.131: seq=0 ttl=63 time=1.954 ms
64 bytes from 62.19.172.131: seq=1 ttl=63 time=1.115 ms
64 bytes from 62.19.172.131: seq=2 ttl=63 time=0.988 ms
--- 62.19.172.131 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.988/1.352/1.954 ms
2026-10-21 12:05:05,213 - INFO - Ping to IP 62.19.172.131 from VM ctest-TestBasicPolicy-82069689-35285968 passed
2026-10-21 12:05:05,421 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ab4bc7b6-0d22-4126-9acf-9d8a0aeebb11", "href": "http://10.0.0.185:8082/network-policy/ab4bc7b6-0d22-4126-9acf-9d8a0aeebb11"}}
2026-10-21 12:05:05,421 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set
2026-10-21 12:05:05,421 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.19.172.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.185, gateway password: c0ntrail123
2026-10-21 12:05:05,421 - DEBUG - ping -s 56 -c 3 -W 1 62.19.172.131
2026-10-21 12:05:08,614 - DEBUG - PING 62.19.172.131 (62.19.172.131): 56 data bytes
64 bytes from 62.19.172.131: seq=0 ttl=63 time=2.251 ms
--- 62.19.172.131 ping statistics ---
3 packets transmitted, 1 packets received, 66% packet loss
round-trip min/avg/max = 2.251/2.251/2.251 ms
2026-10-21 12:05:08,614 - WARNING - Ping to IP 62.19.172.131 from VM ctest-TestBasicPolicy-82069689-35285968 failed
2026-10-21 12:05:08,614 - INFO - Deleting VM ctest-TestBasicPolicy-82069689-65932306
2026-10-21 12:05:08,693 - INFO - Deleting VM ctest-TestBasicPolicy-82069689-35285968
2026-10-21 12:05:09,073 - INFO - Deleted policy ctest-policy-allow-all-08822439
2026-10-21 12:05:09,073 - INFO - Deleting VN ctest-vn-06041358
2026-10-21 12:05:09,109 - DEBUG - VN 9b23c33d-ecfe-40b3-a195-67ec24153af4 still in use: Unable to complete operation on network 9b23c33d-ecfe-40b3-a195-67ec24153af4. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-08b24909-6956-4a8f-aa9b-de43f757ca89']
2026-10-21 12:05:09,109 - WARNING - Deleting VN ctest-vn-06041358 failed..Will retry
2026-10-21 12:05:11,146 - DEBUG - VN 9b23c33d-ecfe-40b3-a195-67ec24153af4 still in use: Unable to complete operation on network 9b23c33d-ecfe-40b3-a195-67ec24153af4. There are one or more ports still in use on the network.
Neutron server returns request_ids: ['req-af1e1184-8b9b-4e38-bc37-2f5729186921']
2026-10-21 12:05:11,146 - WARNING - Deleting VN ctest-vn-06041358 failed..Will retry
2026-10-21 12:05:13,251 - DEBUG - Response for deleting network ()
2026-10-21 12:05:13,252 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/f5498f5f-2d56-47d1-90d4-dc5c71f982be
2026-10-21 12:05:13,258 - DEBUG - Response Code: 404
2026-10-21 12:05:13,258 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-10-21 12:05:13,264 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f
2026-10-21 12:05:13,321 - DEBUG - Requesting: http://10.0.0.185:8082/project/fb1e3a7b-8558-472d-8256-9025ebe0c64e
2026-10-21 12:05:13,395 - INFO - Validated that VN ctest-vn-06041358 is not found in API Server
2026-10-21 12:05:13,407 - DEBUG - VN ctest-vn-06041358 is not present in Agent 10.0.0.185
2026-10-21 12:05:13,407 - INFO - Validated that VN ctest-vn-06041358 is not in any agent
2026-10-21 12:05:13,426 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06041358 info
2026-10-21 12:05:13,426 - INFO - Deleting VN ctest-vn-01144649
2026-10-21 12:05:13,535 - DEBUG - Response for deleting network ()
2026-10-21 12:05:13,535 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/251ebd3d-3b3f-4248-b029-6e67013f1efc
2026-10-21 12:05:13,544 - DEBUG - Response Code: 404
2026-10-21 12:05:13,544 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-10-21 12:05:13,550 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f
2026-10-21 12:05:13,606 - DEBUG - Requesting: http://10.0.0.185:8082/project/fb1e3a7b-8558-472d-8256-9025ebe0c64e
2026-10-21 12:05:13,686 - INFO - Validated that VN ctest-vn-01144649 is not found in API Server
2026-10-21 12:05:13,698 - DEBUG - VN ctest-vn-01144649 is not present in Agent 10.0.0.185
2026-10-21 12:05:13,698 - INFO - Validated that VN ctest-vn-01144649 is not in any agent
2026-10-21 12:05:13,718 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01144649 info
2026-10-21 12:05:13,992 - DEBUG - No XMPP flaps were noticed during the test
2026-10-21 12:05:13,992 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:47]
2026-10-21 12:05:13,993 - INFO - --------------------------------------------------------------------------------
2026-10-21 12:05:14,777 - INFO - Deleted project: ctest-TestBasicPolicy-82069689, ID : fb1e3a7b-8558-472d-8256-9025ebe0c64e