2025-03-28 12:48:25,328 - INFO - Domain Default found not creating 2025-03-28 12:48:25,524 - INFO - Project ctest-TestBasicPolicy-61944449 not found, creating it 2025-03-28 12:48:26,023 - INFO - Created Project:ctest-TestBasicPolicy-61944449, ID : 3474a2a3-ae0a-4624-856c-6b0ab6bbfb17 2025-03-28 12:48:27,676 - INFO - ================================================================================ 2025-03-28 12:48:27,676 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-28 12:48:27,677 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-03-28 12:48:27,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with 2025-03-28 12:48:27,934 - INFO - Initial checks done. Running the testcase now 2025-03-28 12:48:27,934 - INFO - 2025-03-28 12:48:28,556 - DEBUG - Response for create_network : {'network': {'id': '7bc06b1e-a134-4bae-8105-fa6b09d08e8a', 'name': 'ctest-vn-83518238', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-83518238'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 12:48:28,770 - DEBUG - Response for create_subnet : {'subnet': {'id': '7edc7487-a9a9-483e-a309-e430386b72d8', 'name': '', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'network_id': '7bc06b1e-a134-4bae-8105-fa6b09d08e8a', 'ip_version': 4, 'cidr': '79.69.15.192/26', 'allocation_pools': [{'start': '79.69.15.194', 'end': '79.69.15.254'}], 'gateway_ip': '79.69.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.69.15.194', 'tags': [], 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17'}} 2025-03-28 12:48:28,794 - INFO - Created VN ctest-vn-83518238 2025-03-28 12:48:28,852 - DEBUG - VN ctest-vn-83518238 UUID is 7bc06b1e-a134-4bae-8105-fa6b09d08e8a 2025-03-28 12:48:29,201 - DEBUG - Response for create_network : {'network': {'id': 'c0814430-79ef-4ca5-a135-5d0f2c4a2cfd', 'name': 'ctest-vn-38646023', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-38646023'], 'port_security_enabled': True, 'description': ''}} 2025-03-28 12:48:29,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '04e0fa6d-bb24-417f-abbc-e8cfd1df6d15', 'name': '', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'network_id': 'c0814430-79ef-4ca5-a135-5d0f2c4a2cfd', 'ip_version': 4, 'cidr': '9.169.69.192/26', 'allocation_pools': [{'start': '9.169.69.194', 'end': '9.169.69.254'}], 'gateway_ip': '9.169.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.169.69.194', 'tags': [], 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17'}} 2025-03-28 12:48:29,452 - INFO - Created VN ctest-vn-38646023 2025-03-28 12:48:29,508 - DEBUG - VN ctest-vn-38646023 UUID is c0814430-79ef-4ca5-a135-5d0f2c4a2cfd 2025-03-28 12:48:29,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238, 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-61944449:ctest-vn-38646023, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-03-28 12:48:29,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bc06b1e-a134-4bae-8105-fa6b09d08e8a', 'name': 'ctest-vn-83518238', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7edc7487-a9a9-483e-a309-e430386b72d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-83518238'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003']], 'subnet_ipam': [{'subnet_cidr': '79.69.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 12:48:30,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0814430-79ef-4ca5-a135-5d0f2c4a2cfd', 'name': 'ctest-vn-38646023', 'tenant_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'project_id': '3474a2a3ae0a4624856c6b0ab6bbfb17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04e0fa6d-bb24-417f-abbc-e8cfd1df6d15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-vn-38646023'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003']], 'subnet_ipam': [{'subnet_cidr': '9.169.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-28 12:48:30,420 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-28 12:48:30,736 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-28 12:48:30,775 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27 2025-03-28 12:48:30,794 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17 2025-03-28 12:48:30,874 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a 2025-03-28 12:48:30,888 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a 2025-03-28 12:48:30,902 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd 2025-03-28 12:48:30,912 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd 2025-03-28 12:48:30,924 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3a14a091-57e4-4e05-b999-15c5f26ac691 2025-03-28 12:48:30,936 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 12:48:30,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a 2025-03-28 12:48:30,948 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd 2025-03-28 12:48:30,966 - INFO - Verified VN network id 8 for VN 7bc06b1e-a134-4bae-8105-fa6b09d08e8a 2025-03-28 12:48:30,966 - INFO - Verifications in API Server for VN ctest-vn-83518238 passed 2025-03-28 12:48:30,966 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a 2025-03-28 12:48:30,980 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd 2025-03-28 12:48:30,991 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd 2025-03-28 12:48:31,003 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3a14a091-57e4-4e05-b999-15c5f26ac691 2025-03-28 12:48:31,018 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61944449', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8917245041491332014', 'uuid-lslong': '9297112343409364618'}, 'enable': 'true', 'created': '2025-03-28T12:48:28', 'last-modified': '2025-03-28T12:48:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087458'} 2025-03-28 12:48:31,027 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-28 12:48:31,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83518238 passed 2025-03-28 12:48:31,027 - DEBUG - ====Verifying policy data for ctest-vn-83518238 in API_Server ====== 2025-03-28 12:48:31,027 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-28 12:48:31,035 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27 2025-03-28 12:48:31,057 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17 2025-03-28 12:48:31,134 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bc06b1e-a134-4bae-8105-fa6b09d08e8a 2025-03-28 12:48:31,146 - DEBUG - ==>Verifying data for policy with id: 1bf337ea-694b-4134-a5b6-980613499a85, fqn: ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003'] 2025-03-28 12:48:31,146 - INFO - VN ctest-vn-83518238 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 12:48:31,147 - DEBUG - Verifying the vn in opserver 2025-03-28 12:48:31,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238 virtual network link through opserver 10.0.0.33 2025-03-28 12:48:31,147 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-28 12:48:31,449 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-28 12:48:31,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238?flat'} 2025-03-28 12:48:31,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238 is found in opserver 2025-03-28 12:48:31,551 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 12:48:31,560 - DEBUG - VRF ids for VN ctest-vn-83518238: {} 2025-03-28 12:48:31,560 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-28 12:48:31,569 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27 2025-03-28 12:48:31,585 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17 2025-03-28 12:48:31,670 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd 2025-03-28 12:48:31,687 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd 2025-03-28 12:48:31,706 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad 2025-03-28 12:48:31,721 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad 2025-03-28 12:48:31,732 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cde18a5-446a-4221-a528-415237b49fa2 2025-03-28 12:48:31,742 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 12:48:31,742 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd 2025-03-28 12:48:31,755 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad 2025-03-28 12:48:31,774 - INFO - Verified VN network id 9 for VN c0814430-79ef-4ca5-a135-5d0f2c4a2cfd 2025-03-28 12:48:31,774 - INFO - Verifications in API Server for VN ctest-vn-38646023 passed 2025-03-28 12:48:31,775 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd 2025-03-28 12:48:31,789 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad 2025-03-28 12:48:31,799 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad 2025-03-28 12:48:31,808 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4cde18a5-446a-4221-a528-415237b49fa2 2025-03-28 12:48:31,824 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61944449', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13871443302272683173', 'uuid-lslong': '11616293133621013757'}, 'enable': 'true', 'created': '2025-03-28T12:48:29', 'last-modified': '2025-03-28T12:48:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.628492'} 2025-03-28 12:48:31,832 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-28 12:48:31,833 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38646023 passed 2025-03-28 12:48:31,833 - DEBUG - ====Verifying policy data for ctest-vn-38646023 in API_Server ====== 2025-03-28 12:48:31,833 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-28 12:48:31,840 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27 2025-03-28 12:48:31,856 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17 2025-03-28 12:48:31,943 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c0814430-79ef-4ca5-a135-5d0f2c4a2cfd 2025-03-28 12:48:31,957 - DEBUG - ==>Verifying data for policy with id: 1bf337ea-694b-4134-a5b6-980613499a85, fqn: ['default-domain', 'ctest-TestBasicPolicy-61944449', 'ctest-policy-allow-all-12467003'] 2025-03-28 12:48:31,957 - INFO - VN ctest-vn-38646023 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-28 12:48:31,957 - DEBUG - Verifying the vn in opserver 2025-03-28 12:48:31,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023 virtual network link through opserver 10.0.0.33 2025-03-28 12:48:31,957 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-03-28 12:48:31,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023?flat'} 2025-03-28 12:48:31,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-38646023 is found in opserver 2025-03-28 12:48:31,994 - DEBUG - Do not have enough data to verify VN in agent 2025-03-28 12:48:32,002 - DEBUG - VRF ids for VN ctest-vn-38646023: {} 2025-03-28 12:48:32,070 - DEBUG - Services list from nova: [, , ] 2025-03-28 12:48:33,201 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2990-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2990-1) 2025-03-28 12:48:34,686 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2990-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2990-1) 2025-03-28 12:48:34,687 - INFO - Waiting for VM ctest-TestBasicPolicy-61944449-25786864 to be up.. 2025-03-28 12:48:34,808 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-28 12:48:39,904 - DEBUG - VM is in ACTIVE state now 2025-03-28 12:48:39,904 - INFO - VM name : ctest-TestBasicPolicy-61944449-25786864 2025-03-28 12:48:40,014 - DEBUG - VM ctest-TestBasicPolicy-61944449-25786864 ID is d9f238a8-643e-482d-b4f8-08b1cde82b27 2025-03-28 12:48:40,042 - DEBUG - VM ctest-TestBasicPolicy-61944449-25786864 launched on Node cn-jenkins-deploy-platform-ansible-os-2990-1 2025-03-28 12:48:40,147 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/d9f238a8-643e-482d-b4f8-08b1cde82b27 2025-03-28 12:48:40,159 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/a3a2f03a-c86e-4cf5-8b3f-6eed776bc302 2025-03-28 12:48:43,434 - 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 1009ms') 2025-03-28 12:48:43,434 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61944449-25786864 failed! 2025-03-28 12:48:43,492 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61944449:ctest-vn-83518238 is 79.69.15.193 and allocation pool is NOT set 2025-03-28 12:48:45,559 - 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.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.97 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.965/5.690/8.416/2.725 ms') 2025-03-28 12:48:45,559 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61944449-25786864 passed 2025-03-28 12:48:45,724 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 12:48:45,724 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61944449-25786864, IP 79.69.15.195, Port 22 2025-03-28 12:48:45,790 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-28 12:48:45,890 - DEBUG - VM ctest-TestBasicPolicy-61944449-25786864 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-28 12:48:50,891 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 12:48:50,891 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61944449-25786864, IP 79.69.15.195, Port 22 2025-03-28 12:48:51,048 - DEBUG - VM ctest-TestBasicPolicy-61944449-25786864 is ready for SSH connections 2025-03-28 12:48:51,049 - INFO - Waiting for VM ctest-TestBasicPolicy-61944449-25142650 to be up.. 2025-03-28 12:48:51,144 - DEBUG - VM is in ACTIVE state now 2025-03-28 12:48:51,145 - INFO - VM name : ctest-TestBasicPolicy-61944449-25142650 2025-03-28 12:48:51,235 - DEBUG - VM ctest-TestBasicPolicy-61944449-25142650 ID is 6983b8da-b783-4033-a65a-12b15fa7064b 2025-03-28 12:48:51,235 - DEBUG - VM ctest-TestBasicPolicy-61944449-25142650 launched on Node cn-jenkins-deploy-platform-ansible-os-2990-1 2025-03-28 12:48:51,338 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/6983b8da-b783-4033-a65a-12b15fa7064b 2025-03-28 12:48:51,350 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/7e2a9cdb-861a-46c7-9474-e464b4c66ab6 2025-03-28 12:48:52,606 - 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.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.547 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.547/2.002/3.458/1.455 ms') 2025-03-28 12:48:52,606 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61944449-25142650 passed 2025-03-28 12:48:52,760 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 12:48:52,760 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61944449-25142650, IP 9.169.69.195, Port 22 2025-03-28 12:48:52,934 - DEBUG - VM ctest-TestBasicPolicy-61944449-25142650 is ready for SSH connections 2025-03-28 12:48:52,934 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 12:48:52,934 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.169.69.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-28 12:48:52,934 - DEBUG - ping -s 56 -c 3 -W 1 9.169.69.195 2025-03-28 12:48:57,037 - DEBUG - PING 9.169.69.195 (9.169.69.195): 56 data bytes 64 bytes from 9.169.69.195: seq=0 ttl=63 time=4.182 ms 64 bytes from 9.169.69.195: seq=1 ttl=63 time=1.241 ms 64 bytes from 9.169.69.195: seq=2 ttl=63 time=1.054 ms --- 9.169.69.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.054/2.159/4.182 ms 2025-03-28 12:48:57,037 - INFO - Ping to IP 9.169.69.195 from VM ctest-TestBasicPolicy-61944449-25786864 passed 2025-03-28 12:48:57,239 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1bf337ea-694b-4134-a5b6-980613499a85", "href": "http://10.0.0.33:8082/network-policy/1bf337ea-694b-4134-a5b6-980613499a85"}} 2025-03-28 12:48:57,240 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-28 12:48:57,240 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.169.69.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-03-28 12:48:57,240 - DEBUG - ping -s 56 -c 3 -W 1 9.169.69.195 2025-03-28 12:49:00,480 - DEBUG - PING 9.169.69.195 (9.169.69.195): 56 data bytes 64 bytes from 9.169.69.195: seq=0 ttl=63 time=1.917 ms --- 9.169.69.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.917/1.917/1.917 ms 2025-03-28 12:49:00,480 - WARNING - Ping to IP 9.169.69.195 from VM ctest-TestBasicPolicy-61944449-25786864 failed 2025-03-28 12:49:00,481 - INFO - Deleting VM ctest-TestBasicPolicy-61944449-25142650 2025-03-28 12:49:00,561 - INFO - Deleting VM ctest-TestBasicPolicy-61944449-25786864 2025-03-28 12:49:01,027 - INFO - Deleted policy ctest-policy-allow-all-12467003 2025-03-28 12:49:01,028 - INFO - Deleting VN ctest-vn-38646023 2025-03-28 12:49:01,071 - DEBUG - VN c0814430-79ef-4ca5-a135-5d0f2c4a2cfd still in use: Unable to complete operation on network c0814430-79ef-4ca5-a135-5d0f2c4a2cfd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-668fc15c-3d04-46cd-985b-47b5d655782e'] 2025-03-28 12:49:01,071 - WARNING - Deleting VN ctest-vn-38646023 failed..Will retry 2025-03-28 12:49:03,218 - DEBUG - Response for deleting network () 2025-03-28 12:49:03,218 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fbd387a6-972c-426a-90e9-dd8138e227ad 2025-03-28 12:49:03,226 - DEBUG - Response Code: 404 2025-03-28 12:49:03,227 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-28 12:49:03,235 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27 2025-03-28 12:49:03,297 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17 2025-03-28 12:49:03,380 - INFO - Validated that VN ctest-vn-38646023 is not found in API Server 2025-03-28 12:49:03,395 - DEBUG - VN ctest-vn-38646023 is not present in Agent 10.0.0.33 2025-03-28 12:49:03,395 - INFO - Validated that VN ctest-vn-38646023 is not in any agent 2025-03-28 12:49:03,417 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38646023 info 2025-03-28 12:49:03,417 - INFO - Deleting VN ctest-vn-83518238 2025-03-28 12:49:03,569 - DEBUG - Response for deleting network () 2025-03-28 12:49:03,569 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a24270e9-01e1-48f0-9ddb-ab9c7d9479bd 2025-03-28 12:49:03,576 - DEBUG - Response Code: 404 2025-03-28 12:49:03,576 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-03-28 12:49:03,583 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4030714b-bb02-48c6-b4bb-1e90c7623a27 2025-03-28 12:49:03,639 - DEBUG - Requesting: http://10.0.0.33:8082/project/3474a2a3-ae0a-4624-856c-6b0ab6bbfb17 2025-03-28 12:49:03,718 - INFO - Validated that VN ctest-vn-83518238 is not found in API Server 2025-03-28 12:49:03,734 - DEBUG - VN ctest-vn-83518238 is not present in Agent 10.0.0.33 2025-03-28 12:49:03,734 - INFO - Validated that VN ctest-vn-83518238 is not in any agent 2025-03-28 12:49:03,759 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83518238 info 2025-03-28 12:49:04,018 - DEBUG - No XMPP flaps were noticed during the test
2025-03-28 12:49:04,018 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2025-03-28 12:49:04,019 - INFO - -------------------------------------------------------------------------------- 2025-03-28 12:49:04,769 - INFO - Deleted project: ctest-TestBasicPolicy-61944449, ID : 3474a2a3-ae0a-4624-856c-6b0ab6bbfb17