2024-11-10 20:53:43,454 - INFO - Domain Default found not creating 2024-11-10 20:53:43,640 - INFO - Project ctest-TestBasicPolicy-59196793 not found, creating it 2024-11-10 20:53:44,157 - INFO - Created Project:ctest-TestBasicPolicy-59196793, ID : 1ab397bf-84be-4de5-84fb-05b72d666d64 2024-11-10 20:53:45,783 - INFO - ================================================================================ 2024-11-10 20:53:45,783 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 20:53:45,783 - 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-10 20:53:46,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.21': '0'}} with 2024-11-10 20:53:46,047 - INFO - Initial checks done. Running the testcase now 2024-11-10 20:53:46,047 - INFO - 2024-11-10 20:53:46,738 - DEBUG - Response for create_network : {'network': {'id': '4c969ac6-5487-4594-979b-f317951a65f0', 'name': 'ctest-vn-65346687', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-65346687'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:53:46,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '58cf21c3-46f2-428f-8ee7-197dc625ffc1', 'name': '', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'network_id': '4c969ac6-5487-4594-979b-f317951a65f0', 'ip_version': 4, 'cidr': '162.227.0.128/26', 'allocation_pools': [{'start': '162.227.0.130', 'end': '162.227.0.190'}], 'gateway_ip': '162.227.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.227.0.130', 'tags': [], 'project_id': '1ab397bf84be4de584fb05b72d666d64'}} 2024-11-10 20:53:46,978 - INFO - Created VN ctest-vn-65346687 2024-11-10 20:53:47,037 - DEBUG - VN ctest-vn-65346687 UUID is 4c969ac6-5487-4594-979b-f317951a65f0 2024-11-10 20:53:47,389 - DEBUG - Response for create_network : {'network': {'id': 'e900ec90-801d-456f-b206-f7e9a764669e', 'name': 'ctest-vn-24349052', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-24349052'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:53:47,615 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d160ab8-ed68-4919-aaef-1f573138a416', 'name': '', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'network_id': 'e900ec90-801d-456f-b206-f7e9a764669e', 'ip_version': 4, 'cidr': '196.36.239.0/26', 'allocation_pools': [{'start': '196.36.239.2', 'end': '196.36.239.62'}], 'gateway_ip': '196.36.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.36.239.2', 'tags': [], 'project_id': '1ab397bf84be4de584fb05b72d666d64'}} 2024-11-10 20:53:47,638 - INFO - Created VN ctest-vn-24349052 2024-11-10 20:53:47,699 - DEBUG - VN ctest-vn-24349052 UUID is e900ec90-801d-456f-b206-f7e9a764669e 2024-11-10 20:53:47,841 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687, 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-59196793:ctest-vn-24349052, 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-10 20:53:48,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c969ac6-5487-4594-979b-f317951a65f0', 'name': 'ctest-vn-65346687', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58cf21c3-46f2-428f-8ee7-197dc625ffc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-65346687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714']], 'subnet_ipam': [{'subnet_cidr': '162.227.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:53:48,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e900ec90-801d-456f-b206-f7e9a764669e', 'name': 'ctest-vn-24349052', 'tenant_id': '1ab397bf84be4de584fb05b72d666d64', 'project_id': '1ab397bf84be4de584fb05b72d666d64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d160ab8-ed68-4919-aaef-1f573138a416'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-vn-24349052'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714']], 'subnet_ipam': [{'subnet_cidr': '196.36.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:53:48,699 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-10 20:53:49,020 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-10 20:53:49,073 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2 2024-11-10 20:53:49,092 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64 2024-11-10 20:53:49,190 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0 2024-11-10 20:53:49,209 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0 2024-11-10 20:53:49,225 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e 2024-11-10 20:53:49,237 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e 2024-11-10 20:53:49,253 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/9ad96fc9-eceb-41b2-a13f-9d580c6ecce4 2024-11-10 20:53:49,267 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 20:53:49,267 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0 2024-11-10 20:53:49,284 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e 2024-11-10 20:53:49,307 - INFO - Verified VN network id 7 for VN 4c969ac6-5487-4594-979b-f317951a65f0 2024-11-10 20:53:49,307 - INFO - Verifications in API Server for VN ctest-vn-65346687 passed 2024-11-10 20:53:49,308 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0 2024-11-10 20:53:49,325 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e 2024-11-10 20:53:49,335 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e 2024-11-10 20:53:49,345 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/9ad96fc9-eceb-41b2-a13f-9d580c6ecce4 2024-11-10 20:53:49,373 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59196793', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5518768570001474964', 'uuid-lslong': '10924592603728602608'}, 'enable': 'true', 'created': '2024-11-10T20:53:46', 'last-modified': '2024-11-10T20:53:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.176195'} 2024-11-10 20:53:49,380 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 20:53:49,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65346687 passed 2024-11-10 20:53:49,380 - DEBUG - ====Verifying policy data for ctest-vn-65346687 in API_Server ====== 2024-11-10 20:53:49,381 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-10 20:53:49,389 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2 2024-11-10 20:53:49,407 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64 2024-11-10 20:53:49,504 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4c969ac6-5487-4594-979b-f317951a65f0 2024-11-10 20:53:49,533 - DEBUG - ==>Verifying data for policy with id: 6bf902b1-7f11-4094-8790-b7392b55ab76, fqn: ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714'] 2024-11-10 20:53:49,533 - INFO - VN ctest-vn-65346687 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 20:53:49,534 - DEBUG - Verifying the vn in opserver 2024-11-10 20:53:49,534 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687 virtual network link through opserver 10.0.0.41 2024-11-10 20:53:49,534 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-10 20:53:49,837 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-10 20:53:49,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687?flat'} 2024-11-10 20:53:49,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687 is found in opserver 2024-11-10 20:53:49,936 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 20:53:49,943 - DEBUG - VRF ids for VN ctest-vn-65346687: {} 2024-11-10 20:53:49,943 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-10 20:53:49,952 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2 2024-11-10 20:53:49,969 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64 2024-11-10 20:53:50,073 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e 2024-11-10 20:53:50,097 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e 2024-11-10 20:53:50,113 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2 2024-11-10 20:53:50,124 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2 2024-11-10 20:53:50,134 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2db3a84f-f6b7-4f7c-8920-2f15af17b4ef 2024-11-10 20:53:50,150 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 20:53:50,150 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e 2024-11-10 20:53:50,175 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2 2024-11-10 20:53:50,215 - INFO - Verified VN network id 8 for VN e900ec90-801d-456f-b206-f7e9a764669e 2024-11-10 20:53:50,215 - INFO - Verifications in API Server for VN ctest-vn-24349052 passed 2024-11-10 20:53:50,215 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e 2024-11-10 20:53:50,236 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2 2024-11-10 20:53:50,246 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2 2024-11-10 20:53:50,256 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/2db3a84f-f6b7-4f7c-8920-2f15af17b4ef 2024-11-10 20:53:50,276 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59196793', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16789679516206056815', 'uuid-lslong': '12828213171519252126'}, 'enable': 'true', 'created': '2024-11-10T20:53:47', 'last-modified': '2024-11-10T20:53:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.827544'} 2024-11-10 20:53:50,285 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 20:53:50,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24349052 passed 2024-11-10 20:53:50,286 - DEBUG - ====Verifying policy data for ctest-vn-24349052 in API_Server ====== 2024-11-10 20:53:50,286 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-10 20:53:50,299 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2 2024-11-10 20:53:50,313 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64 2024-11-10 20:53:50,414 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e900ec90-801d-456f-b206-f7e9a764669e 2024-11-10 20:53:50,428 - DEBUG - ==>Verifying data for policy with id: 6bf902b1-7f11-4094-8790-b7392b55ab76, fqn: ['default-domain', 'ctest-TestBasicPolicy-59196793', 'ctest-policy-allow-all-02534714'] 2024-11-10 20:53:50,428 - INFO - VN ctest-vn-24349052 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 20:53:50,428 - DEBUG - Verifying the vn in opserver 2024-11-10 20:53:50,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052 virtual network link through opserver 10.0.0.41 2024-11-10 20:53:50,428 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-11-10 20:53:50,441 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052?flat'} 2024-11-10 20:53:50,441 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-24349052 is found in opserver 2024-11-10 20:53:50,454 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 20:53:50,460 - DEBUG - VRF ids for VN ctest-vn-24349052: {} 2024-11-10 20:53:50,531 - DEBUG - Services list from nova: [, , ] 2024-11-10 20:53:51,734 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2264-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2264-1) 2024-11-10 20:53:53,150 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2264-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2264-1) 2024-11-10 20:53:53,150 - INFO - Waiting for VM ctest-TestBasicPolicy-59196793-29468651 to be up.. 2024-11-10 20:53:53,258 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 20:53:58,365 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:53:58,365 - INFO - VM name : ctest-TestBasicPolicy-59196793-29468651 2024-11-10 20:53:58,481 - DEBUG - VM ctest-TestBasicPolicy-59196793-29468651 ID is cf2df3eb-335b-4042-941c-c6b788379604 2024-11-10 20:53:58,510 - DEBUG - VM ctest-TestBasicPolicy-59196793-29468651 launched on Node cn-jenkins-deploy-platform-ansible-os-2264-1 2024-11-10 20:53:58,628 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/cf2df3eb-335b-4042-941c-c6b788379604 2024-11-10 20:53:58,642 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/08287940-da68-43ec-a03a-3343d09a4262 2024-11-10 20:54:01,912 - 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 1003ms') 2024-11-10 20:54:01,912 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59196793-29468651 failed! 2024-11-10 20:54:01,980 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59196793:ctest-vn-65346687 is 162.227.0.129 and allocation pool is NOT set 2024-11-10 20:54:04,047 - 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=9.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.44 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.436/5.645/9.855/4.209 ms') 2024-11-10 20:54:04,047 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59196793-29468651 passed 2024-11-10 20:54:04,212 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:54:04,212 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59196793-29468651, IP 162.227.0.131, Port 22 2024-11-10 20:54:04,268 - 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-10 20:54:04,378 - DEBUG - VM ctest-TestBasicPolicy-59196793-29468651 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 20:54:09,379 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:54:09,379 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59196793-29468651, IP 162.227.0.131, Port 22 2024-11-10 20:54:09,535 - DEBUG - VM ctest-TestBasicPolicy-59196793-29468651 is ready for SSH connections 2024-11-10 20:54:09,535 - INFO - Waiting for VM ctest-TestBasicPolicy-59196793-83577966 to be up.. 2024-11-10 20:54:09,636 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:54:09,636 - INFO - VM name : ctest-TestBasicPolicy-59196793-83577966 2024-11-10 20:54:09,725 - DEBUG - VM ctest-TestBasicPolicy-59196793-83577966 ID is f4f96aca-0098-4a2d-9a37-904e96b4e527 2024-11-10 20:54:09,725 - DEBUG - VM ctest-TestBasicPolicy-59196793-83577966 launched on Node cn-jenkins-deploy-platform-ansible-os-2264-1 2024-11-10 20:54:09,818 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/f4f96aca-0098-4a2d-9a37-904e96b4e527 2024-11-10 20:54:09,830 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/d804179b-5a38-40df-8ea1-b82f15693159 2024-11-10 20:54:11,104 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.511 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.511/2.190/3.870/1.679 ms') 2024-11-10 20:54:11,104 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59196793-83577966 passed 2024-11-10 20:54:11,267 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:54:11,268 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59196793-83577966, IP 196.36.239.3, Port 22 2024-11-10 20:54:11,434 - DEBUG - VM ctest-TestBasicPolicy-59196793-83577966 is ready for SSH connections 2024-11-10 20:54:11,434 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:54:11,434 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.36.239.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-10 20:54:11,435 - DEBUG - ping -s 56 -c 3 -W 1 196.36.239.3 2024-11-10 20:54:15,510 - DEBUG - PING 196.36.239.3 (196.36.239.3): 56 data bytes 64 bytes from 196.36.239.3: seq=0 ttl=63 time=5.040 ms 64 bytes from 196.36.239.3: seq=1 ttl=63 time=1.487 ms 64 bytes from 196.36.239.3: seq=2 ttl=63 time=1.028 ms --- 196.36.239.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.028/2.518/5.040 ms 2024-11-10 20:54:15,510 - INFO - Ping to IP 196.36.239.3 from VM ctest-TestBasicPolicy-59196793-29468651 passed 2024-11-10 20:54:15,719 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6bf902b1-7f11-4094-8790-b7392b55ab76", "href": "http://10.0.0.41:8082/network-policy/6bf902b1-7f11-4094-8790-b7392b55ab76"}} 2024-11-10 20:54:15,719 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:54:15,719 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 196.36.239.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-11-10 20:54:15,720 - DEBUG - ping -s 56 -c 3 -W 1 196.36.239.3 2024-11-10 20:54:18,935 - DEBUG - PING 196.36.239.3 (196.36.239.3): 56 data bytes --- 196.36.239.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-10 20:54:18,935 - WARNING - Ping to IP 196.36.239.3 from VM ctest-TestBasicPolicy-59196793-29468651 failed 2024-11-10 20:54:18,935 - INFO - Deleting VM ctest-TestBasicPolicy-59196793-83577966 2024-11-10 20:54:19,016 - INFO - Deleting VM ctest-TestBasicPolicy-59196793-29468651 2024-11-10 20:54:19,515 - INFO - Deleted policy ctest-policy-allow-all-02534714 2024-11-10 20:54:19,515 - INFO - Deleting VN ctest-vn-24349052 2024-11-10 20:54:19,573 - DEBUG - VN e900ec90-801d-456f-b206-f7e9a764669e still in use: Unable to complete operation on network e900ec90-801d-456f-b206-f7e9a764669e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0788f52d-7aba-4aec-b805-fd91d0328f03'] 2024-11-10 20:54:19,573 - WARNING - Deleting VN ctest-vn-24349052 failed..Will retry 2024-11-10 20:54:21,725 - DEBUG - Response for deleting network () 2024-11-10 20:54:21,726 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/5d6aa1a5-31af-43ac-80e7-c44963b2c0b2 2024-11-10 20:54:21,738 - DEBUG - Response Code: 404 2024-11-10 20:54:21,738 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-10 20:54:21,747 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2 2024-11-10 20:54:21,768 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64 2024-11-10 20:54:21,857 - INFO - Validated that VN ctest-vn-24349052 is not found in API Server 2024-11-10 20:54:21,875 - DEBUG - VN ctest-vn-24349052 is not present in Agent 10.0.0.41 2024-11-10 20:54:21,876 - INFO - Validated that VN ctest-vn-24349052 is not in any agent 2024-11-10 20:54:21,903 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24349052 info 2024-11-10 20:54:21,903 - INFO - Deleting VN ctest-vn-65346687 2024-11-10 20:54:22,029 - DEBUG - Response for deleting network () 2024-11-10 20:54:22,029 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/51ff2f41-22ba-4a1b-8639-b2898fe5bb6e 2024-11-10 20:54:22,039 - DEBUG - Response Code: 404 2024-11-10 20:54:22,040 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-11-10 20:54:22,046 - DEBUG - Requesting: http://10.0.0.41:8082/domain/0bae431d-fc0a-46a2-b6e9-ac05f72c74c2 2024-11-10 20:54:22,101 - DEBUG - Requesting: http://10.0.0.41:8082/project/1ab397bf-84be-4de5-84fb-05b72d666d64 2024-11-10 20:54:22,189 - INFO - Validated that VN ctest-vn-65346687 is not found in API Server 2024-11-10 20:54:22,205 - DEBUG - VN ctest-vn-65346687 is not present in Agent 10.0.0.41 2024-11-10 20:54:22,205 - INFO - Validated that VN ctest-vn-65346687 is not in any agent 2024-11-10 20:54:22,221 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65346687 info 2024-11-10 20:54:22,485 - DEBUG - No XMPP flaps were noticed during the test
2024-11-10 20:54:22,485 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-11-10 20:54:22,486 - INFO - -------------------------------------------------------------------------------- 2024-11-10 20:54:23,240 - INFO - Deleted project: ctest-TestBasicPolicy-59196793, ID : 1ab397bf-84be-4de5-84fb-05b72d666d64