2025-03-20 02:23:44,878 - INFO - Domain Default found not creating 2025-03-20 02:23:45,029 - INFO - Project ctest-TestBasicPolicy-61344574 not found, creating it 2025-03-20 02:23:45,474 - INFO - Created Project:ctest-TestBasicPolicy-61344574, ID : f47efa9f-59ad-4065-8f6a-88cca4f29851 2025-03-20 02:23:46,964 - INFO - ================================================================================ 2025-03-20 02:23:46,964 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-20 02:23:46,965 - 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-03-20 02:23:47,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.59': {'10.20.0.20': '0'}} with 2025-03-20 02:23:47,219 - INFO - Initial checks done. Running the testcase now 2025-03-20 02:23:47,219 - INFO - 2025-03-20 02:23:47,911 - DEBUG - Response for create_network : {'network': {'id': '0d3095b1-ab87-4ce3-ba56-bea0cf335dae', 'name': 'ctest-vn-61283231', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-61283231'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:23:48,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '0779e4e2-7da8-45d0-b70f-05b2f64cc1ee', 'name': '', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'network_id': '0d3095b1-ab87-4ce3-ba56-bea0cf335dae', 'ip_version': 4, 'cidr': '105.78.168.192/26', 'allocation_pools': [{'start': '105.78.168.194', 'end': '105.78.168.254'}], 'gateway_ip': '105.78.168.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.78.168.194', 'tags': [], 'project_id': 'f47efa9f59ad40658f6a88cca4f29851'}} 2025-03-20 02:23:48,080 - INFO - Created VN ctest-vn-61283231 2025-03-20 02:23:48,133 - DEBUG - VN ctest-vn-61283231 UUID is 0d3095b1-ab87-4ce3-ba56-bea0cf335dae 2025-03-20 02:23:48,418 - DEBUG - Response for create_network : {'network': {'id': '412272ee-c74b-443e-ba0f-bb13a64931d8', 'name': 'ctest-vn-17879889', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-17879889'], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:23:48,618 - DEBUG - Response for create_subnet : {'subnet': {'id': '452ccdc0-9f78-4480-b9fe-9b6457c9efcc', 'name': '', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'network_id': '412272ee-c74b-443e-ba0f-bb13a64931d8', 'ip_version': 4, 'cidr': '45.246.208.128/26', 'allocation_pools': [{'start': '45.246.208.130', 'end': '45.246.208.190'}], 'gateway_ip': '45.246.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.246.208.130', 'tags': [], 'project_id': 'f47efa9f59ad40658f6a88cca4f29851'}} 2025-03-20 02:23:48,637 - INFO - Created VN ctest-vn-17879889 2025-03-20 02:23:48,689 - DEBUG - VN ctest-vn-17879889 UUID is 412272ee-c74b-443e-ba0f-bb13a64931d8 2025-03-20 02:23:48,806 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231, 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-61344574:ctest-vn-17879889, 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-03-20 02:23:49,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d3095b1-ab87-4ce3-ba56-bea0cf335dae', 'name': 'ctest-vn-61283231', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0779e4e2-7da8-45d0-b70f-05b2f64cc1ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-61283231'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326']], 'subnet_ipam': [{'subnet_cidr': '105.78.168.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:23:49,337 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '412272ee-c74b-443e-ba0f-bb13a64931d8', 'name': 'ctest-vn-17879889', 'tenant_id': 'f47efa9f59ad40658f6a88cca4f29851', 'project_id': 'f47efa9f59ad40658f6a88cca4f29851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['452ccdc0-9f78-4480-b9fe-9b6457c9efcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-vn-17879889'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326']], 'subnet_ipam': [{'subnet_cidr': '45.246.208.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-20 02:23:49,505 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2025-03-20 02:23:49,803 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2025-03-20 02:23:49,832 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024 2025-03-20 02:23:49,847 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851 2025-03-20 02:23:49,919 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae 2025-03-20 02:23:49,930 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae 2025-03-20 02:23:49,938 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3 2025-03-20 02:23:49,946 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3 2025-03-20 02:23:49,955 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/f3344cea-75d3-4f62-b1f9-010e84ccc15e 2025-03-20 02:23:49,961 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:23:49,962 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae 2025-03-20 02:23:49,970 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3 2025-03-20 02:23:49,982 - INFO - Verified VN network id 8 for VN 0d3095b1-ab87-4ce3-ba56-bea0cf335dae 2025-03-20 02:23:49,983 - INFO - Verifications in API Server for VN ctest-vn-61283231 passed 2025-03-20 02:23:49,983 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae 2025-03-20 02:23:49,991 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3 2025-03-20 02:23:50,000 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3 2025-03-20 02:23:50,009 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/f3344cea-75d3-4f62-b1f9-010e84ccc15e 2025-03-20 02:23:50,021 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61344574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '950424111694695651', 'uuid-lslong': '13427128936932007342'}, 'enable': 'true', 'created': '2025-03-20T02:23:47', 'last-modified': '2025-03-20T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943475'} 2025-03-20 02:23:50,029 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-20 02:23:50,029 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61283231 passed 2025-03-20 02:23:50,029 - DEBUG - ====Verifying policy data for ctest-vn-61283231 in API_Server ====== 2025-03-20 02:23:50,030 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2025-03-20 02:23:50,036 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024 2025-03-20 02:23:50,047 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851 2025-03-20 02:23:50,121 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/0d3095b1-ab87-4ce3-ba56-bea0cf335dae 2025-03-20 02:23:50,131 - DEBUG - ==>Verifying data for policy with id: 6e7d2416-8f19-4a28-8bd4-f623b293dfd6, fqn: ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326'] 2025-03-20 02:23:50,131 - INFO - VN ctest-vn-61283231 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 02:23:50,131 - DEBUG - Verifying the vn in opserver 2025-03-20 02:23:50,131 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231 virtual network link through opserver 10.0.0.59 2025-03-20 02:23:50,131 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2025-03-20 02:23:50,423 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2025-03-20 02:23:50,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231?flat'} 2025-03-20 02:23:50,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231 is found in opserver 2025-03-20 02:23:50,493 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 02:23:50,498 - DEBUG - VRF ids for VN ctest-vn-61283231: {} 2025-03-20 02:23:50,498 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2025-03-20 02:23:50,507 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024 2025-03-20 02:23:50,521 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851 2025-03-20 02:23:50,589 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8 2025-03-20 02:23:50,600 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8 2025-03-20 02:23:50,608 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e 2025-03-20 02:23:50,616 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e 2025-03-20 02:23:50,623 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/deb98724-2af4-4aa7-853e-6c7ce0d6a385 2025-03-20 02:23:50,630 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-20 02:23:50,630 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8 2025-03-20 02:23:50,639 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e 2025-03-20 02:23:50,651 - INFO - Verified VN network id 9 for VN 412272ee-c74b-443e-ba0f-bb13a64931d8 2025-03-20 02:23:50,651 - INFO - Verifications in API Server for VN ctest-vn-17879889 passed 2025-03-20 02:23:50,652 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8 2025-03-20 02:23:50,660 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e 2025-03-20 02:23:50,668 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e 2025-03-20 02:23:50,675 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/deb98724-2af4-4aa7-853e-6c7ce0d6a385 2025-03-20 02:23:50,688 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61344574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4693440131544859710', 'uuid-lslong': '13407140308773843416'}, 'enable': 'true', 'created': '2025-03-20T02:23:48', 'last-modified': '2025-03-20T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.371796'} 2025-03-20 02:23:50,695 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-20 02:23:50,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17879889 passed 2025-03-20 02:23:50,695 - DEBUG - ====Verifying policy data for ctest-vn-17879889 in API_Server ====== 2025-03-20 02:23:50,695 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2025-03-20 02:23:50,701 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024 2025-03-20 02:23:50,713 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851 2025-03-20 02:23:50,782 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/412272ee-c74b-443e-ba0f-bb13a64931d8 2025-03-20 02:23:50,792 - DEBUG - ==>Verifying data for policy with id: 6e7d2416-8f19-4a28-8bd4-f623b293dfd6, fqn: ['default-domain', 'ctest-TestBasicPolicy-61344574', 'ctest-policy-allow-all-27643326'] 2025-03-20 02:23:50,792 - INFO - VN ctest-vn-17879889 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-20 02:23:50,792 - DEBUG - Verifying the vn in opserver 2025-03-20 02:23:50,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889 virtual network link through opserver 10.0.0.59 2025-03-20 02:23:50,792 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks 2025-03-20 02:23:50,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889?flat'} 2025-03-20 02:23:50,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-17879889 is found in opserver 2025-03-20 02:23:50,815 - DEBUG - Do not have enough data to verify VN in agent 2025-03-20 02:23:50,820 - DEBUG - VRF ids for VN ctest-vn-17879889: {} 2025-03-20 02:23:50,880 - DEBUG - Services list from nova: [, , ] 2025-03-20 02:23:51,893 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2924-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2924-1) 2025-03-20 02:23:53,152 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2924-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2924-1) 2025-03-20 02:23:53,152 - INFO - Waiting for VM ctest-TestBasicPolicy-61344574-99739914 to be up.. 2025-03-20 02:23:53,248 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-20 02:23:58,328 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:23:58,328 - INFO - VM name : ctest-TestBasicPolicy-61344574-99739914 2025-03-20 02:23:58,410 - DEBUG - VM ctest-TestBasicPolicy-61344574-99739914 ID is a5eb5217-caf9-4094-8578-8d53e7d997c4 2025-03-20 02:23:58,430 - DEBUG - VM ctest-TestBasicPolicy-61344574-99739914 launched on Node cn-jenkins-deploy-platform-ansible-os-2924-1 2025-03-20 02:23:58,509 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/a5eb5217-caf9-4094-8578-8d53e7d997c4 2025-03-20 02:23:58,522 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/1faf0b75-e2db-4df0-a901-c135d86414e4 2025-03-20 02:24:01,782 - 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 1008ms') 2025-03-20 02:24:01,782 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61344574-99739914 failed! 2025-03-20 02:24:01,833 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61344574:ctest-vn-61283231 is 105.78.168.193 and allocation pool is NOT set 2025-03-20 02:24:03,895 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.01 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.012/5.820/9.628/3.808 ms') 2025-03-20 02:24:03,895 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61344574-99739914 passed 2025-03-20 02:24:04,046 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:24:04,046 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61344574-99739914, IP 105.78.168.195, Port 22 2025-03-20 02:24:04,101 - 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-03-20 02:24:04,178 - DEBUG - VM ctest-TestBasicPolicy-61344574-99739914 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-20 02:24:09,179 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:24:09,179 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61344574-99739914, IP 105.78.168.195, Port 22 2025-03-20 02:24:09,337 - DEBUG - VM ctest-TestBasicPolicy-61344574-99739914 is ready for SSH connections 2025-03-20 02:24:09,337 - INFO - Waiting for VM ctest-TestBasicPolicy-61344574-17048512 to be up.. 2025-03-20 02:24:09,419 - DEBUG - VM is in ACTIVE state now 2025-03-20 02:24:09,419 - INFO - VM name : ctest-TestBasicPolicy-61344574-17048512 2025-03-20 02:24:09,498 - DEBUG - VM ctest-TestBasicPolicy-61344574-17048512 ID is 33be94a6-ec70-4e5f-8a68-a7368df3dff8 2025-03-20 02:24:09,498 - DEBUG - VM ctest-TestBasicPolicy-61344574-17048512 launched on Node cn-jenkins-deploy-platform-ansible-os-2924-1 2025-03-20 02:24:09,581 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine/33be94a6-ec70-4e5f-8a68-a7368df3dff8 2025-03-20 02:24:09,591 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-machine-interface/432a32f0-e2c8-48db-8a11-1d9ba0f784b4 2025-03-20 02:24:10,844 - 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.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.452 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.452/2.168/3.885/1.716 ms') 2025-03-20 02:24:10,844 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61344574-17048512 passed 2025-03-20 02:24:10,994 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:24:10,994 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61344574-17048512, IP 45.246.208.131, Port 22 2025-03-20 02:24:11,165 - DEBUG - VM ctest-TestBasicPolicy-61344574-17048512 is ready for SSH connections 2025-03-20 02:24:11,165 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:24:11,165 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.246.208.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.59, gateway password: c0ntrail123 2025-03-20 02:24:11,165 - DEBUG - ping -s 56 -c 3 -W 1 45.246.208.131 2025-03-20 02:24:15,199 - DEBUG - PING 45.246.208.131 (45.246.208.131): 56 data bytes 64 bytes from 45.246.208.131: seq=0 ttl=63 time=3.597 ms 64 bytes from 45.246.208.131: seq=1 ttl=63 time=1.006 ms 64 bytes from 45.246.208.131: seq=2 ttl=63 time=1.008 ms --- 45.246.208.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.006/1.870/3.597 ms 2025-03-20 02:24:15,199 - INFO - Ping to IP 45.246.208.131 from VM ctest-TestBasicPolicy-61344574-99739914 passed 2025-03-20 02:24:15,397 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6e7d2416-8f19-4a28-8bd4-f623b293dfd6", "href": "http://10.0.0.59:8082/network-policy/6e7d2416-8f19-4a28-8bd4-f623b293dfd6"}} 2025-03-20 02:24:15,397 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-20 02:24:15,398 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.246.208.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.59, gateway password: c0ntrail123 2025-03-20 02:24:15,398 - DEBUG - ping -s 56 -c 3 -W 1 45.246.208.131 2025-03-20 02:24:18,604 - DEBUG - PING 45.246.208.131 (45.246.208.131): 56 data bytes 64 bytes from 45.246.208.131: seq=0 ttl=63 time=2.198 ms --- 45.246.208.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.198/2.198/2.198 ms 2025-03-20 02:24:18,605 - WARNING - Ping to IP 45.246.208.131 from VM ctest-TestBasicPolicy-61344574-99739914 failed 2025-03-20 02:24:18,605 - INFO - Deleting VM ctest-TestBasicPolicy-61344574-17048512 2025-03-20 02:24:18,674 - INFO - Deleting VM ctest-TestBasicPolicy-61344574-99739914 2025-03-20 02:24:19,035 - INFO - Deleted policy ctest-policy-allow-all-27643326 2025-03-20 02:24:19,035 - INFO - Deleting VN ctest-vn-17879889 2025-03-20 02:24:19,075 - DEBUG - VN 412272ee-c74b-443e-ba0f-bb13a64931d8 still in use: Unable to complete operation on network 412272ee-c74b-443e-ba0f-bb13a64931d8. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-53efeb69-2025-4f1b-b80c-6a83d807f30c'] 2025-03-20 02:24:19,075 - WARNING - Deleting VN ctest-vn-17879889 failed..Will retry 2025-03-20 02:24:21,189 - DEBUG - Response for deleting network () 2025-03-20 02:24:21,189 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/7a8e7f0b-d8d2-4b29-b8d7-d135529d296e 2025-03-20 02:24:21,197 - DEBUG - Response Code: 404 2025-03-20 02:24:21,197 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2025-03-20 02:24:21,203 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024 2025-03-20 02:24:21,259 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851 2025-03-20 02:24:21,329 - INFO - Validated that VN ctest-vn-17879889 is not found in API Server 2025-03-20 02:24:21,341 - DEBUG - VN ctest-vn-17879889 is not present in Agent 10.0.0.59 2025-03-20 02:24:21,341 - INFO - Validated that VN ctest-vn-17879889 is not in any agent 2025-03-20 02:24:21,359 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17879889 info 2025-03-20 02:24:21,359 - INFO - Deleting VN ctest-vn-61283231 2025-03-20 02:24:21,467 - DEBUG - Response for deleting network () 2025-03-20 02:24:21,467 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/9802719e-b2b4-4fbd-a9a6-d90d5a7a33b3 2025-03-20 02:24:21,474 - DEBUG - Response Code: 404 2025-03-20 02:24:21,474 - DEBUG - Requesting: http://10.0.0.59:8082/domains 2025-03-20 02:24:21,480 - DEBUG - Requesting: http://10.0.0.59:8082/domain/6f5fb79c-8fce-492c-bdfd-369cb57c7024 2025-03-20 02:24:21,535 - DEBUG - Requesting: http://10.0.0.59:8082/project/f47efa9f-59ad-4065-8f6a-88cca4f29851 2025-03-20 02:24:21,604 - INFO - Validated that VN ctest-vn-61283231 is not found in API Server 2025-03-20 02:24:21,617 - DEBUG - VN ctest-vn-61283231 is not present in Agent 10.0.0.59 2025-03-20 02:24:21,617 - INFO - Validated that VN ctest-vn-61283231 is not in any agent 2025-03-20 02:24:21,634 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61283231 info 2025-03-20 02:24:21,891 - DEBUG - No XMPP flaps were noticed during the test
2025-03-20 02:24:21,891 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2025-03-20 02:24:21,891 - INFO - -------------------------------------------------------------------------------- 2025-03-20 02:24:22,559 - INFO - Deleted project: ctest-TestBasicPolicy-61344574, ID : f47efa9f-59ad-4065-8f6a-88cca4f29851