2024-10-29 11:59:39,883 - INFO - Domain Default found not creating 2024-10-29 11:59:40,089 - INFO - Project ctest-TestBasicPolicy-08346735 not found, creating it 2024-10-29 11:59:40,637 - INFO - Created Project:ctest-TestBasicPolicy-08346735, ID : 0dc19e6c-7bac-422a-adcc-96347f192ee8 2024-10-29 11:59:42,791 - INFO - ================================================================================ 2024-10-29 11:59:42,791 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-29 11:59:42,791 - 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-29 11:59:43,066 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with 2024-10-29 11:59:43,066 - INFO - Initial checks done. Running the testcase now 2024-10-29 11:59:43,066 - INFO - 2024-10-29 11:59:43,852 - DEBUG - Response for create_network : {'network': {'id': 'ae651a10-e4ff-4c70-9fe2-923b47d89197', 'name': 'ctest-vn-49106209', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-49106209'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:59:44,056 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5f68808-7f74-4ab4-b9a3-20b9906a4759', 'name': '', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'network_id': 'ae651a10-e4ff-4c70-9fe2-923b47d89197', 'ip_version': 4, 'cidr': '112.209.181.192/26', 'allocation_pools': [{'start': '112.209.181.194', 'end': '112.209.181.254'}], 'gateway_ip': '112.209.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.209.181.194', 'tags': [], 'project_id': '0dc19e6c7bac422aadcc96347f192ee8'}} 2024-10-29 11:59:44,081 - INFO - Created VN ctest-vn-49106209 2024-10-29 11:59:44,144 - DEBUG - VN ctest-vn-49106209 UUID is ae651a10-e4ff-4c70-9fe2-923b47d89197 2024-10-29 11:59:44,560 - DEBUG - Response for create_network : {'network': {'id': '83d722d6-245c-4da1-b136-c9c46168d3e4', 'name': 'ctest-vn-80531800', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-80531800'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:59:44,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f75183b-63ce-4f0c-b6cf-28fb60daf0ff', 'name': '', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'network_id': '83d722d6-245c-4da1-b136-c9c46168d3e4', 'ip_version': 4, 'cidr': '117.179.220.0/26', 'allocation_pools': [{'start': '117.179.220.2', 'end': '117.179.220.62'}], 'gateway_ip': '117.179.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.179.220.2', 'tags': [], 'project_id': '0dc19e6c7bac422aadcc96347f192ee8'}} 2024-10-29 11:59:44,791 - INFO - Created VN ctest-vn-80531800 2024-10-29 11:59:44,852 - DEBUG - VN ctest-vn-80531800 UUID is 83d722d6-245c-4da1-b136-c9c46168d3e4 2024-10-29 11:59:44,995 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209, 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-08346735:ctest-vn-80531800, 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-29 11:59:45,342 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae651a10-e4ff-4c70-9fe2-923b47d89197', 'name': 'ctest-vn-49106209', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5f68808-7f74-4ab4-b9a3-20b9906a4759'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-49106209'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012']], 'subnet_ipam': [{'subnet_cidr': '112.209.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:59:45,608 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83d722d6-245c-4da1-b136-c9c46168d3e4', 'name': 'ctest-vn-80531800', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f75183b-63ce-4f0c-b6cf-28fb60daf0ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-80531800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012']], 'subnet_ipam': [{'subnet_cidr': '117.179.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:59:45,804 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-10-29 11:59:46,149 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-10-29 11:59:46,192 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910 2024-10-29 11:59:46,211 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8 2024-10-29 11:59:46,306 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197 2024-10-29 11:59:46,326 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197 2024-10-29 11:59:46,343 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce 2024-10-29 11:59:46,356 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce 2024-10-29 11:59:46,369 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/04b07f4b-a2dc-4e7c-8429-94c65556202a 2024-10-29 11:59:46,379 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 11:59:46,379 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197 2024-10-29 11:59:46,397 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce 2024-10-29 11:59:46,422 - INFO - Verified VN network id 9 for VN ae651a10-e4ff-4c70-9fe2-923b47d89197 2024-10-29 11:59:46,422 - INFO - Verifications in API Server for VN ctest-vn-49106209 passed 2024-10-29 11:59:46,422 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197 2024-10-29 11:59:46,439 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce 2024-10-29 11:59:46,450 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce 2024-10-29 11:59:46,461 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/04b07f4b-a2dc-4e7c-8429-94c65556202a 2024-10-29 11:59:46,479 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08346735', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12566478995110972528', 'uuid-lslong': '11520931580073251223'}, 'enable': 'true', 'created': '2024-10-29T11:59:43', 'last-modified': '2024-10-29T11:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.174766'} 2024-10-29 11:59:46,487 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 11:59:46,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49106209 passed 2024-10-29 11:59:46,488 - DEBUG - ====Verifying policy data for ctest-vn-49106209 in API_Server ====== 2024-10-29 11:59:46,488 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-10-29 11:59:46,495 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910 2024-10-29 11:59:46,512 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8 2024-10-29 11:59:46,604 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197 2024-10-29 11:59:46,621 - DEBUG - ==>Verifying data for policy with id: 19379691-d71d-4855-9d22-d7ab8414cb5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012'] 2024-10-29 11:59:46,621 - INFO - VN ctest-vn-49106209 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 11:59:46,621 - DEBUG - Verifying the vn in opserver 2024-10-29 11:59:46,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209 virtual network link through opserver 10.0.0.22 2024-10-29 11:59:46,621 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-10-29 11:59:46,963 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-10-29 11:59:47,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209?flat'} 2024-10-29 11:59:47,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209 is found in opserver 2024-10-29 11:59:47,060 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 11:59:47,067 - DEBUG - VRF ids for VN ctest-vn-49106209: {} 2024-10-29 11:59:47,067 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-10-29 11:59:47,074 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910 2024-10-29 11:59:47,090 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8 2024-10-29 11:59:47,185 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4 2024-10-29 11:59:47,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4 2024-10-29 11:59:47,224 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b 2024-10-29 11:59:47,236 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b 2024-10-29 11:59:47,247 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/adfdcf65-6dad-486c-9f92-52faa00827b6 2024-10-29 11:59:47,256 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 11:59:47,256 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4 2024-10-29 11:59:47,271 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b 2024-10-29 11:59:47,297 - INFO - Verified VN network id 10 for VN 83d722d6-245c-4da1-b136-c9c46168d3e4 2024-10-29 11:59:47,297 - INFO - Verifications in API Server for VN ctest-vn-80531800 passed 2024-10-29 11:59:47,297 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4 2024-10-29 11:59:47,314 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b 2024-10-29 11:59:47,326 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b 2024-10-29 11:59:47,338 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/adfdcf65-6dad-486c-9f92-52faa00827b6 2024-10-29 11:59:47,354 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08346735', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9500100242089725345', 'uuid-lslong': '12769615638740653028'}, 'enable': 'true', 'created': '2024-10-29T11:59:44', 'last-modified': '2024-10-29T11:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.782005'} 2024-10-29 11:59:47,362 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 11:59:47,362 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80531800 passed 2024-10-29 11:59:47,363 - DEBUG - ====Verifying policy data for ctest-vn-80531800 in API_Server ====== 2024-10-29 11:59:47,363 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-10-29 11:59:47,370 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910 2024-10-29 11:59:47,387 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8 2024-10-29 11:59:47,478 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4 2024-10-29 11:59:47,500 - DEBUG - ==>Verifying data for policy with id: 19379691-d71d-4855-9d22-d7ab8414cb5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012'] 2024-10-29 11:59:47,500 - INFO - VN ctest-vn-80531800 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 11:59:47,500 - DEBUG - Verifying the vn in opserver 2024-10-29 11:59:47,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800 virtual network link through opserver 10.0.0.22 2024-10-29 11:59:47,500 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2024-10-29 11:59:47,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800?flat'} 2024-10-29 11:59:47,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800 is found in opserver 2024-10-29 11:59:47,529 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 11:59:47,536 - DEBUG - VRF ids for VN ctest-vn-80531800: {} 2024-10-29 11:59:47,606 - DEBUG - Services list from nova: [, , ] 2024-10-29 11:59:48,809 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2176-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2176-1) 2024-10-29 11:59:50,333 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2176-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2176-1) 2024-10-29 11:59:50,334 - INFO - Waiting for VM ctest-TestBasicPolicy-08346735-89618624 to be up.. 2024-10-29 11:59:50,462 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 11:59:55,561 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:59:55,561 - INFO - VM name : ctest-TestBasicPolicy-08346735-89618624 2024-10-29 11:59:55,665 - DEBUG - VM ctest-TestBasicPolicy-08346735-89618624 ID is ebaa9f7f-5795-426d-af6a-3fdc5c935e58 2024-10-29 11:59:55,688 - DEBUG - VM ctest-TestBasicPolicy-08346735-89618624 launched on Node cn-jenkins-deploy-platform-ansible-os-2176-1 2024-10-29 11:59:55,787 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/ebaa9f7f-5795-426d-af6a-3fdc5c935e58 2024-10-29 11:59:55,799 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/787f8478-d916-4d2d-90ce-d4412621ba83 2024-10-29 11:59:59,069 - 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 1004ms') 2024-10-29 11:59:59,070 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08346735-89618624 failed! 2024-10-29 11:59:59,132 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209 is 112.209.181.193 and allocation pool is NOT set 2024-10-29 12:00:01,203 - 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=4.20 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.756 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.756/2.475/4.195/1.719 ms') 2024-10-29 12:00:01,203 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-08346735-89618624 passed 2024-10-29 12:00:01,384 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 12:00:01,384 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08346735-89618624, IP 112.209.181.195, Port 22 2024-10-29 12:00:01,450 - 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-29 12:00:01,581 - DEBUG - VM ctest-TestBasicPolicy-08346735-89618624 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-29 12:00:06,582 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 12:00:06,582 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08346735-89618624, IP 112.209.181.195, Port 22 2024-10-29 12:00:06,740 - DEBUG - VM ctest-TestBasicPolicy-08346735-89618624 is ready for SSH connections 2024-10-29 12:00:06,740 - INFO - Waiting for VM ctest-TestBasicPolicy-08346735-06438447 to be up.. 2024-10-29 12:00:06,838 - DEBUG - VM is in ACTIVE state now 2024-10-29 12:00:06,838 - INFO - VM name : ctest-TestBasicPolicy-08346735-06438447 2024-10-29 12:00:06,933 - DEBUG - VM ctest-TestBasicPolicy-08346735-06438447 ID is 35825b79-e4c3-4c39-a231-6ef3b1157183 2024-10-29 12:00:06,933 - DEBUG - VM ctest-TestBasicPolicy-08346735-06438447 launched on Node cn-jenkins-deploy-platform-ansible-os-2176-1 2024-10-29 12:00:07,030 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/35825b79-e4c3-4c39-a231-6ef3b1157183 2024-10-29 12:00:07,043 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/bf5aafcb-1526-4047-8ae8-fb8b966d00f3 2024-10-29 12:00:08,308 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.415 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.415/1.777/3.139/1.362 ms') 2024-10-29 12:00:08,308 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-08346735-06438447 passed 2024-10-29 12:00:08,472 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 12:00:08,472 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-08346735-06438447, IP 117.179.220.3, Port 22 2024-10-29 12:00:08,631 - DEBUG - VM ctest-TestBasicPolicy-08346735-06438447 is ready for SSH connections 2024-10-29 12:00:08,631 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 12:00:08,632 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.179.220.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-10-29 12:00:08,632 - DEBUG - ping -s 56 -c 3 -W 1 117.179.220.3 2024-10-29 12:00:12,464 - DEBUG - PING 117.179.220.3 (117.179.220.3): 56 data bytes 64 bytes from 117.179.220.3: seq=0 ttl=63 time=4.103 ms 64 bytes from 117.179.220.3: seq=1 ttl=63 time=1.973 ms 64 bytes from 117.179.220.3: seq=2 ttl=63 time=1.272 ms --- 117.179.220.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.272/2.449/4.103 ms 2024-10-29 12:00:12,464 - INFO - Ping to IP 117.179.220.3 from VM ctest-TestBasicPolicy-08346735-89618624 passed 2024-10-29 12:00:12,680 - DEBUG - Policy Update Response {"network-policy": {"uuid": "19379691-d71d-4855-9d22-d7ab8414cb5a", "href": "http://10.0.0.22:8082/network-policy/19379691-d71d-4855-9d22-d7ab8414cb5a"}} 2024-10-29 12:00:12,680 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 12:00:12,680 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 117.179.220.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2024-10-29 12:00:12,680 - DEBUG - ping -s 56 -c 3 -W 1 117.179.220.3 2024-10-29 12:00:15,941 - DEBUG - PING 117.179.220.3 (117.179.220.3): 56 data bytes --- 117.179.220.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-29 12:00:15,941 - WARNING - Ping to IP 117.179.220.3 from VM ctest-TestBasicPolicy-08346735-89618624 failed 2024-10-29 12:00:15,941 - INFO - Deleting VM ctest-TestBasicPolicy-08346735-06438447 2024-10-29 12:00:16,040 - INFO - Deleting VM ctest-TestBasicPolicy-08346735-89618624 2024-10-29 12:00:16,558 - INFO - Deleted policy ctest-policy-allow-all-72409012 2024-10-29 12:00:16,558 - INFO - Deleting VN ctest-vn-80531800 2024-10-29 12:00:16,612 - DEBUG - VN 83d722d6-245c-4da1-b136-c9c46168d3e4 still in use: Unable to complete operation on network 83d722d6-245c-4da1-b136-c9c46168d3e4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6589ba9e-6e1b-4393-9b5a-4e62c16d4218'] 2024-10-29 12:00:16,613 - WARNING - Deleting VN ctest-vn-80531800 failed..Will retry 2024-10-29 12:00:18,757 - DEBUG - Response for deleting network () 2024-10-29 12:00:18,758 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b 2024-10-29 12:00:18,765 - DEBUG - Response Code: 404 2024-10-29 12:00:18,765 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-10-29 12:00:18,777 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910 2024-10-29 12:00:18,835 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8 2024-10-29 12:00:18,920 - INFO - Validated that VN ctest-vn-80531800 is not found in API Server 2024-10-29 12:00:18,934 - DEBUG - VN ctest-vn-80531800 is not present in Agent 10.0.0.22 2024-10-29 12:00:18,934 - INFO - Validated that VN ctest-vn-80531800 is not in any agent 2024-10-29 12:00:18,953 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80531800 info 2024-10-29 12:00:18,953 - INFO - Deleting VN ctest-vn-49106209 2024-10-29 12:00:19,089 - DEBUG - Response for deleting network () 2024-10-29 12:00:19,089 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce 2024-10-29 12:00:19,096 - DEBUG - Response Code: 404 2024-10-29 12:00:19,096 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2024-10-29 12:00:19,107 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910 2024-10-29 12:00:19,168 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8 2024-10-29 12:00:19,261 - INFO - Validated that VN ctest-vn-49106209 is not found in API Server 2024-10-29 12:00:19,276 - DEBUG - VN ctest-vn-49106209 is not present in Agent 10.0.0.22 2024-10-29 12:00:19,276 - INFO - Validated that VN ctest-vn-49106209 is not in any agent 2024-10-29 12:00:19,297 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-49106209 info 2024-10-29 12:00:19,561 - DEBUG - No XMPP flaps were noticed during the test 2024-10-29 12:00:19,561 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-10-29 12:00:19,561 - INFO - -------------------------------------------------------------------------------- 2024-10-29 12:00:20,374 - INFO - Deleted project: ctest-TestBasicPolicy-08346735, ID : 0dc19e6c-7bac-422a-adcc-96347f192ee8