2025-10-08 22:36:30,751 - INFO - Domain Default found not creating 2025-10-08 22:36:30,890 - INFO - Project ctest-TestBasicPolicy-56818920 not found, creating it 2025-10-08 22:36:31,305 - INFO - Created Project:ctest-TestBasicPolicy-56818920, ID : ae6952f7-309d-49ab-9ff9-04b0858d31d8 2025-10-08 22:36:32,640 - INFO - ================================================================================ 2025-10-08 22:36:32,640 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-08 22:36:32,640 - 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-08 22:36:32,895 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-10-08 22:36:32,895 - INFO - Initial checks done. Running the testcase now 2025-10-08 22:36:32,895 - INFO - 2025-10-08 22:36:33,418 - DEBUG - Response for create_network : {'network': {'id': '634b0ad0-70ea-405f-9c34-70d0f593920c', 'name': 'ctest-vn-56592074', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-56592074'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:36:33,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '3794baa3-dcfa-4ac1-b121-228b46088ed1', 'name': '', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'network_id': '634b0ad0-70ea-405f-9c34-70d0f593920c', 'ip_version': 4, 'cidr': '212.222.17.64/26', 'allocation_pools': [{'start': '212.222.17.66', 'end': '212.222.17.126'}], 'gateway_ip': '212.222.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.222.17.66', 'tags': [], 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8'}} 2025-10-08 22:36:33,609 - INFO - Created VN ctest-vn-56592074 2025-10-08 22:36:33,665 - DEBUG - VN ctest-vn-56592074 UUID is 634b0ad0-70ea-405f-9c34-70d0f593920c 2025-10-08 22:36:33,964 - DEBUG - Response for create_network : {'network': {'id': 'aaf4431d-f409-408c-b904-14f448f535c4', 'name': 'ctest-vn-04402247', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-04402247'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:36:34,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '7397ec79-fdb4-4577-882b-677317dad328', 'name': '', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'network_id': 'aaf4431d-f409-408c-b904-14f448f535c4', 'ip_version': 4, 'cidr': '27.198.71.192/26', 'allocation_pools': [{'start': '27.198.71.194', 'end': '27.198.71.254'}], 'gateway_ip': '27.198.71.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.198.71.194', 'tags': [], 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8'}} 2025-10-08 22:36:34,158 - INFO - Created VN ctest-vn-04402247 2025-10-08 22:36:34,209 - DEBUG - VN ctest-vn-04402247 UUID is aaf4431d-f409-408c-b904-14f448f535c4 2025-10-08 22:36:34,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074, 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-56818920:ctest-vn-04402247, 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-08 22:36:34,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '634b0ad0-70ea-405f-9c34-70d0f593920c', 'name': 'ctest-vn-56592074', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3794baa3-dcfa-4ac1-b121-228b46088ed1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-56592074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855']], 'subnet_ipam': [{'subnet_cidr': '212.222.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:36:34,922 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aaf4431d-f409-408c-b904-14f448f535c4', 'name': 'ctest-vn-04402247', 'tenant_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'project_id': 'ae6952f7309d49ab9ff904b0858d31d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7397ec79-fdb4-4577-882b-677317dad328'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-vn-04402247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855']], 'subnet_ipam': [{'subnet_cidr': '27.198.71.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:36:35,073 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:35,361 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:35,387 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:35,397 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8 2025-10-08 22:36:35,472 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c 2025-10-08 22:36:35,482 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c 2025-10-08 22:36:35,489 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401 2025-10-08 22:36:35,494 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401 2025-10-08 22:36:35,500 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e4b34be-8fb5-4999-88f6-66e89cd2f8b7 2025-10-08 22:36:35,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 22:36:35,506 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c 2025-10-08 22:36:35,515 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401 2025-10-08 22:36:35,529 - INFO - Verified VN network id 12 for VN 634b0ad0-70ea-405f-9c34-70d0f593920c 2025-10-08 22:36:35,529 - INFO - Verifications in API Server for VN ctest-vn-56592074 passed 2025-10-08 22:36:35,529 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c 2025-10-08 22:36:35,536 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401 2025-10-08 22:36:35,541 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401 2025-10-08 22:36:35,546 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0e4b34be-8fb5-4999-88f6-66e89cd2f8b7 2025-10-08 22:36:35,556 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56818920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7154824323372040287', 'uuid-lslong': '11255745411481309708'}, 'enable': 'true', 'created': '2025-10-08T22:36:33', 'last-modified': '2025-10-08T22:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926373'} 2025-10-08 22:36:35,560 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 22:36:35,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56592074 passed 2025-10-08 22:36:35,561 - DEBUG - ====Verifying policy data for ctest-vn-56592074 in API_Server ====== 2025-10-08 22:36:35,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:35,565 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:35,573 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8 2025-10-08 22:36:35,645 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/634b0ad0-70ea-405f-9c34-70d0f593920c 2025-10-08 22:36:35,652 - DEBUG - ==>Verifying data for policy with id: 477fd293-1b1b-405b-a325-6e4bb25fac7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855'] 2025-10-08 22:36:35,652 - INFO - VN ctest-vn-56592074 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 22:36:35,652 - DEBUG - Verifying the vn in opserver 2025-10-08 22:36:35,652 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074 virtual network link through opserver 10.0.0.50 2025-10-08 22:36:35,653 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-08 22:36:35,942 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-08 22:36:35,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074?flat'} 2025-10-08 22:36:35,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074 is found in opserver 2025-10-08 22:36:36,003 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 22:36:36,007 - DEBUG - VRF ids for VN ctest-vn-56592074: {} 2025-10-08 22:36:36,007 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:36,012 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:36,021 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8 2025-10-08 22:36:36,086 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4 2025-10-08 22:36:36,096 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4 2025-10-08 22:36:36,103 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d 2025-10-08 22:36:36,108 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d 2025-10-08 22:36:36,113 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc8dcd5f-04d5-4423-8bf5-a97b797a7689 2025-10-08 22:36:36,118 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 22:36:36,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4 2025-10-08 22:36:36,125 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d 2025-10-08 22:36:36,136 - INFO - Verified VN network id 13 for VN aaf4431d-f409-408c-b904-14f448f535c4 2025-10-08 22:36:36,136 - INFO - Verifications in API Server for VN ctest-vn-04402247 passed 2025-10-08 22:36:36,136 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4 2025-10-08 22:36:36,145 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d 2025-10-08 22:36:36,151 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d 2025-10-08 22:36:36,156 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc8dcd5f-04d5-4423-8bf5-a97b797a7689 2025-10-08 22:36:36,166 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56818920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12318544676692508812', 'uuid-lslong': '13331803836352116164'}, 'enable': 'true', 'created': '2025-10-08T22:36:33', 'last-modified': '2025-10-08T22:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308007'} 2025-10-08 22:36:36,171 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-08 22:36:36,171 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04402247 passed 2025-10-08 22:36:36,172 - DEBUG - ====Verifying policy data for ctest-vn-04402247 in API_Server ====== 2025-10-08 22:36:36,172 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:36,176 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:36,184 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8 2025-10-08 22:36:36,246 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aaf4431d-f409-408c-b904-14f448f535c4 2025-10-08 22:36:36,253 - DEBUG - ==>Verifying data for policy with id: 477fd293-1b1b-405b-a325-6e4bb25fac7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-56818920', 'ctest-policy-allow-all-60426855'] 2025-10-08 22:36:36,253 - INFO - VN ctest-vn-04402247 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 22:36:36,253 - DEBUG - Verifying the vn in opserver 2025-10-08 22:36:36,254 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247 virtual network link through opserver 10.0.0.50 2025-10-08 22:36:36,254 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-08 22:36:36,261 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247?flat'} 2025-10-08 22:36:36,261 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-04402247 is found in opserver 2025-10-08 22:36:36,270 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 22:36:36,274 - DEBUG - VRF ids for VN ctest-vn-04402247: {} 2025-10-08 22:36:36,324 - DEBUG - Services list from nova: [, , ] 2025-10-08 22:36:37,304 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4248-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4248-1) 2025-10-08 22:36:38,398 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4248-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4248-1) 2025-10-08 22:36:38,399 - INFO - Waiting for VM ctest-TestBasicPolicy-56818920-71391383 to be up.. 2025-10-08 22:36:38,484 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-08 22:36:43,552 - DEBUG - VM is in ACTIVE state now 2025-10-08 22:36:43,553 - INFO - VM name : ctest-TestBasicPolicy-56818920-71391383 2025-10-08 22:36:43,630 - DEBUG - VM ctest-TestBasicPolicy-56818920-71391383 ID is bb83dd83-9b9e-4e4c-83d0-696834553bdc 2025-10-08 22:36:43,647 - DEBUG - VM ctest-TestBasicPolicy-56818920-71391383 launched on Node cn-jenkins-deploy-platform-ansible-os-4248-1 2025-10-08 22:36:43,712 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/bb83dd83-9b9e-4e4c-83d0-696834553bdc 2025-10-08 22:36:43,719 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/da82a6bf-6c00-456d-bbb7-711f713af40d 2025-10-08 22:36:46,995 - 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 1035ms') 2025-10-08 22:36:46,995 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56818920-71391383 failed! 2025-10-08 22:36:47,049 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56818920:ctest-vn-56592074 is 212.222.17.65 and allocation pool is NOT set 2025-10-08 22:36:49,113 - 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.30 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.475 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.475/1.888/3.302/1.413 ms') 2025-10-08 22:36:49,113 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56818920-71391383 passed 2025-10-08 22:36:49,269 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 22:36:49,269 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56818920-71391383, IP 212.222.17.67, Port 22 2025-10-08 22:36:49,325 - 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-08 22:36:49,411 - DEBUG - VM ctest-TestBasicPolicy-56818920-71391383 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-08 22:36:54,412 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 22:36:54,412 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56818920-71391383, IP 212.222.17.67, Port 22 2025-10-08 22:36:54,568 - DEBUG - VM ctest-TestBasicPolicy-56818920-71391383 is ready for SSH connections 2025-10-08 22:36:54,568 - INFO - Waiting for VM ctest-TestBasicPolicy-56818920-35363831 to be up.. 2025-10-08 22:36:54,636 - DEBUG - VM is in ACTIVE state now 2025-10-08 22:36:54,636 - INFO - VM name : ctest-TestBasicPolicy-56818920-35363831 2025-10-08 22:36:54,698 - DEBUG - VM ctest-TestBasicPolicy-56818920-35363831 ID is 164165c2-b50a-4a64-bae4-f7946c4af281 2025-10-08 22:36:54,698 - DEBUG - VM ctest-TestBasicPolicy-56818920-35363831 launched on Node cn-jenkins-deploy-platform-ansible-os-4248-1 2025-10-08 22:36:54,758 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/164165c2-b50a-4a64-bae4-f7946c4af281 2025-10-08 22:36:54,764 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/a8170656-2580-4b4c-914f-8786784e31c7 2025-10-08 22:36:55,987 - 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.66 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.414 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.414/1.537/2.660/1.123 ms') 2025-10-08 22:36:55,987 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56818920-35363831 passed 2025-10-08 22:36:56,137 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 22:36:56,137 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56818920-35363831, IP 27.198.71.195, Port 22 2025-10-08 22:36:56,296 - DEBUG - VM ctest-TestBasicPolicy-56818920-35363831 is ready for SSH connections 2025-10-08 22:36:56,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 22:36:56,296 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.198.71.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-10-08 22:36:56,297 - DEBUG - ping -s 56 -c 3 -W 1 27.198.71.195 2025-10-08 22:37:00,267 - DEBUG - PING 27.198.71.195 (27.198.71.195): 56 data bytes 64 bytes from 27.198.71.195: seq=0 ttl=63 time=3.617 ms 64 bytes from 27.198.71.195: seq=1 ttl=63 time=0.973 ms 64 bytes from 27.198.71.195: seq=2 ttl=63 time=1.014 ms --- 27.198.71.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.973/1.868/3.617 ms 2025-10-08 22:37:00,268 - INFO - Ping to IP 27.198.71.195 from VM ctest-TestBasicPolicy-56818920-71391383 passed 2025-10-08 22:37:00,441 - DEBUG - Policy Update Response {"network-policy": {"uuid": "477fd293-1b1b-405b-a325-6e4bb25fac7c", "href": "http://10.0.0.50:8082/network-policy/477fd293-1b1b-405b-a325-6e4bb25fac7c"}} 2025-10-08 22:37:00,441 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-08 22:37:00,441 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.198.71.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-10-08 22:37:00,441 - DEBUG - ping -s 56 -c 3 -W 1 27.198.71.195 2025-10-08 22:37:03,669 - DEBUG - PING 27.198.71.195 (27.198.71.195): 56 data bytes 64 bytes from 27.198.71.195: seq=0 ttl=63 time=1.621 ms --- 27.198.71.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.621/1.621/1.621 ms 2025-10-08 22:37:03,669 - WARNING - Ping to IP 27.198.71.195 from VM ctest-TestBasicPolicy-56818920-71391383 failed 2025-10-08 22:37:03,669 - INFO - Deleting VM ctest-TestBasicPolicy-56818920-35363831 2025-10-08 22:37:03,729 - INFO - Deleting VM ctest-TestBasicPolicy-56818920-71391383 2025-10-08 22:37:04,090 - INFO - Deleted policy ctest-policy-allow-all-60426855 2025-10-08 22:37:04,090 - INFO - Deleting VN ctest-vn-04402247 2025-10-08 22:37:04,120 - DEBUG - VN aaf4431d-f409-408c-b904-14f448f535c4 still in use: Unable to complete operation on network aaf4431d-f409-408c-b904-14f448f535c4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-37425ee8-5d26-4ab3-851d-7191c028a913'] 2025-10-08 22:37:04,120 - WARNING - Deleting VN ctest-vn-04402247 failed..Will retry 2025-10-08 22:37:06,215 - DEBUG - Response for deleting network () 2025-10-08 22:37:06,215 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/929e4f57-37de-4458-a61c-d4601790259d 2025-10-08 22:37:06,221 - DEBUG - Response Code: 404 2025-10-08 22:37:06,221 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:37:06,226 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:37:06,278 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8 2025-10-08 22:37:06,343 - INFO - Validated that VN ctest-vn-04402247 is not found in API Server 2025-10-08 22:37:06,352 - DEBUG - VN ctest-vn-04402247 is not present in Agent 10.0.0.50 2025-10-08 22:37:06,352 - INFO - Validated that VN ctest-vn-04402247 is not in any agent 2025-10-08 22:37:06,364 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04402247 info 2025-10-08 22:37:06,364 - INFO - Deleting VN ctest-vn-56592074 2025-10-08 22:37:06,460 - DEBUG - Response for deleting network () 2025-10-08 22:37:06,460 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b92588ac-01da-414d-8036-38cc41b12401 2025-10-08 22:37:06,466 - DEBUG - Response Code: 404 2025-10-08 22:37:06,466 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:37:06,473 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:37:06,525 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae6952f7-309d-49ab-9ff9-04b0858d31d8 2025-10-08 22:37:06,593 - INFO - Validated that VN ctest-vn-56592074 is not found in API Server 2025-10-08 22:37:06,602 - DEBUG - VN ctest-vn-56592074 is not present in Agent 10.0.0.50 2025-10-08 22:37:06,602 - INFO - Validated that VN ctest-vn-56592074 is not in any agent 2025-10-08 22:37:06,614 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-56592074 info 2025-10-08 22:37:06,866 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 22:37:06,866 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-10-08 22:37:06,866 - INFO - -------------------------------------------------------------------------------- 2025-10-08 22:37:07,517 - INFO - Deleted project: ctest-TestBasicPolicy-56818920, ID : ae6952f7-309d-49ab-9ff9-04b0858d31d8