2025-01-14 17:02:30,399 - INFO - Domain Default found not creating 2025-01-14 17:02:30,564 - INFO - Project ctest-TestBasicPolicy-69182837 not found, creating it 2025-01-14 17:02:31,045 - INFO - Created Project:ctest-TestBasicPolicy-69182837, ID : 728282c6-5c03-4064-a154-f4b00d4d4ab0 2025-01-14 17:02:32,555 - INFO - ================================================================================ 2025-01-14 17:02:32,555 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-14 17:02:32,555 - 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 2025-01-14 17:02:32,813 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-01-14 17:02:32,813 - INFO - Initial checks done. Running the testcase now 2025-01-14 17:02:32,813 - INFO - 2025-01-14 17:02:33,384 - DEBUG - Response for create_network : {'network': {'id': '2a894086-c445-4938-ab67-6675259e4e49', 'name': 'ctest-vn-09783546', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-09783546'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 17:02:33,591 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdebc416-bbfb-437c-84ca-5bf933d0ecbb', 'name': '', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'network_id': '2a894086-c445-4938-ab67-6675259e4e49', 'ip_version': 4, 'cidr': '40.204.154.0/26', 'allocation_pools': [{'start': '40.204.154.2', 'end': '40.204.154.62'}], 'gateway_ip': '40.204.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.204.154.2', 'tags': [], 'project_id': '728282c65c034064a154f4b00d4d4ab0'}} 2025-01-14 17:02:33,617 - INFO - Created VN ctest-vn-09783546 2025-01-14 17:02:33,673 - DEBUG - VN ctest-vn-09783546 UUID is 2a894086-c445-4938-ab67-6675259e4e49 2025-01-14 17:02:34,003 - DEBUG - Response for create_network : {'network': {'id': 'd52df1ce-ed9e-45cb-add6-7d94a356d394', 'name': 'ctest-vn-37907586', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-37907586'], 'port_security_enabled': True, 'description': ''}} 2025-01-14 17:02:34,220 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff82a9c0-5bad-4d1d-8957-9c28e2596dfb', 'name': '', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'network_id': 'd52df1ce-ed9e-45cb-add6-7d94a356d394', 'ip_version': 4, 'cidr': '30.31.67.192/26', 'allocation_pools': [{'start': '30.31.67.194', 'end': '30.31.67.254'}], 'gateway_ip': '30.31.67.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.31.67.194', 'tags': [], 'project_id': '728282c65c034064a154f4b00d4d4ab0'}} 2025-01-14 17:02:34,240 - INFO - Created VN ctest-vn-37907586 2025-01-14 17:02:34,293 - DEBUG - VN ctest-vn-37907586 UUID is d52df1ce-ed9e-45cb-add6-7d94a356d394 2025-01-14 17:02:34,412 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546, 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-69182837:ctest-vn-37907586, 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] 2025-01-14 17:02:34,723 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a894086-c445-4938-ab67-6675259e4e49', 'name': 'ctest-vn-09783546', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cdebc416-bbfb-437c-84ca-5bf933d0ecbb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-09783546'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429']], 'subnet_ipam': [{'subnet_cidr': '40.204.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 17:02:34,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd52df1ce-ed9e-45cb-add6-7d94a356d394', 'name': 'ctest-vn-37907586', 'tenant_id': '728282c65c034064a154f4b00d4d4ab0', 'project_id': '728282c65c034064a154f4b00d4d4ab0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff82a9c0-5bad-4d1d-8957-9c28e2596dfb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-vn-37907586'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429']], 'subnet_ipam': [{'subnet_cidr': '30.31.67.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-14 17:02:35,141 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-01-14 17:02:35,435 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-01-14 17:02:35,464 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d 2025-01-14 17:02:35,478 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0 2025-01-14 17:02:35,567 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49 2025-01-14 17:02:35,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49 2025-01-14 17:02:35,588 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6 2025-01-14 17:02:35,596 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6 2025-01-14 17:02:35,603 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d3576874-0bfd-40f4-9840-17a03412af08 2025-01-14 17:02:35,610 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 17:02:35,610 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49 2025-01-14 17:02:35,621 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6 2025-01-14 17:02:35,635 - INFO - Verified VN network id 8 for VN 2a894086-c445-4938-ab67-6675259e4e49 2025-01-14 17:02:35,635 - INFO - Verifications in API Server for VN ctest-vn-09783546 passed 2025-01-14 17:02:35,636 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49 2025-01-14 17:02:35,646 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6 2025-01-14 17:02:35,655 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6 2025-01-14 17:02:35,664 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d3576874-0bfd-40f4-9840-17a03412af08 2025-01-14 17:02:35,680 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69182837', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3065051968965003576', 'uuid-lslong': '12350953156415213129'}, 'enable': 'true', 'created': '2025-01-14T17:02:33', 'last-modified': '2025-01-14T17:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989133'} 2025-01-14 17:02:35,686 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-14 17:02:35,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09783546 passed 2025-01-14 17:02:35,686 - DEBUG - ====Verifying policy data for ctest-vn-09783546 in API_Server ====== 2025-01-14 17:02:35,687 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-01-14 17:02:35,693 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d 2025-01-14 17:02:35,704 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0 2025-01-14 17:02:35,781 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a894086-c445-4938-ab67-6675259e4e49 2025-01-14 17:02:35,793 - DEBUG - ==>Verifying data for policy with id: 2a91b940-18b3-4aef-95ee-9f41fb303411, fqn: ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429'] 2025-01-14 17:02:35,793 - INFO - VN ctest-vn-09783546 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 17:02:35,793 - DEBUG - Verifying the vn in opserver 2025-01-14 17:02:35,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546 virtual network link through opserver 10.0.0.38 2025-01-14 17:02:35,794 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-01-14 17:02:36,090 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-01-14 17:02:36,154 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546?flat'} 2025-01-14 17:02:36,154 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546 is found in opserver 2025-01-14 17:02:36,166 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 17:02:36,173 - DEBUG - VRF ids for VN ctest-vn-09783546: {} 2025-01-14 17:02:36,173 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-01-14 17:02:36,181 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d 2025-01-14 17:02:36,195 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0 2025-01-14 17:02:36,273 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394 2025-01-14 17:02:36,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394 2025-01-14 17:02:36,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7 2025-01-14 17:02:36,307 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7 2025-01-14 17:02:36,317 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/63c658e2-c2b6-48cc-bce0-463746d4dd9f 2025-01-14 17:02:36,327 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 17:02:36,327 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394 2025-01-14 17:02:36,339 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7 2025-01-14 17:02:36,359 - INFO - Verified VN network id 9 for VN d52df1ce-ed9e-45cb-add6-7d94a356d394 2025-01-14 17:02:36,359 - INFO - Verifications in API Server for VN ctest-vn-37907586 passed 2025-01-14 17:02:36,359 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394 2025-01-14 17:02:36,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7 2025-01-14 17:02:36,379 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7 2025-01-14 17:02:36,387 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/63c658e2-c2b6-48cc-bce0-463746d4dd9f 2025-01-14 17:02:36,402 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69182837', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15361199775082759627', 'uuid-lslong': '12526337490926621588'}, 'enable': 'true', 'created': '2025-01-14T17:02:33', 'last-modified': '2025-01-14T17:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463894'} 2025-01-14 17:02:36,411 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-14 17:02:36,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37907586 passed 2025-01-14 17:02:36,411 - DEBUG - ====Verifying policy data for ctest-vn-37907586 in API_Server ====== 2025-01-14 17:02:36,411 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-01-14 17:02:36,418 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d 2025-01-14 17:02:36,432 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0 2025-01-14 17:02:36,508 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d52df1ce-ed9e-45cb-add6-7d94a356d394 2025-01-14 17:02:36,518 - DEBUG - ==>Verifying data for policy with id: 2a91b940-18b3-4aef-95ee-9f41fb303411, fqn: ['default-domain', 'ctest-TestBasicPolicy-69182837', 'ctest-policy-allow-all-23623429'] 2025-01-14 17:02:36,518 - INFO - VN ctest-vn-37907586 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-14 17:02:36,519 - DEBUG - Verifying the vn in opserver 2025-01-14 17:02:36,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586 virtual network link through opserver 10.0.0.38 2025-01-14 17:02:36,519 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-01-14 17:02:36,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586?flat'} 2025-01-14 17:02:36,531 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-37907586 is found in opserver 2025-01-14 17:02:36,543 - DEBUG - Do not have enough data to verify VN in agent 2025-01-14 17:02:36,549 - DEBUG - VRF ids for VN ctest-vn-37907586: {} 2025-01-14 17:02:36,625 - DEBUG - Services list from nova: [, , ] 2025-01-14 17:02:37,794 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2627-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2627-1) 2025-01-14 17:02:38,956 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2627-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2627-1) 2025-01-14 17:02:38,956 - INFO - Waiting for VM ctest-TestBasicPolicy-69182837-74508226 to be up.. 2025-01-14 17:02:39,040 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-14 17:02:44,126 - DEBUG - VM is in ACTIVE state now 2025-01-14 17:02:44,126 - INFO - VM name : ctest-TestBasicPolicy-69182837-74508226 2025-01-14 17:02:44,209 - DEBUG - VM ctest-TestBasicPolicy-69182837-74508226 ID is baff8132-79d3-4ffe-9599-45947ea57570 2025-01-14 17:02:44,233 - DEBUG - VM ctest-TestBasicPolicy-69182837-74508226 launched on Node cn-jenkins-deploy-platform-ansible-os-2627-1 2025-01-14 17:02:44,330 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/baff8132-79d3-4ffe-9599-45947ea57570 2025-01-14 17:02:44,340 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/8e23e8ed-841d-4ffa-9d95-952420bbc33c 2025-01-14 17:02:47,599 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2025-01-14 17:02:47,599 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69182837-74508226 failed! 2025-01-14 17:02:47,665 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-69182837:ctest-vn-09783546 is 40.204.154.1 and allocation pool is NOT set 2025-01-14 17:02:49,736 - 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=6.48 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.65 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 = 2.652/4.567/6.482/1.915 ms') 2025-01-14 17:02:49,736 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-69182837-74508226 passed 2025-01-14 17:02:49,889 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 17:02:49,889 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69182837-74508226, IP 40.204.154.3, Port 22 2025-01-14 17:02:49,955 - 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': ''} 2025-01-14 17:02:50,039 - DEBUG - VM ctest-TestBasicPolicy-69182837-74508226 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-14 17:02:55,043 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 17:02:55,043 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69182837-74508226, IP 40.204.154.3, Port 22 2025-01-14 17:02:55,219 - DEBUG - VM ctest-TestBasicPolicy-69182837-74508226 is ready for SSH connections 2025-01-14 17:02:55,219 - INFO - Waiting for VM ctest-TestBasicPolicy-69182837-12370036 to be up.. 2025-01-14 17:02:55,313 - DEBUG - VM is in ACTIVE state now 2025-01-14 17:02:55,313 - INFO - VM name : ctest-TestBasicPolicy-69182837-12370036 2025-01-14 17:02:55,407 - DEBUG - VM ctest-TestBasicPolicy-69182837-12370036 ID is e91cd6cb-08fe-44e8-8177-1c79b412f118 2025-01-14 17:02:55,407 - DEBUG - VM ctest-TestBasicPolicy-69182837-12370036 launched on Node cn-jenkins-deploy-platform-ansible-os-2627-1 2025-01-14 17:02:55,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/e91cd6cb-08fe-44e8-8177-1c79b412f118 2025-01-14 17:02:55,517 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/e73ab60c-e96f-4db2-aafa-d4066d30e2e5 2025-01-14 17:02:56,784 - 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.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.562 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.562/2.098/3.634/1.536 ms') 2025-01-14 17:02:56,784 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-69182837-12370036 passed 2025-01-14 17:02:56,937 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 17:02:56,937 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-69182837-12370036, IP 30.31.67.195, Port 22 2025-01-14 17:02:57,093 - DEBUG - VM ctest-TestBasicPolicy-69182837-12370036 is ready for SSH connections 2025-01-14 17:02:57,093 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 17:02:57,093 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.31.67.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-01-14 17:02:57,093 - DEBUG - ping -s 56 -c 3 -W 1 30.31.67.195 2025-01-14 17:03:00,801 - DEBUG - PING 30.31.67.195 (30.31.67.195): 56 data bytes 64 bytes from 30.31.67.195: seq=0 ttl=63 time=3.224 ms 64 bytes from 30.31.67.195: seq=1 ttl=63 time=1.044 ms 64 bytes from 30.31.67.195: seq=2 ttl=63 time=1.025 ms --- 30.31.67.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.025/1.764/3.224 ms 2025-01-14 17:03:00,801 - INFO - Ping to IP 30.31.67.195 from VM ctest-TestBasicPolicy-69182837-74508226 passed 2025-01-14 17:03:00,985 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2a91b940-18b3-4aef-95ee-9f41fb303411", "href": "http://10.0.0.38:8082/network-policy/2a91b940-18b3-4aef-95ee-9f41fb303411"}} 2025-01-14 17:03:00,985 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-14 17:03:00,985 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 30.31.67.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-01-14 17:03:00,985 - DEBUG - ping -s 56 -c 3 -W 1 30.31.67.195 2025-01-14 17:03:04,195 - DEBUG - PING 30.31.67.195 (30.31.67.195): 56 data bytes 64 bytes from 30.31.67.195: seq=0 ttl=63 time=1.685 ms --- 30.31.67.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.685/1.685/1.685 ms 2025-01-14 17:03:04,195 - WARNING - Ping to IP 30.31.67.195 from VM ctest-TestBasicPolicy-69182837-74508226 failed 2025-01-14 17:03:04,195 - INFO - Deleting VM ctest-TestBasicPolicy-69182837-12370036 2025-01-14 17:03:04,274 - INFO - Deleting VM ctest-TestBasicPolicy-69182837-74508226 2025-01-14 17:03:04,685 - INFO - Deleted policy ctest-policy-allow-all-23623429 2025-01-14 17:03:04,685 - INFO - Deleting VN ctest-vn-37907586 2025-01-14 17:03:04,722 - DEBUG - VN d52df1ce-ed9e-45cb-add6-7d94a356d394 still in use: Unable to complete operation on network d52df1ce-ed9e-45cb-add6-7d94a356d394. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3a971485-598a-4ebc-b8af-25c755a25c85'] 2025-01-14 17:03:04,723 - WARNING - Deleting VN ctest-vn-37907586 failed..Will retry 2025-01-14 17:03:06,838 - DEBUG - Response for deleting network () 2025-01-14 17:03:06,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a58363ba-c2a0-464d-9fcb-abaaffff4ec7 2025-01-14 17:03:06,844 - DEBUG - Response Code: 404 2025-01-14 17:03:06,844 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-01-14 17:03:06,854 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d 2025-01-14 17:03:06,913 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0 2025-01-14 17:03:07,008 - INFO - Validated that VN ctest-vn-37907586 is not found in API Server 2025-01-14 17:03:07,020 - DEBUG - VN ctest-vn-37907586 is not present in Agent 10.0.0.38 2025-01-14 17:03:07,020 - INFO - Validated that VN ctest-vn-37907586 is not in any agent 2025-01-14 17:03:07,038 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37907586 info 2025-01-14 17:03:07,038 - INFO - Deleting VN ctest-vn-09783546 2025-01-14 17:03:07,150 - DEBUG - Response for deleting network () 2025-01-14 17:03:07,150 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4a722c3-4b48-485b-a4b8-6fcf4eddecb6 2025-01-14 17:03:07,157 - DEBUG - Response Code: 404 2025-01-14 17:03:07,158 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-01-14 17:03:07,166 - DEBUG - Requesting: http://10.0.0.38:8082/domain/12ba4a17-4ae1-4aa0-9799-4e1784d62f7d 2025-01-14 17:03:07,223 - DEBUG - Requesting: http://10.0.0.38:8082/project/728282c6-5c03-4064-a154-f4b00d4d4ab0 2025-01-14 17:03:07,299 - INFO - Validated that VN ctest-vn-09783546 is not found in API Server 2025-01-14 17:03:07,311 - DEBUG - VN ctest-vn-09783546 is not present in Agent 10.0.0.38 2025-01-14 17:03:07,311 - INFO - Validated that VN ctest-vn-09783546 is not in any agent 2025-01-14 17:03:07,327 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-09783546 info 2025-01-14 17:03:07,587 - DEBUG - No XMPP flaps were noticed during the test
2025-01-14 17:03:07,587 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-01-14 17:03:07,587 - INFO - -------------------------------------------------------------------------------- 2025-01-14 17:03:08,290 - INFO - Deleted project: ctest-TestBasicPolicy-69182837, ID : 728282c6-5c03-4064-a154-f4b00d4d4ab0