2025-02-05 18:13:57,561 - INFO - Domain Default found not creating 2025-02-05 18:13:57,892 - INFO - Project ctest-TestBasicPolicy-04985178 not found, creating it 2025-02-05 18:13:58,526 - INFO - Created Project:ctest-TestBasicPolicy-04985178, ID : 02071802-bfd9-44c0-bbf5-af35f6748a6d 2025-02-05 18:14:00,465 - INFO - ================================================================================ 2025-02-05 18:14:00,465 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-05 18:14:00,465 - 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-02-05 18:14:00,750 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.13': '0'}} with 2025-02-05 18:14:00,751 - INFO - Initial checks done. Running the testcase now 2025-02-05 18:14:00,751 - INFO - 2025-02-05 18:14:01,463 - DEBUG - Response for create_network : {'network': {'id': '0f48e78b-df20-4225-b99f-1e1dc66f9506', 'name': 'ctest-vn-58852754', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-58852754'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 18:14:01,713 - DEBUG - Response for create_subnet : {'subnet': {'id': '432350b7-88b4-40a9-a5f5-75243117c980', 'name': '', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'network_id': '0f48e78b-df20-4225-b99f-1e1dc66f9506', 'ip_version': 4, 'cidr': '193.199.72.64/26', 'allocation_pools': [{'start': '193.199.72.66', 'end': '193.199.72.126'}], 'gateway_ip': '193.199.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.199.72.66', 'tags': [], 'project_id': '02071802bfd944c0bbf5af35f6748a6d'}} 2025-02-05 18:14:01,738 - INFO - Created VN ctest-vn-58852754 2025-02-05 18:14:01,794 - DEBUG - VN ctest-vn-58852754 UUID is 0f48e78b-df20-4225-b99f-1e1dc66f9506 2025-02-05 18:14:02,210 - DEBUG - Response for create_network : {'network': {'id': '99aa4029-cf4c-4f4f-aa73-a746815abf8c', 'name': 'ctest-vn-92743289', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-92743289'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 18:14:02,483 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc8331d1-21e0-4332-8d0e-a36236acd674', 'name': '', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'network_id': '99aa4029-cf4c-4f4f-aa73-a746815abf8c', 'ip_version': 4, 'cidr': '142.205.194.0/26', 'allocation_pools': [{'start': '142.205.194.2', 'end': '142.205.194.62'}], 'gateway_ip': '142.205.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.205.194.2', 'tags': [], 'project_id': '02071802bfd944c0bbf5af35f6748a6d'}} 2025-02-05 18:14:02,511 - INFO - Created VN ctest-vn-92743289 2025-02-05 18:14:02,574 - DEBUG - VN ctest-vn-92743289 UUID is 99aa4029-cf4c-4f4f-aa73-a746815abf8c 2025-02-05 18:14:02,727 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754, 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-04985178:ctest-vn-92743289, 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-02-05 18:14:03,098 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f48e78b-df20-4225-b99f-1e1dc66f9506', 'name': 'ctest-vn-58852754', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['432350b7-88b4-40a9-a5f5-75243117c980'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-58852754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279']], 'subnet_ipam': [{'subnet_cidr': '193.199.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-05 18:14:03,404 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99aa4029-cf4c-4f4f-aa73-a746815abf8c', 'name': 'ctest-vn-92743289', 'tenant_id': '02071802bfd944c0bbf5af35f6748a6d', 'project_id': '02071802bfd944c0bbf5af35f6748a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dc8331d1-21e0-4332-8d0e-a36236acd674'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-vn-92743289'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279']], 'subnet_ipam': [{'subnet_cidr': '142.205.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-05 18:14:03,569 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-05 18:14:03,885 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-05 18:14:03,936 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222 2025-02-05 18:14:03,960 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d 2025-02-05 18:14:04,058 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506 2025-02-05 18:14:04,075 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506 2025-02-05 18:14:04,088 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb 2025-02-05 18:14:04,099 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb 2025-02-05 18:14:04,111 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b41704fe-c7e8-4d4a-a953-0c45a8dc3861 2025-02-05 18:14:04,123 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-05 18:14:04,123 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506 2025-02-05 18:14:04,138 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb 2025-02-05 18:14:04,160 - INFO - Verified VN network id 9 for VN 0f48e78b-df20-4225-b99f-1e1dc66f9506 2025-02-05 18:14:04,160 - INFO - Verifications in API Server for VN ctest-vn-58852754 passed 2025-02-05 18:14:04,161 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506 2025-02-05 18:14:04,175 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb 2025-02-05 18:14:04,186 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb 2025-02-05 18:14:04,197 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/b41704fe-c7e8-4d4a-a953-0c45a8dc3861 2025-02-05 18:14:04,221 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04985178', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1101384696821989925', 'uuid-lslong': '13375442531545748742'}, 'enable': 'true', 'created': '2025-02-05T18:14:01', 'last-modified': '2025-02-05T18:14:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.150434'} 2025-02-05 18:14:04,234 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-05 18:14:04,234 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58852754 passed 2025-02-05 18:14:04,235 - DEBUG - ====Verifying policy data for ctest-vn-58852754 in API_Server ====== 2025-02-05 18:14:04,235 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-05 18:14:04,243 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222 2025-02-05 18:14:04,260 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d 2025-02-05 18:14:04,362 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0f48e78b-df20-4225-b99f-1e1dc66f9506 2025-02-05 18:14:04,381 - DEBUG - ==>Verifying data for policy with id: ab9cfbad-bcd0-4b92-87dc-7abe636944ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279'] 2025-02-05 18:14:04,381 - INFO - VN ctest-vn-58852754 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-05 18:14:04,381 - DEBUG - Verifying the vn in opserver 2025-02-05 18:14:04,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754 virtual network link through opserver 10.0.0.12 2025-02-05 18:14:04,381 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-05 18:14:04,727 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-05 18:14:04,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754?flat'} 2025-02-05 18:14:04,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754 is found in opserver 2025-02-05 18:14:04,897 - DEBUG - Do not have enough data to verify VN in agent 2025-02-05 18:14:04,906 - DEBUG - VRF ids for VN ctest-vn-58852754: {} 2025-02-05 18:14:04,906 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-05 18:14:04,916 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222 2025-02-05 18:14:04,937 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d 2025-02-05 18:14:05,047 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c 2025-02-05 18:14:05,071 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c 2025-02-05 18:14:05,090 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7 2025-02-05 18:14:05,102 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7 2025-02-05 18:14:05,117 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/32ebfcee-e480-4525-aee7-89b4b160b798 2025-02-05 18:14:05,131 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-05 18:14:05,131 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c 2025-02-05 18:14:05,149 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7 2025-02-05 18:14:05,176 - INFO - Verified VN network id 10 for VN 99aa4029-cf4c-4f4f-aa73-a746815abf8c 2025-02-05 18:14:05,176 - INFO - Verifications in API Server for VN ctest-vn-92743289 passed 2025-02-05 18:14:05,176 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c 2025-02-05 18:14:05,194 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7 2025-02-05 18:14:05,208 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7 2025-02-05 18:14:05,220 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/32ebfcee-e480-4525-aee7-89b4b160b798 2025-02-05 18:14:05,243 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04985178', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11072733182159507279', 'uuid-lslong': '12282344530029232012'}, 'enable': 'true', 'created': '2025-02-05T18:14:02', 'last-modified': '2025-02-05T18:14:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.873125'} 2025-02-05 18:14:05,259 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-05 18:14:05,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92743289 passed 2025-02-05 18:14:05,260 - DEBUG - ====Verifying policy data for ctest-vn-92743289 in API_Server ====== 2025-02-05 18:14:05,260 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-05 18:14:05,270 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222 2025-02-05 18:14:05,294 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d 2025-02-05 18:14:05,393 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99aa4029-cf4c-4f4f-aa73-a746815abf8c 2025-02-05 18:14:05,410 - DEBUG - ==>Verifying data for policy with id: ab9cfbad-bcd0-4b92-87dc-7abe636944ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-04985178', 'ctest-policy-allow-all-97914279'] 2025-02-05 18:14:05,411 - INFO - VN ctest-vn-92743289 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-05 18:14:05,411 - DEBUG - Verifying the vn in opserver 2025-02-05 18:14:05,411 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289 virtual network link through opserver 10.0.0.12 2025-02-05 18:14:05,411 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-02-05 18:14:05,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289?flat'} 2025-02-05 18:14:05,431 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-92743289 is found in opserver 2025-02-05 18:14:05,459 - DEBUG - Do not have enough data to verify VN in agent 2025-02-05 18:14:05,470 - DEBUG - VRF ids for VN ctest-vn-92743289: {} 2025-02-05 18:14:05,573 - DEBUG - Services list from nova: [, , ] 2025-02-05 18:14:07,078 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2695-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2695-1) 2025-02-05 18:14:08,528 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2695-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2695-1) 2025-02-05 18:14:08,528 - INFO - Waiting for VM ctest-TestBasicPolicy-04985178-01689415 to be up.. 2025-02-05 18:14:08,630 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-05 18:14:13,813 - DEBUG - VM is in ACTIVE state now 2025-02-05 18:14:13,814 - INFO - VM name : ctest-TestBasicPolicy-04985178-01689415 2025-02-05 18:14:13,950 - DEBUG - VM ctest-TestBasicPolicy-04985178-01689415 ID is c65e24fe-17e0-4159-8485-25655ec105f6 2025-02-05 18:14:13,975 - DEBUG - VM ctest-TestBasicPolicy-04985178-01689415 launched on Node cn-jenkins-deploy-platform-ansible-os-2695-1 2025-02-05 18:14:14,076 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/c65e24fe-17e0-4159-8485-25655ec105f6 2025-02-05 18:14:14,092 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/58cb104e-f19c-4c8e-b961-3bbe41d16058 2025-02-05 18:14:17,399 - 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 1016ms') 2025-02-05 18:14:17,400 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04985178-01689415 failed! 2025-02-05 18:14:17,463 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04985178:ctest-vn-58852754 is 193.199.72.65 and allocation pool is NOT set 2025-02-05 18:14:21,562 - 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=2 ttl=63 time=13.9 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1020ms\r\nrtt min/avg/max/mdev = 13.879/13.879/13.879/0.000 ms') 2025-02-05 18:14:21,562 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04985178-01689415 passed 2025-02-05 18:14:21,729 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 18:14:21,730 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04985178-01689415, IP 193.199.72.67, Port 22 2025-02-05 18:14:21,807 - 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-02-05 18:14:21,923 - DEBUG - VM ctest-TestBasicPolicy-04985178-01689415 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-05 18:14:26,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 18:14:26,924 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04985178-01689415, IP 193.199.72.67, Port 22 2025-02-05 18:14:27,121 - DEBUG - VM ctest-TestBasicPolicy-04985178-01689415 is ready for SSH connections 2025-02-05 18:14:27,122 - INFO - Waiting for VM ctest-TestBasicPolicy-04985178-82063180 to be up.. 2025-02-05 18:14:27,277 - DEBUG - VM is in ACTIVE state now 2025-02-05 18:14:27,277 - INFO - VM name : ctest-TestBasicPolicy-04985178-82063180 2025-02-05 18:14:27,390 - DEBUG - VM ctest-TestBasicPolicy-04985178-82063180 ID is 5c1b4597-d3a1-49c5-b3e9-075ed65c4050 2025-02-05 18:14:27,390 - DEBUG - VM ctest-TestBasicPolicy-04985178-82063180 launched on Node cn-jenkins-deploy-platform-ansible-os-2695-1 2025-02-05 18:14:27,516 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/5c1b4597-d3a1-49c5-b3e9-075ed65c4050 2025-02-05 18:14:27,534 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/4bbd7b9d-fffb-4ce7-a021-23623d9226d9 2025-02-05 18:14:28,828 - 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=6.92 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.765 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.765/3.840/6.915/3.075 ms') 2025-02-05 18:14:28,829 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04985178-82063180 passed 2025-02-05 18:14:29,010 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 18:14:29,011 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04985178-82063180, IP 142.205.194.3, Port 22 2025-02-05 18:14:29,205 - DEBUG - VM ctest-TestBasicPolicy-04985178-82063180 is ready for SSH connections 2025-02-05 18:14:29,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 18:14:29,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.205.194.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-02-05 18:14:29,206 - DEBUG - ping -s 56 -c 3 -W 1 142.205.194.3 2025-02-05 18:14:33,563 - DEBUG - PING 142.205.194.3 (142.205.194.3): 56 data bytes 64 bytes from 142.205.194.3: seq=0 ttl=63 time=5.528 ms 64 bytes from 142.205.194.3: seq=1 ttl=63 time=1.736 ms 64 bytes from 142.205.194.3: seq=2 ttl=63 time=1.452 ms --- 142.205.194.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.452/2.905/5.528 ms 2025-02-05 18:14:33,564 - INFO - Ping to IP 142.205.194.3 from VM ctest-TestBasicPolicy-04985178-01689415 passed 2025-02-05 18:14:33,821 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ab9cfbad-bcd0-4b92-87dc-7abe636944ac", "href": "http://10.0.0.12:8082/network-policy/ab9cfbad-bcd0-4b92-87dc-7abe636944ac"}} 2025-02-05 18:14:33,822 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 18:14:33,822 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.205.194.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-02-05 18:14:33,822 - DEBUG - ping -s 56 -c 3 -W 1 142.205.194.3 2025-02-05 18:14:37,059 - DEBUG - PING 142.205.194.3 (142.205.194.3): 56 data bytes --- 142.205.194.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-02-05 18:14:37,059 - WARNING - Ping to IP 142.205.194.3 from VM ctest-TestBasicPolicy-04985178-01689415 failed 2025-02-05 18:14:37,060 - INFO - Deleting VM ctest-TestBasicPolicy-04985178-82063180 2025-02-05 18:14:37,173 - INFO - Deleting VM ctest-TestBasicPolicy-04985178-01689415 2025-02-05 18:14:37,959 - INFO - Deleted policy ctest-policy-allow-all-97914279 2025-02-05 18:14:37,959 - INFO - Deleting VN ctest-vn-92743289 2025-02-05 18:14:38,037 - DEBUG - VN 99aa4029-cf4c-4f4f-aa73-a746815abf8c still in use: Unable to complete operation on network 99aa4029-cf4c-4f4f-aa73-a746815abf8c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-d75d15d7-994e-4974-88db-0baf13b0d15a'] 2025-02-05 18:14:38,038 - WARNING - Deleting VN ctest-vn-92743289 failed..Will retry 2025-02-05 18:14:40,256 - DEBUG - Response for deleting network () 2025-02-05 18:14:40,256 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9fc1d8ce-25d1-43e7-bbc5-1a8d593072e7 2025-02-05 18:14:40,266 - DEBUG - Response Code: 404 2025-02-05 18:14:40,267 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-05 18:14:40,274 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222 2025-02-05 18:14:40,339 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d 2025-02-05 18:14:40,465 - INFO - Validated that VN ctest-vn-92743289 is not found in API Server 2025-02-05 18:14:40,493 - DEBUG - VN ctest-vn-92743289 is not present in Agent 10.0.0.12 2025-02-05 18:14:40,493 - INFO - Validated that VN ctest-vn-92743289 is not in any agent 2025-02-05 18:14:40,545 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92743289 info 2025-02-05 18:14:40,545 - INFO - Deleting VN ctest-vn-58852754 2025-02-05 18:14:40,773 - DEBUG - Response for deleting network () 2025-02-05 18:14:40,773 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f4222d9d-f050-4fb7-b5af-fa095656a4fb 2025-02-05 18:14:40,786 - DEBUG - Response Code: 404 2025-02-05 18:14:40,787 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-02-05 18:14:40,795 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9f55508c-d2e3-4d39-853b-e69a4a639222 2025-02-05 18:14:40,817 - DEBUG - Requesting: http://10.0.0.12:8082/project/02071802-bfd9-44c0-bbf5-af35f6748a6d 2025-02-05 18:14:40,916 - INFO - Validated that VN ctest-vn-58852754 is not found in API Server 2025-02-05 18:14:40,938 - DEBUG - VN ctest-vn-58852754 is not present in Agent 10.0.0.12 2025-02-05 18:14:40,938 - INFO - Validated that VN ctest-vn-58852754 is not in any agent 2025-02-05 18:14:40,970 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58852754 info 2025-02-05 18:14:41,295 - DEBUG - No XMPP flaps were noticed during the test 2025-02-05 18:14:41,295 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41] 2025-02-05 18:14:41,295 - INFO - -------------------------------------------------------------------------------- 2025-02-05 18:14:42,265 - INFO - Deleted project: ctest-TestBasicPolicy-04985178, ID : 02071802-bfd9-44c0-bbf5-af35f6748a6d