2024-08-21 20:35:43,517 - INFO - Domain Default found not creating 2024-08-21 20:35:43,673 - INFO - Project ctest-TestBasicPolicy-98626819 not found, creating it 2024-08-21 20:35:44,147 - INFO - Created Project:ctest-TestBasicPolicy-98626819, ID : 54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3 2024-08-21 20:35:46,992 - INFO - ================================================================================ 2024-08-21 20:35:46,992 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 20:35:46,992 - 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-08-21 20:35:47,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.10': '0'}} with 2024-08-21 20:35:47,256 - INFO - Initial checks done. Running the testcase now 2024-08-21 20:35:47,256 - INFO - 2024-08-21 20:35:49,028 - DEBUG - Response for create_network : {'network': {'id': '1dcf882c-ba04-48e4-8660-85e7078203ca', 'name': 'ctest-vn-31803255', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803255'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:35:49,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '47b802b8-fa9f-4a25-ac4a-144bf6919094', 'name': '', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'network_id': '1dcf882c-ba04-48e4-8660-85e7078203ca', 'ip_version': 4, 'cidr': '170.5.111.192/26', 'allocation_pools': [{'start': '170.5.111.194', 'end': '170.5.111.254'}], 'gateway_ip': '170.5.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.5.111.194', 'tags': [], 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3'}} 2024-08-21 20:35:49,193 - INFO - Created VN ctest-vn-31803255 2024-08-21 20:35:49,241 - DEBUG - VN ctest-vn-31803255 UUID is 1dcf882c-ba04-48e4-8660-85e7078203ca 2024-08-21 20:35:49,526 - DEBUG - Response for create_network : {'network': {'id': 'e4d70a88-ce02-4b41-995f-c12bddcd4854', 'name': 'ctest-vn-31803112', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803112'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:35:49,736 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b05a230c-abaa-43af-bd20-aac06b6ac484', 'name': '', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'network_id': 'e4d70a88-ce02-4b41-995f-c12bddcd4854', 'ip_version': 4, 'cidr': '211.52.145.64/26', 'allocation_pools': [{'start': '211.52.145.66', 'end': '211.52.145.126'}], 'gateway_ip': '211.52.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.52.145.66', 'tags': [], 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3'}} 2024-08-21 20:35:49,756 - INFO - Created VN ctest-vn-31803112 2024-08-21 20:35:49,805 - DEBUG - VN ctest-vn-31803112 UUID is e4d70a88-ce02-4b41-995f-c12bddcd4854 2024-08-21 20:35:49,921 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255, 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-98626819:ctest-vn-31803112, 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-08-21 20:35:50,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1dcf882c-ba04-48e4-8660-85e7078203ca', 'name': 'ctest-vn-31803255', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47b802b8-fa9f-4a25-ac4a-144bf6919094'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803255'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173']], 'subnet_ipam': [{'subnet_cidr': '170.5.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:35:50,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4d70a88-ce02-4b41-995f-c12bddcd4854', 'name': 'ctest-vn-31803112', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b05a230c-abaa-43af-bd20-aac06b6ac484'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803112'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173']], 'subnet_ipam': [{'subnet_cidr': '211.52.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 20:35:50,625 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 20:35:50,927 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 20:35:50,958 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28 2024-08-21 20:35:50,975 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3 2024-08-21 20:35:51,046 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca 2024-08-21 20:35:51,057 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca 2024-08-21 20:35:51,065 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6 2024-08-21 20:35:51,073 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6 2024-08-21 20:35:51,082 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1f42ba5f-4b9b-4e46-a4f4-4b95189b0b5c 2024-08-21 20:35:51,089 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 20:35:51,089 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca 2024-08-21 20:35:51,098 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6 2024-08-21 20:35:51,110 - INFO - Verified VN network id 8 for VN 1dcf882c-ba04-48e4-8660-85e7078203ca 2024-08-21 20:35:51,110 - INFO - Verifications in API Server for VN ctest-vn-31803255 passed 2024-08-21 20:35:51,111 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca 2024-08-21 20:35:51,121 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6 2024-08-21 20:35:51,131 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6 2024-08-21 20:35:51,139 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1f42ba5f-4b9b-4e46-a4f4-4b95189b0b5c 2024-08-21 20:35:51,154 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98626819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2148085272959797476', 'uuid-lslong': '9682886426156467146'}, 'enable': 'true', 'created': '2024-08-21T20:35:48', 'last-modified': '2024-08-21T20:35:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961116'} 2024-08-21 20:35:51,163 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 20:35:51,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31803255 passed 2024-08-21 20:35:51,163 - DEBUG - ====Verifying policy data for ctest-vn-31803255 in API_Server ====== 2024-08-21 20:35:51,163 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 20:35:51,169 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28 2024-08-21 20:35:51,182 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3 2024-08-21 20:35:51,254 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca 2024-08-21 20:35:51,262 - DEBUG - ==>Verifying data for policy with id: 502405a1-b3f9-4e2f-aadd-04b6c6ae3ff1, fqn: ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173'] 2024-08-21 20:35:51,262 - INFO - VN ctest-vn-31803255 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 20:35:51,262 - DEBUG - Verifying the vn in opserver 2024-08-21 20:35:51,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255 virtual network link through opserver 10.0.0.42 2024-08-21 20:35:51,262 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-21 20:35:51,552 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-21 20:35:51,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255?flat'} 2024-08-21 20:35:51,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255 is found in opserver 2024-08-21 20:35:51,622 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 20:35:51,627 - DEBUG - VRF ids for VN ctest-vn-31803255: {} 2024-08-21 20:35:51,628 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 20:35:51,634 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28 2024-08-21 20:35:51,646 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3 2024-08-21 20:35:51,719 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854 2024-08-21 20:35:51,729 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854 2024-08-21 20:35:51,737 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5 2024-08-21 20:35:51,744 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5 2024-08-21 20:35:51,751 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6121017d-c65c-41fd-9732-912d6c66dd16 2024-08-21 20:35:51,758 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 20:35:51,758 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854 2024-08-21 20:35:51,766 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5 2024-08-21 20:35:51,778 - INFO - Verified VN network id 9 for VN e4d70a88-ce02-4b41-995f-c12bddcd4854 2024-08-21 20:35:51,778 - INFO - Verifications in API Server for VN ctest-vn-31803112 passed 2024-08-21 20:35:51,778 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854 2024-08-21 20:35:51,789 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5 2024-08-21 20:35:51,798 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5 2024-08-21 20:35:51,805 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6121017d-c65c-41fd-9732-912d6c66dd16 2024-08-21 20:35:51,817 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98626819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16489660143328447297', 'uuid-lslong': '11051764404739459156'}, 'enable': 'true', 'created': '2024-08-21T20:35:49', 'last-modified': '2024-08-21T20:35:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.383149'} 2024-08-21 20:35:51,824 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 20:35:51,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31803112 passed 2024-08-21 20:35:51,824 - DEBUG - ====Verifying policy data for ctest-vn-31803112 in API_Server ====== 2024-08-21 20:35:51,824 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 20:35:51,830 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28 2024-08-21 20:35:51,841 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3 2024-08-21 20:35:51,910 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854 2024-08-21 20:35:51,919 - DEBUG - ==>Verifying data for policy with id: 502405a1-b3f9-4e2f-aadd-04b6c6ae3ff1, fqn: ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173'] 2024-08-21 20:35:51,919 - INFO - VN ctest-vn-31803112 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 20:35:51,919 - DEBUG - Verifying the vn in opserver 2024-08-21 20:35:51,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112 virtual network link through opserver 10.0.0.42 2024-08-21 20:35:51,919 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2024-08-21 20:35:51,930 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112?flat'} 2024-08-21 20:35:51,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112 is found in opserver 2024-08-21 20:35:51,941 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 20:35:51,946 - DEBUG - VRF ids for VN ctest-vn-31803112: {} 2024-08-21 20:35:52,004 - DEBUG - Services list from nova: [, , ] 2024-08-21 20:35:53,030 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1700-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1700-1) 2024-08-21 20:35:54,289 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1700-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1700-1) 2024-08-21 20:35:54,289 - INFO - Waiting for VM ctest-TestBasicPolicy-98626819-79593716 to be up.. 2024-08-21 20:35:54,375 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 20:35:59,469 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:35:59,469 - INFO - VM name : ctest-TestBasicPolicy-98626819-79593716 2024-08-21 20:35:59,548 - DEBUG - VM ctest-TestBasicPolicy-98626819-79593716 ID is 0f2e2b05-41fd-4993-8b9d-67307d6bfd27 2024-08-21 20:35:59,567 - DEBUG - VM ctest-TestBasicPolicy-98626819-79593716 launched on Node cn-jenkins-deploy-platform-ansible-os-1700-1 2024-08-21 20:35:59,647 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/0f2e2b05-41fd-4993-8b9d-67307d6bfd27 2024-08-21 20:35:59,656 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/883e0e8a-0433-49b2-a764-12e254542815 2024-08-21 20:36:02,934 - 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 1031ms') 2024-08-21 20:36:02,935 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98626819-79593716 failed! 2024-08-21 20:36:02,989 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255 is 170.5.111.193 and allocation pool is NOT set 2024-08-21 20:36:05,056 - 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=3.49 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.383 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 = 0.383/1.935/3.488/1.552 ms') 2024-08-21 20:36:05,056 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98626819-79593716 passed 2024-08-21 20:36:05,209 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:36:05,209 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98626819-79593716, IP 170.5.111.195, Port 22 2024-08-21 20:36:05,265 - 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-08-21 20:36:05,352 - DEBUG - VM ctest-TestBasicPolicy-98626819-79593716 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-21 20:36:10,353 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:36:10,353 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98626819-79593716, IP 170.5.111.195, Port 22 2024-08-21 20:36:10,511 - DEBUG - VM ctest-TestBasicPolicy-98626819-79593716 is ready for SSH connections 2024-08-21 20:36:10,511 - INFO - Waiting for VM ctest-TestBasicPolicy-98626819-04021909 to be up.. 2024-08-21 20:36:10,587 - DEBUG - VM is in ACTIVE state now 2024-08-21 20:36:10,587 - INFO - VM name : ctest-TestBasicPolicy-98626819-04021909 2024-08-21 20:36:10,659 - DEBUG - VM ctest-TestBasicPolicy-98626819-04021909 ID is 277ce12a-d030-4c1d-a47f-83f75e25a457 2024-08-21 20:36:10,660 - DEBUG - VM ctest-TestBasicPolicy-98626819-04021909 launched on Node cn-jenkins-deploy-platform-ansible-os-1700-1 2024-08-21 20:36:10,734 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/277ce12a-d030-4c1d-a47f-83f75e25a457 2024-08-21 20:36:10,743 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/53b260c7-8274-4324-a674-f9cf5c3652e8 2024-08-21 20:36:11,982 - 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=2.96 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.430 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.430/1.693/2.957/1.263 ms') 2024-08-21 20:36:11,983 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98626819-04021909 passed 2024-08-21 20:36:12,133 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:36:12,133 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98626819-04021909, IP 211.52.145.67, Port 22 2024-08-21 20:36:12,289 - DEBUG - VM ctest-TestBasicPolicy-98626819-04021909 is ready for SSH connections 2024-08-21 20:36:12,289 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:36:12,289 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.52.145.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-21 20:36:12,289 - DEBUG - ping -s 56 -c 3 -W 1 211.52.145.67 2024-08-21 20:36:16,296 - DEBUG - PING 211.52.145.67 (211.52.145.67): 56 data bytes 64 bytes from 211.52.145.67: seq=0 ttl=63 time=3.400 ms 64 bytes from 211.52.145.67: seq=1 ttl=63 time=0.881 ms 64 bytes from 211.52.145.67: seq=2 ttl=63 time=0.728 ms --- 211.52.145.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.728/1.669/3.400 ms 2024-08-21 20:36:16,296 - INFO - Ping to IP 211.52.145.67 from VM ctest-TestBasicPolicy-98626819-79593716 passed 2024-08-21 20:36:16,473 - DEBUG - Policy Update Response {"network-policy": {"uuid": "502405a1-b3f9-4e2f-aadd-04b6c6ae3ff1", "href": "http://10.0.0.42:8082/network-policy/502405a1-b3f9-4e2f-aadd-04b6c6ae3ff1"}} 2024-08-21 20:36:16,473 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 20:36:16,473 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 211.52.145.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2024-08-21 20:36:16,473 - DEBUG - ping -s 56 -c 3 -W 1 211.52.145.67 2024-08-21 20:36:19,676 - DEBUG - PING 211.52.145.67 (211.52.145.67): 56 data bytes 64 bytes from 211.52.145.67: seq=0 ttl=63 time=1.373 ms --- 211.52.145.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.373/1.373/1.373 ms 2024-08-21 20:36:19,677 - WARNING - Ping to IP 211.52.145.67 from VM ctest-TestBasicPolicy-98626819-79593716 failed 2024-08-21 20:36:19,677 - INFO - Deleting VM ctest-TestBasicPolicy-98626819-04021909 2024-08-21 20:36:21,323 - INFO - Deleting VM ctest-TestBasicPolicy-98626819-79593716 2024-08-21 20:36:21,732 - INFO - Deleted policy ctest-policy-allow-all-47398173 2024-08-21 20:36:21,732 - INFO - Deleting VN ctest-vn-31803112 2024-08-21 20:36:21,774 - DEBUG - VN e4d70a88-ce02-4b41-995f-c12bddcd4854 still in use: Unable to complete operation on network e4d70a88-ce02-4b41-995f-c12bddcd4854. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a49d7fda-8ac8-471c-9dd0-23553ea5c413'] 2024-08-21 20:36:21,774 - WARNING - Deleting VN ctest-vn-31803112 failed..Will retry 2024-08-21 20:36:23,890 - DEBUG - Response for deleting network () 2024-08-21 20:36:23,890 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5 2024-08-21 20:36:23,896 - DEBUG - Response Code: 404 2024-08-21 20:36:23,896 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 20:36:23,906 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28 2024-08-21 20:36:23,962 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3 2024-08-21 20:36:24,030 - INFO - Validated that VN ctest-vn-31803112 is not found in API Server 2024-08-21 20:36:24,041 - DEBUG - VN ctest-vn-31803112 is not present in Agent 10.0.0.42 2024-08-21 20:36:24,041 - INFO - Validated that VN ctest-vn-31803112 is not in any agent 2024-08-21 20:36:24,057 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31803112 info 2024-08-21 20:36:24,057 - INFO - Deleting VN ctest-vn-31803255 2024-08-21 20:36:24,166 - DEBUG - Response for deleting network () 2024-08-21 20:36:24,166 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6 2024-08-21 20:36:24,172 - DEBUG - Response Code: 404 2024-08-21 20:36:24,172 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2024-08-21 20:36:24,178 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28 2024-08-21 20:36:24,234 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3 2024-08-21 20:36:24,305 - INFO - Validated that VN ctest-vn-31803255 is not found in API Server 2024-08-21 20:36:24,316 - DEBUG - VN ctest-vn-31803255 is not present in Agent 10.0.0.42 2024-08-21 20:36:24,316 - INFO - Validated that VN ctest-vn-31803255 is not in any agent 2024-08-21 20:36:24,332 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31803255 info 2024-08-21 20:36:24,591 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 20:36:24,591 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2024-08-21 20:36:24,591 - INFO - -------------------------------------------------------------------------------- 2024-08-21 20:36:25,272 - INFO - Deleted project: ctest-TestBasicPolicy-98626819, ID : 54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3