2024-11-07 17:49:19,908 - INFO - Domain Default found not creating 2024-11-07 17:49:20,082 - INFO - Project ctest-TestBasicPolicy-62707628 not found, creating it 2024-11-07 17:49:20,581 - INFO - Created Project:ctest-TestBasicPolicy-62707628, ID : 05a11799-32c5-4881-a1ed-ef1344446586 2024-11-07 17:49:22,303 - INFO - ================================================================================ 2024-11-07 17:49:22,303 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 17:49:22,303 - 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-11-07 17:49:22,558 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.24': '0'}} with 2024-11-07 17:49:22,558 - INFO - Initial checks done. Running the testcase now 2024-11-07 17:49:22,558 - INFO - 2024-11-07 17:49:23,175 - DEBUG - Response for create_network : {'network': {'id': '7a6c50fa-4519-473d-a045-26a04e6c1e1f', 'name': 'ctest-vn-27281391', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-27281391'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 17:49:23,390 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcf94843-141e-4c9b-bdff-e1d000144bee', 'name': '', 'tenant_id': '05a1179932c54881a1edef1344446586', 'network_id': '7a6c50fa-4519-473d-a045-26a04e6c1e1f', 'ip_version': 4, 'cidr': '140.69.236.128/26', 'allocation_pools': [{'start': '140.69.236.130', 'end': '140.69.236.190'}], 'gateway_ip': '140.69.236.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.69.236.130', 'tags': [], 'project_id': '05a1179932c54881a1edef1344446586'}} 2024-11-07 17:49:23,411 - INFO - Created VN ctest-vn-27281391 2024-11-07 17:49:23,468 - DEBUG - VN ctest-vn-27281391 UUID is 7a6c50fa-4519-473d-a045-26a04e6c1e1f 2024-11-07 17:49:23,807 - DEBUG - Response for create_network : {'network': {'id': '9b4efa18-f891-4854-b68b-36c103d6c844', 'name': 'ctest-vn-52234458', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-52234458'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 17:49:24,044 - DEBUG - Response for create_subnet : {'subnet': {'id': '64fe1d1a-4c07-40b6-b09c-72b26adde37a', 'name': '', 'tenant_id': '05a1179932c54881a1edef1344446586', 'network_id': '9b4efa18-f891-4854-b68b-36c103d6c844', 'ip_version': 4, 'cidr': '98.22.226.128/26', 'allocation_pools': [{'start': '98.22.226.130', 'end': '98.22.226.190'}], 'gateway_ip': '98.22.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.22.226.130', 'tags': [], 'project_id': '05a1179932c54881a1edef1344446586'}} 2024-11-07 17:49:24,069 - INFO - Created VN ctest-vn-52234458 2024-11-07 17:49:24,128 - DEBUG - VN ctest-vn-52234458 UUID is 9b4efa18-f891-4854-b68b-36c103d6c844 2024-11-07 17:49:24,264 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391, 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-62707628:ctest-vn-52234458, 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-11-07 17:49:24,597 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a6c50fa-4519-473d-a045-26a04e6c1e1f', 'name': 'ctest-vn-27281391', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fcf94843-141e-4c9b-bdff-e1d000144bee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-27281391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739']], 'subnet_ipam': [{'subnet_cidr': '140.69.236.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 17:49:24,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b4efa18-f891-4854-b68b-36c103d6c844', 'name': 'ctest-vn-52234458', 'tenant_id': '05a1179932c54881a1edef1344446586', 'project_id': '05a1179932c54881a1edef1344446586', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64fe1d1a-4c07-40b6-b09c-72b26adde37a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-vn-52234458'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739']], 'subnet_ipam': [{'subnet_cidr': '98.22.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 17:49:25,004 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-11-07 17:49:25,368 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-11-07 17:49:25,408 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d 2024-11-07 17:49:25,425 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586 2024-11-07 17:49:25,510 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f 2024-11-07 17:49:25,528 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f 2024-11-07 17:49:25,544 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c 2024-11-07 17:49:25,556 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c 2024-11-07 17:49:25,566 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/5d776e32-40da-4bb4-86f3-9f40edea436c 2024-11-07 17:49:25,576 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 17:49:25,576 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f 2024-11-07 17:49:25,592 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c 2024-11-07 17:49:25,615 - INFO - Verified VN network id 8 for VN 7a6c50fa-4519-473d-a045-26a04e6c1e1f 2024-11-07 17:49:25,615 - INFO - Verifications in API Server for VN ctest-vn-27281391 passed 2024-11-07 17:49:25,615 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f 2024-11-07 17:49:25,632 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c 2024-11-07 17:49:25,641 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c 2024-11-07 17:49:25,651 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/5d776e32-40da-4bb4-86f3-9f40edea436c 2024-11-07 17:49:25,665 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62707628', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8821514805943289661', 'uuid-lslong': '11548679289413836319'}, 'enable': 'true', 'created': '2024-11-07T17:49:23', 'last-modified': '2024-11-07T17:49:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094975'} 2024-11-07 17:49:25,672 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 17:49:25,672 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27281391 passed 2024-11-07 17:49:25,672 - DEBUG - ====Verifying policy data for ctest-vn-27281391 in API_Server ====== 2024-11-07 17:49:25,673 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-11-07 17:49:25,680 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d 2024-11-07 17:49:25,695 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586 2024-11-07 17:49:25,776 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/7a6c50fa-4519-473d-a045-26a04e6c1e1f 2024-11-07 17:49:25,791 - DEBUG - ==>Verifying data for policy with id: 268ccd14-081e-4d1d-9c31-fc7b957be1ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739'] 2024-11-07 17:49:25,792 - INFO - VN ctest-vn-27281391 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 17:49:25,792 - DEBUG - Verifying the vn in opserver 2024-11-07 17:49:25,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391 virtual network link through opserver 10.0.0.49 2024-11-07 17:49:25,792 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2024-11-07 17:49:26,137 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2024-11-07 17:49:26,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391?flat'} 2024-11-07 17:49:26,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391 is found in opserver 2024-11-07 17:49:26,217 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 17:49:26,225 - DEBUG - VRF ids for VN ctest-vn-27281391: {} 2024-11-07 17:49:26,225 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-11-07 17:49:26,232 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d 2024-11-07 17:49:26,248 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586 2024-11-07 17:49:26,331 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844 2024-11-07 17:49:26,350 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844 2024-11-07 17:49:26,365 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208 2024-11-07 17:49:26,375 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208 2024-11-07 17:49:26,384 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/4f4eb52e-e987-437a-ad16-48ee2b7765d7 2024-11-07 17:49:26,394 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 17:49:26,394 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844 2024-11-07 17:49:26,414 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208 2024-11-07 17:49:26,440 - INFO - Verified VN network id 9 for VN 9b4efa18-f891-4854-b68b-36c103d6c844 2024-11-07 17:49:26,441 - INFO - Verifications in API Server for VN ctest-vn-52234458 passed 2024-11-07 17:49:26,441 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844 2024-11-07 17:49:26,460 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208 2024-11-07 17:49:26,473 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208 2024-11-07 17:49:26,483 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/4f4eb52e-e987-437a-ad16-48ee2b7765d7 2024-11-07 17:49:26,500 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62707628', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11191157109218691156', 'uuid-lslong': '13153667339286661188'}, 'enable': 'true', 'created': '2024-11-07T17:49:23', 'last-modified': '2024-11-07T17:49:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.672097'} 2024-11-07 17:49:26,507 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 17:49:26,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52234458 passed 2024-11-07 17:49:26,507 - DEBUG - ====Verifying policy data for ctest-vn-52234458 in API_Server ====== 2024-11-07 17:49:26,507 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-11-07 17:49:26,514 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d 2024-11-07 17:49:26,529 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586 2024-11-07 17:49:26,617 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9b4efa18-f891-4854-b68b-36c103d6c844 2024-11-07 17:49:26,633 - DEBUG - ==>Verifying data for policy with id: 268ccd14-081e-4d1d-9c31-fc7b957be1ce, fqn: ['default-domain', 'ctest-TestBasicPolicy-62707628', 'ctest-policy-allow-all-68922739'] 2024-11-07 17:49:26,633 - INFO - VN ctest-vn-52234458 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 17:49:26,634 - DEBUG - Verifying the vn in opserver 2024-11-07 17:49:26,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458 virtual network link through opserver 10.0.0.49 2024-11-07 17:49:26,634 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2024-11-07 17:49:26,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458?flat'} 2024-11-07 17:49:26,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-52234458 is found in opserver 2024-11-07 17:49:26,658 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 17:49:26,663 - DEBUG - VRF ids for VN ctest-vn-52234458: {} 2024-11-07 17:49:26,723 - DEBUG - Services list from nova: [, , ] 2024-11-07 17:49:27,883 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2221-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2221-1) 2024-11-07 17:49:29,341 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2221-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2221-1) 2024-11-07 17:49:29,341 - INFO - Waiting for VM ctest-TestBasicPolicy-62707628-98269835 to be up.. 2024-11-07 17:49:29,434 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 17:49:34,535 - DEBUG - VM is in ACTIVE state now 2024-11-07 17:49:34,535 - INFO - VM name : ctest-TestBasicPolicy-62707628-98269835 2024-11-07 17:49:34,626 - DEBUG - VM ctest-TestBasicPolicy-62707628-98269835 ID is 628d5e3e-9d7a-4fb4-b0d1-620f51fec8e7 2024-11-07 17:49:34,650 - DEBUG - VM ctest-TestBasicPolicy-62707628-98269835 launched on Node cn-jenkins-deploy-platform-ansible-os-2221-1 2024-11-07 17:49:34,740 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/628d5e3e-9d7a-4fb4-b0d1-620f51fec8e7 2024-11-07 17:49:34,754 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/d8ceefa0-95d9-42db-8d72-54b1daf8c69f 2024-11-07 17:49:38,030 - 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 1015ms') 2024-11-07 17:49:38,031 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62707628-98269835 failed! 2024-11-07 17:49:38,124 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62707628:ctest-vn-27281391 is 140.69.236.129 and allocation pool is NOT set 2024-11-07 17:49:40,183 - 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=5.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.47 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 = 3.473/4.637/5.802/1.164 ms') 2024-11-07 17:49:40,183 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62707628-98269835 passed 2024-11-07 17:49:40,348 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:40,348 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62707628-98269835, IP 140.69.236.131, Port 22 2024-11-07 17:49:40,403 - 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-11-07 17:49:40,495 - DEBUG - VM ctest-TestBasicPolicy-62707628-98269835 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-07 17:49:45,496 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:45,496 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62707628-98269835, IP 140.69.236.131, Port 22 2024-11-07 17:49:45,655 - DEBUG - VM ctest-TestBasicPolicy-62707628-98269835 is ready for SSH connections 2024-11-07 17:49:45,655 - INFO - Waiting for VM ctest-TestBasicPolicy-62707628-05106836 to be up.. 2024-11-07 17:49:45,750 - DEBUG - VM is in ACTIVE state now 2024-11-07 17:49:45,751 - INFO - VM name : ctest-TestBasicPolicy-62707628-05106836 2024-11-07 17:49:45,846 - DEBUG - VM ctest-TestBasicPolicy-62707628-05106836 ID is 3e47d88e-9d94-4e6c-8f17-804111c94037 2024-11-07 17:49:45,847 - DEBUG - VM ctest-TestBasicPolicy-62707628-05106836 launched on Node cn-jenkins-deploy-platform-ansible-os-2221-1 2024-11-07 17:49:45,944 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine/3e47d88e-9d94-4e6c-8f17-804111c94037 2024-11-07 17:49:45,957 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-machine-interface/74a67770-990e-44a0-8344-a03e1f3281c6 2024-11-07 17:49:47,211 - 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.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.386 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.386/1.911/3.436/1.525 ms') 2024-11-07 17:49:47,211 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62707628-05106836 passed 2024-11-07 17:49:47,372 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:47,372 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62707628-05106836, IP 98.22.226.131, Port 22 2024-11-07 17:49:47,527 - DEBUG - VM ctest-TestBasicPolicy-62707628-05106836 is ready for SSH connections 2024-11-07 17:49:47,527 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:47,527 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.22.226.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2024-11-07 17:49:47,527 - DEBUG - ping -s 56 -c 3 -W 1 98.22.226.131 2024-11-07 17:49:51,630 - DEBUG - PING 98.22.226.131 (98.22.226.131): 56 data bytes 64 bytes from 98.22.226.131: seq=0 ttl=63 time=7.350 ms 64 bytes from 98.22.226.131: seq=1 ttl=63 time=1.133 ms 64 bytes from 98.22.226.131: seq=2 ttl=63 time=0.909 ms --- 98.22.226.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.909/3.130/7.350 ms 2024-11-07 17:49:51,630 - INFO - Ping to IP 98.22.226.131 from VM ctest-TestBasicPolicy-62707628-98269835 passed 2024-11-07 17:49:51,831 - DEBUG - Policy Update Response {"network-policy": {"uuid": "268ccd14-081e-4d1d-9c31-fc7b957be1ce", "href": "http://10.0.0.49:8082/network-policy/268ccd14-081e-4d1d-9c31-fc7b957be1ce"}} 2024-11-07 17:49:51,832 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 17:49:51,832 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 98.22.226.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2024-11-07 17:49:51,832 - DEBUG - ping -s 56 -c 3 -W 1 98.22.226.131 2024-11-07 17:49:55,061 - DEBUG - PING 98.22.226.131 (98.22.226.131): 56 data bytes --- 98.22.226.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-07 17:49:55,061 - WARNING - Ping to IP 98.22.226.131 from VM ctest-TestBasicPolicy-62707628-98269835 failed 2024-11-07 17:49:55,061 - INFO - Deleting VM ctest-TestBasicPolicy-62707628-05106836 2024-11-07 17:49:55,133 - INFO - Deleting VM ctest-TestBasicPolicy-62707628-98269835 2024-11-07 17:49:55,644 - INFO - Deleted policy ctest-policy-allow-all-68922739 2024-11-07 17:49:55,645 - INFO - Deleting VN ctest-vn-52234458 2024-11-07 17:49:55,705 - DEBUG - VN 9b4efa18-f891-4854-b68b-36c103d6c844 still in use: Unable to complete operation on network 9b4efa18-f891-4854-b68b-36c103d6c844. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1f226147-d776-4948-b8a5-87e05eaa1a76'] 2024-11-07 17:49:55,705 - WARNING - Deleting VN ctest-vn-52234458 failed..Will retry 2024-11-07 17:49:57,971 - DEBUG - Response for deleting network () 2024-11-07 17:49:57,971 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4d2b721f-c21d-4f25-b6e9-6b103d896208 2024-11-07 17:49:57,977 - DEBUG - Response Code: 404 2024-11-07 17:49:57,977 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-11-07 17:49:57,984 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d 2024-11-07 17:49:58,044 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586 2024-11-07 17:49:58,141 - INFO - Validated that VN ctest-vn-52234458 is not found in API Server 2024-11-07 17:49:58,152 - DEBUG - VN ctest-vn-52234458 is not present in Agent 10.0.0.49 2024-11-07 17:49:58,152 - INFO - Validated that VN ctest-vn-52234458 is not in any agent 2024-11-07 17:49:58,171 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52234458 info 2024-11-07 17:49:58,171 - INFO - Deleting VN ctest-vn-27281391 2024-11-07 17:49:58,294 - DEBUG - Response for deleting network () 2024-11-07 17:49:58,294 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a040ace8-d74c-4bd8-8750-f0856b44562c 2024-11-07 17:49:58,301 - DEBUG - Response Code: 404 2024-11-07 17:49:58,301 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2024-11-07 17:49:58,309 - DEBUG - Requesting: http://10.0.0.49:8082/domain/cbe13165-93ea-42c1-b870-da201b25030d 2024-11-07 17:49:58,366 - DEBUG - Requesting: http://10.0.0.49:8082/project/05a11799-32c5-4881-a1ed-ef1344446586 2024-11-07 17:49:58,464 - INFO - Validated that VN ctest-vn-27281391 is not found in API Server 2024-11-07 17:49:58,478 - DEBUG - VN ctest-vn-27281391 is not present in Agent 10.0.0.49 2024-11-07 17:49:58,478 - INFO - Validated that VN ctest-vn-27281391 is not in any agent 2024-11-07 17:49:58,496 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27281391 info 2024-11-07 17:49:58,755 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 17:49:58,755 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-11-07 17:49:58,755 - INFO - -------------------------------------------------------------------------------- 2024-11-07 17:49:59,499 - INFO - Deleted project: ctest-TestBasicPolicy-62707628, ID : 05a11799-32c5-4881-a1ed-ef1344446586