2025-06-24 12:32:01,753 - INFO - Domain Default found not creating 2025-06-24 12:32:01,912 - INFO - Project ctest-TestBasicPolicy-03406933 not found, creating it 2025-06-24 12:32:02,413 - INFO - Created Project:ctest-TestBasicPolicy-03406933, ID : f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf 2025-06-24 12:32:03,966 - INFO - ================================================================================ 2025-06-24 12:32:03,966 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-24 12:32:03,966 - 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-06-24 12:32:04,227 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with 2025-06-24 12:32:04,228 - INFO - Initial checks done. Running the testcase now 2025-06-24 12:32:04,228 - INFO - 2025-06-24 12:32:04,803 - DEBUG - Response for create_network : {'network': {'id': '80235d4c-40cf-47ca-aa25-b2e40a8591e4', 'name': 'ctest-vn-55206133', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-55206133'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:32:05,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aef02944-94a1-4441-8e85-6240481bf9ad', 'name': '', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'network_id': '80235d4c-40cf-47ca-aa25-b2e40a8591e4', 'ip_version': 4, 'cidr': '209.188.158.64/26', 'allocation_pools': [{'start': '209.188.158.66', 'end': '209.188.158.126'}], 'gateway_ip': '209.188.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.188.158.66', 'tags': [], 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf'}} 2025-06-24 12:32:05,030 - INFO - Created VN ctest-vn-55206133 2025-06-24 12:32:05,084 - DEBUG - VN ctest-vn-55206133 UUID is 80235d4c-40cf-47ca-aa25-b2e40a8591e4 2025-06-24 12:32:05,395 - DEBUG - Response for create_network : {'network': {'id': '082062bf-db13-4dde-8494-04ee3a48efcc', 'name': 'ctest-vn-33019922', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-33019922'], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:32:05,635 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc77f9ea-c48a-4a60-a1f3-7cf6f83c4135', 'name': '', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'network_id': '082062bf-db13-4dde-8494-04ee3a48efcc', 'ip_version': 4, 'cidr': '19.135.22.128/26', 'allocation_pools': [{'start': '19.135.22.130', 'end': '19.135.22.190'}], 'gateway_ip': '19.135.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.135.22.130', 'tags': [], 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf'}} 2025-06-24 12:32:05,657 - INFO - Created VN ctest-vn-33019922 2025-06-24 12:32:05,716 - DEBUG - VN ctest-vn-33019922 UUID is 082062bf-db13-4dde-8494-04ee3a48efcc 2025-06-24 12:32:05,863 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133, 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-03406933:ctest-vn-33019922, 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-06-24 12:32:06,201 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '80235d4c-40cf-47ca-aa25-b2e40a8591e4', 'name': 'ctest-vn-55206133', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aef02944-94a1-4441-8e85-6240481bf9ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-55206133'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111']], 'subnet_ipam': [{'subnet_cidr': '209.188.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:32:06,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '082062bf-db13-4dde-8494-04ee3a48efcc', 'name': 'ctest-vn-33019922', 'tenant_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'project_id': 'f3f4a9115dc74ec79fc5a73e579ebbdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc77f9ea-c48a-4a60-a1f3-7cf6f83c4135'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-vn-33019922'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111']], 'subnet_ipam': [{'subnet_cidr': '19.135.22.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-24 12:32:06,641 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-06-24 12:32:06,951 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-06-24 12:32:06,986 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6 2025-06-24 12:32:07,003 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf 2025-06-24 12:32:07,080 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4 2025-06-24 12:32:07,096 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4 2025-06-24 12:32:07,109 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36 2025-06-24 12:32:07,120 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36 2025-06-24 12:32:07,130 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/09cfc690-f907-4d63-bd71-905e414ed966 2025-06-24 12:32:07,139 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-24 12:32:07,140 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4 2025-06-24 12:32:07,151 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36 2025-06-24 12:32:07,169 - INFO - Verified VN network id 8 for VN 80235d4c-40cf-47ca-aa25-b2e40a8591e4 2025-06-24 12:32:07,170 - INFO - Verifications in API Server for VN ctest-vn-55206133 passed 2025-06-24 12:32:07,170 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4 2025-06-24 12:32:07,182 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36 2025-06-24 12:32:07,191 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36 2025-06-24 12:32:07,200 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/09cfc690-f907-4d63-bd71-905e414ed966 2025-06-24 12:32:07,217 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03406933', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9233326243125872586', 'uuid-lslong': '12260402253084856804'}, 'enable': 'true', 'created': '2025-06-24T12:32:04', 'last-modified': '2025-06-24T12:32:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051294'} 2025-06-24 12:32:07,225 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-24 12:32:07,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55206133 passed 2025-06-24 12:32:07,225 - DEBUG - ====Verifying policy data for ctest-vn-55206133 in API_Server ====== 2025-06-24 12:32:07,225 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-06-24 12:32:07,232 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6 2025-06-24 12:32:07,245 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf 2025-06-24 12:32:07,321 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/80235d4c-40cf-47ca-aa25-b2e40a8591e4 2025-06-24 12:32:07,333 - DEBUG - ==>Verifying data for policy with id: 123ae36c-056a-4505-8c40-095692d0da40, fqn: ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111'] 2025-06-24 12:32:07,333 - INFO - VN ctest-vn-55206133 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-24 12:32:07,333 - DEBUG - Verifying the vn in opserver 2025-06-24 12:32:07,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133 virtual network link through opserver 10.0.0.241 2025-06-24 12:32:07,334 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-06-24 12:32:07,626 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-06-24 12:32:07,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133?flat'} 2025-06-24 12:32:07,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133 is found in opserver 2025-06-24 12:32:07,701 - DEBUG - Do not have enough data to verify VN in agent 2025-06-24 12:32:07,708 - DEBUG - VRF ids for VN ctest-vn-55206133: {} 2025-06-24 12:32:07,708 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-06-24 12:32:07,716 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6 2025-06-24 12:32:07,730 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf 2025-06-24 12:32:07,811 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc 2025-06-24 12:32:07,826 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc 2025-06-24 12:32:07,838 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683 2025-06-24 12:32:07,849 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683 2025-06-24 12:32:07,860 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/eb24e01b-cdd8-418f-bf9b-42bd47484c4a 2025-06-24 12:32:07,870 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-24 12:32:07,870 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc 2025-06-24 12:32:07,884 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683 2025-06-24 12:32:07,905 - INFO - Verified VN network id 9 for VN 082062bf-db13-4dde-8494-04ee3a48efcc 2025-06-24 12:32:07,905 - INFO - Verifications in API Server for VN ctest-vn-33019922 passed 2025-06-24 12:32:07,905 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc 2025-06-24 12:32:07,919 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683 2025-06-24 12:32:07,929 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683 2025-06-24 12:32:07,939 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/eb24e01b-cdd8-418f-bf9b-42bd47484c4a 2025-06-24 12:32:07,956 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03406933', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '585576527711915486', 'uuid-lslong': '9553266130786250700'}, 'enable': 'true', 'created': '2025-06-24T12:32:05', 'last-modified': '2025-06-24T12:32:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530625'} 2025-06-24 12:32:07,964 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-24 12:32:07,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33019922 passed 2025-06-24 12:32:07,964 - DEBUG - ====Verifying policy data for ctest-vn-33019922 in API_Server ====== 2025-06-24 12:32:07,964 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-06-24 12:32:07,971 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6 2025-06-24 12:32:07,988 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf 2025-06-24 12:32:08,067 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/082062bf-db13-4dde-8494-04ee3a48efcc 2025-06-24 12:32:08,077 - DEBUG - ==>Verifying data for policy with id: 123ae36c-056a-4505-8c40-095692d0da40, fqn: ['default-domain', 'ctest-TestBasicPolicy-03406933', 'ctest-policy-allow-all-12939111'] 2025-06-24 12:32:08,078 - INFO - VN ctest-vn-33019922 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-24 12:32:08,078 - DEBUG - Verifying the vn in opserver 2025-06-24 12:32:08,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922 virtual network link through opserver 10.0.0.241 2025-06-24 12:32:08,078 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-06-24 12:32:08,092 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922?flat'} 2025-06-24 12:32:08,092 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-33019922 is found in opserver 2025-06-24 12:32:08,105 - DEBUG - Do not have enough data to verify VN in agent 2025-06-24 12:32:08,111 - DEBUG - VRF ids for VN ctest-vn-33019922: {} 2025-06-24 12:32:08,174 - DEBUG - Services list from nova: [, , ] 2025-06-24 12:32:09,282 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3531-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3531-1) 2025-06-24 12:32:10,560 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3531-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3531-1) 2025-06-24 12:32:10,560 - INFO - Waiting for VM ctest-TestBasicPolicy-03406933-51552770 to be up.. 2025-06-24 12:32:10,651 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-24 12:32:15,756 - DEBUG - VM is in ACTIVE state now 2025-06-24 12:32:15,756 - INFO - VM name : ctest-TestBasicPolicy-03406933-51552770 2025-06-24 12:32:15,844 - DEBUG - VM ctest-TestBasicPolicy-03406933-51552770 ID is a1c72d10-dead-49d1-a185-7f95892612c4 2025-06-24 12:32:15,863 - DEBUG - VM ctest-TestBasicPolicy-03406933-51552770 launched on Node cn-jenkins-deploy-platform-ansible-os-3531-1 2025-06-24 12:32:15,951 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine/a1c72d10-dead-49d1-a185-7f95892612c4 2025-06-24 12:32:15,963 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine-interface/bad2399d-2ce0-4bef-a095-abceee69ed88 2025-06-24 12:32:19,222 - 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 1011ms') 2025-06-24 12:32:19,223 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03406933-51552770 failed! 2025-06-24 12:32:19,280 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03406933:ctest-vn-55206133 is 209.188.158.65 and allocation pool is NOT set 2025-06-24 12:32:21,340 - 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=8.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.84 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.838/5.476/8.114/2.638 ms') 2025-06-24 12:32:21,340 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03406933-51552770 passed 2025-06-24 12:32:21,504 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:32:21,504 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03406933-51552770, IP 209.188.158.67, Port 22 2025-06-24 12:32:21,560 - 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-06-24 12:32:21,647 - DEBUG - VM ctest-TestBasicPolicy-03406933-51552770 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-24 12:32:26,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:32:26,648 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03406933-51552770, IP 209.188.158.67, Port 22 2025-06-24 12:32:26,804 - DEBUG - VM ctest-TestBasicPolicy-03406933-51552770 is ready for SSH connections 2025-06-24 12:32:26,805 - INFO - Waiting for VM ctest-TestBasicPolicy-03406933-39107603 to be up.. 2025-06-24 12:32:26,886 - DEBUG - VM is in ACTIVE state now 2025-06-24 12:32:26,886 - INFO - VM name : ctest-TestBasicPolicy-03406933-39107603 2025-06-24 12:32:26,974 - DEBUG - VM ctest-TestBasicPolicy-03406933-39107603 ID is 7a3a46c0-ee20-46b6-b69e-079919cd9896 2025-06-24 12:32:26,974 - DEBUG - VM ctest-TestBasicPolicy-03406933-39107603 launched on Node cn-jenkins-deploy-platform-ansible-os-3531-1 2025-06-24 12:32:27,055 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine/7a3a46c0-ee20-46b6-b69e-079919cd9896 2025-06-24 12:32:27,065 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-machine-interface/fca11536-c6b3-4c96-b31b-069ca7e46f3d 2025-06-24 12:32:28,320 - 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=2.75 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.447 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.447/1.600/2.754/1.153 ms') 2025-06-24 12:32:28,320 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03406933-39107603 passed 2025-06-24 12:32:28,476 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:32:28,476 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03406933-39107603, IP 19.135.22.131, Port 22 2025-06-24 12:32:28,635 - DEBUG - VM ctest-TestBasicPolicy-03406933-39107603 is ready for SSH connections 2025-06-24 12:32:28,635 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:32:28,635 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.135.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-06-24 12:32:28,636 - DEBUG - ping -s 56 -c 3 -W 1 19.135.22.131 2025-06-24 12:32:32,336 - DEBUG - PING 19.135.22.131 (19.135.22.131): 56 data bytes 64 bytes from 19.135.22.131: seq=0 ttl=63 time=4.106 ms 64 bytes from 19.135.22.131: seq=1 ttl=63 time=1.129 ms 64 bytes from 19.135.22.131: seq=2 ttl=63 time=0.926 ms --- 19.135.22.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.926/2.053/4.106 ms 2025-06-24 12:32:32,336 - INFO - Ping to IP 19.135.22.131 from VM ctest-TestBasicPolicy-03406933-51552770 passed 2025-06-24 12:32:32,516 - DEBUG - Policy Update Response {"network-policy": {"uuid": "123ae36c-056a-4505-8c40-095692d0da40", "href": "http://10.0.0.241:8082/network-policy/123ae36c-056a-4505-8c40-095692d0da40"}} 2025-06-24 12:32:32,516 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-24 12:32:32,516 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 19.135.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.241, gateway password: c0ntrail123 2025-06-24 12:32:32,516 - DEBUG - ping -s 56 -c 3 -W 1 19.135.22.131 2025-06-24 12:32:35,729 - DEBUG - PING 19.135.22.131 (19.135.22.131): 56 data bytes 64 bytes from 19.135.22.131: seq=0 ttl=63 time=1.733 ms --- 19.135.22.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.733/1.733/1.733 ms 2025-06-24 12:32:35,729 - WARNING - Ping to IP 19.135.22.131 from VM ctest-TestBasicPolicy-03406933-51552770 failed 2025-06-24 12:32:35,729 - INFO - Deleting VM ctest-TestBasicPolicy-03406933-39107603 2025-06-24 12:32:35,810 - INFO - Deleting VM ctest-TestBasicPolicy-03406933-51552770 2025-06-24 12:32:36,271 - INFO - Deleted policy ctest-policy-allow-all-12939111 2025-06-24 12:32:36,271 - INFO - Deleting VN ctest-vn-33019922 2025-06-24 12:32:36,322 - DEBUG - VN 082062bf-db13-4dde-8494-04ee3a48efcc still in use: Unable to complete operation on network 082062bf-db13-4dde-8494-04ee3a48efcc. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-68e12b91-8439-4aa9-bae1-a9f01e97c760'] 2025-06-24 12:32:36,322 - WARNING - Deleting VN ctest-vn-33019922 failed..Will retry 2025-06-24 12:32:38,437 - DEBUG - Response for deleting network () 2025-06-24 12:32:38,437 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/8b4f0893-e0ca-45f0-b8cc-404a31cc0683 2025-06-24 12:32:38,443 - DEBUG - Response Code: 404 2025-06-24 12:32:38,443 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-06-24 12:32:38,451 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6 2025-06-24 12:32:38,507 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf 2025-06-24 12:32:38,587 - INFO - Validated that VN ctest-vn-33019922 is not found in API Server 2025-06-24 12:32:38,600 - DEBUG - VN ctest-vn-33019922 is not present in Agent 10.0.0.241 2025-06-24 12:32:38,600 - INFO - Validated that VN ctest-vn-33019922 is not in any agent 2025-06-24 12:32:38,619 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33019922 info 2025-06-24 12:32:38,619 - INFO - Deleting VN ctest-vn-55206133 2025-06-24 12:32:38,732 - DEBUG - Response for deleting network () 2025-06-24 12:32:38,733 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/124fc9cb-f571-4f54-879b-09a1a22f8b36 2025-06-24 12:32:38,741 - DEBUG - Response Code: 404 2025-06-24 12:32:38,741 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-06-24 12:32:38,748 - DEBUG - Requesting: http://10.0.0.241:8082/domain/b7be96f3-3f30-4082-aef5-8dcb469b59f6 2025-06-24 12:32:38,803 - DEBUG - Requesting: http://10.0.0.241:8082/project/f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf 2025-06-24 12:32:38,874 - INFO - Validated that VN ctest-vn-55206133 is not found in API Server 2025-06-24 12:32:38,885 - DEBUG - VN ctest-vn-55206133 is not present in Agent 10.0.0.241 2025-06-24 12:32:38,885 - INFO - Validated that VN ctest-vn-55206133 is not in any agent 2025-06-24 12:32:38,900 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-55206133 info 2025-06-24 12:32:39,156 - DEBUG - No XMPP flaps were noticed during the test
2025-06-24 12:32:39,156 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-24 12:32:39,156 - INFO - -------------------------------------------------------------------------------- 2025-06-24 12:32:39,836 - INFO - Deleted project: ctest-TestBasicPolicy-03406933, ID : f3f4a911-5dc7-4ec7-9fc5-a73e579ebbdf