2024-09-13 14:39:19,984 - INFO - Domain Default found not creating 2024-09-13 14:39:20,184 - INFO - Project ctest-TestBasicPolicy-87828155 not found, creating it 2024-09-13 14:39:20,683 - INFO - Created Project:ctest-TestBasicPolicy-87828155, ID : d00f0cd4-cf1e-4785-81e0-9e19f903ef5d 2024-09-13 14:39:22,261 - INFO - ================================================================================ 2024-09-13 14:39:22,261 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-13 14:39:22,261 - 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-09-13 14:39:22,517 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with 2024-09-13 14:39:22,517 - INFO - Initial checks done. Running the testcase now 2024-09-13 14:39:22,517 - INFO - 2024-09-13 14:39:23,048 - DEBUG - Response for create_network : {'network': {'id': 'b4f99896-ccb3-43b9-88ca-db880d1b251a', 'name': 'ctest-vn-50877263', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-50877263'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:39:23,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '68ad94f1-8d9a-43dc-b000-4c1b7807bd0c', 'name': '', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'network_id': 'b4f99896-ccb3-43b9-88ca-db880d1b251a', 'ip_version': 4, 'cidr': '160.241.93.192/26', 'allocation_pools': [{'start': '160.241.93.194', 'end': '160.241.93.254'}], 'gateway_ip': '160.241.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.241.93.194', 'tags': [], 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d'}} 2024-09-13 14:39:23,270 - INFO - Created VN ctest-vn-50877263 2024-09-13 14:39:23,328 - DEBUG - VN ctest-vn-50877263 UUID is b4f99896-ccb3-43b9-88ca-db880d1b251a 2024-09-13 14:39:23,637 - DEBUG - Response for create_network : {'network': {'id': '1f842a6a-ef3e-40db-a549-2f7e56ae4b97', 'name': 'ctest-vn-22306988', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-22306988'], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:39:23,801 - DEBUG - Response for create_subnet : {'subnet': {'id': '6787b77f-920b-4f8b-9418-f11d440a9317', 'name': '', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'network_id': '1f842a6a-ef3e-40db-a549-2f7e56ae4b97', 'ip_version': 4, 'cidr': '82.234.145.192/26', 'allocation_pools': [{'start': '82.234.145.194', 'end': '82.234.145.254'}], 'gateway_ip': '82.234.145.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.234.145.194', 'tags': [], 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d'}} 2024-09-13 14:39:23,821 - INFO - Created VN ctest-vn-22306988 2024-09-13 14:39:23,879 - DEBUG - VN ctest-vn-22306988 UUID is 1f842a6a-ef3e-40db-a549-2f7e56ae4b97 2024-09-13 14:39:24,004 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263, 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-87828155:ctest-vn-22306988, 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-09-13 14:39:24,315 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4f99896-ccb3-43b9-88ca-db880d1b251a', 'name': 'ctest-vn-50877263', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68ad94f1-8d9a-43dc-b000-4c1b7807bd0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-50877263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630']], 'subnet_ipam': [{'subnet_cidr': '160.241.93.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:39:24,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f842a6a-ef3e-40db-a549-2f7e56ae4b97', 'name': 'ctest-vn-22306988', 'tenant_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'project_id': 'd00f0cd4cf1e478581e09e19f903ef5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6787b77f-920b-4f8b-9418-f11d440a9317'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-vn-22306988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630']], 'subnet_ipam': [{'subnet_cidr': '82.234.145.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-13 14:39:24,744 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 14:39:25,046 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 14:39:25,077 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca 2024-09-13 14:39:25,096 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d 2024-09-13 14:39:25,183 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a 2024-09-13 14:39:25,199 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a 2024-09-13 14:39:25,214 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f 2024-09-13 14:39:25,223 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f 2024-09-13 14:39:25,233 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a118cd7c-2632-4749-bab1-67be5ae8f264 2024-09-13 14:39:25,241 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 14:39:25,241 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a 2024-09-13 14:39:25,255 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f 2024-09-13 14:39:25,276 - INFO - Verified VN network id 7 for VN b4f99896-ccb3-43b9-88ca-db880d1b251a 2024-09-13 14:39:25,276 - INFO - Verifications in API Server for VN ctest-vn-50877263 passed 2024-09-13 14:39:25,276 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a 2024-09-13 14:39:25,293 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f 2024-09-13 14:39:25,302 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f 2024-09-13 14:39:25,310 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a118cd7c-2632-4749-bab1-67be5ae8f264 2024-09-13 14:39:25,325 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87828155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13040621969474798521', 'uuid-lslong': '9856932111835669786'}, 'enable': 'true', 'created': '2024-09-13T14:39:23', 'last-modified': '2024-09-13T14:39:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032811'} 2024-09-13 14:39:25,331 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-13 14:39:25,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50877263 passed 2024-09-13 14:39:25,332 - DEBUG - ====Verifying policy data for ctest-vn-50877263 in API_Server ====== 2024-09-13 14:39:25,332 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 14:39:25,338 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca 2024-09-13 14:39:25,352 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d 2024-09-13 14:39:25,437 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b4f99896-ccb3-43b9-88ca-db880d1b251a 2024-09-13 14:39:25,452 - DEBUG - ==>Verifying data for policy with id: 695b63d3-b6ad-4a3c-9d67-94b22718acb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630'] 2024-09-13 14:39:25,452 - INFO - VN ctest-vn-50877263 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 14:39:25,452 - DEBUG - Verifying the vn in opserver 2024-09-13 14:39:25,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263 virtual network link through opserver 10.0.0.40 2024-09-13 14:39:25,452 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-13 14:39:25,748 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-13 14:39:25,812 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263?flat'} 2024-09-13 14:39:25,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263 is found in opserver 2024-09-13 14:39:25,825 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 14:39:25,830 - DEBUG - VRF ids for VN ctest-vn-50877263: {} 2024-09-13 14:39:25,830 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 14:39:25,836 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca 2024-09-13 14:39:25,850 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d 2024-09-13 14:39:25,935 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97 2024-09-13 14:39:25,954 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97 2024-09-13 14:39:25,969 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13 2024-09-13 14:39:25,978 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13 2024-09-13 14:39:25,988 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/29d19b36-5383-4a16-a91c-4731688cbb26 2024-09-13 14:39:25,997 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 14:39:25,997 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97 2024-09-13 14:39:26,011 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13 2024-09-13 14:39:26,044 - INFO - Verified VN network id 8 for VN 1f842a6a-ef3e-40db-a549-2f7e56ae4b97 2024-09-13 14:39:26,045 - INFO - Verifications in API Server for VN ctest-vn-22306988 passed 2024-09-13 14:39:26,045 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97 2024-09-13 14:39:26,060 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13 2024-09-13 14:39:26,072 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13 2024-09-13 14:39:26,082 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/29d19b36-5383-4a16-a91c-4731688cbb26 2024-09-13 14:39:26,097 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87828155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2270986750870307035', 'uuid-lslong': '11910102909224635287'}, 'enable': 'true', 'created': '2024-09-13T14:39:23', 'last-modified': '2024-09-13T14:39:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.557825'} 2024-09-13 14:39:26,103 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-13 14:39:26,104 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22306988 passed 2024-09-13 14:39:26,104 - DEBUG - ====Verifying policy data for ctest-vn-22306988 in API_Server ====== 2024-09-13 14:39:26,104 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 14:39:26,110 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca 2024-09-13 14:39:26,124 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d 2024-09-13 14:39:26,211 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/1f842a6a-ef3e-40db-a549-2f7e56ae4b97 2024-09-13 14:39:26,226 - DEBUG - ==>Verifying data for policy with id: 695b63d3-b6ad-4a3c-9d67-94b22718acb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-87828155', 'ctest-policy-allow-all-11469630'] 2024-09-13 14:39:26,226 - INFO - VN ctest-vn-22306988 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-13 14:39:26,226 - DEBUG - Verifying the vn in opserver 2024-09-13 14:39:26,226 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988 virtual network link through opserver 10.0.0.40 2024-09-13 14:39:26,226 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-09-13 14:39:26,240 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988?flat'} 2024-09-13 14:39:26,240 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-22306988 is found in opserver 2024-09-13 14:39:26,251 - DEBUG - Do not have enough data to verify VN in agent 2024-09-13 14:39:26,257 - DEBUG - VRF ids for VN ctest-vn-22306988: {} 2024-09-13 14:39:26,316 - DEBUG - Services list from nova: [, , ] 2024-09-13 14:39:27,358 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1922-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1922-1) 2024-09-13 14:39:28,709 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1922-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1922-1) 2024-09-13 14:39:28,709 - INFO - Waiting for VM ctest-TestBasicPolicy-87828155-83300903 to be up.. 2024-09-13 14:39:28,800 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-13 14:39:33,972 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:39:33,972 - INFO - VM name : ctest-TestBasicPolicy-87828155-83300903 2024-09-13 14:39:34,076 - DEBUG - VM ctest-TestBasicPolicy-87828155-83300903 ID is 2abe3ffb-1484-42cc-8a0b-b4dc6fa93b66 2024-09-13 14:39:34,100 - DEBUG - VM ctest-TestBasicPolicy-87828155-83300903 launched on Node cn-jenkins-deploy-platform-ansible-os-1922-1 2024-09-13 14:39:34,182 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/2abe3ffb-1484-42cc-8a0b-b4dc6fa93b66 2024-09-13 14:39:34,197 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/c6d5dd0a-8b80-42a7-9021-769da9be15c9 2024-09-13 14:39:37,454 - 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-09-13 14:39:37,454 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87828155-83300903 failed! 2024-09-13 14:39:37,512 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87828155:ctest-vn-50877263 is 160.241.93.193 and allocation pool is NOT set 2024-09-13 14:39:39,569 - 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.10 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.09 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.093/4.594/8.095/3.501 ms') 2024-09-13 14:39:39,569 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87828155-83300903 passed 2024-09-13 14:39:39,723 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:39:39,724 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87828155-83300903, IP 160.241.93.195, Port 22 2024-09-13 14:39:39,779 - 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-09-13 14:39:39,856 - DEBUG - VM ctest-TestBasicPolicy-87828155-83300903 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-13 14:39:44,856 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:39:44,856 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87828155-83300903, IP 160.241.93.195, Port 22 2024-09-13 14:39:45,011 - DEBUG - VM ctest-TestBasicPolicy-87828155-83300903 is ready for SSH connections 2024-09-13 14:39:45,012 - INFO - Waiting for VM ctest-TestBasicPolicy-87828155-27689512 to be up.. 2024-09-13 14:39:45,093 - DEBUG - VM is in ACTIVE state now 2024-09-13 14:39:45,093 - INFO - VM name : ctest-TestBasicPolicy-87828155-27689512 2024-09-13 14:39:45,170 - DEBUG - VM ctest-TestBasicPolicy-87828155-27689512 ID is 4eeedcca-135a-4b14-b25f-5777bd0a4159 2024-09-13 14:39:45,170 - DEBUG - VM ctest-TestBasicPolicy-87828155-27689512 launched on Node cn-jenkins-deploy-platform-ansible-os-1922-1 2024-09-13 14:39:45,250 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/4eeedcca-135a-4b14-b25f-5777bd0a4159 2024-09-13 14:39:45,260 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/ec4b4353-95e7-4f1e-930b-68a4cbbc3393 2024-09-13 14:39:46,506 - 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.07 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.427 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.427/2.246/4.066/1.819 ms') 2024-09-13 14:39:46,507 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87828155-27689512 passed 2024-09-13 14:39:46,672 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:39:46,672 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87828155-27689512, IP 82.234.145.195, Port 22 2024-09-13 14:39:46,827 - DEBUG - VM ctest-TestBasicPolicy-87828155-27689512 is ready for SSH connections 2024-09-13 14:39:46,827 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:39:46,827 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 82.234.145.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-13 14:39:46,828 - DEBUG - ping -s 56 -c 3 -W 1 82.234.145.195 2024-09-13 14:39:50,791 - DEBUG - PING 82.234.145.195 (82.234.145.195): 56 data bytes 64 bytes from 82.234.145.195: seq=0 ttl=63 time=3.382 ms 64 bytes from 82.234.145.195: seq=1 ttl=63 time=0.938 ms 64 bytes from 82.234.145.195: seq=2 ttl=63 time=0.755 ms --- 82.234.145.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.755/1.691/3.382 ms 2024-09-13 14:39:50,791 - INFO - Ping to IP 82.234.145.195 from VM ctest-TestBasicPolicy-87828155-83300903 passed 2024-09-13 14:39:50,983 - DEBUG - Policy Update Response {"network-policy": {"uuid": "695b63d3-b6ad-4a3c-9d67-94b22718acb6", "href": "http://10.0.0.40:8082/network-policy/695b63d3-b6ad-4a3c-9d67-94b22718acb6"}} 2024-09-13 14:39:50,983 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-13 14:39:50,984 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 82.234.145.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-09-13 14:39:50,984 - DEBUG - ping -s 56 -c 3 -W 1 82.234.145.195 2024-09-13 14:39:54,189 - DEBUG - PING 82.234.145.195 (82.234.145.195): 56 data bytes --- 82.234.145.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-13 14:39:54,189 - WARNING - Ping to IP 82.234.145.195 from VM ctest-TestBasicPolicy-87828155-83300903 failed 2024-09-13 14:39:54,189 - INFO - Deleting VM ctest-TestBasicPolicy-87828155-27689512 2024-09-13 14:39:54,256 - INFO - Deleting VM ctest-TestBasicPolicy-87828155-83300903 2024-09-13 14:39:54,713 - INFO - Deleted policy ctest-policy-allow-all-11469630 2024-09-13 14:39:54,714 - INFO - Deleting VN ctest-vn-22306988 2024-09-13 14:39:54,753 - DEBUG - VN 1f842a6a-ef3e-40db-a549-2f7e56ae4b97 still in use: Unable to complete operation on network 1f842a6a-ef3e-40db-a549-2f7e56ae4b97. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-40914cf0-a7aa-44cd-93f3-56425f0733ba'] 2024-09-13 14:39:54,753 - WARNING - Deleting VN ctest-vn-22306988 failed..Will retry 2024-09-13 14:39:57,380 - DEBUG - Response for deleting network () 2024-09-13 14:39:57,380 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/b8e03d55-a42f-49c5-a0c4-90316db6be13 2024-09-13 14:39:57,391 - DEBUG - Response Code: 404 2024-09-13 14:39:57,391 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 14:39:57,398 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca 2024-09-13 14:39:57,455 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d 2024-09-13 14:39:57,530 - INFO - Validated that VN ctest-vn-22306988 is not found in API Server 2024-09-13 14:39:57,541 - DEBUG - VN ctest-vn-22306988 is not present in Agent 10.0.0.40 2024-09-13 14:39:57,541 - INFO - Validated that VN ctest-vn-22306988 is not in any agent 2024-09-13 14:39:57,556 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22306988 info 2024-09-13 14:39:57,556 - INFO - Deleting VN ctest-vn-50877263 2024-09-13 14:39:57,661 - DEBUG - Response for deleting network () 2024-09-13 14:39:57,662 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/958c7055-0aa6-489c-aaf2-f7160fb2d57f 2024-09-13 14:39:57,668 - DEBUG - Response Code: 404 2024-09-13 14:39:57,669 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-09-13 14:39:57,679 - DEBUG - Requesting: http://10.0.0.40:8082/domain/e5415a58-450f-4ae4-884f-8105c76ec5ca 2024-09-13 14:39:57,738 - DEBUG - Requesting: http://10.0.0.40:8082/project/d00f0cd4-cf1e-4785-81e0-9e19f903ef5d 2024-09-13 14:39:57,819 - INFO - Validated that VN ctest-vn-50877263 is not found in API Server 2024-09-13 14:39:57,832 - DEBUG - VN ctest-vn-50877263 is not present in Agent 10.0.0.40 2024-09-13 14:39:57,832 - INFO - Validated that VN ctest-vn-50877263 is not in any agent 2024-09-13 14:39:57,849 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50877263 info 2024-09-13 14:39:58,105 - DEBUG - No XMPP flaps were noticed during the test
2024-09-13 14:39:58,105 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-09-13 14:39:58,105 - INFO - -------------------------------------------------------------------------------- 2024-09-13 14:39:58,818 - INFO - Deleted project: ctest-TestBasicPolicy-87828155, ID : d00f0cd4-cf1e-4785-81e0-9e19f903ef5d