2024-11-14 22:48:15,353 - INFO - Domain Default found not creating 2024-11-14 22:48:15,524 - INFO - Project ctest-TestBasicPolicy-96219728 not found, creating it 2024-11-14 22:48:16,020 - INFO - Created Project:ctest-TestBasicPolicy-96219728, ID : d3861771-9bd2-46bb-b752-f62b0191b4cf 2024-11-14 22:48:17,703 - INFO - ================================================================================ 2024-11-14 22:48:17,703 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-14 22:48:17,703 - 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-14 22:48:17,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.7': '0'}} with 2024-11-14 22:48:17,964 - INFO - Initial checks done. Running the testcase now 2024-11-14 22:48:17,964 - INFO - 2024-11-14 22:48:18,601 - DEBUG - Response for create_network : {'network': {'id': '9e700b4b-b58f-4fe8-9e3c-4acf696820b5', 'name': 'ctest-vn-61748701', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-61748701'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 22:48:18,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b996a9fd-9776-4f7b-bd76-cba03bf5e937', 'name': '', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'network_id': '9e700b4b-b58f-4fe8-9e3c-4acf696820b5', 'ip_version': 4, 'cidr': '99.91.42.128/26', 'allocation_pools': [{'start': '99.91.42.130', 'end': '99.91.42.190'}], 'gateway_ip': '99.91.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.91.42.130', 'tags': [], 'project_id': 'd38617719bd246bbb752f62b0191b4cf'}} 2024-11-14 22:48:18,841 - INFO - Created VN ctest-vn-61748701 2024-11-14 22:48:18,901 - DEBUG - VN ctest-vn-61748701 UUID is 9e700b4b-b58f-4fe8-9e3c-4acf696820b5 2024-11-14 22:48:19,238 - DEBUG - Response for create_network : {'network': {'id': '399ab565-f562-48ff-8ff9-1fd1962a384c', 'name': 'ctest-vn-62427966', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-62427966'], 'port_security_enabled': True, 'description': ''}} 2024-11-14 22:48:19,475 - DEBUG - Response for create_subnet : {'subnet': {'id': '64e26c2c-ea6d-4d5e-82eb-b889a5145f8c', 'name': '', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'network_id': '399ab565-f562-48ff-8ff9-1fd1962a384c', 'ip_version': 4, 'cidr': '51.83.226.64/26', 'allocation_pools': [{'start': '51.83.226.66', 'end': '51.83.226.126'}], 'gateway_ip': '51.83.226.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.83.226.66', 'tags': [], 'project_id': 'd38617719bd246bbb752f62b0191b4cf'}} 2024-11-14 22:48:19,497 - INFO - Created VN ctest-vn-62427966 2024-11-14 22:48:19,557 - DEBUG - VN ctest-vn-62427966 UUID is 399ab565-f562-48ff-8ff9-1fd1962a384c 2024-11-14 22:48:19,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701, 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-96219728:ctest-vn-62427966, 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-14 22:48:20,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e700b4b-b58f-4fe8-9e3c-4acf696820b5', 'name': 'ctest-vn-61748701', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b996a9fd-9776-4f7b-bd76-cba03bf5e937'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-61748701'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154']], 'subnet_ipam': [{'subnet_cidr': '99.91.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-14 22:48:20,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '399ab565-f562-48ff-8ff9-1fd1962a384c', 'name': 'ctest-vn-62427966', 'tenant_id': 'd38617719bd246bbb752f62b0191b4cf', 'project_id': 'd38617719bd246bbb752f62b0191b4cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64e26c2c-ea6d-4d5e-82eb-b889a5145f8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-vn-62427966'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154']], 'subnet_ipam': [{'subnet_cidr': '51.83.226.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-14 22:48:20,449 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-14 22:48:20,786 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-14 22:48:20,819 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781 2024-11-14 22:48:20,835 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf 2024-11-14 22:48:20,921 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5 2024-11-14 22:48:20,939 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5 2024-11-14 22:48:20,954 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a 2024-11-14 22:48:20,963 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a 2024-11-14 22:48:20,973 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7386d1a5-dfaa-4e44-9dbc-39ff51d2c844 2024-11-14 22:48:20,981 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-14 22:48:20,981 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5 2024-11-14 22:48:20,996 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a 2024-11-14 22:48:21,020 - INFO - Verified VN network id 9 for VN 9e700b4b-b58f-4fe8-9e3c-4acf696820b5 2024-11-14 22:48:21,020 - INFO - Verifications in API Server for VN ctest-vn-61748701 passed 2024-11-14 22:48:21,020 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5 2024-11-14 22:48:21,037 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a 2024-11-14 22:48:21,046 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a 2024-11-14 22:48:21,056 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/7386d1a5-dfaa-4e44-9dbc-39ff51d2c844 2024-11-14 22:48:21,070 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96219728', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11416637475180728296', 'uuid-lslong': '11402070611282370741'}, 'enable': 'true', 'created': '2024-11-14T22:48:18', 'last-modified': '2024-11-14T22:48:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.093387'} 2024-11-14 22:48:21,077 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-14 22:48:21,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61748701 passed 2024-11-14 22:48:21,077 - DEBUG - ====Verifying policy data for ctest-vn-61748701 in API_Server ====== 2024-11-14 22:48:21,078 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-14 22:48:21,084 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781 2024-11-14 22:48:21,099 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf 2024-11-14 22:48:21,186 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9e700b4b-b58f-4fe8-9e3c-4acf696820b5 2024-11-14 22:48:21,203 - DEBUG - ==>Verifying data for policy with id: 5f3f2f27-ec89-4667-a330-3cc9d2f3244d, fqn: ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154'] 2024-11-14 22:48:21,203 - INFO - VN ctest-vn-61748701 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-14 22:48:21,203 - DEBUG - Verifying the vn in opserver 2024-11-14 22:48:21,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701 virtual network link through opserver 10.0.0.30 2024-11-14 22:48:21,203 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-11-14 22:48:21,542 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-11-14 22:48:21,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701?flat'} 2024-11-14 22:48:21,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701 is found in opserver 2024-11-14 22:48:21,618 - DEBUG - Do not have enough data to verify VN in agent 2024-11-14 22:48:21,624 - DEBUG - VRF ids for VN ctest-vn-61748701: {} 2024-11-14 22:48:21,624 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-14 22:48:21,630 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781 2024-11-14 22:48:21,646 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf 2024-11-14 22:48:21,729 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c 2024-11-14 22:48:21,747 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c 2024-11-14 22:48:21,762 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb 2024-11-14 22:48:21,771 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb 2024-11-14 22:48:21,779 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/41d47b45-5b5c-4372-ac01-3e7a94984c75 2024-11-14 22:48:21,786 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-14 22:48:21,786 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c 2024-11-14 22:48:21,800 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb 2024-11-14 22:48:21,820 - INFO - Verified VN network id 10 for VN 399ab565-f562-48ff-8ff9-1fd1962a384c 2024-11-14 22:48:21,820 - INFO - Verifications in API Server for VN ctest-vn-62427966 passed 2024-11-14 22:48:21,820 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c 2024-11-14 22:48:21,835 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb 2024-11-14 22:48:21,843 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb 2024-11-14 22:48:21,851 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/41d47b45-5b5c-4372-ac01-3e7a94984c75 2024-11-14 22:48:21,865 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96219728', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4150829456088516863', 'uuid-lslong': '10374358201652623436'}, 'enable': 'true', 'created': '2024-11-14T22:48:19', 'last-modified': '2024-11-14T22:48:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.630694'} 2024-11-14 22:48:21,871 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-14 22:48:21,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62427966 passed 2024-11-14 22:48:21,871 - DEBUG - ====Verifying policy data for ctest-vn-62427966 in API_Server ====== 2024-11-14 22:48:21,871 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-14 22:48:21,877 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781 2024-11-14 22:48:21,891 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf 2024-11-14 22:48:21,974 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/399ab565-f562-48ff-8ff9-1fd1962a384c 2024-11-14 22:48:21,989 - DEBUG - ==>Verifying data for policy with id: 5f3f2f27-ec89-4667-a330-3cc9d2f3244d, fqn: ['default-domain', 'ctest-TestBasicPolicy-96219728', 'ctest-policy-allow-all-16004154'] 2024-11-14 22:48:21,989 - INFO - VN ctest-vn-62427966 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-14 22:48:21,989 - DEBUG - Verifying the vn in opserver 2024-11-14 22:48:21,990 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966 virtual network link through opserver 10.0.0.30 2024-11-14 22:48:21,990 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-11-14 22:48:22,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966?flat'} 2024-11-14 22:48:22,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-62427966 is found in opserver 2024-11-14 22:48:22,015 - DEBUG - Do not have enough data to verify VN in agent 2024-11-14 22:48:22,021 - DEBUG - VRF ids for VN ctest-vn-62427966: {} 2024-11-14 22:48:22,079 - DEBUG - Services list from nova: [, , ] 2024-11-14 22:48:23,230 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2305-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2305-1) 2024-11-14 22:48:24,616 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2305-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2305-1) 2024-11-14 22:48:24,616 - INFO - Waiting for VM ctest-TestBasicPolicy-96219728-62838970 to be up.. 2024-11-14 22:48:24,718 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-14 22:48:29,826 - DEBUG - VM is in ACTIVE state now 2024-11-14 22:48:29,826 - INFO - VM name : ctest-TestBasicPolicy-96219728-62838970 2024-11-14 22:48:29,929 - DEBUG - VM ctest-TestBasicPolicy-96219728-62838970 ID is 1e870141-a298-41b3-b923-7f1fc92de279 2024-11-14 22:48:29,953 - DEBUG - VM ctest-TestBasicPolicy-96219728-62838970 launched on Node cn-jenkins-deploy-platform-ansible-os-2305-1 2024-11-14 22:48:30,064 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/1e870141-a298-41b3-b923-7f1fc92de279 2024-11-14 22:48:30,074 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/bd1047f9-856a-49b1-bcc2-4799f892a01f 2024-11-14 22:48:33,387 - 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 1026ms') 2024-11-14 22:48:33,387 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96219728-62838970 failed! 2024-11-14 22:48:33,445 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-96219728:ctest-vn-61748701 is 99.91.42.129 and allocation pool is NOT set 2024-11-14 22:48:35,507 - 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.24 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.40 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 = 1.398/2.817/4.237/1.419 ms') 2024-11-14 22:48:35,507 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-96219728-62838970 passed 2024-11-14 22:48:35,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 22:48:35,673 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96219728-62838970, IP 99.91.42.131, Port 22 2024-11-14 22:48:35,728 - 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-14 22:48:35,827 - DEBUG - VM ctest-TestBasicPolicy-96219728-62838970 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-14 22:48:40,827 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 22:48:40,828 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96219728-62838970, IP 99.91.42.131, Port 22 2024-11-14 22:48:40,984 - DEBUG - VM ctest-TestBasicPolicy-96219728-62838970 is ready for SSH connections 2024-11-14 22:48:40,984 - INFO - Waiting for VM ctest-TestBasicPolicy-96219728-47092611 to be up.. 2024-11-14 22:48:41,073 - DEBUG - VM is in ACTIVE state now 2024-11-14 22:48:41,073 - INFO - VM name : ctest-TestBasicPolicy-96219728-47092611 2024-11-14 22:48:41,168 - DEBUG - VM ctest-TestBasicPolicy-96219728-47092611 ID is 583a9814-3810-42cb-ac46-a06715493010 2024-11-14 22:48:41,168 - DEBUG - VM ctest-TestBasicPolicy-96219728-47092611 launched on Node cn-jenkins-deploy-platform-ansible-os-2305-1 2024-11-14 22:48:41,263 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/583a9814-3810-42cb-ac46-a06715493010 2024-11-14 22:48:41,273 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/eab7c193-398e-4dff-8534-54d59f97841f 2024-11-14 22:48:42,536 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.408 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.408/1.748/3.088/1.340 ms') 2024-11-14 22:48:42,536 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-96219728-47092611 passed 2024-11-14 22:48:42,701 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 22:48:42,701 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-96219728-47092611, IP 51.83.226.67, Port 22 2024-11-14 22:48:42,860 - DEBUG - VM ctest-TestBasicPolicy-96219728-47092611 is ready for SSH connections 2024-11-14 22:48:42,860 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 22:48:42,860 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 51.83.226.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-11-14 22:48:42,860 - DEBUG - ping -s 56 -c 3 -W 1 51.83.226.67 2024-11-14 22:48:46,952 - DEBUG - PING 51.83.226.67 (51.83.226.67): 56 data bytes 64 bytes from 51.83.226.67: seq=0 ttl=63 time=4.459 ms 64 bytes from 51.83.226.67: seq=1 ttl=63 time=0.980 ms 64 bytes from 51.83.226.67: seq=2 ttl=63 time=1.029 ms --- 51.83.226.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.980/2.156/4.459 ms 2024-11-14 22:48:46,952 - INFO - Ping to IP 51.83.226.67 from VM ctest-TestBasicPolicy-96219728-62838970 passed 2024-11-14 22:48:47,164 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5f3f2f27-ec89-4667-a330-3cc9d2f3244d", "href": "http://10.0.0.30:8082/network-policy/5f3f2f27-ec89-4667-a330-3cc9d2f3244d"}} 2024-11-14 22:48:47,165 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-14 22:48:47,165 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 51.83.226.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-11-14 22:48:47,165 - DEBUG - ping -s 56 -c 3 -W 1 51.83.226.67 2024-11-14 22:48:50,396 - DEBUG - PING 51.83.226.67 (51.83.226.67): 56 data bytes --- 51.83.226.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-14 22:48:50,396 - WARNING - Ping to IP 51.83.226.67 from VM ctest-TestBasicPolicy-96219728-62838970 failed 2024-11-14 22:48:50,396 - INFO - Deleting VM ctest-TestBasicPolicy-96219728-47092611 2024-11-14 22:48:50,473 - INFO - Deleting VM ctest-TestBasicPolicy-96219728-62838970 2024-11-14 22:48:50,950 - INFO - Deleted policy ctest-policy-allow-all-16004154 2024-11-14 22:48:50,951 - INFO - Deleting VN ctest-vn-62427966 2024-11-14 22:48:50,993 - DEBUG - VN 399ab565-f562-48ff-8ff9-1fd1962a384c still in use: Unable to complete operation on network 399ab565-f562-48ff-8ff9-1fd1962a384c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-61592500-c6c6-4db7-87bc-955a988ceb7d'] 2024-11-14 22:48:50,993 - WARNING - Deleting VN ctest-vn-62427966 failed..Will retry 2024-11-14 22:48:53,115 - DEBUG - Response for deleting network () 2024-11-14 22:48:53,115 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7e60e5bd-22e3-4ac3-84d7-69080380fecb 2024-11-14 22:48:53,125 - DEBUG - Response Code: 404 2024-11-14 22:48:53,125 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-14 22:48:53,132 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781 2024-11-14 22:48:53,188 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf 2024-11-14 22:48:53,271 - INFO - Validated that VN ctest-vn-62427966 is not found in API Server 2024-11-14 22:48:53,283 - DEBUG - VN ctest-vn-62427966 is not present in Agent 10.0.0.30 2024-11-14 22:48:53,283 - INFO - Validated that VN ctest-vn-62427966 is not in any agent 2024-11-14 22:48:53,300 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62427966 info 2024-11-14 22:48:53,300 - INFO - Deleting VN ctest-vn-61748701 2024-11-14 22:48:53,422 - DEBUG - Response for deleting network () 2024-11-14 22:48:53,423 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6424f1ab-596a-428f-b3a8-82caf1a4f34a 2024-11-14 22:48:53,431 - DEBUG - Response Code: 404 2024-11-14 22:48:53,431 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-14 22:48:53,438 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c56f743f-a40d-4a56-92f1-1c6265b25781 2024-11-14 22:48:53,497 - DEBUG - Requesting: http://10.0.0.30:8082/project/d3861771-9bd2-46bb-b752-f62b0191b4cf 2024-11-14 22:48:53,584 - INFO - Validated that VN ctest-vn-61748701 is not found in API Server 2024-11-14 22:48:53,597 - DEBUG - VN ctest-vn-61748701 is not present in Agent 10.0.0.30 2024-11-14 22:48:53,597 - INFO - Validated that VN ctest-vn-61748701 is not in any agent 2024-11-14 22:48:53,614 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61748701 info 2024-11-14 22:48:53,875 - DEBUG - No XMPP flaps were noticed during the test 2024-11-14 22:48:53,875 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-11-14 22:48:53,875 - INFO - -------------------------------------------------------------------------------- 2024-11-14 22:48:54,637 - INFO - Deleted project: ctest-TestBasicPolicy-96219728, ID : d3861771-9bd2-46bb-b752-f62b0191b4cf