2025-04-17 10:27:56,252 - INFO - Domain Default found not creating 2025-04-17 10:27:56,467 - INFO - Project ctest-TestBasicPolicy-27828936 not found, creating it 2025-04-17 10:27:57,012 - INFO - Created Project:ctest-TestBasicPolicy-27828936, ID : 7e5cca23-c845-4295-bf25-b0d19c52a7aa 2025-04-17 10:27:58,814 - INFO - ================================================================================ 2025-04-17 10:27:58,814 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-17 10:27:58,814 - 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-17 10:27:59,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-04-17 10:27:59,102 - INFO - Initial checks done. Running the testcase now 2025-04-17 10:27:59,103 - INFO - 2025-04-17 10:27:59,800 - DEBUG - Response for create_network : {'network': {'id': '3fac644e-2219-449d-ac38-eb7dcae777ff', 'name': 'ctest-vn-48648250', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-48648250'], 'port_security_enabled': True, 'description': ''}} 2025-04-17 10:28:00,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ae920db-a155-4106-8e49-8ac3da169d84', 'name': '', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'network_id': '3fac644e-2219-449d-ac38-eb7dcae777ff', 'ip_version': 4, 'cidr': '50.95.109.192/26', 'allocation_pools': [{'start': '50.95.109.194', 'end': '50.95.109.254'}], 'gateway_ip': '50.95.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.95.109.194', 'tags': [], 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa'}} 2025-04-17 10:28:00,068 - INFO - Created VN ctest-vn-48648250 2025-04-17 10:28:00,125 - DEBUG - VN ctest-vn-48648250 UUID is 3fac644e-2219-449d-ac38-eb7dcae777ff 2025-04-17 10:28:00,494 - DEBUG - Response for create_network : {'network': {'id': '53f2a77e-5b23-420b-91fc-b3e3fab72fc0', 'name': 'ctest-vn-91169390', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-91169390'], 'port_security_enabled': True, 'description': ''}} 2025-04-17 10:28:00,682 - DEBUG - Response for create_subnet : {'subnet': {'id': '8deeec0e-4bb4-435e-a437-e3d67e4e1604', 'name': '', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'network_id': '53f2a77e-5b23-420b-91fc-b3e3fab72fc0', 'ip_version': 4, 'cidr': '37.93.8.192/26', 'allocation_pools': [{'start': '37.93.8.194', 'end': '37.93.8.254'}], 'gateway_ip': '37.93.8.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.93.8.194', 'tags': [], 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa'}} 2025-04-17 10:28:00,712 - INFO - Created VN ctest-vn-91169390 2025-04-17 10:28:00,769 - DEBUG - VN ctest-vn-91169390 UUID is 53f2a77e-5b23-420b-91fc-b3e3fab72fc0 2025-04-17 10:28:00,911 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250, 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-27828936:ctest-vn-91169390, 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-17 10:28:01,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fac644e-2219-449d-ac38-eb7dcae777ff', 'name': 'ctest-vn-48648250', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ae920db-a155-4106-8e49-8ac3da169d84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-48648250'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330']], 'subnet_ipam': [{'subnet_cidr': '50.95.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-17 10:28:01,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53f2a77e-5b23-420b-91fc-b3e3fab72fc0', 'name': 'ctest-vn-91169390', 'tenant_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'project_id': '7e5cca23c8454295bf25b0d19c52a7aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8deeec0e-4bb4-435e-a437-e3d67e4e1604'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-vn-91169390'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330']], 'subnet_ipam': [{'subnet_cidr': '37.93.8.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-17 10:28:01,705 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-04-17 10:28:02,044 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-04-17 10:28:02,099 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0 2025-04-17 10:28:02,118 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa 2025-04-17 10:28:02,217 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff 2025-04-17 10:28:02,232 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff 2025-04-17 10:28:02,244 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10 2025-04-17 10:28:02,256 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10 2025-04-17 10:28:02,270 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ba63de21-8fb0-4b4a-8702-438a1e8a36c8 2025-04-17 10:28:02,285 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-17 10:28:02,285 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff 2025-04-17 10:28:02,299 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10 2025-04-17 10:28:02,319 - INFO - Verified VN network id 7 for VN 3fac644e-2219-449d-ac38-eb7dcae777ff 2025-04-17 10:28:02,319 - INFO - Verifications in API Server for VN ctest-vn-48648250 passed 2025-04-17 10:28:02,319 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff 2025-04-17 10:28:02,332 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10 2025-04-17 10:28:02,342 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10 2025-04-17 10:28:02,351 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ba63de21-8fb0-4b4a-8702-438a1e8a36c8 2025-04-17 10:28:02,370 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27828936', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4588152407126000797', 'uuid-lslong': '12409927698727008255'}, 'enable': 'true', 'created': '2025-04-17T10:27:59', 'last-modified': '2025-04-17T10:28:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129977'} 2025-04-17 10:28:02,381 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-17 10:28:02,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48648250 passed 2025-04-17 10:28:02,382 - DEBUG - ====Verifying policy data for ctest-vn-48648250 in API_Server ====== 2025-04-17 10:28:02,382 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-04-17 10:28:02,394 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0 2025-04-17 10:28:02,411 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa 2025-04-17 10:28:02,502 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3fac644e-2219-449d-ac38-eb7dcae777ff 2025-04-17 10:28:02,515 - DEBUG - ==>Verifying data for policy with id: 6259c836-a4a7-425d-bde8-2338bd6b26ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330'] 2025-04-17 10:28:02,515 - INFO - VN ctest-vn-48648250 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-17 10:28:02,515 - DEBUG - Verifying the vn in opserver 2025-04-17 10:28:02,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250 virtual network link through opserver 10.0.0.242 2025-04-17 10:28:02,516 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-04-17 10:28:02,841 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-04-17 10:28:02,930 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250?flat'} 2025-04-17 10:28:02,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250 is found in opserver 2025-04-17 10:28:02,947 - DEBUG - Do not have enough data to verify VN in agent 2025-04-17 10:28:02,954 - DEBUG - VRF ids for VN ctest-vn-48648250: {} 2025-04-17 10:28:02,954 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-04-17 10:28:02,963 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0 2025-04-17 10:28:02,984 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa 2025-04-17 10:28:03,075 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0 2025-04-17 10:28:03,094 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0 2025-04-17 10:28:03,111 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109 2025-04-17 10:28:03,123 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109 2025-04-17 10:28:03,135 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/24187485-1df5-4af6-b674-3680842c4d27 2025-04-17 10:28:03,149 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-17 10:28:03,149 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0 2025-04-17 10:28:03,164 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109 2025-04-17 10:28:03,187 - INFO - Verified VN network id 8 for VN 53f2a77e-5b23-420b-91fc-b3e3fab72fc0 2025-04-17 10:28:03,187 - INFO - Verifications in API Server for VN ctest-vn-91169390 passed 2025-04-17 10:28:03,187 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0 2025-04-17 10:28:03,203 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109 2025-04-17 10:28:03,214 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109 2025-04-17 10:28:03,226 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/24187485-1df5-4af6-b674-3680842c4d27 2025-04-17 10:28:03,245 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27828936', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6049081410648752651', 'uuid-lslong': '10519480621375893440'}, 'enable': 'true', 'created': '2025-04-17T10:28:00', 'last-modified': '2025-04-17T10:28:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.746189'} 2025-04-17 10:28:03,254 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-17 10:28:03,254 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91169390 passed 2025-04-17 10:28:03,254 - DEBUG - ====Verifying policy data for ctest-vn-91169390 in API_Server ====== 2025-04-17 10:28:03,254 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-04-17 10:28:03,263 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0 2025-04-17 10:28:03,282 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa 2025-04-17 10:28:03,373 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/53f2a77e-5b23-420b-91fc-b3e3fab72fc0 2025-04-17 10:28:03,386 - DEBUG - ==>Verifying data for policy with id: 6259c836-a4a7-425d-bde8-2338bd6b26ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-27828936', 'ctest-policy-allow-all-35562330'] 2025-04-17 10:28:03,386 - INFO - VN ctest-vn-91169390 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-17 10:28:03,386 - DEBUG - Verifying the vn in opserver 2025-04-17 10:28:03,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390 virtual network link through opserver 10.0.0.242 2025-04-17 10:28:03,387 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-04-17 10:28:03,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390?flat'} 2025-04-17 10:28:03,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-91169390 is found in opserver 2025-04-17 10:28:03,416 - DEBUG - Do not have enough data to verify VN in agent 2025-04-17 10:28:03,424 - DEBUG - VRF ids for VN ctest-vn-91169390: {} 2025-04-17 10:28:03,512 - DEBUG - Services list from nova: [, , ] 2025-04-17 10:28:04,778 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3135-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3135-1) 2025-04-17 10:28:06,190 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3135-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3135-1) 2025-04-17 10:28:06,190 - INFO - Waiting for VM ctest-TestBasicPolicy-27828936-09728573 to be up.. 2025-04-17 10:28:06,297 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-17 10:28:11,409 - DEBUG - VM is in ACTIVE state now 2025-04-17 10:28:11,409 - INFO - VM name : ctest-TestBasicPolicy-27828936-09728573 2025-04-17 10:28:11,523 - DEBUG - VM ctest-TestBasicPolicy-27828936-09728573 ID is 079b15fe-728c-4cdf-bcdc-d10ad63306b7 2025-04-17 10:28:11,549 - DEBUG - VM ctest-TestBasicPolicy-27828936-09728573 launched on Node cn-jenkins-deploy-platform-ansible-os-3135-1 2025-04-17 10:28:11,656 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/079b15fe-728c-4cdf-bcdc-d10ad63306b7 2025-04-17 10:28:11,669 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/13f577c4-3fc7-4ff3-b22a-7d9862f7029f 2025-04-17 10:28:14,960 - 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 1025ms') 2025-04-17 10:28:14,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27828936-09728573 failed! 2025-04-17 10:28:15,021 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27828936:ctest-vn-48648250 is 50.95.109.193 and allocation pool is NOT set 2025-04-17 10:28:17,091 - 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.64 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.50 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.504/6.074/9.644/3.570 ms') 2025-04-17 10:28:17,091 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27828936-09728573 passed 2025-04-17 10:28:17,253 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 10:28:17,254 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27828936-09728573, IP 50.95.109.195, Port 22 2025-04-17 10:28:17,324 - 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-17 10:28:17,443 - DEBUG - VM ctest-TestBasicPolicy-27828936-09728573 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-17 10:28:22,444 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 10:28:22,445 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27828936-09728573, IP 50.95.109.195, Port 22 2025-04-17 10:28:22,611 - DEBUG - VM ctest-TestBasicPolicy-27828936-09728573 is ready for SSH connections 2025-04-17 10:28:22,611 - INFO - Waiting for VM ctest-TestBasicPolicy-27828936-18013683 to be up.. 2025-04-17 10:28:22,710 - DEBUG - VM is in ACTIVE state now 2025-04-17 10:28:22,710 - INFO - VM name : ctest-TestBasicPolicy-27828936-18013683 2025-04-17 10:28:22,820 - DEBUG - VM ctest-TestBasicPolicy-27828936-18013683 ID is 262b79e0-dcbc-4c65-9eed-5c4770067f62 2025-04-17 10:28:22,821 - DEBUG - VM ctest-TestBasicPolicy-27828936-18013683 launched on Node cn-jenkins-deploy-platform-ansible-os-3135-1 2025-04-17 10:28:22,936 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine/262b79e0-dcbc-4c65-9eed-5c4770067f62 2025-04-17 10:28:22,948 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/799b36a5-70e8-4498-9dc6-781698f53f0b 2025-04-17 10:28:24,210 - 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.45 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.604 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.604/2.025/3.447/1.421 ms') 2025-04-17 10:28:24,211 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-27828936-18013683 passed 2025-04-17 10:28:24,369 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 10:28:24,369 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27828936-18013683, IP 37.93.8.195, Port 22 2025-04-17 10:28:24,535 - DEBUG - VM ctest-TestBasicPolicy-27828936-18013683 is ready for SSH connections 2025-04-17 10:28:24,535 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 10:28:24,536 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.93.8.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-04-17 10:28:24,536 - DEBUG - ping -s 56 -c 3 -W 1 37.93.8.195 2025-04-17 10:28:28,748 - DEBUG - PING 37.93.8.195 (37.93.8.195): 56 data bytes 64 bytes from 37.93.8.195: seq=0 ttl=63 time=4.103 ms 64 bytes from 37.93.8.195: seq=1 ttl=63 time=1.537 ms 64 bytes from 37.93.8.195: seq=2 ttl=63 time=1.740 ms --- 37.93.8.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.537/2.460/4.103 ms 2025-04-17 10:28:28,748 - INFO - Ping to IP 37.93.8.195 from VM ctest-TestBasicPolicy-27828936-09728573 passed 2025-04-17 10:28:28,949 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6259c836-a4a7-425d-bde8-2338bd6b26ad", "href": "http://10.0.0.242:8082/network-policy/6259c836-a4a7-425d-bde8-2338bd6b26ad"}} 2025-04-17 10:28:28,949 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-17 10:28:28,949 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.93.8.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.242, gateway password: c0ntrail123 2025-04-17 10:28:28,950 - DEBUG - ping -s 56 -c 3 -W 1 37.93.8.195 2025-04-17 10:28:32,188 - DEBUG - PING 37.93.8.195 (37.93.8.195): 56 data bytes --- 37.93.8.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-17 10:28:32,188 - WARNING - Ping to IP 37.93.8.195 from VM ctest-TestBasicPolicy-27828936-09728573 failed 2025-04-17 10:28:32,189 - INFO - Deleting VM ctest-TestBasicPolicy-27828936-18013683 2025-04-17 10:28:32,311 - INFO - Deleting VM ctest-TestBasicPolicy-27828936-09728573 2025-04-17 10:28:32,852 - INFO - Deleted policy ctest-policy-allow-all-35562330 2025-04-17 10:28:32,852 - INFO - Deleting VN ctest-vn-91169390 2025-04-17 10:28:32,900 - DEBUG - VN 53f2a77e-5b23-420b-91fc-b3e3fab72fc0 still in use: Unable to complete operation on network 53f2a77e-5b23-420b-91fc-b3e3fab72fc0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fe4e11fa-d940-486f-86b2-d527d0066d90'] 2025-04-17 10:28:32,900 - WARNING - Deleting VN ctest-vn-91169390 failed..Will retry 2025-04-17 10:28:35,049 - DEBUG - Response for deleting network () 2025-04-17 10:28:35,049 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3fcb8c17-44ad-411c-a7dd-f82dd314e109 2025-04-17 10:28:35,061 - DEBUG - Response Code: 404 2025-04-17 10:28:35,061 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-04-17 10:28:35,069 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0 2025-04-17 10:28:35,130 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa 2025-04-17 10:28:35,213 - INFO - Validated that VN ctest-vn-91169390 is not found in API Server 2025-04-17 10:28:35,230 - DEBUG - VN ctest-vn-91169390 is not present in Agent 10.0.0.242 2025-04-17 10:28:35,230 - INFO - Validated that VN ctest-vn-91169390 is not in any agent 2025-04-17 10:28:35,253 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91169390 info 2025-04-17 10:28:35,253 - INFO - Deleting VN ctest-vn-48648250 2025-04-17 10:28:35,421 - DEBUG - Response for deleting network () 2025-04-17 10:28:35,422 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0716ac1a-6465-4708-b113-4d62ef711e10 2025-04-17 10:28:35,429 - DEBUG - Response Code: 404 2025-04-17 10:28:35,430 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-04-17 10:28:35,440 - DEBUG - Requesting: http://10.0.0.242:8082/domain/61d10a62-1f4a-4887-a2e0-b7ce75851fb0 2025-04-17 10:28:35,459 - DEBUG - Requesting: http://10.0.0.242:8082/project/7e5cca23-c845-4295-bf25-b0d19c52a7aa 2025-04-17 10:28:35,538 - INFO - Validated that VN ctest-vn-48648250 is not found in API Server 2025-04-17 10:28:35,551 - DEBUG - VN ctest-vn-48648250 is not present in Agent 10.0.0.242 2025-04-17 10:28:35,551 - INFO - Validated that VN ctest-vn-48648250 is not in any agent 2025-04-17 10:28:35,572 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48648250 info 2025-04-17 10:28:35,845 - DEBUG - No XMPP flaps were noticed during the test
2025-04-17 10:28:35,845 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-04-17 10:28:35,845 - INFO - -------------------------------------------------------------------------------- 2025-04-17 10:28:36,645 - INFO - Deleted project: ctest-TestBasicPolicy-27828936, ID : 7e5cca23-c845-4295-bf25-b0d19c52a7aa