2025-04-27 08:21:02,184 - INFO - Domain Default found not creating 2025-04-27 08:21:02,469 - INFO - Project ctest-TestBasicPolicy-10367648 not found, creating it 2025-04-27 08:21:03,257 - INFO - Created Project:ctest-TestBasicPolicy-10367648, ID : 99ec7f4c-0aed-46dd-be18-8a04146a35c1 2025-04-27 08:21:05,440 - INFO - ================================================================================ 2025-04-27 08:21:05,440 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-27 08:21:05,441 - 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-04-27 08:21:05,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-04-27 08:21:05,758 - INFO - Initial checks done. Running the testcase now 2025-04-27 08:21:05,758 - INFO - 2025-04-27 08:21:06,791 - DEBUG - Response for create_network : {'network': {'id': '9050ab1a-9f23-4303-8a8e-a8c667212cb6', 'name': 'ctest-vn-04000066', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-04000066'], 'port_security_enabled': True, 'description': ''}} 2025-04-27 08:21:07,072 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b913d602-c050-45e4-8bad-6971b7f47436', 'name': '', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'network_id': '9050ab1a-9f23-4303-8a8e-a8c667212cb6', 'ip_version': 4, 'cidr': '168.94.153.192/26', 'allocation_pools': [{'start': '168.94.153.194', 'end': '168.94.153.254'}], 'gateway_ip': '168.94.153.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.94.153.194', 'tags': [], 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1'}} 2025-04-27 08:21:07,099 - INFO - Created VN ctest-vn-04000066 2025-04-27 08:21:07,159 - DEBUG - VN ctest-vn-04000066 UUID is 9050ab1a-9f23-4303-8a8e-a8c667212cb6 2025-04-27 08:21:07,686 - DEBUG - Response for create_network : {'network': {'id': '5e877021-592b-47e2-baaf-4fee6abdeba1', 'name': 'ctest-vn-28699146', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-28699146'], 'port_security_enabled': True, 'description': ''}} 2025-04-27 08:21:07,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d306570-b69e-4810-87cf-149b66ed50a1', 'name': '', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'network_id': '5e877021-592b-47e2-baaf-4fee6abdeba1', 'ip_version': 4, 'cidr': '86.137.191.192/26', 'allocation_pools': [{'start': '86.137.191.194', 'end': '86.137.191.254'}], 'gateway_ip': '86.137.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.137.191.194', 'tags': [], 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1'}} 2025-04-27 08:21:07,971 - INFO - Created VN ctest-vn-28699146 2025-04-27 08:21:08,040 - DEBUG - VN ctest-vn-28699146 UUID is 5e877021-592b-47e2-baaf-4fee6abdeba1 2025-04-27 08:21:08,238 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066, 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-10367648:ctest-vn-28699146, 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-04-27 08:21:08,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9050ab1a-9f23-4303-8a8e-a8c667212cb6', 'name': 'ctest-vn-04000066', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b913d602-c050-45e4-8bad-6971b7f47436'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-04000066'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039']], 'subnet_ipam': [{'subnet_cidr': '168.94.153.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-27 08:21:09,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e877021-592b-47e2-baaf-4fee6abdeba1', 'name': 'ctest-vn-28699146', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d306570-b69e-4810-87cf-149b66ed50a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-28699146'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039']], 'subnet_ipam': [{'subnet_cidr': '86.137.191.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-27 08:21:09,300 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-27 08:21:09,676 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-27 08:21:09,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d 2025-04-27 08:21:09,806 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1 2025-04-27 08:21:09,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6 2025-04-27 08:21:09,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6 2025-04-27 08:21:10,035 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d 2025-04-27 08:21:10,060 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d 2025-04-27 08:21:10,083 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4869bb1c-4d0a-4499-be74-087a825c8b46 2025-04-27 08:21:10,107 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-27 08:21:10,107 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6 2025-04-27 08:21:10,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d 2025-04-27 08:21:10,190 - INFO - Verified VN network id 7 for VN 9050ab1a-9f23-4303-8a8e-a8c667212cb6 2025-04-27 08:21:10,190 - INFO - Verifications in API Server for VN ctest-vn-04000066 passed 2025-04-27 08:21:10,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6 2025-04-27 08:21:10,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d 2025-04-27 08:21:10,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d 2025-04-27 08:21:10,268 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4869bb1c-4d0a-4499-be74-087a825c8b46 2025-04-27 08:21:10,310 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10367648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10398999670425862915', 'uuid-lslong': '9984102994014186678'}, 'enable': 'true', 'created': '2025-04-27T08:21:06', 'last-modified': '2025-04-27T08:21:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.625370'} 2025-04-27 08:21:10,333 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-27 08:21:10,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04000066 passed 2025-04-27 08:21:10,334 - DEBUG - ====Verifying policy data for ctest-vn-04000066 in API_Server ====== 2025-04-27 08:21:10,334 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-27 08:21:10,351 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d 2025-04-27 08:21:10,390 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1 2025-04-27 08:21:10,539 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6 2025-04-27 08:21:10,570 - DEBUG - ==>Verifying data for policy with id: 6fb22988-093a-402c-8912-2e25afc245cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039'] 2025-04-27 08:21:10,570 - INFO - VN ctest-vn-04000066 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-27 08:21:10,571 - DEBUG - Verifying the vn in opserver 2025-04-27 08:21:10,571 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066 virtual network link through opserver 10.0.0.38 2025-04-27 08:21:10,571 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-27 08:21:10,937 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-27 08:21:11,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066?flat'} 2025-04-27 08:21:11,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066 is found in opserver 2025-04-27 08:21:11,074 - DEBUG - Do not have enough data to verify VN in agent 2025-04-27 08:21:11,096 - DEBUG - VRF ids for VN ctest-vn-04000066: {} 2025-04-27 08:21:11,096 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-27 08:21:11,114 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d 2025-04-27 08:21:11,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1 2025-04-27 08:21:11,286 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1 2025-04-27 08:21:11,316 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1 2025-04-27 08:21:11,347 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa 2025-04-27 08:21:11,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa 2025-04-27 08:21:11,378 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dadb9f18-3f7a-4206-8b89-bcc3ffe07606 2025-04-27 08:21:11,393 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-27 08:21:11,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1 2025-04-27 08:21:11,420 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa 2025-04-27 08:21:11,458 - INFO - Verified VN network id 8 for VN 5e877021-592b-47e2-baaf-4fee6abdeba1 2025-04-27 08:21:11,458 - INFO - Verifications in API Server for VN ctest-vn-28699146 passed 2025-04-27 08:21:11,458 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1 2025-04-27 08:21:11,490 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa 2025-04-27 08:21:11,507 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa 2025-04-27 08:21:11,525 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dadb9f18-3f7a-4206-8b89-bcc3ffe07606 2025-04-27 08:21:11,561 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10367648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6811536249953404898', 'uuid-lslong': '13452058497390603169'}, 'enable': 'true', 'created': '2025-04-27T08:21:07', 'last-modified': '2025-04-27T08:21:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.526709'} 2025-04-27 08:21:11,582 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-27 08:21:11,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28699146 passed 2025-04-27 08:21:11,583 - DEBUG - ====Verifying policy data for ctest-vn-28699146 in API_Server ====== 2025-04-27 08:21:11,583 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-27 08:21:11,597 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d 2025-04-27 08:21:11,625 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1 2025-04-27 08:21:11,752 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1 2025-04-27 08:21:11,778 - DEBUG - ==>Verifying data for policy with id: 6fb22988-093a-402c-8912-2e25afc245cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039'] 2025-04-27 08:21:11,778 - INFO - VN ctest-vn-28699146 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-27 08:21:11,779 - DEBUG - Verifying the vn in opserver 2025-04-27 08:21:11,779 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146 virtual network link through opserver 10.0.0.38 2025-04-27 08:21:11,779 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-04-27 08:21:11,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146?flat'} 2025-04-27 08:21:11,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146 is found in opserver 2025-04-27 08:21:11,819 - DEBUG - Do not have enough data to verify VN in agent 2025-04-27 08:21:11,832 - DEBUG - VRF ids for VN ctest-vn-28699146: {} 2025-04-27 08:21:11,963 - DEBUG - Services list from nova: [, , ] 2025-04-27 08:21:13,358 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3226-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3226-1) 2025-04-27 08:21:14,930 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3226-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3226-1) 2025-04-27 08:21:14,930 - INFO - Waiting for VM ctest-TestBasicPolicy-10367648-53825309 to be up.. 2025-04-27 08:21:15,004 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-27 08:21:20,209 - DEBUG - VM is in ACTIVE state now 2025-04-27 08:21:20,209 - INFO - VM name : ctest-TestBasicPolicy-10367648-53825309 2025-04-27 08:21:20,364 - DEBUG - VM ctest-TestBasicPolicy-10367648-53825309 ID is 03780805-bd49-49e8-8276-a8556f4b94c5 2025-04-27 08:21:20,395 - DEBUG - VM ctest-TestBasicPolicy-10367648-53825309 launched on Node cn-jenkins-deploy-platform-ansible-os-3226-1 2025-04-27 08:21:20,497 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/03780805-bd49-49e8-8276-a8556f4b94c5 2025-04-27 08:21:20,507 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/fe898ac0-f125-4956-aa32-cd6201d1fde6 2025-04-27 08:21:23,796 - 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 1002ms') 2025-04-27 08:21:23,797 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10367648-53825309 failed! 2025-04-27 08:21:23,875 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066 is 168.94.153.193 and allocation pool is NOT set 2025-04-27 08:21:25,954 - 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=11.6 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.00 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.002/6.788/11.574/4.786 ms') 2025-04-27 08:21:25,955 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-10367648-53825309 passed 2025-04-27 08:21:26,144 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 08:21:26,145 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10367648-53825309, IP 168.94.153.195, Port 22 2025-04-27 08:21:26,217 - 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-04-27 08:21:26,369 - DEBUG - VM ctest-TestBasicPolicy-10367648-53825309 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-27 08:21:31,370 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 08:21:31,371 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10367648-53825309, IP 168.94.153.195, Port 22 2025-04-27 08:21:31,585 - DEBUG - VM ctest-TestBasicPolicy-10367648-53825309 is ready for SSH connections 2025-04-27 08:21:31,585 - INFO - Waiting for VM ctest-TestBasicPolicy-10367648-33889500 to be up.. 2025-04-27 08:21:31,792 - DEBUG - VM is in ACTIVE state now 2025-04-27 08:21:31,792 - INFO - VM name : ctest-TestBasicPolicy-10367648-33889500 2025-04-27 08:21:32,003 - DEBUG - VM ctest-TestBasicPolicy-10367648-33889500 ID is 84663c9b-82ca-4201-bba0-ba110748a3d9 2025-04-27 08:21:32,003 - DEBUG - VM ctest-TestBasicPolicy-10367648-33889500 launched on Node cn-jenkins-deploy-platform-ansible-os-3226-1 2025-04-27 08:21:32,196 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/84663c9b-82ca-4201-bba0-ba110748a3d9 2025-04-27 08:21:32,218 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/beec7c79-cdc8-4427-bf35-14a39390acfa 2025-04-27 08:21:33,542 - 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=8.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.742 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.742/4.684/8.626/3.942 ms') 2025-04-27 08:21:33,543 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-10367648-33889500 passed 2025-04-27 08:21:33,744 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 08:21:33,744 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-10367648-33889500, IP 86.137.191.195, Port 22 2025-04-27 08:21:33,951 - DEBUG - VM ctest-TestBasicPolicy-10367648-33889500 is ready for SSH connections 2025-04-27 08:21:33,952 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 08:21:33,952 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.137.191.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-27 08:21:33,953 - DEBUG - ping -s 56 -c 3 -W 1 86.137.191.195 2025-04-27 08:21:38,588 - DEBUG - PING 86.137.191.195 (86.137.191.195): 56 data bytes 64 bytes from 86.137.191.195: seq=0 ttl=63 time=4.706 ms 64 bytes from 86.137.191.195: seq=1 ttl=63 time=1.935 ms 64 bytes from 86.137.191.195: seq=2 ttl=63 time=2.030 ms --- 86.137.191.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.935/2.890/4.706 ms 2025-04-27 08:21:38,589 - INFO - Ping to IP 86.137.191.195 from VM ctest-TestBasicPolicy-10367648-53825309 passed 2025-04-27 08:21:38,871 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6fb22988-093a-402c-8912-2e25afc245cc", "href": "http://10.0.0.38:8082/network-policy/6fb22988-093a-402c-8912-2e25afc245cc"}} 2025-04-27 08:21:38,872 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-27 08:21:38,872 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 86.137.191.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-04-27 08:21:38,872 - DEBUG - ping -s 56 -c 3 -W 1 86.137.191.195 2025-04-27 08:21:42,162 - DEBUG - PING 86.137.191.195 (86.137.191.195): 56 data bytes --- 86.137.191.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-27 08:21:42,162 - WARNING - Ping to IP 86.137.191.195 from VM ctest-TestBasicPolicy-10367648-53825309 failed 2025-04-27 08:21:42,162 - INFO - Deleting VM ctest-TestBasicPolicy-10367648-33889500 2025-04-27 08:21:42,307 - INFO - Deleting VM ctest-TestBasicPolicy-10367648-53825309 2025-04-27 08:21:42,863 - INFO - Deleted policy ctest-policy-allow-all-82309039 2025-04-27 08:21:42,863 - INFO - Deleting VN ctest-vn-28699146 2025-04-27 08:21:42,901 - DEBUG - VN 5e877021-592b-47e2-baaf-4fee6abdeba1 still in use: Unable to complete operation on network 5e877021-592b-47e2-baaf-4fee6abdeba1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b8f40c4d-c904-4106-825f-398655d6e8d8'] 2025-04-27 08:21:42,901 - WARNING - Deleting VN ctest-vn-28699146 failed..Will retry 2025-04-27 08:21:45,071 - DEBUG - Response for deleting network () 2025-04-27 08:21:45,071 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa 2025-04-27 08:21:45,083 - DEBUG - Response Code: 404 2025-04-27 08:21:45,083 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-27 08:21:45,090 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d 2025-04-27 08:21:45,155 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1 2025-04-27 08:21:45,245 - INFO - Validated that VN ctest-vn-28699146 is not found in API Server 2025-04-27 08:21:45,259 - DEBUG - VN ctest-vn-28699146 is not present in Agent 10.0.0.38 2025-04-27 08:21:45,259 - INFO - Validated that VN ctest-vn-28699146 is not in any agent 2025-04-27 08:21:45,283 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-28699146 info 2025-04-27 08:21:45,284 - INFO - Deleting VN ctest-vn-04000066 2025-04-27 08:21:45,464 - DEBUG - Response for deleting network () 2025-04-27 08:21:45,464 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d 2025-04-27 08:21:45,472 - DEBUG - Response Code: 404 2025-04-27 08:21:45,472 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-04-27 08:21:45,480 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d 2025-04-27 08:21:45,539 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1 2025-04-27 08:21:45,646 - INFO - Validated that VN ctest-vn-04000066 is not found in API Server 2025-04-27 08:21:45,668 - DEBUG - VN ctest-vn-04000066 is not present in Agent 10.0.0.38 2025-04-27 08:21:45,668 - INFO - Validated that VN ctest-vn-04000066 is not in any agent 2025-04-27 08:21:45,702 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04000066 info 2025-04-27 08:21:46,041 - DEBUG - No XMPP flaps were noticed during the test 2025-04-27 08:21:46,041 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:41] 2025-04-27 08:21:46,041 - INFO - -------------------------------------------------------------------------------- 2025-04-27 08:21:46,950 - INFO - Deleted project: ctest-TestBasicPolicy-10367648, ID : 99ec7f4c-0aed-46dd-be18-8a04146a35c1