2025-01-27 02:25:01,004 - INFO - Domain Default found not creating 2025-01-27 02:25:01,211 - INFO - Project ctest-TestBasicPolicy-25217702 not found, creating it 2025-01-27 02:25:01,772 - INFO - Created Project:ctest-TestBasicPolicy-25217702, ID : 29f6a931-6e8a-4d57-8a1e-485d53963e82 2025-01-27 02:25:03,440 - INFO - ================================================================================ 2025-01-27 02:25:03,440 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-27 02:25:03,440 - 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-27 02:25:03,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2025-01-27 02:25:03,714 - INFO - Initial checks done. Running the testcase now 2025-01-27 02:25:03,714 - INFO - 2025-01-27 02:25:04,359 - DEBUG - Response for create_network : {'network': {'id': '390e7b7c-df3b-4391-905e-4bd080302ac4', 'name': 'ctest-vn-89250180', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-89250180'], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:25:04,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bed6c036-cea4-45dd-adc1-caa3789b3ca1', 'name': '', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'network_id': '390e7b7c-df3b-4391-905e-4bd080302ac4', 'ip_version': 4, 'cidr': '97.131.186.64/26', 'allocation_pools': [{'start': '97.131.186.66', 'end': '97.131.186.126'}], 'gateway_ip': '97.131.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.131.186.66', 'tags': [], 'project_id': '29f6a9316e8a4d578a1e485d53963e82'}} 2025-01-27 02:25:04,605 - INFO - Created VN ctest-vn-89250180 2025-01-27 02:25:04,663 - DEBUG - VN ctest-vn-89250180 UUID is 390e7b7c-df3b-4391-905e-4bd080302ac4 2025-01-27 02:25:05,034 - DEBUG - Response for create_network : {'network': {'id': '66b33e9e-1464-4050-bdf3-8931b3103b72', 'name': 'ctest-vn-53034203', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-53034203'], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:25:05,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '54f158a9-f7cd-4fa0-b807-ce527b369f4b', 'name': '', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'network_id': '66b33e9e-1464-4050-bdf3-8931b3103b72', 'ip_version': 4, 'cidr': '214.35.3.0/26', 'allocation_pools': [{'start': '214.35.3.2', 'end': '214.35.3.62'}], 'gateway_ip': '214.35.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.35.3.2', 'tags': [], 'project_id': '29f6a9316e8a4d578a1e485d53963e82'}} 2025-01-27 02:25:05,274 - INFO - Created VN ctest-vn-53034203 2025-01-27 02:25:05,331 - DEBUG - VN ctest-vn-53034203 UUID is 66b33e9e-1464-4050-bdf3-8931b3103b72 2025-01-27 02:25:05,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180, 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-25217702:ctest-vn-53034203, 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-27 02:25:05,808 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '390e7b7c-df3b-4391-905e-4bd080302ac4', 'name': 'ctest-vn-89250180', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bed6c036-cea4-45dd-adc1-caa3789b3ca1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-89250180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015']], 'subnet_ipam': [{'subnet_cidr': '97.131.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:25:06,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66b33e9e-1464-4050-bdf3-8931b3103b72', 'name': 'ctest-vn-53034203', 'tenant_id': '29f6a9316e8a4d578a1e485d53963e82', 'project_id': '29f6a9316e8a4d578a1e485d53963e82', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54f158a9-f7cd-4fa0-b807-ce527b369f4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-vn-53034203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015']], 'subnet_ipam': [{'subnet_cidr': '214.35.3.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:25:06,259 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-27 02:25:06,569 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-27 02:25:06,610 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c 2025-01-27 02:25:06,630 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82 2025-01-27 02:25:06,717 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4 2025-01-27 02:25:06,731 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4 2025-01-27 02:25:06,744 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d 2025-01-27 02:25:06,754 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d 2025-01-27 02:25:06,764 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/51d3fdd0-f47b-4934-ba25-911b88011373 2025-01-27 02:25:06,772 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-27 02:25:06,772 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4 2025-01-27 02:25:06,784 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d 2025-01-27 02:25:06,804 - INFO - Verified VN network id 7 for VN 390e7b7c-df3b-4391-905e-4bd080302ac4 2025-01-27 02:25:06,804 - INFO - Verifications in API Server for VN ctest-vn-89250180 passed 2025-01-27 02:25:06,804 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4 2025-01-27 02:25:06,817 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d 2025-01-27 02:25:06,826 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d 2025-01-27 02:25:06,836 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/51d3fdd0-f47b-4934-ba25-911b88011373 2025-01-27 02:25:06,852 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25217702', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4111359286087205777', 'uuid-lslong': '10402835548148345540'}, 'enable': 'true', 'created': '2025-01-27T02:25:04', 'last-modified': '2025-01-27T02:25:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087383'} 2025-01-27 02:25:06,860 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-27 02:25:06,860 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89250180 passed 2025-01-27 02:25:06,861 - DEBUG - ====Verifying policy data for ctest-vn-89250180 in API_Server ====== 2025-01-27 02:25:06,861 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-27 02:25:06,869 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c 2025-01-27 02:25:06,888 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82 2025-01-27 02:25:06,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/390e7b7c-df3b-4391-905e-4bd080302ac4 2025-01-27 02:25:06,984 - DEBUG - ==>Verifying data for policy with id: 4f814c4a-788c-41cf-86f7-6670265c135f, fqn: ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015'] 2025-01-27 02:25:06,984 - INFO - VN ctest-vn-89250180 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-27 02:25:06,984 - DEBUG - Verifying the vn in opserver 2025-01-27 02:25:06,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180 virtual network link through opserver 10.0.0.33 2025-01-27 02:25:06,985 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-27 02:25:07,287 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-27 02:25:07,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180?flat'} 2025-01-27 02:25:07,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180 is found in opserver 2025-01-27 02:25:07,370 - DEBUG - Do not have enough data to verify VN in agent 2025-01-27 02:25:07,376 - DEBUG - VRF ids for VN ctest-vn-89250180: {} 2025-01-27 02:25:07,376 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-27 02:25:07,384 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c 2025-01-27 02:25:07,400 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82 2025-01-27 02:25:07,483 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72 2025-01-27 02:25:07,499 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72 2025-01-27 02:25:07,511 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6 2025-01-27 02:25:07,521 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6 2025-01-27 02:25:07,531 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d6db415f-b496-47f6-b22d-7de19d95b928 2025-01-27 02:25:07,540 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:25:07,540 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72 2025-01-27 02:25:07,555 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6 2025-01-27 02:25:07,579 - INFO - Verified VN network id 8 for VN 66b33e9e-1464-4050-bdf3-8931b3103b72 2025-01-27 02:25:07,579 - INFO - Verifications in API Server for VN ctest-vn-53034203 passed 2025-01-27 02:25:07,579 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72 2025-01-27 02:25:07,595 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6 2025-01-27 02:25:07,608 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6 2025-01-27 02:25:07,619 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d6db415f-b496-47f6-b22d-7de19d95b928 2025-01-27 02:25:07,639 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25217702', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7400327461367726160', 'uuid-lslong': '13687434539059657586'}, 'enable': 'true', 'created': '2025-01-27T02:25:04', 'last-modified': '2025-01-27T02:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.595573'} 2025-01-27 02:25:07,648 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:25:07,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53034203 passed 2025-01-27 02:25:07,648 - DEBUG - ====Verifying policy data for ctest-vn-53034203 in API_Server ====== 2025-01-27 02:25:07,648 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-27 02:25:07,657 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c 2025-01-27 02:25:07,675 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82 2025-01-27 02:25:07,756 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/66b33e9e-1464-4050-bdf3-8931b3103b72 2025-01-27 02:25:07,771 - DEBUG - ==>Verifying data for policy with id: 4f814c4a-788c-41cf-86f7-6670265c135f, fqn: ['default-domain', 'ctest-TestBasicPolicy-25217702', 'ctest-policy-allow-all-30430015'] 2025-01-27 02:25:07,771 - INFO - VN ctest-vn-53034203 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-27 02:25:07,771 - DEBUG - Verifying the vn in opserver 2025-01-27 02:25:07,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203 virtual network link through opserver 10.0.0.33 2025-01-27 02:25:07,772 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-01-27 02:25:07,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203?flat'} 2025-01-27 02:25:07,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-53034203 is found in opserver 2025-01-27 02:25:07,800 - DEBUG - Do not have enough data to verify VN in agent 2025-01-27 02:25:07,807 - DEBUG - VRF ids for VN ctest-vn-53034203: {} 2025-01-27 02:25:07,877 - DEBUG - Services list from nova: [, , ] 2025-01-27 02:25:09,003 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2661-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2661-1) 2025-01-27 02:25:10,409 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2661-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2661-1) 2025-01-27 02:25:10,410 - INFO - Waiting for VM ctest-TestBasicPolicy-25217702-06107183 to be up.. 2025-01-27 02:25:10,503 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-27 02:25:15,604 - DEBUG - VM is in ACTIVE state now 2025-01-27 02:25:15,604 - INFO - VM name : ctest-TestBasicPolicy-25217702-06107183 2025-01-27 02:25:15,713 - DEBUG - VM ctest-TestBasicPolicy-25217702-06107183 ID is 144c4215-cd06-4abe-ad97-6308bc47d2c2 2025-01-27 02:25:15,736 - DEBUG - VM ctest-TestBasicPolicy-25217702-06107183 launched on Node cn-jenkins-deploy-platform-ansible-os-2661-1. 2025-01-27 02:25:15,828 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/144c4215-cd06-4abe-ad97-6308bc47d2c2 2025-01-27 02:25:15,840 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/c32d11cf-54e1-412f-82f2-12e422fa7c24 2025-01-27 02:25:19,098 - 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 1004ms') 2025-01-27 02:25:19,098 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25217702-06107183 failed! 2025-01-27 02:25:19,155 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25217702:ctest-vn-89250180 is 97.131.186.65 and allocation pool is NOT set 2025-01-27 02:25:21,219 - 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=9.26 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.29 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 = 2.287/5.774/9.262/3.487 ms') 2025-01-27 02:25:21,219 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25217702-06107183 passed 2025-01-27 02:25:21,387 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:25:21,387 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25217702-06107183, IP 97.131.186.67, Port 22 2025-01-27 02:25:21,464 - 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-27 02:25:21,574 - DEBUG - VM ctest-TestBasicPolicy-25217702-06107183 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-27 02:25:26,575 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:25:26,575 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25217702-06107183, IP 97.131.186.67, Port 22 2025-01-27 02:25:26,741 - DEBUG - VM ctest-TestBasicPolicy-25217702-06107183 is ready for SSH connections 2025-01-27 02:25:26,741 - INFO - Waiting for VM ctest-TestBasicPolicy-25217702-19396270 to be up.. 2025-01-27 02:25:26,834 - DEBUG - VM is in ACTIVE state now 2025-01-27 02:25:26,834 - INFO - VM name : ctest-TestBasicPolicy-25217702-19396270 2025-01-27 02:25:26,934 - DEBUG - VM ctest-TestBasicPolicy-25217702-19396270 ID is 9295d461-3b51-4774-9833-e4499be24b45 2025-01-27 02:25:26,934 - DEBUG - VM ctest-TestBasicPolicy-25217702-19396270 launched on Node cn-jenkins-deploy-platform-ansible-os-2661-1. 2025-01-27 02:25:27,041 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/9295d461-3b51-4774-9833-e4499be24b45 2025-01-27 02:25:27,052 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/32c25795-0d74-4edf-8184-754cbd895223 2025-01-27 02:25:28,317 - 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.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.683 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.683/2.193/3.704/1.510 ms') 2025-01-27 02:25:28,317 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-25217702-19396270 passed 2025-01-27 02:25:28,479 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:25:28,479 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25217702-19396270, IP 214.35.3.3, Port 22 2025-01-27 02:25:28,649 - DEBUG - VM ctest-TestBasicPolicy-25217702-19396270 is ready for SSH connections 2025-01-27 02:25:28,650 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:25:28,650 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 214.35.3.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-27 02:25:28,650 - DEBUG - ping -s 56 -c 3 -W 1 214.35.3.3 2025-01-27 02:25:32,845 - DEBUG - PING 214.35.3.3 (214.35.3.3): 56 data bytes 64 bytes from 214.35.3.3: seq=0 ttl=63 time=5.475 ms 64 bytes from 214.35.3.3: seq=1 ttl=63 time=1.216 ms 64 bytes from 214.35.3.3: seq=2 ttl=63 time=1.222 ms --- 214.35.3.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.216/2.637/5.475 ms 2025-01-27 02:25:32,845 - INFO - Ping to IP 214.35.3.3 from VM ctest-TestBasicPolicy-25217702-06107183 passed 2025-01-27 02:25:33,035 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4f814c4a-788c-41cf-86f7-6670265c135f", "href": "http://10.0.0.33:8082/network-policy/4f814c4a-788c-41cf-86f7-6670265c135f"}} 2025-01-27 02:25:33,035 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:25:33,035 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 214.35.3.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-27 02:25:33,035 - DEBUG - ping -s 56 -c 3 -W 1 214.35.3.3 2025-01-27 02:25:36,267 - DEBUG - PING 214.35.3.3 (214.35.3.3): 56 data bytes 64 bytes from 214.35.3.3: seq=0 ttl=63 time=1.624 ms --- 214.35.3.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.624/1.624/1.624 ms 2025-01-27 02:25:36,267 - WARNING - Ping to IP 214.35.3.3 from VM ctest-TestBasicPolicy-25217702-06107183 failed 2025-01-27 02:25:36,267 - INFO - Deleting VM ctest-TestBasicPolicy-25217702-19396270 2025-01-27 02:25:36,353 - INFO - Deleting VM ctest-TestBasicPolicy-25217702-06107183 2025-01-27 02:25:36,844 - INFO - Deleted policy ctest-policy-allow-all-30430015 2025-01-27 02:25:36,845 - INFO - Deleting VN ctest-vn-53034203 2025-01-27 02:25:36,893 - DEBUG - VN 66b33e9e-1464-4050-bdf3-8931b3103b72 still in use: Unable to complete operation on network 66b33e9e-1464-4050-bdf3-8931b3103b72. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e42f58e4-21f5-465b-8990-472600c45c50'] 2025-01-27 02:25:36,894 - WARNING - Deleting VN ctest-vn-53034203 failed..Will retry 2025-01-27 02:25:39,018 - DEBUG - Response for deleting network () 2025-01-27 02:25:39,018 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/19fd06fe-8680-4dbf-9288-b066bfe883f6 2025-01-27 02:25:39,028 - DEBUG - Response Code: 404 2025-01-27 02:25:39,029 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-27 02:25:39,035 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c 2025-01-27 02:25:39,093 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82 2025-01-27 02:25:39,168 - INFO - Validated that VN ctest-vn-53034203 is not found in API Server 2025-01-27 02:25:39,181 - DEBUG - VN ctest-vn-53034203 is not present in Agent 10.0.0.33 2025-01-27 02:25:39,181 - INFO - Validated that VN ctest-vn-53034203 is not in any agent 2025-01-27 02:25:39,200 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53034203 info 2025-01-27 02:25:39,201 - INFO - Deleting VN ctest-vn-89250180 2025-01-27 02:25:39,326 - DEBUG - Response for deleting network () 2025-01-27 02:25:39,326 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21606eda-002c-41e5-8264-2ced977eb54d 2025-01-27 02:25:39,336 - DEBUG - Response Code: 404 2025-01-27 02:25:39,336 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-01-27 02:25:39,343 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fd4c0ded-7b56-4d8e-b65e-386ae2e12d9c 2025-01-27 02:25:39,401 - DEBUG - Requesting: http://10.0.0.33:8082/project/29f6a931-6e8a-4d57-8a1e-485d53963e82 2025-01-27 02:25:39,476 - INFO - Validated that VN ctest-vn-89250180 is not found in API Server 2025-01-27 02:25:39,489 - DEBUG - VN ctest-vn-89250180 is not present in Agent 10.0.0.33 2025-01-27 02:25:39,489 - INFO - Validated that VN ctest-vn-89250180 is not in any agent 2025-01-27 02:25:39,508 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89250180 info 2025-01-27 02:25:39,765 - DEBUG - No XMPP flaps were noticed during the test
2025-01-27 02:25:39,765 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-01-27 02:25:39,765 - INFO - -------------------------------------------------------------------------------- 2025-01-27 02:25:40,508 - INFO - Deleted project: ctest-TestBasicPolicy-25217702, ID : 29f6a931-6e8a-4d57-8a1e-485d53963e82