2025-06-23 19:05:56,159 - INFO - Domain Default found not creating 2025-06-23 19:05:56,306 - INFO - Project ctest-TestBasicPolicy-52776439 not found, creating it 2025-06-23 19:05:56,794 - INFO - Created Project:ctest-TestBasicPolicy-52776439, ID : a7315542-8c44-42f5-89f4-1b7889667ed9 2025-06-23 19:05:58,382 - INFO - ================================================================================ 2025-06-23 19:05:58,382 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-23 19:05:58,382 - 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-23 19:05:58,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-06-23 19:05:58,638 - INFO - Initial checks done. Running the testcase now 2025-06-23 19:05:58,638 - INFO - 2025-06-23 19:05:59,236 - DEBUG - Response for create_network : {'network': {'id': 'e7681757-98f8-4a26-8162-4f30e90fbe21', 'name': 'ctest-vn-31661566', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-31661566'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 19:05:59,485 - DEBUG - Response for create_subnet : {'subnet': {'id': '454e81b4-2526-4ffe-bf73-8c687621c300', 'name': '', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'network_id': 'e7681757-98f8-4a26-8162-4f30e90fbe21', 'ip_version': 4, 'cidr': '206.218.168.192/26', 'allocation_pools': [{'start': '206.218.168.194', 'end': '206.218.168.254'}], 'gateway_ip': '206.218.168.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.218.168.194', 'tags': [], 'project_id': 'a73155428c4442f589f41b7889667ed9'}} 2025-06-23 19:05:59,503 - INFO - Created VN ctest-vn-31661566 2025-06-23 19:05:59,556 - DEBUG - VN ctest-vn-31661566 UUID is e7681757-98f8-4a26-8162-4f30e90fbe21 2025-06-23 19:05:59,865 - DEBUG - Response for create_network : {'network': {'id': '24e346c1-dd83-40f2-9af6-f0b47320846e', 'name': 'ctest-vn-08495203', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-08495203'], 'port_security_enabled': True, 'description': ''}} 2025-06-23 19:06:00,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b1cdd52-88ba-49bc-b672-3742dcde10c1', 'name': '', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'network_id': '24e346c1-dd83-40f2-9af6-f0b47320846e', 'ip_version': 4, 'cidr': '153.243.228.0/26', 'allocation_pools': [{'start': '153.243.228.2', 'end': '153.243.228.62'}], 'gateway_ip': '153.243.228.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.243.228.2', 'tags': [], 'project_id': 'a73155428c4442f589f41b7889667ed9'}} 2025-06-23 19:06:00,062 - INFO - Created VN ctest-vn-08495203 2025-06-23 19:06:00,116 - DEBUG - VN ctest-vn-08495203 UUID is 24e346c1-dd83-40f2-9af6-f0b47320846e 2025-06-23 19:06:00,228 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566, 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-52776439:ctest-vn-08495203, 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-23 19:06:00,531 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7681757-98f8-4a26-8162-4f30e90fbe21', 'name': 'ctest-vn-31661566', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['454e81b4-2526-4ffe-bf73-8c687621c300'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-31661566'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674']], 'subnet_ipam': [{'subnet_cidr': '206.218.168.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 19:06:00,782 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24e346c1-dd83-40f2-9af6-f0b47320846e', 'name': 'ctest-vn-08495203', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b1cdd52-88ba-49bc-b672-3742dcde10c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-08495203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674']], 'subnet_ipam': [{'subnet_cidr': '153.243.228.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-23 19:06:00,960 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 19:06:01,299 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 19:06:01,329 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180 2025-06-23 19:06:01,344 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9 2025-06-23 19:06:01,424 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21 2025-06-23 19:06:01,436 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21 2025-06-23 19:06:01,446 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed 2025-06-23 19:06:01,454 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed 2025-06-23 19:06:01,462 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a1a7ce71-2a31-429f-b1a3-17c30c8497a8 2025-06-23 19:06:01,471 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 19:06:01,471 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21 2025-06-23 19:06:01,482 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed 2025-06-23 19:06:01,499 - INFO - Verified VN network id 9 for VN e7681757-98f8-4a26-8162-4f30e90fbe21 2025-06-23 19:06:01,499 - INFO - Verifications in API Server for VN ctest-vn-31661566 passed 2025-06-23 19:06:01,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21 2025-06-23 19:06:01,510 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed 2025-06-23 19:06:01,518 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed 2025-06-23 19:06:01,526 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a1a7ce71-2a31-429f-b1a3-17c30c8497a8 2025-06-23 19:06:01,540 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52776439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16674603285335263782', 'uuid-lslong': '9323101250097495585'}, 'enable': 'true', 'created': '2025-06-23T19:05:59', 'last-modified': '2025-06-23T19:06:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036346'} 2025-06-23 19:06:01,547 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-23 19:06:01,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31661566 passed 2025-06-23 19:06:01,548 - DEBUG - ====Verifying policy data for ctest-vn-31661566 in API_Server ====== 2025-06-23 19:06:01,548 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 19:06:01,554 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180 2025-06-23 19:06:01,567 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9 2025-06-23 19:06:01,647 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21 2025-06-23 19:06:01,659 - DEBUG - ==>Verifying data for policy with id: 1fc59955-9f81-4320-aa6b-2559ddf78255, fqn: ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674'] 2025-06-23 19:06:01,659 - INFO - VN ctest-vn-31661566 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 19:06:01,659 - DEBUG - Verifying the vn in opserver 2025-06-23 19:06:01,659 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566 virtual network link through opserver 10.0.0.254 2025-06-23 19:06:01,659 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 19:06:01,999 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 19:06:02,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566?flat'} 2025-06-23 19:06:02,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566 is found in opserver 2025-06-23 19:06:02,080 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 19:06:02,087 - DEBUG - VRF ids for VN ctest-vn-31661566: {} 2025-06-23 19:06:02,087 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 19:06:02,095 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180 2025-06-23 19:06:02,111 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9 2025-06-23 19:06:02,183 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e 2025-06-23 19:06:02,202 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e 2025-06-23 19:06:02,213 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df 2025-06-23 19:06:02,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df 2025-06-23 19:06:02,231 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e398fae0-5730-4c63-b2e6-6bbe636cab66 2025-06-23 19:06:02,239 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 19:06:02,239 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e 2025-06-23 19:06:02,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df 2025-06-23 19:06:02,271 - INFO - Verified VN network id 10 for VN 24e346c1-dd83-40f2-9af6-f0b47320846e 2025-06-23 19:06:02,271 - INFO - Verifications in API Server for VN ctest-vn-08495203 passed 2025-06-23 19:06:02,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e 2025-06-23 19:06:02,284 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df 2025-06-23 19:06:02,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df 2025-06-23 19:06:02,303 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e398fae0-5730-4c63-b2e6-6bbe636cab66 2025-06-23 19:06:02,319 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52776439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2658046003537723634', 'uuid-lslong': '11166376983928013934'}, 'enable': 'true', 'created': '2025-06-23T19:05:59', 'last-modified': '2025-06-23T19:06:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.571115'} 2025-06-23 19:06:02,326 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-23 19:06:02,327 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08495203 passed 2025-06-23 19:06:02,327 - DEBUG - ====Verifying policy data for ctest-vn-08495203 in API_Server ====== 2025-06-23 19:06:02,327 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 19:06:02,333 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180 2025-06-23 19:06:02,345 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9 2025-06-23 19:06:02,418 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e 2025-06-23 19:06:02,428 - DEBUG - ==>Verifying data for policy with id: 1fc59955-9f81-4320-aa6b-2559ddf78255, fqn: ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674'] 2025-06-23 19:06:02,428 - INFO - VN ctest-vn-08495203 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-23 19:06:02,428 - DEBUG - Verifying the vn in opserver 2025-06-23 19:06:02,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203 virtual network link through opserver 10.0.0.254 2025-06-23 19:06:02,428 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-23 19:06:02,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203?flat'} 2025-06-23 19:06:02,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203 is found in opserver 2025-06-23 19:06:02,451 - DEBUG - Do not have enough data to verify VN in agent 2025-06-23 19:06:02,456 - DEBUG - VRF ids for VN ctest-vn-08495203: {} 2025-06-23 19:06:02,515 - DEBUG - Services list from nova: [, , ] 2025-06-23 19:06:03,627 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3523-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3523-1) 2025-06-23 19:06:04,996 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3523-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3523-1) 2025-06-23 19:06:04,996 - INFO - Waiting for VM ctest-TestBasicPolicy-52776439-72253846 to be up.. 2025-06-23 19:06:05,087 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-23 19:06:10,178 - DEBUG - VM is in ACTIVE state now 2025-06-23 19:06:10,178 - INFO - VM name : ctest-TestBasicPolicy-52776439-72253846 2025-06-23 19:06:10,262 - DEBUG - VM ctest-TestBasicPolicy-52776439-72253846 ID is 9f858d40-e6fb-4a6c-956f-edcd7cd17b59 2025-06-23 19:06:10,281 - DEBUG - VM ctest-TestBasicPolicy-52776439-72253846 launched on Node cn-jenkins-deploy-platform-ansible-os-3523-1 2025-06-23 19:06:10,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/9f858d40-e6fb-4a6c-956f-edcd7cd17b59 2025-06-23 19:06:10,370 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/40197ed0-dbb2-49ef-89f4-63331939bc33 2025-06-23 19:06:13,659 - 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 1034ms') 2025-06-23 19:06:13,659 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52776439-72253846 failed! 2025-06-23 19:06:13,717 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566 is 206.218.168.193 and allocation pool is NOT set 2025-06-23 19:06:15,776 - 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.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.66 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 = 1.658/5.132/8.607/3.474 ms') 2025-06-23 19:06:15,776 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-52776439-72253846 passed 2025-06-23 19:06:15,932 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 19:06:15,933 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52776439-72253846, IP 206.218.168.195, Port 22 2025-06-23 19:06:16,003 - 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-23 19:06:16,089 - DEBUG - VM ctest-TestBasicPolicy-52776439-72253846 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-23 19:06:21,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 19:06:21,090 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52776439-72253846, IP 206.218.168.195, Port 22 2025-06-23 19:06:21,244 - DEBUG - VM ctest-TestBasicPolicy-52776439-72253846 is ready for SSH connections 2025-06-23 19:06:21,244 - INFO - Waiting for VM ctest-TestBasicPolicy-52776439-72945200 to be up.. 2025-06-23 19:06:21,326 - DEBUG - VM is in ACTIVE state now 2025-06-23 19:06:21,326 - INFO - VM name : ctest-TestBasicPolicy-52776439-72945200 2025-06-23 19:06:21,417 - DEBUG - VM ctest-TestBasicPolicy-52776439-72945200 ID is df781a7d-0228-4382-95b3-01a99413d150 2025-06-23 19:06:21,417 - DEBUG - VM ctest-TestBasicPolicy-52776439-72945200 launched on Node cn-jenkins-deploy-platform-ansible-os-3523-1 2025-06-23 19:06:21,494 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/df781a7d-0228-4382-95b3-01a99413d150 2025-06-23 19:06:21,503 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/06aca05b-c0ca-4fec-897b-c46c1b2980cf 2025-06-23 19:06:22,747 - 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.94 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.389 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.389/1.663/2.937/1.274 ms') 2025-06-23 19:06:22,747 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-52776439-72945200 passed 2025-06-23 19:06:22,908 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 19:06:22,909 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-52776439-72945200, IP 153.243.228.3, Port 22 2025-06-23 19:06:23,064 - DEBUG - VM ctest-TestBasicPolicy-52776439-72945200 is ready for SSH connections 2025-06-23 19:06:23,064 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 19:06:23,065 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.243.228.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-23 19:06:23,065 - DEBUG - ping -s 56 -c 3 -W 1 153.243.228.3 2025-06-23 19:06:27,222 - DEBUG - PING 153.243.228.3 (153.243.228.3): 56 data bytes 64 bytes from 153.243.228.3: seq=0 ttl=63 time=3.650 ms 64 bytes from 153.243.228.3: seq=1 ttl=63 time=0.855 ms 64 bytes from 153.243.228.3: seq=2 ttl=63 time=0.816 ms --- 153.243.228.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.816/1.773/3.650 ms 2025-06-23 19:06:27,222 - INFO - Ping to IP 153.243.228.3 from VM ctest-TestBasicPolicy-52776439-72253846 passed 2025-06-23 19:06:27,408 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1fc59955-9f81-4320-aa6b-2559ddf78255", "href": "http://10.0.0.254:8082/network-policy/1fc59955-9f81-4320-aa6b-2559ddf78255"}} 2025-06-23 19:06:27,408 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-23 19:06:27,408 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.243.228.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-23 19:06:27,409 - DEBUG - ping -s 56 -c 3 -W 1 153.243.228.3 2025-06-23 19:06:30,642 - DEBUG - PING 153.243.228.3 (153.243.228.3): 56 data bytes 64 bytes from 153.243.228.3: seq=0 ttl=63 time=1.531 ms --- 153.243.228.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.531/1.531/1.531 ms 2025-06-23 19:06:30,642 - WARNING - Ping to IP 153.243.228.3 from VM ctest-TestBasicPolicy-52776439-72253846 failed 2025-06-23 19:06:30,643 - INFO - Deleting VM ctest-TestBasicPolicy-52776439-72945200 2025-06-23 19:06:30,739 - INFO - Deleting VM ctest-TestBasicPolicy-52776439-72253846 2025-06-23 19:06:31,195 - INFO - Deleted policy ctest-policy-allow-all-94001674 2025-06-23 19:06:31,195 - INFO - Deleting VN ctest-vn-08495203 2025-06-23 19:06:31,235 - DEBUG - VN 24e346c1-dd83-40f2-9af6-f0b47320846e still in use: Unable to complete operation on network 24e346c1-dd83-40f2-9af6-f0b47320846e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-01dfe8e9-4a84-49b9-8c10-ff869a945417'] 2025-06-23 19:06:31,235 - WARNING - Deleting VN ctest-vn-08495203 failed..Will retry 2025-06-23 19:06:33,371 - DEBUG - Response for deleting network () 2025-06-23 19:06:33,371 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df 2025-06-23 19:06:33,382 - DEBUG - Response Code: 404 2025-06-23 19:06:33,382 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 19:06:33,388 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180 2025-06-23 19:06:33,444 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9 2025-06-23 19:06:33,524 - INFO - Validated that VN ctest-vn-08495203 is not found in API Server 2025-06-23 19:06:33,535 - DEBUG - VN ctest-vn-08495203 is not present in Agent 10.0.0.254 2025-06-23 19:06:33,536 - INFO - Validated that VN ctest-vn-08495203 is not in any agent 2025-06-23 19:06:33,552 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08495203 info 2025-06-23 19:06:33,552 - INFO - Deleting VN ctest-vn-31661566 2025-06-23 19:06:33,685 - DEBUG - Response for deleting network () 2025-06-23 19:06:33,685 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed 2025-06-23 19:06:33,691 - DEBUG - Response Code: 404 2025-06-23 19:06:33,691 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-23 19:06:33,698 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180 2025-06-23 19:06:33,755 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9 2025-06-23 19:06:33,836 - INFO - Validated that VN ctest-vn-31661566 is not found in API Server 2025-06-23 19:06:33,850 - DEBUG - VN ctest-vn-31661566 is not present in Agent 10.0.0.254 2025-06-23 19:06:33,850 - INFO - Validated that VN ctest-vn-31661566 is not in any agent 2025-06-23 19:06:33,869 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31661566 info 2025-06-23 19:06:34,123 - DEBUG - No XMPP flaps were noticed during the test
2025-06-23 19:06:34,123 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-06-23 19:06:34,123 - INFO - -------------------------------------------------------------------------------- 2025-06-23 19:06:34,882 - INFO - Deleted project: ctest-TestBasicPolicy-52776439, ID : a7315542-8c44-42f5-89f4-1b7889667ed9