2024-11-07 16:44:19,664 - INFO - Domain Default found not creating 2024-11-07 16:44:19,866 - INFO - Project ctest-TestBasicPolicy-53642712 not found, creating it 2024-11-07 16:44:20,348 - INFO - Created Project:ctest-TestBasicPolicy-53642712, ID : 0e889fcf-6b7f-45d5-ab30-f368d3521579 2024-11-07 16:44:21,940 - INFO - ================================================================================ 2024-11-07 16:44:21,940 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 16:44:21,941 - 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 16:44:22,199 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.7': '0'}} with 2024-11-07 16:44:22,199 - INFO - Initial checks done. Running the testcase now 2024-11-07 16:44:22,199 - INFO - 2024-11-07 16:44:22,828 - DEBUG - Response for create_network : {'network': {'id': 'e9109402-6fba-4d30-a63d-df8800fc1865', 'name': 'ctest-vn-55397086', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-55397086'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:44:23,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '55e56cf2-f7d9-42a8-8bd0-c6bf04a1adf8', 'name': '', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'network_id': 'e9109402-6fba-4d30-a63d-df8800fc1865', 'ip_version': 4, 'cidr': '187.154.80.0/26', 'allocation_pools': [{'start': '187.154.80.2', 'end': '187.154.80.62'}], 'gateway_ip': '187.154.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.154.80.2', 'tags': [], 'project_id': '0e889fcf6b7f45d5ab30f368d3521579'}} 2024-11-07 16:44:23,070 - INFO - Created VN ctest-vn-55397086 2024-11-07 16:44:23,129 - DEBUG - VN ctest-vn-55397086 UUID is e9109402-6fba-4d30-a63d-df8800fc1865 2024-11-07 16:44:23,442 - DEBUG - Response for create_network : {'network': {'id': '0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab', 'name': 'ctest-vn-09175299', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-09175299'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:44:23,661 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2a49af8-d622-4c05-84a2-a07d77b19229', 'name': '', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'network_id': '0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab', 'ip_version': 4, 'cidr': '211.218.166.192/26', 'allocation_pools': [{'start': '211.218.166.194', 'end': '211.218.166.254'}], 'gateway_ip': '211.218.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.218.166.194', 'tags': [], 'project_id': '0e889fcf6b7f45d5ab30f368d3521579'}} 2024-11-07 16:44:23,680 - INFO - Created VN ctest-vn-09175299 2024-11-07 16:44:23,737 - DEBUG - VN ctest-vn-09175299 UUID is 0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab 2024-11-07 16:44:23,858 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086, 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-53642712:ctest-vn-09175299, 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 16:44:24,179 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9109402-6fba-4d30-a63d-df8800fc1865', 'name': 'ctest-vn-55397086', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55e56cf2-f7d9-42a8-8bd0-c6bf04a1adf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-55397086'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046']], 'subnet_ipam': [{'subnet_cidr': '187.154.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:44:24,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab', 'name': 'ctest-vn-09175299', 'tenant_id': '0e889fcf6b7f45d5ab30f368d3521579', 'project_id': '0e889fcf6b7f45d5ab30f368d3521579', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2a49af8-d622-4c05-84a2-a07d77b19229'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-vn-09175299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046']], 'subnet_ipam': [{'subnet_cidr': '211.218.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:44:24,637 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-07 16:44:24,944 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-07 16:44:24,975 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c 2024-11-07 16:44:24,989 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579 2024-11-07 16:44:25,071 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865 2024-11-07 16:44:25,089 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865 2024-11-07 16:44:25,105 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a 2024-11-07 16:44:25,117 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a 2024-11-07 16:44:25,126 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ee914ab0-3472-4e1c-be88-f9b7e4ae85ac 2024-11-07 16:44:25,134 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 16:44:25,134 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865 2024-11-07 16:44:25,149 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a 2024-11-07 16:44:25,171 - INFO - Verified VN network id 8 for VN e9109402-6fba-4d30-a63d-df8800fc1865 2024-11-07 16:44:25,171 - INFO - Verifications in API Server for VN ctest-vn-55397086 passed 2024-11-07 16:44:25,171 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865 2024-11-07 16:44:25,185 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a 2024-11-07 16:44:25,194 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a 2024-11-07 16:44:25,204 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ee914ab0-3472-4e1c-be88-f9b7e4ae85ac 2024-11-07 16:44:25,217 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53642712', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16794085748649905456', 'uuid-lslong': '11978976359100455013'}, 'enable': 'true', 'created': '2024-11-07T16:44:22', 'last-modified': '2024-11-07T16:44:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061367'} 2024-11-07 16:44:25,225 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 16:44:25,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55397086 passed 2024-11-07 16:44:25,225 - DEBUG - ====Verifying policy data for ctest-vn-55397086 in API_Server ====== 2024-11-07 16:44:25,225 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-07 16:44:25,232 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c 2024-11-07 16:44:25,245 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579 2024-11-07 16:44:25,322 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9109402-6fba-4d30-a63d-df8800fc1865 2024-11-07 16:44:25,336 - DEBUG - ==>Verifying data for policy with id: 316227ad-eabb-4acc-911b-1579e2b519a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046'] 2024-11-07 16:44:25,336 - INFO - VN ctest-vn-55397086 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 16:44:25,336 - DEBUG - Verifying the vn in opserver 2024-11-07 16:44:25,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086 virtual network link through opserver 10.0.0.41 2024-11-07 16:44:25,336 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-07 16:44:25,638 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-07 16:44:25,707 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086?flat'} 2024-11-07 16:44:25,707 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086 is found in opserver 2024-11-07 16:44:25,719 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 16:44:25,726 - DEBUG - VRF ids for VN ctest-vn-55397086: {} 2024-11-07 16:44:25,726 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-07 16:44:25,733 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c 2024-11-07 16:44:25,747 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579 2024-11-07 16:44:25,834 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab 2024-11-07 16:44:25,850 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab 2024-11-07 16:44:25,864 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91 2024-11-07 16:44:25,873 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91 2024-11-07 16:44:25,881 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2bbfdb00-e615-440c-92ee-d4c7ea790d0f 2024-11-07 16:44:25,888 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 16:44:25,888 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab 2024-11-07 16:44:25,903 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91 2024-11-07 16:44:25,927 - INFO - Verified VN network id 9 for VN 0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab 2024-11-07 16:44:25,927 - INFO - Verifications in API Server for VN ctest-vn-09175299 passed 2024-11-07 16:44:25,927 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab 2024-11-07 16:44:25,942 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91 2024-11-07 16:44:25,951 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91 2024-11-07 16:44:25,961 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2bbfdb00-e615-440c-92ee-d4c7ea790d0f 2024-11-07 16:44:25,975 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53642712', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '533602386809932712', 'uuid-lslong': '11477455811276169387'}, 'enable': 'true', 'created': '2024-11-07T16:44:23', 'last-modified': '2024-11-07T16:44:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.573467'} 2024-11-07 16:44:25,981 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 16:44:25,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09175299 passed 2024-11-07 16:44:25,982 - DEBUG - ====Verifying policy data for ctest-vn-09175299 in API_Server ====== 2024-11-07 16:44:25,982 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-07 16:44:25,988 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c 2024-11-07 16:44:26,004 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579 2024-11-07 16:44:26,092 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab 2024-11-07 16:44:26,106 - DEBUG - ==>Verifying data for policy with id: 316227ad-eabb-4acc-911b-1579e2b519a7, fqn: ['default-domain', 'ctest-TestBasicPolicy-53642712', 'ctest-policy-allow-all-23658046'] 2024-11-07 16:44:26,107 - INFO - VN ctest-vn-09175299 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 16:44:26,107 - DEBUG - Verifying the vn in opserver 2024-11-07 16:44:26,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299 virtual network link through opserver 10.0.0.41 2024-11-07 16:44:26,107 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-07 16:44:26,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299?flat'} 2024-11-07 16:44:26,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-09175299 is found in opserver 2024-11-07 16:44:26,130 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 16:44:26,135 - DEBUG - VRF ids for VN ctest-vn-09175299: {} 2024-11-07 16:44:26,191 - DEBUG - Services list from nova: [, , ] 2024-11-07 16:44:27,365 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2219-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2219-1) 2024-11-07 16:44:28,659 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2219-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2219-1) 2024-11-07 16:44:28,659 - INFO - Waiting for VM ctest-TestBasicPolicy-53642712-65744755 to be up.. 2024-11-07 16:44:28,749 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 16:44:33,866 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:44:33,866 - INFO - VM name : ctest-TestBasicPolicy-53642712-65744755 2024-11-07 16:44:33,978 - DEBUG - VM ctest-TestBasicPolicy-53642712-65744755 ID is c41453d2-3023-4860-b4e4-453df33cb9cc 2024-11-07 16:44:34,000 - DEBUG - VM ctest-TestBasicPolicy-53642712-65744755 launched on Node cn-jenkins-deploy-platform-ansible-os-2219-1 2024-11-07 16:44:34,089 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/c41453d2-3023-4860-b4e4-453df33cb9cc 2024-11-07 16:44:34,100 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/1840b9ef-33fc-4d09-9e33-6d592871ead8 2024-11-07 16:44:37,375 - 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 1007ms') 2024-11-07 16:44:37,376 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53642712-65744755 failed! 2024-11-07 16:44:37,437 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-53642712:ctest-vn-55397086 is 187.154.80.1 and allocation pool is NOT set 2024-11-07 16:44:39,499 - 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=10.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.819 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.819/5.428/10.037/4.609 ms') 2024-11-07 16:44:39,499 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-53642712-65744755 passed 2024-11-07 16:44:39,654 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:44:39,654 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53642712-65744755, IP 187.154.80.3, Port 22 2024-11-07 16:44:39,812 - DEBUG - VM ctest-TestBasicPolicy-53642712-65744755 is ready for SSH connections 2024-11-07 16:44:39,812 - INFO - Waiting for VM ctest-TestBasicPolicy-53642712-52911263 to be up.. 2024-11-07 16:44:39,905 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:44:39,905 - INFO - VM name : ctest-TestBasicPolicy-53642712-52911263 2024-11-07 16:44:39,987 - DEBUG - VM ctest-TestBasicPolicy-53642712-52911263 ID is d3e87aa6-3f8d-4a94-b327-b885436f0210 2024-11-07 16:44:39,987 - DEBUG - VM ctest-TestBasicPolicy-53642712-52911263 launched on Node cn-jenkins-deploy-platform-ansible-os-2219-1 2024-11-07 16:44:40,072 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/d3e87aa6-3f8d-4a94-b327-b885436f0210 2024-11-07 16:44:40,083 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/0616beb4-2b5b-4efd-b486-7a3b6ee38790 2024-11-07 16:44:41,339 - 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=4.88 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.818 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.818/2.851/4.884/2.033 ms') 2024-11-07 16:44:41,339 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-53642712-52911263 passed 2024-11-07 16:44:41,501 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:44:41,501 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-53642712-52911263, IP 211.218.166.195, Port 22 2024-11-07 16:44:41,660 - DEBUG - VM ctest-TestBasicPolicy-53642712-52911263 is ready for SSH connections 2024-11-07 16:44:41,660 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:44:41,660 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.218.166.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-07 16:44:41,660 - DEBUG - ping -s 56 -c 3 -W 1 211.218.166.195 2024-11-07 16:44:45,655 - DEBUG - PING 211.218.166.195 (211.218.166.195): 56 data bytes 64 bytes from 211.218.166.195: seq=0 ttl=63 time=3.318 ms 64 bytes from 211.218.166.195: seq=1 ttl=63 time=1.251 ms 64 bytes from 211.218.166.195: seq=2 ttl=63 time=0.788 ms --- 211.218.166.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.788/1.785/3.318 ms 2024-11-07 16:44:45,655 - INFO - Ping to IP 211.218.166.195 from VM ctest-TestBasicPolicy-53642712-65744755 passed 2024-11-07 16:44:45,849 - DEBUG - Policy Update Response {"network-policy": {"uuid": "316227ad-eabb-4acc-911b-1579e2b519a7", "href": "http://10.0.0.41:8082/network-policy/316227ad-eabb-4acc-911b-1579e2b519a7"}} 2024-11-07 16:44:45,849 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:44:45,849 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.218.166.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-07 16:44:45,849 - DEBUG - ping -s 56 -c 3 -W 1 211.218.166.195 2024-11-07 16:44:49,074 - DEBUG - PING 211.218.166.195 (211.218.166.195): 56 data bytes 64 bytes from 211.218.166.195: seq=0 ttl=63 time=2.182 ms --- 211.218.166.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.182/2.182/2.182 ms 2024-11-07 16:44:49,075 - WARNING - Ping to IP 211.218.166.195 from VM ctest-TestBasicPolicy-53642712-65744755 failed 2024-11-07 16:44:49,075 - INFO - Deleting VM ctest-TestBasicPolicy-53642712-52911263 2024-11-07 16:44:49,148 - INFO - Deleting VM ctest-TestBasicPolicy-53642712-65744755 2024-11-07 16:44:49,555 - INFO - Deleted policy ctest-policy-allow-all-23658046 2024-11-07 16:44:49,555 - INFO - Deleting VN ctest-vn-09175299 2024-11-07 16:44:49,602 - DEBUG - VN 0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab still in use: Unable to complete operation on network 0767bc8b-2d1b-4ba8-9f48-1d400c5be0ab. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d56d2077-c2d2-44e0-a893-6f4bdc687974'] 2024-11-07 16:44:49,602 - WARNING - Deleting VN ctest-vn-09175299 failed..Will retry 2024-11-07 16:44:51,708 - DEBUG - Response for deleting network () 2024-11-07 16:44:51,709 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/05c4040b-e890-43ca-8715-67ba100a6c91 2024-11-07 16:44:51,717 - DEBUG - Response Code: 404 2024-11-07 16:44:51,717 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-07 16:44:51,723 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c 2024-11-07 16:44:51,780 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579 2024-11-07 16:44:51,861 - INFO - Validated that VN ctest-vn-09175299 is not found in API Server 2024-11-07 16:44:51,874 - DEBUG - VN ctest-vn-09175299 is not present in Agent 10.0.0.41 2024-11-07 16:44:51,874 - INFO - Validated that VN ctest-vn-09175299 is not in any agent 2024-11-07 16:44:51,893 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09175299 info 2024-11-07 16:44:51,893 - INFO - Deleting VN ctest-vn-55397086 2024-11-07 16:44:52,022 - DEBUG - Response for deleting network () 2024-11-07 16:44:52,023 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a59c2551-db3a-4890-a065-8f8c031a477a 2024-11-07 16:44:52,029 - DEBUG - Response Code: 404 2024-11-07 16:44:52,029 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-07 16:44:52,035 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9f604204-c300-4d6e-b554-66c8e83d6d0c 2024-11-07 16:44:52,091 - DEBUG - Requesting: http://10.0.0.41:8082/project/0e889fcf-6b7f-45d5-ab30-f368d3521579 2024-11-07 16:44:52,176 - INFO - Validated that VN ctest-vn-55397086 is not found in API Server 2024-11-07 16:44:52,189 - DEBUG - VN ctest-vn-55397086 is not present in Agent 10.0.0.41 2024-11-07 16:44:52,189 - INFO - Validated that VN ctest-vn-55397086 is not in any agent 2024-11-07 16:44:52,207 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55397086 info 2024-11-07 16:44:52,463 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 16:44:52,463 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-07 16:44:52,463 - INFO - -------------------------------------------------------------------------------- 2024-11-07 16:44:53,174 - INFO - Deleted project: ctest-TestBasicPolicy-53642712, ID : 0e889fcf-6b7f-45d5-ab30-f368d3521579