2025-07-07 20:56:52,375 - INFO - Domain Default found not creating 2025-07-07 20:56:52,773 - INFO - Project ctest-TestBasicPolicy-11626485 not found, creating it 2025-07-07 20:56:53,520 - INFO - Created Project:ctest-TestBasicPolicy-11626485, ID : 4806faea-4dd2-4693-b226-2b84fac8b9e4 2025-07-07 20:56:56,042 - INFO - ================================================================================ 2025-07-07 20:56:56,043 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-07 20:56:56,043 - 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-07-07 20:56:56,383 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-07 20:56:56,384 - INFO - Initial checks done. Running the testcase now 2025-07-07 20:56:56,384 - INFO - 2025-07-07 20:56:57,256 - DEBUG - Response for create_network : {'network': {'id': '077b80c1-263a-4313-82be-e5f91d86dfbb', 'name': 'ctest-vn-76224747', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-76224747'], 'port_security_enabled': True, 'description': ''}} 2025-07-07 20:56:57,478 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fb4b02c-7e57-4a37-8111-956483792170', 'name': '', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'network_id': '077b80c1-263a-4313-82be-e5f91d86dfbb', 'ip_version': 4, 'cidr': '79.77.200.192/26', 'allocation_pools': [{'start': '79.77.200.194', 'end': '79.77.200.254'}], 'gateway_ip': '79.77.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.77.200.194', 'tags': [], 'project_id': '4806faea4dd24693b2262b84fac8b9e4'}} 2025-07-07 20:56:57,504 - INFO - Created VN ctest-vn-76224747 2025-07-07 20:56:57,566 - DEBUG - VN ctest-vn-76224747 UUID is 077b80c1-263a-4313-82be-e5f91d86dfbb 2025-07-07 20:56:58,064 - DEBUG - Response for create_network : {'network': {'id': 'a00894fe-54d0-4829-b8f4-8be86035fe8a', 'name': 'ctest-vn-66046673', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-66046673'], 'port_security_enabled': True, 'description': ''}} 2025-07-07 20:56:58,338 - DEBUG - Response for create_subnet : {'subnet': {'id': '925033c2-dd7b-46cd-8b90-55f183069802', 'name': '', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'network_id': 'a00894fe-54d0-4829-b8f4-8be86035fe8a', 'ip_version': 4, 'cidr': '112.185.6.192/26', 'allocation_pools': [{'start': '112.185.6.194', 'end': '112.185.6.254'}], 'gateway_ip': '112.185.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.185.6.194', 'tags': [], 'project_id': '4806faea4dd24693b2262b84fac8b9e4'}} 2025-07-07 20:56:58,375 - INFO - Created VN ctest-vn-66046673 2025-07-07 20:56:58,438 - DEBUG - VN ctest-vn-66046673 UUID is a00894fe-54d0-4829-b8f4-8be86035fe8a 2025-07-07 20:56:58,597 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747, 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-11626485:ctest-vn-66046673, 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-07-07 20:56:59,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '077b80c1-263a-4313-82be-e5f91d86dfbb', 'name': 'ctest-vn-76224747', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1fb4b02c-7e57-4a37-8111-956483792170'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-76224747'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704']], 'subnet_ipam': [{'subnet_cidr': '79.77.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-07 20:56:59,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a00894fe-54d0-4829-b8f4-8be86035fe8a', 'name': 'ctest-vn-66046673', 'tenant_id': '4806faea4dd24693b2262b84fac8b9e4', 'project_id': '4806faea4dd24693b2262b84fac8b9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['925033c2-dd7b-46cd-8b90-55f183069802'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-vn-66046673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704']], 'subnet_ipam': [{'subnet_cidr': '112.185.6.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-07 20:56:59,582 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 20:56:59,947 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 20:57:00,005 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532 2025-07-07 20:57:00,034 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4 2025-07-07 20:57:00,157 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb 2025-07-07 20:57:00,175 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb 2025-07-07 20:57:00,189 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c 2025-07-07 20:57:00,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c 2025-07-07 20:57:00,210 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c5034b1-a029-45cd-8cf2-7127192bdced 2025-07-07 20:57:00,218 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-07 20:57:00,218 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb 2025-07-07 20:57:00,231 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c 2025-07-07 20:57:00,252 - INFO - Verified VN network id 8 for VN 077b80c1-263a-4313-82be-e5f91d86dfbb 2025-07-07 20:57:00,252 - INFO - Verifications in API Server for VN ctest-vn-76224747 passed 2025-07-07 20:57:00,252 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb 2025-07-07 20:57:00,267 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c 2025-07-07 20:57:00,277 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c 2025-07-07 20:57:00,287 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2c5034b1-a029-45cd-8cf2-7127192bdced 2025-07-07 20:57:00,301 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11626485', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '539166147459302163', 'uuid-lslong': '9421220328610652091'}, 'enable': 'true', 'created': '2025-07-07T20:56:57', 'last-modified': '2025-07-07T20:56:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.303684'} 2025-07-07 20:57:00,308 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-07 20:57:00,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76224747 passed 2025-07-07 20:57:00,309 - DEBUG - ====Verifying policy data for ctest-vn-76224747 in API_Server ====== 2025-07-07 20:57:00,309 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 20:57:00,317 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532 2025-07-07 20:57:00,332 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4 2025-07-07 20:57:00,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/077b80c1-263a-4313-82be-e5f91d86dfbb 2025-07-07 20:57:00,444 - DEBUG - ==>Verifying data for policy with id: 0f46cecf-6e2b-4e4a-99f5-2f97899f3693, fqn: ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704'] 2025-07-07 20:57:00,444 - INFO - VN ctest-vn-76224747 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-07 20:57:00,445 - DEBUG - Verifying the vn in opserver 2025-07-07 20:57:00,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747 virtual network link through opserver 10.0.0.50 2025-07-07 20:57:00,445 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-07 20:57:00,745 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-07 20:57:00,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747?flat'} 2025-07-07 20:57:00,805 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747 is found in opserver 2025-07-07 20:57:00,819 - DEBUG - Do not have enough data to verify VN in agent 2025-07-07 20:57:00,830 - DEBUG - VRF ids for VN ctest-vn-76224747: {} 2025-07-07 20:57:00,830 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 20:57:00,838 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532 2025-07-07 20:57:00,856 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4 2025-07-07 20:57:00,955 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a 2025-07-07 20:57:00,973 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a 2025-07-07 20:57:00,986 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744 2025-07-07 20:57:00,995 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744 2025-07-07 20:57:01,007 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/966ecd3e-e973-4bd5-bf96-8dff9ea8d3da 2025-07-07 20:57:01,017 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-07 20:57:01,017 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a 2025-07-07 20:57:01,031 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744 2025-07-07 20:57:01,053 - INFO - Verified VN network id 9 for VN a00894fe-54d0-4829-b8f4-8be86035fe8a 2025-07-07 20:57:01,053 - INFO - Verifications in API Server for VN ctest-vn-66046673 passed 2025-07-07 20:57:01,054 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a 2025-07-07 20:57:01,068 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744 2025-07-07 20:57:01,085 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744 2025-07-07 20:57:01,103 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/966ecd3e-e973-4bd5-bf96-8dff9ea8d3da 2025-07-07 20:57:01,121 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11626485', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11531630665947695145', 'uuid-lslong': '13327431027458965130'}, 'enable': 'true', 'created': '2025-07-07T20:56:58', 'last-modified': '2025-07-07T20:56:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.753353'} 2025-07-07 20:57:01,128 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-07 20:57:01,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66046673 passed 2025-07-07 20:57:01,128 - DEBUG - ====Verifying policy data for ctest-vn-66046673 in API_Server ====== 2025-07-07 20:57:01,128 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 20:57:01,134 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532 2025-07-07 20:57:01,148 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4 2025-07-07 20:57:01,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a00894fe-54d0-4829-b8f4-8be86035fe8a 2025-07-07 20:57:01,243 - DEBUG - ==>Verifying data for policy with id: 0f46cecf-6e2b-4e4a-99f5-2f97899f3693, fqn: ['default-domain', 'ctest-TestBasicPolicy-11626485', 'ctest-policy-allow-all-51625704'] 2025-07-07 20:57:01,243 - INFO - VN ctest-vn-66046673 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-07 20:57:01,243 - DEBUG - Verifying the vn in opserver 2025-07-07 20:57:01,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673 virtual network link through opserver 10.0.0.50 2025-07-07 20:57:01,243 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-07 20:57:01,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673?flat'} 2025-07-07 20:57:01,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-66046673 is found in opserver 2025-07-07 20:57:01,264 - DEBUG - Do not have enough data to verify VN in agent 2025-07-07 20:57:01,269 - DEBUG - VRF ids for VN ctest-vn-66046673: {} 2025-07-07 20:57:01,330 - DEBUG - Services list from nova: [, , ] 2025-07-07 20:57:02,438 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3609-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3609-1) 2025-07-07 20:57:03,807 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3609-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3609-1) 2025-07-07 20:57:03,807 - INFO - Waiting for VM ctest-TestBasicPolicy-11626485-72751164 to be up.. 2025-07-07 20:57:03,884 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-07 20:57:09,075 - DEBUG - VM is in ACTIVE state now 2025-07-07 20:57:09,075 - INFO - VM name : ctest-TestBasicPolicy-11626485-72751164 2025-07-07 20:57:09,207 - DEBUG - VM ctest-TestBasicPolicy-11626485-72751164 ID is 634c7643-69c9-4586-b436-fc93eefe6eeb 2025-07-07 20:57:09,253 - DEBUG - VM ctest-TestBasicPolicy-11626485-72751164 launched on Node cn-jenkins-deploy-platform-ansible-os-3609-1 2025-07-07 20:57:09,428 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/634c7643-69c9-4586-b436-fc93eefe6eeb 2025-07-07 20:57:09,444 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/5e5cdb75-55a4-42ae-abe8-bb383638f4a1 2025-07-07 20:57:12,754 - 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 1013ms') 2025-07-07 20:57:12,754 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11626485-72751164 failed! 2025-07-07 20:57:12,826 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-11626485:ctest-vn-76224747 is 79.77.200.193 and allocation pool is NOT set 2025-07-07 20:57:14,900 - 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=25.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.646 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.646/13.029/25.412/12.383 ms') 2025-07-07 20:57:14,900 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-11626485-72751164 passed 2025-07-07 20:57:15,078 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 20:57:15,078 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11626485-72751164, IP 79.77.200.195, Port 22 2025-07-07 20:57:15,160 - 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-07-07 20:57:15,340 - DEBUG - VM ctest-TestBasicPolicy-11626485-72751164 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-07 20:57:20,341 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 20:57:20,341 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11626485-72751164, IP 79.77.200.195, Port 22 2025-07-07 20:57:20,510 - DEBUG - VM ctest-TestBasicPolicy-11626485-72751164 is ready for SSH connections 2025-07-07 20:57:20,511 - INFO - Waiting for VM ctest-TestBasicPolicy-11626485-39808204 to be up.. 2025-07-07 20:57:20,598 - DEBUG - VM is in ACTIVE state now 2025-07-07 20:57:20,598 - INFO - VM name : ctest-TestBasicPolicy-11626485-39808204 2025-07-07 20:57:20,689 - DEBUG - VM ctest-TestBasicPolicy-11626485-39808204 ID is 3d3cd9fa-0cd6-4060-b2a4-322b620cc89e 2025-07-07 20:57:20,689 - DEBUG - VM ctest-TestBasicPolicy-11626485-39808204 launched on Node cn-jenkins-deploy-platform-ansible-os-3609-1 2025-07-07 20:57:20,795 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/3d3cd9fa-0cd6-4060-b2a4-322b620cc89e 2025-07-07 20:57:20,811 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/d601e041-5471-4534-9cfc-9a01e822adb9 2025-07-07 20:57:22,090 - 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=10.5 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.691 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.691/5.572/10.453/4.881 ms') 2025-07-07 20:57:22,091 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-11626485-39808204 passed 2025-07-07 20:57:22,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 20:57:22,270 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-11626485-39808204, IP 112.185.6.195, Port 22 2025-07-07 20:57:22,459 - DEBUG - VM ctest-TestBasicPolicy-11626485-39808204 is ready for SSH connections 2025-07-07 20:57:22,460 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 20:57:22,460 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.185.6.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-07 20:57:22,461 - DEBUG - ping -s 56 -c 3 -W 1 112.185.6.195 2025-07-07 20:57:26,867 - DEBUG - PING 112.185.6.195 (112.185.6.195): 56 data bytes 64 bytes from 112.185.6.195: seq=0 ttl=63 time=4.773 ms 64 bytes from 112.185.6.195: seq=1 ttl=63 time=1.984 ms 64 bytes from 112.185.6.195: seq=2 ttl=63 time=1.932 ms --- 112.185.6.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.932/2.896/4.773 ms 2025-07-07 20:57:26,868 - INFO - Ping to IP 112.185.6.195 from VM ctest-TestBasicPolicy-11626485-72751164 passed 2025-07-07 20:57:27,149 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0f46cecf-6e2b-4e4a-99f5-2f97899f3693", "href": "http://10.0.0.50:8082/network-policy/0f46cecf-6e2b-4e4a-99f5-2f97899f3693"}} 2025-07-07 20:57:27,150 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 20:57:27,150 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 112.185.6.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-07-07 20:57:27,151 - DEBUG - ping -s 56 -c 3 -W 1 112.185.6.195 2025-07-07 20:57:30,446 - DEBUG - PING 112.185.6.195 (112.185.6.195): 56 data bytes --- 112.185.6.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-07 20:57:30,446 - WARNING - Ping to IP 112.185.6.195 from VM ctest-TestBasicPolicy-11626485-72751164 failed 2025-07-07 20:57:30,451 - INFO - Deleting VM ctest-TestBasicPolicy-11626485-39808204 2025-07-07 20:57:30,519 - INFO - Deleting VM ctest-TestBasicPolicy-11626485-72751164 2025-07-07 20:57:31,044 - INFO - Deleted policy ctest-policy-allow-all-51625704 2025-07-07 20:57:31,045 - INFO - Deleting VN ctest-vn-66046673 2025-07-07 20:57:31,086 - DEBUG - VN a00894fe-54d0-4829-b8f4-8be86035fe8a still in use: Unable to complete operation on network a00894fe-54d0-4829-b8f4-8be86035fe8a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-91f0741f-e438-422f-aac8-e26402c93c55'] 2025-07-07 20:57:31,086 - WARNING - Deleting VN ctest-vn-66046673 failed..Will retry 2025-07-07 20:57:33,291 - DEBUG - Response for deleting network () 2025-07-07 20:57:33,291 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/38b8d3d7-1a3f-48bf-b7f2-2ad494393744 2025-07-07 20:57:33,305 - DEBUG - Response Code: 404 2025-07-07 20:57:33,306 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 20:57:33,319 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532 2025-07-07 20:57:33,336 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4 2025-07-07 20:57:33,460 - INFO - Validated that VN ctest-vn-66046673 is not found in API Server 2025-07-07 20:57:33,486 - DEBUG - VN ctest-vn-66046673 is not present in Agent 10.0.0.50 2025-07-07 20:57:33,486 - INFO - Validated that VN ctest-vn-66046673 is not in any agent 2025-07-07 20:57:33,528 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66046673 info 2025-07-07 20:57:33,528 - INFO - Deleting VN ctest-vn-76224747 2025-07-07 20:57:33,811 - DEBUG - Response for deleting network () 2025-07-07 20:57:33,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/058c2f9b-fd79-4506-83e0-62d0d989832c 2025-07-07 20:57:33,829 - DEBUG - Response Code: 404 2025-07-07 20:57:33,829 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-07 20:57:33,840 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0dbb74ba-edee-487f-bd00-4bc5e4285532 2025-07-07 20:57:33,863 - DEBUG - Requesting: http://10.0.0.50:8082/project/4806faea-4dd2-4693-b226-2b84fac8b9e4 2025-07-07 20:57:33,955 - INFO - Validated that VN ctest-vn-76224747 is not found in API Server 2025-07-07 20:57:33,974 - DEBUG - VN ctest-vn-76224747 is not present in Agent 10.0.0.50 2025-07-07 20:57:33,974 - INFO - Validated that VN ctest-vn-76224747 is not in any agent 2025-07-07 20:57:34,004 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76224747 info 2025-07-07 20:57:34,320 - DEBUG - No XMPP flaps were noticed during the test
2025-07-07 20:57:34,321 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2025-07-07 20:57:34,321 - INFO - -------------------------------------------------------------------------------- 2025-07-07 20:57:35,166 - INFO - Deleted project: ctest-TestBasicPolicy-11626485, ID : 4806faea-4dd2-4693-b226-2b84fac8b9e4