2024-10-28 16:50:33,602 - INFO - Domain Default found not creating 2024-10-28 16:50:33,792 - INFO - Project ctest-TestBasicPolicy-84200235 not found, creating it 2024-10-28 16:50:34,333 - INFO - Created Project:ctest-TestBasicPolicy-84200235, ID : 9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09 2024-10-28 16:50:36,069 - INFO - ================================================================================ 2024-10-28 16:50:36,069 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 16:50:36,069 - 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 2024-10-28 16:50:36,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.13': '0'}} with 2024-10-28 16:50:36,333 - INFO - Initial checks done. Running the testcase now 2024-10-28 16:50:36,333 - INFO - 2024-10-28 16:50:37,232 - DEBUG - Response for create_network : {'network': {'id': '3786a5b5-3e13-4f4f-9a59-4441200c1050', 'name': 'ctest-vn-99417246', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-99417246'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:50:37,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5ff9822-fe98-4ae0-9a7e-0149cc9d036f', 'name': '', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'network_id': '3786a5b5-3e13-4f4f-9a59-4441200c1050', 'ip_version': 4, 'cidr': '177.202.135.128/26', 'allocation_pools': [{'start': '177.202.135.130', 'end': '177.202.135.190'}], 'gateway_ip': '177.202.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.202.135.130', 'tags': [], 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09'}} 2024-10-28 16:50:37,476 - INFO - Created VN ctest-vn-99417246 2024-10-28 16:50:37,534 - DEBUG - VN ctest-vn-99417246 UUID is 3786a5b5-3e13-4f4f-9a59-4441200c1050 2024-10-28 16:50:37,916 - DEBUG - Response for create_network : {'network': {'id': '372235c4-8adb-4af3-b11d-29e9cfef117d', 'name': 'ctest-vn-44750154', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-44750154'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:50:38,144 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8301fce-d1d2-44ea-a50f-b840ca92683a', 'name': '', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'network_id': '372235c4-8adb-4af3-b11d-29e9cfef117d', 'ip_version': 4, 'cidr': '24.205.226.192/26', 'allocation_pools': [{'start': '24.205.226.194', 'end': '24.205.226.254'}], 'gateway_ip': '24.205.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.205.226.194', 'tags': [], 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09'}} 2024-10-28 16:50:38,170 - INFO - Created VN ctest-vn-44750154 2024-10-28 16:50:38,238 - DEBUG - VN ctest-vn-44750154 UUID is 372235c4-8adb-4af3-b11d-29e9cfef117d 2024-10-28 16:50:38,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246, 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-84200235:ctest-vn-44750154, 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] 2024-10-28 16:50:38,721 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3786a5b5-3e13-4f4f-9a59-4441200c1050', 'name': 'ctest-vn-99417246', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5ff9822-fe98-4ae0-9a7e-0149cc9d036f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-99417246'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462']], 'subnet_ipam': [{'subnet_cidr': '177.202.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:50:38,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '372235c4-8adb-4af3-b11d-29e9cfef117d', 'name': 'ctest-vn-44750154', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8301fce-d1d2-44ea-a50f-b840ca92683a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-44750154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462']], 'subnet_ipam': [{'subnet_cidr': '24.205.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 16:50:39,115 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-28 16:50:39,456 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-28 16:50:39,495 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546 2024-10-28 16:50:39,516 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09 2024-10-28 16:50:39,619 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050 2024-10-28 16:50:39,636 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050 2024-10-28 16:50:39,657 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699 2024-10-28 16:50:39,668 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699 2024-10-28 16:50:39,679 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c4a9a263-5ee0-4c29-8bf7-49c62669af2b 2024-10-28 16:50:39,689 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 16:50:39,689 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050 2024-10-28 16:50:39,707 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699 2024-10-28 16:50:39,733 - INFO - Verified VN network id 9 for VN 3786a5b5-3e13-4f4f-9a59-4441200c1050 2024-10-28 16:50:39,733 - INFO - Verifications in API Server for VN ctest-vn-99417246 passed 2024-10-28 16:50:39,733 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050 2024-10-28 16:50:39,752 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699 2024-10-28 16:50:39,763 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699 2024-10-28 16:50:39,773 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c4a9a263-5ee0-4c29-8bf7-49c62669af2b 2024-10-28 16:50:39,791 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84200235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4001067516814380879', 'uuid-lslong': '11121995801269375056'}, 'enable': 'true', 'created': '2024-10-28T16:50:37', 'last-modified': '2024-10-28T16:50:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.106035'} 2024-10-28 16:50:39,801 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 16:50:39,801 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99417246 passed 2024-10-28 16:50:39,801 - DEBUG - ====Verifying policy data for ctest-vn-99417246 in API_Server ====== 2024-10-28 16:50:39,801 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-28 16:50:39,810 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546 2024-10-28 16:50:39,827 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09 2024-10-28 16:50:39,921 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050 2024-10-28 16:50:39,937 - DEBUG - ==>Verifying data for policy with id: 8e6c0699-bade-41a3-85dd-57789e636c7d, fqn: ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462'] 2024-10-28 16:50:39,937 - INFO - VN ctest-vn-99417246 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 16:50:39,937 - DEBUG - Verifying the vn in opserver 2024-10-28 16:50:39,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246 virtual network link through opserver 10.0.0.12 2024-10-28 16:50:39,937 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-28 16:50:40,283 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-28 16:50:40,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246?flat'} 2024-10-28 16:50:40,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246 is found in opserver 2024-10-28 16:50:40,374 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 16:50:40,380 - DEBUG - VRF ids for VN ctest-vn-99417246: {} 2024-10-28 16:50:40,381 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-28 16:50:40,388 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546 2024-10-28 16:50:40,408 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09 2024-10-28 16:50:40,498 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d 2024-10-28 16:50:40,517 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d 2024-10-28 16:50:40,533 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394 2024-10-28 16:50:40,542 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394 2024-10-28 16:50:40,552 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c54c730b-5d8f-43ac-ba30-42b175740908 2024-10-28 16:50:40,562 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 16:50:40,562 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d 2024-10-28 16:50:40,579 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394 2024-10-28 16:50:40,603 - INFO - Verified VN network id 10 for VN 372235c4-8adb-4af3-b11d-29e9cfef117d 2024-10-28 16:50:40,604 - INFO - Verifications in API Server for VN ctest-vn-44750154 passed 2024-10-28 16:50:40,604 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d 2024-10-28 16:50:40,620 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394 2024-10-28 16:50:40,630 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394 2024-10-28 16:50:40,639 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c54c730b-5d8f-43ac-ba30-42b175740908 2024-10-28 16:50:40,653 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84200235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3972796939553688307', 'uuid-lslong': '12762403003230523773'}, 'enable': 'true', 'created': '2024-10-28T16:50:37', 'last-modified': '2024-10-28T16:50:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.698110'} 2024-10-28 16:50:40,661 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 16:50:40,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44750154 passed 2024-10-28 16:50:40,661 - DEBUG - ====Verifying policy data for ctest-vn-44750154 in API_Server ====== 2024-10-28 16:50:40,661 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-28 16:50:40,668 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546 2024-10-28 16:50:40,685 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09 2024-10-28 16:50:40,774 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d 2024-10-28 16:50:40,792 - DEBUG - ==>Verifying data for policy with id: 8e6c0699-bade-41a3-85dd-57789e636c7d, fqn: ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462'] 2024-10-28 16:50:40,792 - INFO - VN ctest-vn-44750154 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 16:50:40,793 - DEBUG - Verifying the vn in opserver 2024-10-28 16:50:40,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154 virtual network link through opserver 10.0.0.12 2024-10-28 16:50:40,793 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-10-28 16:50:40,808 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154?flat'} 2024-10-28 16:50:40,808 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154 is found in opserver 2024-10-28 16:50:40,822 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 16:50:40,828 - DEBUG - VRF ids for VN ctest-vn-44750154: {} 2024-10-28 16:50:40,892 - DEBUG - Services list from nova: [, , ] 2024-10-28 16:50:42,118 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2171-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2171-1) 2024-10-28 16:50:43,653 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2171-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2171-1) 2024-10-28 16:50:43,654 - INFO - Waiting for VM ctest-TestBasicPolicy-84200235-86896145 to be up.. 2024-10-28 16:50:43,756 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 16:50:48,846 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:50:48,846 - INFO - VM name : ctest-TestBasicPolicy-84200235-86896145 2024-10-28 16:50:48,935 - DEBUG - VM ctest-TestBasicPolicy-84200235-86896145 ID is b83fb752-f05a-482f-8c3b-ede49929f7f9 2024-10-28 16:50:48,957 - DEBUG - VM ctest-TestBasicPolicy-84200235-86896145 launched on Node cn-jenkins-deploy-platform-ansible-os-2171-1 2024-10-28 16:50:49,052 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/b83fb752-f05a-482f-8c3b-ede49929f7f9 2024-10-28 16:50:49,068 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/931ed008-e6f1-43f6-b834-87be399f3122 2024-10-28 16:50:52,360 - 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 1020ms') 2024-10-28 16:50:52,360 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84200235-86896145 failed! 2024-10-28 16:50:52,426 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246 is 177.202.135.129 and allocation pool is NOT set 2024-10-28 16:50:54,489 - 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=8.56 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.40 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.398/4.979/8.560/3.581 ms') 2024-10-28 16:50:54,489 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84200235-86896145 passed 2024-10-28 16:50:54,654 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:50:54,655 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84200235-86896145, IP 177.202.135.131, Port 22 2024-10-28 16:50:54,720 - 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': ''} 2024-10-28 16:50:54,821 - DEBUG - VM ctest-TestBasicPolicy-84200235-86896145 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-28 16:50:59,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:50:59,822 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84200235-86896145, IP 177.202.135.131, Port 22 2024-10-28 16:50:59,978 - DEBUG - VM ctest-TestBasicPolicy-84200235-86896145 is ready for SSH connections 2024-10-28 16:50:59,978 - INFO - Waiting for VM ctest-TestBasicPolicy-84200235-74003635 to be up.. 2024-10-28 16:51:00,087 - DEBUG - VM is in ACTIVE state now 2024-10-28 16:51:00,087 - INFO - VM name : ctest-TestBasicPolicy-84200235-74003635 2024-10-28 16:51:00,183 - DEBUG - VM ctest-TestBasicPolicy-84200235-74003635 ID is 9fc7d377-175f-48a1-bc32-aff77443371d 2024-10-28 16:51:00,184 - DEBUG - VM ctest-TestBasicPolicy-84200235-74003635 launched on Node cn-jenkins-deploy-platform-ansible-os-2171-1 2024-10-28 16:51:00,273 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/9fc7d377-175f-48a1-bc32-aff77443371d 2024-10-28 16:51:00,285 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/46ee4319-f81b-45b7-92ce-2da0847737df 2024-10-28 16:51:01,550 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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.389/1.713/3.038/1.324 ms') 2024-10-28 16:51:01,550 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84200235-74003635 passed 2024-10-28 16:51:01,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:51:01,711 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84200235-74003635, IP 24.205.226.195, Port 22 2024-10-28 16:51:01,866 - DEBUG - VM ctest-TestBasicPolicy-84200235-74003635 is ready for SSH connections 2024-10-28 16:51:01,866 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:51:01,866 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 24.205.226.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-28 16:51:01,867 - DEBUG - ping -s 56 -c 3 -W 1 24.205.226.195 2024-10-28 16:51:05,998 - DEBUG - PING 24.205.226.195 (24.205.226.195): 56 data bytes 64 bytes from 24.205.226.195: seq=0 ttl=63 time=3.868 ms 64 bytes from 24.205.226.195: seq=1 ttl=63 time=1.285 ms 64 bytes from 24.205.226.195: seq=2 ttl=63 time=1.106 ms --- 24.205.226.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.106/2.086/3.868 ms 2024-10-28 16:51:05,998 - INFO - Ping to IP 24.205.226.195 from VM ctest-TestBasicPolicy-84200235-86896145 passed 2024-10-28 16:51:06,210 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8e6c0699-bade-41a3-85dd-57789e636c7d", "href": "http://10.0.0.12:8082/network-policy/8e6c0699-bade-41a3-85dd-57789e636c7d"}} 2024-10-28 16:51:06,211 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 16:51:06,211 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 24.205.226.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-10-28 16:51:06,211 - DEBUG - ping -s 56 -c 3 -W 1 24.205.226.195 2024-10-28 16:51:09,465 - DEBUG - PING 24.205.226.195 (24.205.226.195): 56 data bytes --- 24.205.226.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-28 16:51:09,465 - WARNING - Ping to IP 24.205.226.195 from VM ctest-TestBasicPolicy-84200235-86896145 failed 2024-10-28 16:51:09,466 - INFO - Deleting VM ctest-TestBasicPolicy-84200235-74003635 2024-10-28 16:51:09,542 - INFO - Deleting VM ctest-TestBasicPolicy-84200235-86896145 2024-10-28 16:51:10,057 - INFO - Deleted policy ctest-policy-allow-all-37483462 2024-10-28 16:51:10,057 - INFO - Deleting VN ctest-vn-44750154 2024-10-28 16:51:10,108 - DEBUG - VN 372235c4-8adb-4af3-b11d-29e9cfef117d still in use: Unable to complete operation on network 372235c4-8adb-4af3-b11d-29e9cfef117d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2e632047-6c05-4f06-8983-7c3d51269ef6'] 2024-10-28 16:51:10,108 - WARNING - Deleting VN ctest-vn-44750154 failed..Will retry 2024-10-28 16:51:12,227 - DEBUG - Response for deleting network () 2024-10-28 16:51:12,227 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394 2024-10-28 16:51:12,238 - DEBUG - Response Code: 404 2024-10-28 16:51:12,238 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-28 16:51:12,244 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546 2024-10-28 16:51:12,301 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09 2024-10-28 16:51:12,389 - INFO - Validated that VN ctest-vn-44750154 is not found in API Server 2024-10-28 16:51:12,403 - DEBUG - VN ctest-vn-44750154 is not present in Agent 10.0.0.12 2024-10-28 16:51:12,403 - INFO - Validated that VN ctest-vn-44750154 is not in any agent 2024-10-28 16:51:12,421 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44750154 info 2024-10-28 16:51:12,421 - INFO - Deleting VN ctest-vn-99417246 2024-10-28 16:51:12,535 - DEBUG - Response for deleting network () 2024-10-28 16:51:12,535 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699 2024-10-28 16:51:12,541 - DEBUG - Response Code: 404 2024-10-28 16:51:12,541 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-10-28 16:51:12,548 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546 2024-10-28 16:51:12,606 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09 2024-10-28 16:51:12,704 - INFO - Validated that VN ctest-vn-99417246 is not found in API Server 2024-10-28 16:51:12,718 - DEBUG - VN ctest-vn-99417246 is not present in Agent 10.0.0.12 2024-10-28 16:51:12,718 - INFO - Validated that VN ctest-vn-99417246 is not in any agent 2024-10-28 16:51:12,736 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99417246 info 2024-10-28 16:51:12,993 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 16:51:12,993 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-10-28 16:51:12,994 - INFO - -------------------------------------------------------------------------------- 2024-10-28 16:51:13,750 - INFO - Deleted project: ctest-TestBasicPolicy-84200235, ID : 9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09