2025-02-06 02:21:31,423 - INFO - Domain Default found not creating 2025-02-06 02:21:31,554 - INFO - Project ctest-TestBasicPolicy-35373195 not found, creating it 2025-02-06 02:21:31,984 - INFO - Created Project:ctest-TestBasicPolicy-35373195, ID : 6abfe3de-992e-4fa9-b243-1ae862d2fa3a 2025-02-06 02:21:33,468 - INFO - ================================================================================ 2025-02-06 02:21:33,468 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-06 02:21:33,468 - 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-02-06 02:21:33,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.28': '0'}} with 2025-02-06 02:21:33,722 - INFO - Initial checks done. Running the testcase now 2025-02-06 02:21:33,722 - INFO - 2025-02-06 02:21:34,305 - DEBUG - Response for create_network : {'network': {'id': 'f98db07c-95ad-4e15-b833-940319f07180', 'name': 'ctest-vn-37587782', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-37587782'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:21:34,464 - DEBUG - Response for create_subnet : {'subnet': {'id': '60e9373f-8ba3-4d2a-b5ca-de890431709e', 'name': '', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'network_id': 'f98db07c-95ad-4e15-b833-940319f07180', 'ip_version': 4, 'cidr': '202.40.53.128/26', 'allocation_pools': [{'start': '202.40.53.130', 'end': '202.40.53.190'}], 'gateway_ip': '202.40.53.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.40.53.130', 'tags': [], 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a'}} 2025-02-06 02:21:34,484 - INFO - Created VN ctest-vn-37587782 2025-02-06 02:21:34,536 - DEBUG - VN ctest-vn-37587782 UUID is f98db07c-95ad-4e15-b833-940319f07180 2025-02-06 02:21:34,842 - DEBUG - Response for create_network : {'network': {'id': 'a171c62d-73f4-4ab5-be14-20102380696b', 'name': 'ctest-vn-26889801', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-26889801'], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:21:35,019 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e5f96cb-434f-4ab0-a58b-07e59117bdfe', 'name': '', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'network_id': 'a171c62d-73f4-4ab5-be14-20102380696b', 'ip_version': 4, 'cidr': '7.76.170.0/26', 'allocation_pools': [{'start': '7.76.170.2', 'end': '7.76.170.62'}], 'gateway_ip': '7.76.170.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.76.170.2', 'tags': [], 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a'}} 2025-02-06 02:21:35,036 - INFO - Created VN ctest-vn-26889801 2025-02-06 02:21:35,084 - DEBUG - VN ctest-vn-26889801 UUID is a171c62d-73f4-4ab5-be14-20102380696b 2025-02-06 02:21:35,232 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782, 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-35373195:ctest-vn-26889801, 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-02-06 02:21:35,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f98db07c-95ad-4e15-b833-940319f07180', 'name': 'ctest-vn-37587782', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60e9373f-8ba3-4d2a-b5ca-de890431709e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-37587782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888']], 'subnet_ipam': [{'subnet_cidr': '202.40.53.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:21:35,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a171c62d-73f4-4ab5-be14-20102380696b', 'name': 'ctest-vn-26889801', 'tenant_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'project_id': '6abfe3de992e4fa9b2431ae862d2fa3a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e5f96cb-434f-4ab0-a58b-07e59117bdfe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-vn-26889801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888']], 'subnet_ipam': [{'subnet_cidr': '7.76.170.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-06 02:21:35,936 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2025-02-06 02:21:36,267 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2025-02-06 02:21:36,295 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3 2025-02-06 02:21:36,308 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a 2025-02-06 02:21:36,377 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180 2025-02-06 02:21:36,386 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180 2025-02-06 02:21:36,393 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862 2025-02-06 02:21:36,399 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862 2025-02-06 02:21:36,405 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2b412fab-d469-43b9-8381-634b7ae2827f 2025-02-06 02:21:36,411 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 02:21:36,411 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180 2025-02-06 02:21:36,418 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862 2025-02-06 02:21:36,429 - INFO - Verified VN network id 8 for VN f98db07c-95ad-4e15-b833-940319f07180 2025-02-06 02:21:36,429 - INFO - Verifications in API Server for VN ctest-vn-37587782 passed 2025-02-06 02:21:36,429 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180 2025-02-06 02:21:36,437 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862 2025-02-06 02:21:36,443 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862 2025-02-06 02:21:36,450 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2b412fab-d469-43b9-8381-634b7ae2827f 2025-02-06 02:21:36,464 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35373195', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17982222936293854741', 'uuid-lslong': '13273115267831984512'}, 'enable': 'true', 'created': '2025-02-06T02:21:34', 'last-modified': '2025-02-06T02:21:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962762'} 2025-02-06 02:21:36,473 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-06 02:21:36,473 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37587782 passed 2025-02-06 02:21:36,473 - DEBUG - ====Verifying policy data for ctest-vn-37587782 in API_Server ====== 2025-02-06 02:21:36,473 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2025-02-06 02:21:36,479 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3 2025-02-06 02:21:36,490 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a 2025-02-06 02:21:36,562 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/f98db07c-95ad-4e15-b833-940319f07180 2025-02-06 02:21:36,572 - DEBUG - ==>Verifying data for policy with id: 3a10d802-8652-4529-b1f9-522a23aa17c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888'] 2025-02-06 02:21:36,572 - INFO - VN ctest-vn-37587782 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 02:21:36,572 - DEBUG - Verifying the vn in opserver 2025-02-06 02:21:36,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782 virtual network link through opserver 10.0.0.46 2025-02-06 02:21:36,572 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2025-02-06 02:21:36,903 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2025-02-06 02:21:36,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782?flat'} 2025-02-06 02:21:36,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782 is found in opserver 2025-02-06 02:21:36,967 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 02:21:36,972 - DEBUG - VRF ids for VN ctest-vn-37587782: {} 2025-02-06 02:21:36,972 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2025-02-06 02:21:36,978 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3 2025-02-06 02:21:36,989 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a 2025-02-06 02:21:37,053 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b 2025-02-06 02:21:37,062 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b 2025-02-06 02:21:37,070 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0 2025-02-06 02:21:37,076 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0 2025-02-06 02:21:37,082 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/8642cf56-5771-4bbc-b4b3-18045196ec47 2025-02-06 02:21:37,088 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-06 02:21:37,088 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b 2025-02-06 02:21:37,095 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0 2025-02-06 02:21:37,105 - INFO - Verified VN network id 9 for VN a171c62d-73f4-4ab5-be14-20102380696b 2025-02-06 02:21:37,106 - INFO - Verifications in API Server for VN ctest-vn-26889801 passed 2025-02-06 02:21:37,106 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b 2025-02-06 02:21:37,113 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0 2025-02-06 02:21:37,119 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0 2025-02-06 02:21:37,125 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/8642cf56-5771-4bbc-b4b3-18045196ec47 2025-02-06 02:21:37,137 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35373195', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11633297210995919541', 'uuid-lslong': '13696607620427704683'}, 'enable': 'true', 'created': '2025-02-06T02:21:34', 'last-modified': '2025-02-06T02:21:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.392693'} 2025-02-06 02:21:37,143 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-02-06 02:21:37,143 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26889801 passed 2025-02-06 02:21:37,143 - DEBUG - ====Verifying policy data for ctest-vn-26889801 in API_Server ====== 2025-02-06 02:21:37,143 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2025-02-06 02:21:37,148 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3 2025-02-06 02:21:37,159 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a 2025-02-06 02:21:37,228 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/a171c62d-73f4-4ab5-be14-20102380696b 2025-02-06 02:21:37,237 - DEBUG - ==>Verifying data for policy with id: 3a10d802-8652-4529-b1f9-522a23aa17c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-35373195', 'ctest-policy-allow-all-33831888'] 2025-02-06 02:21:37,237 - INFO - VN ctest-vn-26889801 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-06 02:21:37,237 - DEBUG - Verifying the vn in opserver 2025-02-06 02:21:37,237 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801 virtual network link through opserver 10.0.0.46 2025-02-06 02:21:37,238 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2025-02-06 02:21:37,248 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801?flat'} 2025-02-06 02:21:37,248 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-26889801 is found in opserver 2025-02-06 02:21:37,261 - DEBUG - Do not have enough data to verify VN in agent 2025-02-06 02:21:37,267 - DEBUG - VRF ids for VN ctest-vn-26889801: {} 2025-02-06 02:21:37,326 - DEBUG - Services list from nova: [, , ] 2025-02-06 02:21:38,415 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2697-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2697-1) 2025-02-06 02:21:39,725 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2697-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2697-1) 2025-02-06 02:21:39,725 - INFO - Waiting for VM ctest-TestBasicPolicy-35373195-68090085 to be up.. 2025-02-06 02:21:39,817 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-06 02:21:44,895 - DEBUG - VM is in ACTIVE state now 2025-02-06 02:21:44,895 - INFO - VM name : ctest-TestBasicPolicy-35373195-68090085 2025-02-06 02:21:44,964 - DEBUG - VM ctest-TestBasicPolicy-35373195-68090085 ID is c79f632e-bbcc-4526-89f7-930134100190 2025-02-06 02:21:44,981 - DEBUG - VM ctest-TestBasicPolicy-35373195-68090085 launched on Node cn-jenkins-deploy-platform-ansible-os-2697-1 2025-02-06 02:21:45,055 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/c79f632e-bbcc-4526-89f7-930134100190 2025-02-06 02:21:45,063 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/85b6bec0-3f0c-4a7a-ad92-3fa6b56a423c 2025-02-06 02:21:48,317 - 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 1019ms') 2025-02-06 02:21:48,317 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35373195-68090085 failed! 2025-02-06 02:21:48,372 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-35373195:ctest-vn-37587782 is 202.40.53.129 and allocation pool is NOT set 2025-02-06 02:21:50,438 - 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=7.91 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.01 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 = 3.011/5.460/7.909/2.449 ms') 2025-02-06 02:21:50,438 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-35373195-68090085 passed 2025-02-06 02:21:50,592 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:21:50,592 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35373195-68090085, IP 202.40.53.131, Port 22 2025-02-06 02:21:50,647 - 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-02-06 02:21:50,724 - DEBUG - VM ctest-TestBasicPolicy-35373195-68090085 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-06 02:21:55,724 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:21:55,724 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35373195-68090085, IP 202.40.53.131, Port 22 2025-02-06 02:21:55,880 - DEBUG - VM ctest-TestBasicPolicy-35373195-68090085 is ready for SSH connections 2025-02-06 02:21:55,880 - INFO - Waiting for VM ctest-TestBasicPolicy-35373195-83862597 to be up.. 2025-02-06 02:21:55,953 - DEBUG - VM is in ACTIVE state now 2025-02-06 02:21:55,953 - INFO - VM name : ctest-TestBasicPolicy-35373195-83862597 2025-02-06 02:21:56,022 - DEBUG - VM ctest-TestBasicPolicy-35373195-83862597 ID is 96a499bf-86b8-4a7e-b862-06154ef7104b 2025-02-06 02:21:56,022 - DEBUG - VM ctest-TestBasicPolicy-35373195-83862597 launched on Node cn-jenkins-deploy-platform-ansible-os-2697-1 2025-02-06 02:21:56,095 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/96a499bf-86b8-4a7e-b862-06154ef7104b 2025-02-06 02:21:56,102 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/dbf87bae-230e-4e92-85f3-c85578402803 2025-02-06 02:21:57,334 - 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=3.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.380 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.380/1.740/3.101/1.360 ms') 2025-02-06 02:21:57,334 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-35373195-83862597 passed 2025-02-06 02:21:57,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:21:57,488 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-35373195-83862597, IP 7.76.170.3, Port 22 2025-02-06 02:21:57,643 - DEBUG - VM ctest-TestBasicPolicy-35373195-83862597 is ready for SSH connections 2025-02-06 02:21:57,643 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:21:57,643 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.76.170.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2025-02-06 02:21:57,643 - DEBUG - ping -s 56 -c 3 -W 1 7.76.170.3 2025-02-06 02:22:01,660 - DEBUG - PING 7.76.170.3 (7.76.170.3): 56 data bytes 64 bytes from 7.76.170.3: seq=0 ttl=63 time=3.508 ms 64 bytes from 7.76.170.3: seq=1 ttl=63 time=0.833 ms 64 bytes from 7.76.170.3: seq=2 ttl=63 time=0.751 ms --- 7.76.170.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.751/1.697/3.508 ms 2025-02-06 02:22:01,661 - INFO - Ping to IP 7.76.170.3 from VM ctest-TestBasicPolicy-35373195-68090085 passed 2025-02-06 02:22:01,840 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3a10d802-8652-4529-b1f9-522a23aa17c0", "href": "http://10.0.0.46:8082/network-policy/3a10d802-8652-4529-b1f9-522a23aa17c0"}} 2025-02-06 02:22:01,840 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-06 02:22:01,840 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 7.76.170.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2025-02-06 02:22:01,840 - DEBUG - ping -s 56 -c 3 -W 1 7.76.170.3 2025-02-06 02:22:05,053 - DEBUG - PING 7.76.170.3 (7.76.170.3): 56 data bytes 64 bytes from 7.76.170.3: seq=0 ttl=63 time=1.583 ms --- 7.76.170.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.583/1.583/1.583 ms 2025-02-06 02:22:05,053 - WARNING - Ping to IP 7.76.170.3 from VM ctest-TestBasicPolicy-35373195-68090085 failed 2025-02-06 02:22:05,053 - INFO - Deleting VM ctest-TestBasicPolicy-35373195-83862597 2025-02-06 02:22:05,120 - INFO - Deleting VM ctest-TestBasicPolicy-35373195-68090085 2025-02-06 02:22:05,463 - INFO - Deleted policy ctest-policy-allow-all-33831888 2025-02-06 02:22:05,464 - INFO - Deleting VN ctest-vn-26889801 2025-02-06 02:22:05,500 - DEBUG - VN a171c62d-73f4-4ab5-be14-20102380696b still in use: Unable to complete operation on network a171c62d-73f4-4ab5-be14-20102380696b. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1dfee8aa-900c-467f-97c5-9121811709d1'] 2025-02-06 02:22:05,500 - WARNING - Deleting VN ctest-vn-26889801 failed..Will retry 2025-02-06 02:22:07,590 - DEBUG - Response for deleting network () 2025-02-06 02:22:07,590 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/a71d6ea3-ab45-42b2-93cf-3f09033354a0 2025-02-06 02:22:07,595 - DEBUG - Response Code: 404 2025-02-06 02:22:07,596 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2025-02-06 02:22:07,603 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3 2025-02-06 02:22:07,657 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a 2025-02-06 02:22:07,726 - INFO - Validated that VN ctest-vn-26889801 is not found in API Server 2025-02-06 02:22:07,738 - DEBUG - VN ctest-vn-26889801 is not present in Agent 10.0.0.46 2025-02-06 02:22:07,738 - INFO - Validated that VN ctest-vn-26889801 is not in any agent 2025-02-06 02:22:07,755 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26889801 info 2025-02-06 02:22:07,756 - INFO - Deleting VN ctest-vn-37587782 2025-02-06 02:22:07,855 - DEBUG - Response for deleting network () 2025-02-06 02:22:07,856 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/ca884148-d4e5-4246-9cf1-2f49bb41f862 2025-02-06 02:22:07,866 - DEBUG - Response Code: 404 2025-02-06 02:22:07,866 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2025-02-06 02:22:07,873 - DEBUG - Requesting: http://10.0.0.46:8082/domain/bc95de62-2af5-435b-8a1c-e1e4d607acd3 2025-02-06 02:22:07,934 - DEBUG - Requesting: http://10.0.0.46:8082/project/6abfe3de-992e-4fa9-b243-1ae862d2fa3a 2025-02-06 02:22:08,029 - INFO - Validated that VN ctest-vn-37587782 is not found in API Server 2025-02-06 02:22:08,040 - DEBUG - VN ctest-vn-37587782 is not present in Agent 10.0.0.46 2025-02-06 02:22:08,040 - INFO - Validated that VN ctest-vn-37587782 is not in any agent 2025-02-06 02:22:08,059 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37587782 info 2025-02-06 02:22:08,334 - DEBUG - No XMPP flaps were noticed during the test 2025-02-06 02:22:08,334 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-02-06 02:22:08,334 - INFO - -------------------------------------------------------------------------------- 2025-02-06 02:22:09,026 - INFO - Deleted project: ctest-TestBasicPolicy-35373195, ID : 6abfe3de-992e-4fa9-b243-1ae862d2fa3a