2024-10-24 13:09:39,606 - INFO - Domain Default found not creating 2024-10-24 13:09:39,800 - INFO - Project ctest-TestBasicPolicy-79872699 not found, creating it 2024-10-24 13:09:40,362 - INFO - Created Project:ctest-TestBasicPolicy-79872699, ID : 055ff018-ba21-4f6c-ad72-bb25fe8f7916 2024-10-24 13:09:42,192 - INFO - ================================================================================ 2024-10-24 13:09:42,192 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-24 13:09:42,192 - 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-24 13:09:42,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.19': '0'}} with 2024-10-24 13:09:42,462 - INFO - Initial checks done. Running the testcase now 2024-10-24 13:09:42,462 - INFO - 2024-10-24 13:09:43,121 - DEBUG - Response for create_network : {'network': {'id': '891745b6-0532-434d-9dd3-dbdfd65531a0', 'name': 'ctest-vn-60410080', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-60410080'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 13:09:43,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d121856-bb67-4dae-a108-0710250f76d0', 'name': '', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'network_id': '891745b6-0532-434d-9dd3-dbdfd65531a0', 'ip_version': 4, 'cidr': '208.6.183.64/26', 'allocation_pools': [{'start': '208.6.183.66', 'end': '208.6.183.126'}], 'gateway_ip': '208.6.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.6.183.66', 'tags': [], 'project_id': '055ff018ba214f6cad72bb25fe8f7916'}} 2024-10-24 13:09:43,384 - INFO - Created VN ctest-vn-60410080 2024-10-24 13:09:43,443 - DEBUG - VN ctest-vn-60410080 UUID is 891745b6-0532-434d-9dd3-dbdfd65531a0 2024-10-24 13:09:43,827 - DEBUG - Response for create_network : {'network': {'id': '14a87fbf-effb-44e5-9f0f-83985c399ca9', 'name': 'ctest-vn-46859160', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-46859160'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 13:09:44,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a1921e8-eec7-4694-9185-9ba5508a125a', 'name': '', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'network_id': '14a87fbf-effb-44e5-9f0f-83985c399ca9', 'ip_version': 4, 'cidr': '48.64.82.0/26', 'allocation_pools': [{'start': '48.64.82.2', 'end': '48.64.82.62'}], 'gateway_ip': '48.64.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.64.82.2', 'tags': [], 'project_id': '055ff018ba214f6cad72bb25fe8f7916'}} 2024-10-24 13:09:44,097 - INFO - Created VN ctest-vn-46859160 2024-10-24 13:09:44,159 - DEBUG - VN ctest-vn-46859160 UUID is 14a87fbf-effb-44e5-9f0f-83985c399ca9 2024-10-24 13:09:44,298 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080, 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-79872699:ctest-vn-46859160, 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-24 13:09:44,642 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '891745b6-0532-434d-9dd3-dbdfd65531a0', 'name': 'ctest-vn-60410080', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d121856-bb67-4dae-a108-0710250f76d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-60410080'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623']], 'subnet_ipam': [{'subnet_cidr': '208.6.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 13:09:44,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14a87fbf-effb-44e5-9f0f-83985c399ca9', 'name': 'ctest-vn-46859160', 'tenant_id': '055ff018ba214f6cad72bb25fe8f7916', 'project_id': '055ff018ba214f6cad72bb25fe8f7916', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a1921e8-eec7-4694-9185-9ba5508a125a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-vn-46859160'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623']], 'subnet_ipam': [{'subnet_cidr': '48.64.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 13:09:45,115 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 13:09:45,461 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 13:09:45,498 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1 2024-10-24 13:09:45,517 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916 2024-10-24 13:09:45,604 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0 2024-10-24 13:09:45,624 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0 2024-10-24 13:09:45,643 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e 2024-10-24 13:09:45,655 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e 2024-10-24 13:09:45,665 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5dc5899c-c29e-4016-b508-2c6d003bb2b1 2024-10-24 13:09:45,675 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 13:09:45,675 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0 2024-10-24 13:09:45,693 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e 2024-10-24 13:09:45,718 - INFO - Verified VN network id 8 for VN 891745b6-0532-434d-9dd3-dbdfd65531a0 2024-10-24 13:09:45,718 - INFO - Verifications in API Server for VN ctest-vn-60410080 passed 2024-10-24 13:09:45,719 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0 2024-10-24 13:09:45,736 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e 2024-10-24 13:09:45,748 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e 2024-10-24 13:09:45,764 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5dc5899c-c29e-4016-b508-2c6d003bb2b1 2024-10-24 13:09:45,782 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79872699', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9878440955734016845', 'uuid-lslong': '11372675238460731808'}, 'enable': 'true', 'created': '2024-10-24T13:09:43', 'last-modified': '2024-10-24T13:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.174985'} 2024-10-24 13:09:45,790 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 13:09:45,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60410080 passed 2024-10-24 13:09:45,791 - DEBUG - ====Verifying policy data for ctest-vn-60410080 in API_Server ====== 2024-10-24 13:09:45,791 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 13:09:45,798 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1 2024-10-24 13:09:45,815 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916 2024-10-24 13:09:45,907 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/891745b6-0532-434d-9dd3-dbdfd65531a0 2024-10-24 13:09:45,924 - DEBUG - ==>Verifying data for policy with id: 163071ce-03b3-4d84-8b9b-f643a27b2567, fqn: ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623'] 2024-10-24 13:09:45,924 - INFO - VN ctest-vn-60410080 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 13:09:45,924 - DEBUG - Verifying the vn in opserver 2024-10-24 13:09:45,924 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080 virtual network link through opserver 10.0.0.27 2024-10-24 13:09:45,924 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-24 13:09:46,265 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-24 13:09:46,340 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080?flat'} 2024-10-24 13:09:46,340 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080 is found in opserver 2024-10-24 13:09:46,355 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 13:09:46,361 - DEBUG - VRF ids for VN ctest-vn-60410080: {} 2024-10-24 13:09:46,361 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 13:09:46,369 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1 2024-10-24 13:09:46,385 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916 2024-10-24 13:09:46,476 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9 2024-10-24 13:09:46,496 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9 2024-10-24 13:09:46,512 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8 2024-10-24 13:09:46,522 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8 2024-10-24 13:09:46,532 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6d0872f9-9b93-4090-98ba-5d309451f7e6 2024-10-24 13:09:46,541 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 13:09:46,541 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9 2024-10-24 13:09:46,557 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8 2024-10-24 13:09:46,580 - INFO - Verified VN network id 9 for VN 14a87fbf-effb-44e5-9f0f-83985c399ca9 2024-10-24 13:09:46,581 - INFO - Verifications in API Server for VN ctest-vn-46859160 passed 2024-10-24 13:09:46,581 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9 2024-10-24 13:09:46,599 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8 2024-10-24 13:09:46,610 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8 2024-10-24 13:09:46,620 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/6d0872f9-9b93-4090-98ba-5d309451f7e6 2024-10-24 13:09:46,637 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79872699', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1488580139187651813', 'uuid-lslong': '11461524267086748841'}, 'enable': 'true', 'created': '2024-10-24T13:09:43', 'last-modified': '2024-10-24T13:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.742260'} 2024-10-24 13:09:46,644 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 13:09:46,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46859160 passed 2024-10-24 13:09:46,644 - DEBUG - ====Verifying policy data for ctest-vn-46859160 in API_Server ====== 2024-10-24 13:09:46,644 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 13:09:46,651 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1 2024-10-24 13:09:46,667 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916 2024-10-24 13:09:46,753 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/14a87fbf-effb-44e5-9f0f-83985c399ca9 2024-10-24 13:09:46,769 - DEBUG - ==>Verifying data for policy with id: 163071ce-03b3-4d84-8b9b-f643a27b2567, fqn: ['default-domain', 'ctest-TestBasicPolicy-79872699', 'ctest-policy-allow-all-57349623'] 2024-10-24 13:09:46,769 - INFO - VN ctest-vn-46859160 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 13:09:46,770 - DEBUG - Verifying the vn in opserver 2024-10-24 13:09:46,770 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160 virtual network link through opserver 10.0.0.27 2024-10-24 13:09:46,770 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-24 13:09:46,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160?flat'} 2024-10-24 13:09:46,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-46859160 is found in opserver 2024-10-24 13:09:46,796 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 13:09:46,802 - DEBUG - VRF ids for VN ctest-vn-46859160: {} 2024-10-24 13:09:46,871 - DEBUG - Services list from nova: [, , ] 2024-10-24 13:09:48,065 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2140-1) 2024-10-24 13:09:49,528 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2140-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2140-1) 2024-10-24 13:09:49,528 - INFO - Waiting for VM ctest-TestBasicPolicy-79872699-47144338 to be up.. 2024-10-24 13:09:49,633 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 13:09:54,730 - DEBUG - VM is in ACTIVE state now 2024-10-24 13:09:54,730 - INFO - VM name : ctest-TestBasicPolicy-79872699-47144338 2024-10-24 13:09:54,845 - DEBUG - VM ctest-TestBasicPolicy-79872699-47144338 ID is 92362f08-0bd8-4346-ad2b-dc1b30b810a0 2024-10-24 13:09:54,872 - DEBUG - VM ctest-TestBasicPolicy-79872699-47144338 launched on Node cn-jenkins-deploy-platform-ansible-os-2140-1 2024-10-24 13:09:54,978 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/92362f08-0bd8-4346-ad2b-dc1b30b810a0 2024-10-24 13:09:54,991 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/da040d3f-7784-46ca-9815-242c17f60830 2024-10-24 13:09:58,284 - 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 1024ms') 2024-10-24 13:09:58,284 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79872699-47144338 failed! 2024-10-24 13:09:58,347 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79872699:ctest-vn-60410080 is 208.6.183.65 and allocation pool is NOT set 2024-10-24 13:10:00,410 - 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.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.495 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.495/4.436/8.378/3.941 ms') 2024-10-24 13:10:00,410 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79872699-47144338 passed 2024-10-24 13:10:00,591 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:10:00,592 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79872699-47144338, IP 208.6.183.67, Port 22 2024-10-24 13:10:00,657 - 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-24 13:10:00,773 - DEBUG - VM ctest-TestBasicPolicy-79872699-47144338 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-24 13:10:05,774 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:10:05,775 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79872699-47144338, IP 208.6.183.67, Port 22 2024-10-24 13:10:05,931 - DEBUG - VM ctest-TestBasicPolicy-79872699-47144338 is ready for SSH connections 2024-10-24 13:10:05,931 - INFO - Waiting for VM ctest-TestBasicPolicy-79872699-38429695 to be up.. 2024-10-24 13:10:06,028 - DEBUG - VM is in ACTIVE state now 2024-10-24 13:10:06,028 - INFO - VM name : ctest-TestBasicPolicy-79872699-38429695 2024-10-24 13:10:06,131 - DEBUG - VM ctest-TestBasicPolicy-79872699-38429695 ID is a9e3c33f-5d72-48cf-9a9b-8e30653b871c 2024-10-24 13:10:06,131 - DEBUG - VM ctest-TestBasicPolicy-79872699-38429695 launched on Node cn-jenkins-deploy-platform-ansible-os-2140-1 2024-10-24 13:10:06,223 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a9e3c33f-5d72-48cf-9a9b-8e30653b871c 2024-10-24 13:10:06,236 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/ee2044e9-8b99-4be2-90c8-8eecc41d502e 2024-10-24 13:10:07,502 - 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.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.529 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.529/2.150/3.771/1.621 ms') 2024-10-24 13:10:07,503 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-79872699-38429695 passed 2024-10-24 13:10:07,663 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:10:07,664 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79872699-38429695, IP 48.64.82.3, Port 22 2024-10-24 13:10:07,819 - DEBUG - VM ctest-TestBasicPolicy-79872699-38429695 is ready for SSH connections 2024-10-24 13:10:07,820 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:10:07,820 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.64.82.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 13:10:07,820 - DEBUG - ping -s 56 -c 3 -W 1 48.64.82.3 2024-10-24 13:10:11,933 - DEBUG - PING 48.64.82.3 (48.64.82.3): 56 data bytes 64 bytes from 48.64.82.3: seq=0 ttl=63 time=4.522 ms 64 bytes from 48.64.82.3: seq=1 ttl=63 time=0.906 ms 64 bytes from 48.64.82.3: seq=2 ttl=63 time=0.975 ms --- 48.64.82.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.906/2.134/4.522 ms 2024-10-24 13:10:11,934 - INFO - Ping to IP 48.64.82.3 from VM ctest-TestBasicPolicy-79872699-47144338 passed 2024-10-24 13:10:12,151 - DEBUG - Policy Update Response {"network-policy": {"uuid": "163071ce-03b3-4d84-8b9b-f643a27b2567", "href": "http://10.0.0.27:8082/network-policy/163071ce-03b3-4d84-8b9b-f643a27b2567"}} 2024-10-24 13:10:12,151 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 13:10:12,152 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 48.64.82.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-24 13:10:12,152 - DEBUG - ping -s 56 -c 3 -W 1 48.64.82.3 2024-10-24 13:10:15,386 - DEBUG - PING 48.64.82.3 (48.64.82.3): 56 data bytes --- 48.64.82.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-24 13:10:15,386 - WARNING - Ping to IP 48.64.82.3 from VM ctest-TestBasicPolicy-79872699-47144338 failed 2024-10-24 13:10:15,386 - INFO - Deleting VM ctest-TestBasicPolicy-79872699-38429695 2024-10-24 13:10:15,468 - INFO - Deleting VM ctest-TestBasicPolicy-79872699-47144338 2024-10-24 13:10:16,086 - INFO - Deleted policy ctest-policy-allow-all-57349623 2024-10-24 13:10:16,086 - INFO - Deleting VN ctest-vn-46859160 2024-10-24 13:10:16,156 - DEBUG - VN 14a87fbf-effb-44e5-9f0f-83985c399ca9 still in use: Unable to complete operation on network 14a87fbf-effb-44e5-9f0f-83985c399ca9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-77b0aaa1-9088-413e-9bf1-31efbd3a762c'] 2024-10-24 13:10:16,156 - WARNING - Deleting VN ctest-vn-46859160 failed..Will retry 2024-10-24 13:10:18,306 - DEBUG - Response for deleting network () 2024-10-24 13:10:18,306 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/9e4169cf-d980-40d9-bcd0-0fd0481d7ab8 2024-10-24 13:10:18,314 - DEBUG - Response Code: 404 2024-10-24 13:10:18,314 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 13:10:18,321 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1 2024-10-24 13:10:18,383 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916 2024-10-24 13:10:18,480 - INFO - Validated that VN ctest-vn-46859160 is not found in API Server 2024-10-24 13:10:18,497 - DEBUG - VN ctest-vn-46859160 is not present in Agent 10.0.0.27 2024-10-24 13:10:18,497 - INFO - Validated that VN ctest-vn-46859160 is not in any agent 2024-10-24 13:10:18,521 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46859160 info 2024-10-24 13:10:18,522 - INFO - Deleting VN ctest-vn-60410080 2024-10-24 13:10:18,664 - DEBUG - Response for deleting network () 2024-10-24 13:10:18,664 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a7a417c1-55aa-4e18-918a-450603694a2e 2024-10-24 13:10:18,673 - DEBUG - Response Code: 404 2024-10-24 13:10:18,674 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-24 13:10:18,682 - DEBUG - Requesting: http://10.0.0.27:8082/domain/de0e5252-d9ce-43f6-8ba3-2b830ec0b6f1 2024-10-24 13:10:18,743 - DEBUG - Requesting: http://10.0.0.27:8082/project/055ff018-ba21-4f6c-ad72-bb25fe8f7916 2024-10-24 13:10:18,842 - INFO - Validated that VN ctest-vn-60410080 is not found in API Server 2024-10-24 13:10:18,855 - DEBUG - VN ctest-vn-60410080 is not present in Agent 10.0.0.27 2024-10-24 13:10:18,855 - INFO - Validated that VN ctest-vn-60410080 is not in any agent 2024-10-24 13:10:18,875 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60410080 info 2024-10-24 13:10:19,131 - DEBUG - No XMPP flaps were noticed during the test
2024-10-24 13:10:19,131 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-10-24 13:10:19,131 - INFO - -------------------------------------------------------------------------------- 2024-10-24 13:10:19,944 - INFO - Deleted project: ctest-TestBasicPolicy-79872699, ID : 055ff018-ba21-4f6c-ad72-bb25fe8f7916